Address Contract Verified
Address
0xd2a08fF5F31d2F2d70C91960323C2ed31268ae25
Balance
0.063568 ETH
Nonce
1
Code Size
8148 bytes
Creator
0xee1fa792...0CcF at tx 0x93f79a96...f1453f
Indexed Transactions
0
Contract Bytecode
8148 bytes
0x60806040526004361061023f5760003560e01c806377d1440d1161012e578063bf3fa5bf116100ab578063d8454a821161006f578063d8454a8214610683578063dd62ed3e14610698578063dd848220146106b8578063e2c7e071146106d8578063f2fde38b146106ed57600080fd5b8063bf3fa5bf146105f7578063c46ad8fb14610617578063cc1776d31461062d578063cf43598e14610643578063d147e8911461066357600080fd5b806395d89b41116100f257806395d89b41146105775780639bab13201461058c578063a457c2d7146105a1578063a9059cbb146105c1578063b1cc1115146105e157600080fd5b806377d1440d146104f85780638124f7ac1461050e5780638da5cb5b1461052457806392b0a60414610542578063952b55211461055757600080fd5b806339509351116101bc5780636940a217116101805780636940a2171461044d57806369cd61191461046d5780636fcbe6301461048d57806370a08231146104ad578063715018a6146104e357600080fd5b806339509351146103c15780634e1c35a2146103e15780634f7041a51461040157806356b4d1c0146104175780635b07bba41461043757600080fd5b8063097db0a111610203578063097db0a11461031c57806309fd82121461034057806318160ddd1461037057806323b872dd14610385578063313ce567146103a557600080fd5b806302698e391461024b57806304d3d0941461026d57806306fdde03146102aa5780630758d924146102cc578063095ea7b3146102ec57600080fd5b3661024657005b600080fd5b34801561025757600080fd5b5061026b610266366004611bb9565b61070d565b005b34801561027957600080fd5b5060075461028d906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156102b657600080fd5b506102bf6108e5565b6040516102a19190611bf2565b3480156102d857600080fd5b5060085461028d906001600160a01b031681565b3480156102f857600080fd5b5061030c610307366004611c47565b610977565b60405190151581526020016102a1565b34801561032857600080fd5b50610332600a5481565b6040519081526020016102a1565b34801561034c57600080fd5b5061030c61035b366004611c73565b60066020526000908152604090205460ff1681565b34801561037c57600080fd5b50600254610332565b34801561039157600080fd5b5061030c6103a0366004611c97565b61098f565b3480156103b157600080fd5b50604051601281526020016102a1565b3480156103cd57600080fd5b5061030c6103dc366004611c47565b6109b3565b3480156103ed57600080fd5b5061026b6103fc366004611c97565b6109d5565b34801561040d57600080fd5b5061033260095481565b34801561042357600080fd5b5061026b610432366004611ce6565b610ba1565b34801561044357600080fd5b50610332600e5481565b34801561045957600080fd5b5061026b610468366004611d6c565b610c3d565b34801561047957600080fd5b5061026b610488366004611c73565b610c6e565b34801561049957600080fd5b5061026b6104a8366004611d85565b610cbc565b3480156104b957600080fd5b506103326104c8366004611c73565b6001600160a01b031660009081526020819052604090205490565b3480156104ef57600080fd5b5061026b610cd2565b34801561050457600080fd5b50610332600f5481565b34801561051a57600080fd5b50610332600d5481565b34801561053057600080fd5b506005546001600160a01b031661028d565b34801561054e57600080fd5b5061026b610ce6565b34801561056357600080fd5b5060115461028d906001600160a01b031681565b34801561058357600080fd5b506102bf610d1c565b34801561059857600080fd5b5061026b610d2b565b3480156105ad57600080fd5b5061030c6105bc366004611c47565b610dc8565b3480156105cd57600080fd5b5061030c6105dc366004611c47565b610e43565b3480156105ed57600080fd5b50610332600c5481565b34801561060357600080fd5b5061026b610612366004611d6c565b610e51565b34801561062357600080fd5b5061033260105481565b34801561063957600080fd5b50610332600b5481565b34801561064f57600080fd5b5061026b61065e366004611c47565b610e82565b34801561066f57600080fd5b5061026b61067e366004611d85565b610f0f565b34801561068f57600080fd5b50610332610f25565b3480156106a457600080fd5b506103326106b3366004611bb9565b610f49565b3480156106c457600080fd5b5061026b6106d3366004611c73565b610f74565b3480156106e457600080fd5b5061026b610fc2565b3480156106f957600080fd5b5061026b610708366004611c73565b61104d565b6107156110c3565b600880546001600160a01b0319166001600160a01b0384169081179091556040805163c45a015560e01b81529051600091839163c45a015591600480820192602092909190829003018186803b15801561076e57600080fd5b505afa158015610782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a69190611db1565b60405163e6a4390560e01b81523060048201526001600160a01b03858116602483015291925060009183169063e6a439059060440160206040518083038186803b1580156107f357600080fd5b505afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611db1565b90506001600160a01b0381166108bf576040516364e329cb60e11b81523060048201526001600160a01b03858116602483015283169063c9c6539690604401602060405180830381600087803b15801561088457600080fd5b505af1158015610898573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bc9190611db1565b90505b600780546001600160a01b0319166001600160a01b039290921691909117905550505050565b6060600380546108f490611dce565b80601f016020809104026020016040519081016040528092919081815260200182805461092090611dce565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b5050505050905090565b60003361098581858561111d565b5060019392505050565b60003361099d858285611241565b6109a88585856112bb565b506001949350505050565b6000336109858185856109c68383610f49565b6109d09190611e1f565b61111d565b6109dd6110c3565b6001600160a01b038216610a2e5760405162461bcd60e51b815260206004820152601360248201527266456d657267656e6379546f6b656e3a30783160681b60448201526064015b60405180910390fd5b826001600160a01b038116301415610b18576040516370a0823160e01b81526001600160a01b038581166004830152600091908316906370a082319060240160206040518083038186803b158015610a8557600080fd5b505afa158015610a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abd9190611e37565b9050610ac7610f25565b610ad19084611e1f565b811015610b165760405162461bcd60e51b81526020600482015260136024820152723322b6b2b933b2b731bcaa37b5b2b71d183c1960691b6044820152606401610a25565b505b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905282169063a9059cbb90604401602060405180830381600087803b158015610b6257600080fd5b505af1158015610b76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9a9190611e50565b5050505050565b6015546001600160a01b0316338114610bcc5760405162461bcd60e51b8152600401610a2590611e6d565b60005b83811015610b9a578260066000878785818110610bee57610bee611ea4565b9050602002016020810190610c039190611c73565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610c3581611eba565b915050610bcf565b6015546001600160a01b0316338114610c685760405162461bcd60e51b8152600401610a2590611e6d565b50600f55565b6015546001600160a01b0316338114610c995760405162461bcd60e51b8152600401610a2590611e6d565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b610cc46110c3565b601292909255601355601455565b610cda6110c3565b610ce46000611670565b565b6011546001600160a01b0316338114610d115760405162461bcd60e51b8152600401610a2590611e6d565b610d196116c2565b50565b6060600480546108f490611dce565b6011546001600160a01b0316338114610d565760405162461bcd60e51b8152600401610a2590611e6d565b6000610d60610f25565b905060008111610d985760405162461bcd60e51b815260206004820152600360248201526230783160e81b6044820152606401610a25565b610dac6000600a819055600c819055600e55565b601154610dc49030906001600160a01b0316836112bb565b5050565b60003381610dd68286610f49565b905083811015610e365760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a25565b6109a8828686840361111d565b6000336109858185856112bb565b6015546001600160a01b0316338114610e7c5760405162461bcd60e51b8152600401610a2590611e6d565b50601055565b610e8a6110c3565b6001600160a01b038216610ed45760405162461bcd60e51b815260206004820152601160248201527066456d657267656e63794574683a30783160781b6044820152606401610a25565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610f0a573d6000803e3d6000fd5b505050565b610f176110c3565b600992909255600b55600d55565b6000600e54600c54600a54610f3a9190611e1f565b610f449190611e1f565b905090565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6015546001600160a01b0316338114610f9f5760405162461bcd60e51b8152600401610a2590611e6d565b50601180546001600160a01b0319166001600160a01b0392909216919091179055565b6011546001600160a01b0316338114610fed5760405162461bcd60e51b8152600401610a2590611e6d565b6000610ff7610f25565b90506000811161102f5760405162461bcd60e51b815260206004820152600360248201526230783160e81b6044820152606401610a25565b6110436000600a819055600c819055600e55565b610dc430826118ce565b6110556110c3565b6001600160a01b0381166110ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a25565b610d1981611670565b6005546001600160a01b03163314610ce45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a25565b6001600160a01b03831661117f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a25565b6001600160a01b0382166111e05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a25565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061124d8484610f49565b905060001981146112b557818110156112a85760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a25565b6112b5848484840361111d565b50505050565b6001600160a01b03831660009081526006602052604081205460ff16806112fa57506001600160a01b03831660009081526006602052604090205460ff165b8061130d57506001600160a01b03841630145b8061131a57506010544210155b6007549091506000906001600160a01b03868116911614801561134a57506008546001600160a01b038581169116145b8061139557506008546001600160a01b03868116911614801561137b57506007546001600160a01b03858116911614155b801561139557506008546001600160a01b03858116911614155b6007549091506000906001600160a01b038781169116148015906113c757506008546001600160a01b03878116911614155b80156113e057506007546001600160a01b038681169116145b6007549091506000906001600160a01b03888116911614801561141157506007546001600160a01b03878116911614155b801561142b57506008546001600160a01b03878116911614155b905083806114365750825b1561144b57611446878787611a00565b611667565b600060125411801561145f57504260125411155b61149a5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610a25565b806114a7576114a76116c2565b60008180156114b857506000600954115b156114f757612710600954876114ce9190611ed5565b6114d89190611ef4565b905080600a60008282546114ec9190611e1f565b909155506115779050565b82801561150657506000600b54115b1561153a57612710600b548761151c9190611ed5565b6115269190611ef4565b905080600c60008282546114ec9190611e1f565b600d541561157757612710600d54876115539190611ed5565b61155d9190611ef4565b905080600e60008282546115719190611e1f565b90915550505b801561158857611588883083611a00565b60006115948288611f16565b90506013548111156115d95760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610a25565b82806115e3575083155b15611659576014548161160b8a6001600160a01b031660009081526020819052604090205490565b6116159190611e1f565b11156116595760405162461bcd60e51b8152602060048201526013602482015272496e76616c6964206d61782062616c616e636560681b6044820152606401610a25565b611664898983611a00565b50505b50505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006116cc610f25565b9050600f548110610d19576116eb6000600a819055600c819055600e55565b6008546117039030906001600160a01b03168361111d565b600854604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c4648916004808301926020929190829003018186803b15801561174857600080fd5b505afa15801561175c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117809190611db1565b604080516002808252606082018352929350600092909160208301908036833701905050905030816000815181106117ba576117ba611ea4565b60200260200101906001600160a01b031690816001600160a01b03168152505081816001815181106117ee576117ee611ea4565b6001600160a01b03928316602091820292909201015260115460085460405163791ac94760e01b8152918316803193919091169163791ac9479161183e9188916000918891904290600401611f2d565b600060405180830381600087803b15801561185857600080fd5b505af115801561186c573d6000803e3d6000fd5b50506011546000925061188b915083906001600160a01b031631611f16565b60408051878152602081018390529192507ffe5c34e54c1a4aabb3dad9c4b262d6732c5c3a537a53d8f66cde08f99a84abce910160405180910390a15050505050565b6001600160a01b03821661192e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a25565b6001600160a01b038216600090815260208190526040902054818110156119a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a25565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b038316611a645760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a25565b6001600160a01b038216611ac65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a25565b6001600160a01b03831660009081526020819052604090205481811015611b3e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a25565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36112b5565b6001600160a01b0381168114610d1957600080fd5b60008060408385031215611bcc57600080fd5b8235611bd781611ba4565b91506020830135611be781611ba4565b809150509250929050565b600060208083528351808285015260005b81811015611c1f57858101830151858201604001528201611c03565b81811115611c31576000604083870101525b50601f01601f1916929092016040019392505050565b60008060408385031215611c5a57600080fd5b8235611c6581611ba4565b946020939093013593505050565b600060208284031215611c8557600080fd5b8135611c9081611ba4565b9392505050565b600080600060608486031215611cac57600080fd5b8335611cb781611ba4565b92506020840135611cc781611ba4565b929592945050506040919091013590565b8015158114610d1957600080fd5b600080600060408486031215611cfb57600080fd5b833567ffffffffffffffff80821115611d1357600080fd5b818601915086601f830112611d2757600080fd5b813581811115611d3657600080fd5b8760208260051b8501011115611d4b57600080fd5b60209283019550935050840135611d6181611cd8565b809150509250925092565b600060208284031215611d7e57600080fd5b5035919050565b600080600060608486031215611d9a57600080fd5b505081359360208301359350604090920135919050565b600060208284031215611dc357600080fd5b8151611c9081611ba4565b600181811c90821680611de257607f821691505b60208210811415611e0357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611e3257611e32611e09565b500190565b600060208284031215611e4957600080fd5b5051919050565b600060208284031215611e6257600080fd5b8151611c9081611cd8565b60208082526018908201527f5468652063616c6c657220686173206e6f207269676874730000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611ece57611ece611e09565b5060010190565b6000816000190483118215151615611eef57611eef611e09565b500290565b600082611f1157634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611f2857611f28611e09565b500390565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611f7d5784516001600160a01b031683529383019391830191600101611f58565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220678171dfcde907ecbda97feee76f29a1376843915e40a2354df7e4687d07e4a264736f6c63430008080033
Verified Source Code Full Match
Compiler: v0.8.8+commit.dddeac2f
EVM: london
Optimization: Yes (200 runs)
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
ERC20.sol 365 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
Context.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
NEOSAIToken.sol 302 lines
// SPDX-License-Identifier: MIT
// Website: https://neos.ai
// Telegram: https://t.me/neosofficial
// X Account: https://x.com/Neos_Research
pragma solidity 0.8.8;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/dex/IUniswapRouter02.sol";
import "./interfaces/dex/IUniswapFactory.sol";
import "./interfaces/dex/IWETH.sol";
contract NEOSAIToken is ERC20, Ownable {
uint private constant _RATE_NOMINATOR = 100e2;
// Access config
mapping(address => bool) public isInWhitelist;
// Dex
address public dexLP;
address public dexRouter;
// Tax
uint public buyTax;
uint public buyTaxCollected;
uint public sellTax;
uint public sellTaxCollected;
uint public transferTax;
uint public transferTaxCollected;
uint public taxThreshold;
uint public taxEndTime;
address public taxHolder;
// Anti bot
uint private tradeStartTime;
uint private tradeMaxAmount;
uint private walletMaxAmount;
address private editor;
event ProcessTaxSuccess(uint _taxProcess, uint _swappedETHAmount_);
modifier onlyGranted(address _account) {
require(_msgSender() == _account, "The caller has no rights");
_;
}
/**
* @dev Allow contract to receive ethers
*/
// solhint-disable-next-line no-empty-blocks
receive() external payable {}
constructor() ERC20("Neos.ai", "NEOS") {
address sender_ = _msgSender();
editor = sender_;
// Decimal and supply
uint256 initSupply_ = 100_000_000;
uint256 exp_ = 10 ** decimals();
_mint(sender_, initSupply_ * exp_);
// Exclude addresses
isInWhitelist[sender_] = true;
// Init tax config.
taxHolder = 0x973D55C2594a9e3BAd5Ac4dA5f9a2F782b780279;
buyTax = 30e2;
sellTax = 40e2;
transferTax = 0;
taxThreshold = 1_000 * exp_;
taxEndTime = type(uint).max;
// Init dex
fSetDexInfo(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
// Init trade config
uint256 limit_ = 2_000_000 * exp_;
fConfigTrade(1733239800, limit_, limit_);
}
/**
* @dev Get total tax collected
*/
function totalTaxCollected() public view returns (uint) {
return buyTaxCollected + sellTaxCollected + transferTaxCollected;
}
/**
* @dev Override ERC20 transfer the tokens
*/
function _transfer(address _pFrom, address _pTo, uint256 _pAmount) internal override {
// No tax types
bool isZeroFee_ = isInWhitelist[_pFrom] ||
isInWhitelist[_pTo] ||
_pFrom == address(this) ||
block.timestamp >= taxEndTime;
// Transfer types
bool isRemoveLP_ = (_pFrom == dexLP && _pTo == dexRouter) ||
(_pFrom == dexRouter && _pTo != dexLP && _pTo != dexRouter);
bool isSellOrAddLP_ = _pFrom != dexLP && _pFrom != dexRouter && _pTo == dexLP;
bool isBuy_ = _pFrom == dexLP && _pTo != dexLP && _pTo != dexRouter;
// Logic
if (isZeroFee_ || isRemoveLP_) {
super._transfer(_pFrom, _pTo, _pAmount);
} else {
// Cannot transfer before trade start time
require(tradeStartTime > 0 && tradeStartTime <= block.timestamp, "Invalid time");
// Tax swapping first
if (!isBuy_) {
_processAllTax();
}
// Tax calculating
uint taxAmount_;
if (isBuy_ && buyTax > 0) {
taxAmount_ = (_pAmount * buyTax) / _RATE_NOMINATOR;
buyTaxCollected += taxAmount_;
} else if (isSellOrAddLP_ && sellTax > 0) {
taxAmount_ = (_pAmount * sellTax) / _RATE_NOMINATOR;
sellTaxCollected += taxAmount_;
} else if (transferTax > 0) {
taxAmount_ = (_pAmount * transferTax) / _RATE_NOMINATOR;
transferTaxCollected += taxAmount_;
}
if (taxAmount_ > 0) {
super._transfer(_pFrom, address(this), taxAmount_);
}
uint amountAfterTax_ = _pAmount - taxAmount_;
// Cannot transfer exceed trade max amount
require(amountAfterTax_ <= tradeMaxAmount, "Invalid amount");
// Cannot transfer exceed wallet max amount
if (isBuy_ || !isSellOrAddLP_) {
require(balanceOf(_pTo) + amountAfterTax_ <= walletMaxAmount, "Invalid max balance");
}
super._transfer(_pFrom, _pTo, amountAfterTax_);
}
}
/**
* @dev Set dex info
* @param _pDexRouter address of router
*/
function fSetDexInfo(address _pDexRouter, address _pToken2) public onlyOwner {
dexRouter = _pDexRouter;
IUniswapRouter02 router_ = IUniswapRouter02(dexRouter);
IUniswapFactory factory_ = IUniswapFactory(router_.factory());
address lpAddress_ = factory_.getPair(address(this), _pToken2);
if (lpAddress_ == address(0)) {
lpAddress_ = factory_.createPair(address(this), _pToken2);
}
dexLP = lpAddress_;
}
/**
* @dev Config trade
* @param _pStartTime start trade time. 0 will disable trade, should be > 0
* @param _pMaxAmount max trade amount
*/
function fConfigTrade(uint _pStartTime, uint _pMaxAmount, uint _pWalletMaxAmount) public onlyOwner {
tradeStartTime = _pStartTime;
tradeMaxAmount = _pMaxAmount;
walletMaxAmount = _pWalletMaxAmount;
}
/**
* @dev Emergency withdraw eth balance
*/
function fEmergencyEth(address _pTo, uint256 _pAmount) external onlyOwner {
require(_pTo != address(0), "fEmergencyEth:0x1");
payable(_pTo).transfer(_pAmount);
}
/**
* @dev Emergency withdraw token balance
*/
function fEmergencyToken(address _pToken, address _pTo, uint256 _pAmount) external onlyOwner {
require(_pTo != address(0), "fEmergencyToken:0x1");
IERC20 token_ = IERC20(_pToken);
if (_pToken == address(this)) {
uint balance_ = token_.balanceOf(_pToken);
require(balance_ >= _pAmount + totalTaxCollected(), "fEmergencyToken:0x2");
}
token_.transfer(_pTo, _pAmount);
}
/**
* @dev Config tax for token
* @param _pBuyTax buy tax value
* @param _pSellTax sell tax value
*/
function fConfigTax(uint _pBuyTax, uint _pSellTax, uint _pTransferTax) external onlyOwner {
buyTax = _pBuyTax;
sellTax = _pSellTax;
transferTax = _pTransferTax;
}
/**
* @dev Config editor
*/
function fConfigEditor(address _pEditor) external onlyGranted(editor) {
editor = _pEditor;
}
/**
* @dev Config tax threshold
*/
function fConfigTaxThreshold(uint _pTaxThreshold) external onlyGranted(editor) {
taxThreshold = _pTaxThreshold;
}
/**
* @dev Config tax end time
*/
function fConfigTaxEndTime(uint _pTaxEndTime) external onlyGranted(editor) {
taxEndTime = _pTaxEndTime;
}
/**
* @dev Config tax holder
* @param _pTaxHolder buy tax value
*/
function fConfigTaxHolder(address _pTaxHolder) external onlyGranted(editor) {
taxHolder = _pTaxHolder;
}
/**
* @dev Function to add a account to whitelist
*/
function fSetWhitelist(address[] calldata _pAccounts, bool _pStatus) external onlyGranted(editor) {
for (uint i = 0; i < _pAccounts.length; i++) {
isInWhitelist[_pAccounts[i]] = _pStatus;
}
}
/**
* @dev Burn all tax collected
*/
function fBurnAllTax() external onlyGranted(taxHolder) {
uint totalTax_ = totalTaxCollected();
require(totalTax_ > 0, "0x1");
_resetAllTax();
_burn(address(this), totalTax_);
}
/**
* @dev Claim all tax collected
*/
function fClaimAllTax() external onlyGranted(taxHolder) {
uint totalTax_ = totalTaxCollected();
require(totalTax_ > 0, "0x1");
_resetAllTax();
_transfer(address(this), taxHolder, totalTax_);
}
/**
* @dev Process all tax collected
*/
function fProcessAllTax() external onlyGranted(taxHolder) {
_processAllTax();
}
/**
* @dev Reset tax collected to zero
*/
function _resetAllTax() private {
buyTaxCollected = 0;
sellTaxCollected = 0;
transferTaxCollected = 0;
}
/**
* @dev Process tax
*/
function _processAllTax() private {
uint taxProcess = totalTaxCollected();
if (taxProcess >= taxThreshold) {
// Reset tax collected
_resetAllTax();
// Swap to ETH
_approve(address(this), dexRouter, taxProcess);
address weth_ = IUniswapRouter02(dexRouter).WETH();
address[] memory path_ = new address[](2);
path_[0] = address(this);
path_[1] = weth_;
uint initialBalance_ = address(taxHolder).balance;
IUniswapRouter02(dexRouter).swapExactTokensForETHSupportingFeeOnTransferTokens(
taxProcess,
0,
path_,
taxHolder,
block.timestamp
);
uint swappedETHAmount_ = address(taxHolder).balance - initialBalance_;
emit ProcessTaxSuccess(taxProcess, swappedETHAmount_);
}
}
}
IUniswapFactory.sol 22 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.8;
interface IUniswapFactory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
IUniswapRouter01.sol 130 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.8;
interface IUniswapRouter01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable returns (uint[] memory amounts);
function swapTokensForExactETH(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactTokensForETH(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapETHForExactTokens(
uint amountOut,
address[] calldata path,
address to,
uint deadline
) external payable returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
IUniswapRouter02.sol 51 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.8;
import "./IUniswapRouter01.sol";
interface IUniswapRouter02 is IUniswapRouter01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
IWETH.sol 14 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.8;
interface IWETH {
function deposit() external payable;
function transfer(address to, uint value) external returns (bool);
function withdraw(uint) external;
function approve(address spender, uint value) external;
function balanceOf(address account) external view returns (uint);
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTax 0x4f7041a5 → uint256
buyTaxCollected 0x097db0a1 → uint256
decimals 0x313ce567 → uint8
dexLP 0x04d3d094 → address
dexRouter 0x0758d924 → address
isInWhitelist 0x09fd8212 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTax 0xcc1776d3 → uint256
sellTaxCollected 0xb1cc1115 → uint256
symbol 0x95d89b41 → string
taxEndTime 0xc46ad8fb → uint256
taxHolder 0x952b5521 → address
taxThreshold 0x77d1440d → uint256
totalSupply 0x18160ddd → uint256
totalTaxCollected 0xd8454a82 → uint256
transferTax 0x8124f7ac → uint256
transferTaxCollected 0x5b07bba4 → uint256
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
fBurnAllTax 0xe2c7e071
No parameters
fClaimAllTax 0x9bab1320
No parameters
fConfigEditor 0x69cd6119
address _pEditor
fConfigTax 0xd147e891
uint256 _pBuyTax
uint256 _pSellTax
uint256 _pTransferTax
fConfigTaxEndTime 0xbf3fa5bf
uint256 _pTaxEndTime
fConfigTaxHolder 0xdd848220
address _pTaxHolder
fConfigTaxThreshold 0x6940a217
uint256 _pTaxThreshold
fConfigTrade 0x6fcbe630
uint256 _pStartTime
uint256 _pMaxAmount
uint256 _pWalletMaxAmount
fEmergencyEth 0xcf43598e
address _pTo
uint256 _pAmount
fEmergencyToken 0x4e1c35a2
address _pToken
address _pTo
uint256 _pAmount
fProcessAllTax 0x92b0a604
No parameters
fSetDexInfo 0x02698e39
address _pDexRouter
address _pToken2
fSetWhitelist 0x56b4d1c0
address[] _pAccounts
bool _pStatus
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address