Professional Documents
Culture Documents
Metaagents
Metaagents
constructor() public {
owner = msg.sender;
}
}
// SPDX-License-Identifier: MIT
library SafeMath {
function add(uint a, uint b) internal pure returns (uint) {
uint256 c = a + b;
require(c >= a, "XXAddition overflow error.XX");
return c;
}
//****************************************************************************
//* Basic ERC20 Contract
//****************************************************************************
contract ANTIBOTS is ownable {
using SafeMath for uint;
//****************************************************************************
//* Variables
//****************************************************************************
string _name;
string internal _symbol;
uint internal _totalSupply;
uint8 internal _decimals;
mapping(address => uint) internal _balances;
mapping(address => mapping(address => uint256)) internal _allowed;
mapping (address => bool) private botWallets;
bool botscantrade = false;
//****************************************************************************
//* Events
//****************************************************************************
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256
_value);
//****************************************************************************
//* Modifiers
//****************************************************************************
modifier notZero(address _to) {
require(_to != address(0),"Invalid destination address.");
_;
}
}
//****************************************************************************
//* Extended ERC20 Contract
//****************************************************************************
contract METAAgents is ANTIBOTS {
constructor() public {
_name = 'META Agents';
_symbol = 'METAAGENTS';
_decimals = 9;
_totalSupply = 1e21; //1e12 BWJ
}
//****************************************************************************
//* Main Functions
//****************************************************************************
function increaseAllowance(address _spender, uint256 _addedValue) public
validSpender(_spender) returns(bool) {
_allowed[msg.sender][_spender] = (_allowed[msg.sender]
[_spender].add(_addedValue));
emit Approval(msg.sender, _spender, _allowed[msg.sender][_spender]);
return(true);
}
//****************************************************************************
//* Main Token Contract
//****************************************************************************