Address Contract Partially Verified
Address
0xb758A11667Ffe17cC63e4D9C7fa661278968f076
Balance
0 ETH
Nonce
1
Code Size
8113 bytes
Creator
0x6c966821...A14b at tx 0x66dd17fd...4e3a58
Indexed Transactions
Index loading...
Contract Bytecode
8113 bytes
0x6080604052600436106102555760003560e01c8063750c11b611610139578063c0246668116100b6578063dd62ed3e1161007a578063dd62ed3e14610705578063e2f456051461074b578063e6c75f7114610761578063e7f444b314610777578063ec28438a1461078d578063f2fde38b146107ad57600080fd5b8063c024666814610679578063c49b9a8014610699578063c8c8ebe4146106b9578063ccb61358146106cf578063d3f6a157146106e557600080fd5b80638da5cb5b116100fd5780638da5cb5b146105e657806395d89b4114610604578063a457c2d714610619578063a9059cbb14610639578063aba88f021461065957600080fd5b8063750c11b61461055457806375f0a874146105745780637ae3ff471461059a5780637e761377146105b057806385141a77146105c657600080fd5b806339509351116101d25780635992704411610196578063599270441461049357806368078952146104b357806370a08231146104c9578063715018a6146104ff5780637187507a14610514578063728d41c91461053457600080fd5b806339509351146103c55780633ff4c478146103e557806349bd5a5e146104075780634a74bb021461043b5780634fbee1931461045a57600080fd5b806319998bbb1161021957806319998bbb1461032d5780631cdd3be3146103435780631d38ff961461037357806323b872dd14610389578063313ce567146103a957600080fd5b806306fdde0314610261578063095ea7b31461028c578063099d0d30146102bc5780631694505e146102e057806318160ddd1461031857600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b506102766107cd565b6040516102839190611b60565b60405180910390f35b34801561029857600080fd5b506102ac6102a7366004611bc3565b61085f565b6040519015158152602001610283565b3480156102c857600080fd5b506102d2600f5481565b604051908152602001610283565b3480156102ec57600080fd5b50600654610300906001600160a01b031681565b6040516001600160a01b039091168152602001610283565b34801561032457600080fd5b506002546102d2565b34801561033957600080fd5b506102d260115481565b34801561034f57600080fd5b506102ac61035e366004611bef565b60176020526000908152604090205460ff1681565b34801561037f57600080fd5b506102d2600c5481565b34801561039557600080fd5b506102ac6103a4366004611c13565b610876565b3480156103b557600080fd5b5060405160128152602001610283565b3480156103d157600080fd5b506102ac6103e0366004611bc3565b610925565b3480156103f157600080fd5b50610405610400366004611c54565b610961565b005b34801561041357600080fd5b506103007f000000000000000000000000bc9917a44e7dcf84037c5d93f9fb475e187d37f981565b34801561044757600080fd5b506014546102ac90610100900460ff1681565b34801561046657600080fd5b506102ac610475366004611bef565b6001600160a01b031660009081526018602052604090205460ff1690565b34801561049f57600080fd5b50601554610300906001600160a01b031681565b3480156104bf57600080fd5b506102d2600b5481565b3480156104d557600080fd5b506102d26104e4366004611bef565b6001600160a01b031660009081526020819052604090205490565b34801561050b57600080fd5b506104056109c8565b34801561052057600080fd5b5061040561052f366004611c54565b6109fe565b34801561054057600080fd5b5061040561054f366004611c86565b610a48565b34801561056057600080fd5b5061040561056f366004611c86565b610ab1565b34801561058057600080fd5b50601454610300906201000090046001600160a01b031681565b3480156105a657600080fd5b506102d2600d5481565b3480156105bc57600080fd5b506102d260125481565b3480156105d257600080fd5b50601654610300906001600160a01b031681565b3480156105f257600080fd5b506005546001600160a01b0316610300565b34801561061057600080fd5b50610276610ae0565b34801561062557600080fd5b506102ac610634366004611bc3565b610aef565b34801561064557600080fd5b506102ac610654366004611bc3565b610b88565b34801561066557600080fd5b50610405610674366004611cb4565b610b95565b34801561068557600080fd5b50610405610694366004611cb4565b610bea565b3480156106a557600080fd5b506104056106b4366004611ce9565b610cf6565b3480156106c557600080fd5b506102d260085481565b3480156106db57600080fd5b506102d2600a5481565b3480156106f157600080fd5b50610405610700366004611d04565b610d74565b34801561071157600080fd5b506102d2610720366004611d04565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561075757600080fd5b506102d260075481565b34801561076d57600080fd5b506102d260095481565b34801561078357600080fd5b506102d260105481565b34801561079957600080fd5b506104056107a8366004611c86565b610dd8565b3480156107b957600080fd5b506104056107c8366004611bef565b610e41565b6060600380546107dc90611d3d565b80601f016020809104026020016040519081016040528092919081815260200182805461080890611d3d565b80156108555780601f1061082a57610100808354040283529160200191610855565b820191906000526020600020905b81548152906001019060200180831161083857829003601f168201915b5050505050905090565b600061086c338484610edc565b5060015b92915050565b6000610883848484611000565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561090d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61091a8533858403610edc565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161086c91859061095c908690611d8d565b610edc565b6005546001600160a01b0316331461098b5760405162461bcd60e51b815260040161090490611da0565b600a849055600b839055600c829055600d81905580826109ab8587611d8d565b6109b59190611d8d565b6109bf9190611d8d565b60135550505050565b6005546001600160a01b031633146109f25760405162461bcd60e51b815260040161090490611da0565b6109fc60006114bd565b565b6005546001600160a01b03163314610a285760405162461bcd60e51b815260040161090490611da0565b600f84905560108390556011829055601281905580826109ab8587611d8d565b6005546001600160a01b03163314610a725760405162461bcd60e51b815260040161090490611da0565b600081118015610a83575060648111155b610a8c57600080fd5b6064610a9760025490565b610aa19083611dd5565b610aab9190611dec565b60095550565b6005546001600160a01b03163314610adb5760405162461bcd60e51b815260040161090490611da0565b600755565b6060600480546107dc90611d3d565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b715760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610904565b610b7e3385858403610edc565b5060019392505050565b600061086c338484611000565b6005546001600160a01b03163314610bbf5760405162461bcd60e51b815260040161090490611da0565b6001600160a01b03919091166000908152601760205260409020805460ff1916911515919091179055565b6005546001600160a01b03163314610c145760405162461bcd60e51b815260040161090490611da0565b6001600160a01b03821660009081526018602052604090205481151560ff909116151503610c975760405162461bcd60e51b815260206004820152602a60248201527f4163636f756e7420697320616c7265616479207468652076616c7565206f6620604482015269276578636c756465642760b01b6064820152608401610904565b6001600160a01b038216600081815260186020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b03163314610d205760405162461bcd60e51b815260040161090490611da0565b601480548215156101000261ff00199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc15990610d6990831515815260200190565b60405180910390a150565b6005546001600160a01b03163314610d9e5760405162461bcd60e51b815260040161090490611da0565b6014805462010000600160b01b031916620100006001600160a01b0394851602179055601580546001600160a01b03191691909216179055565b6005546001600160a01b03163314610e025760405162461bcd60e51b815260040161090490611da0565b600081118015610e13575060648111155b610e1c57600080fd5b6064610e2760025490565b610e319083611dd5565b610e3b9190611dec565b60085550565b6005546001600160a01b03163314610e6b5760405162461bcd60e51b815260040161090490611da0565b6001600160a01b038116610ed05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610904565b610ed9816114bd565b50565b6001600160a01b038316610f3e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610904565b6001600160a01b038216610f9f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610904565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166110265760405162461bcd60e51b815260040161090490611e0e565b6001600160a01b03821661104c5760405162461bcd60e51b815260040161090490611e53565b6001600160a01b03831660009081526017602052604090205460ff1615801561108e57506001600160a01b03821660009081526017602052604090205460ff16155b6110d05760405162461bcd60e51b8152602060048201526013602482015272426c61636b6c6973746564206164647265737360681b6044820152606401610904565b806000036110e9576110e48383600061150f565b505050565b6001600160a01b03831660009081526018602052604090205460ff1615801561112b57506001600160a01b03821660009081526018602052604090205460ff16155b1561119b5760085481111561119b5760405162461bcd60e51b815260206004820152603060248201527f616d6f756e74206d757374206265206c657373207468616e206f72206571756160448201526f1b081d1bc81b585e151e081b1a5b5a5d60821b6064820152608401610904565b7f000000000000000000000000bc9917a44e7dcf84037c5d93f9fb475e187d37f96001600160a01b0316836001600160a01b03161480156111f557506001600160a01b03831660009081526018602052604090205460ff16155b801561121a57506001600160a01b03821660009081526018602052604090205460ff16155b156112a1576001600160a01b0382166000908152602081905260409020546009546112458383611d8d565b111561129f5760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d2077616c6c657420746f6b656e20616d6f6044820152633ab73a1760e11b6064820152608401610904565b505b30600090815260208190526040902054600754811080159081906112c8575060145460ff16155b801561130557507f000000000000000000000000bc9917a44e7dcf84037c5d93f9fb475e187d37f96001600160a01b0316846001600160a01b0316145b80156113185750601454610100900460ff165b1561132b57600754915061132b82611664565b6001600160a01b03851660009081526018602052604090205460ff1615801561136d57506001600160a01b03841660009081526018602052604090205460ff16155b156114ab576000807f000000000000000000000000bc9917a44e7dcf84037c5d93f9fb475e187d37f96001600160a01b0316876001600160a01b0316036113f3576064600d54600e546113c09190611e96565b6113ca9087611dd5565b6113d49190611dec565b91506064600d54866113e69190611dd5565b6113f09190611dec565b90505b7f000000000000000000000000bc9917a44e7dcf84037c5d93f9fb475e187d37f96001600160a01b0316866001600160a01b03160361147157606460125460135461143e9190611e96565b6114489087611dd5565b6114529190611dec565b91506064601254866114649190611dd5565b61146e9190611dec565b90505b61147b8183611d8d565b6114859086611e96565b945080156114975761149787826117ed565b81156114a8576114a887308461150f565b50505b6114b685858561150f565b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166115355760405162461bcd60e51b815260040161090490611e0e565b6001600160a01b03821661155b5760405162461bcd60e51b815260040161090490611e53565b6001600160a01b038316600090815260208190526040902054818110156115d35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610904565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061160a908490611d8d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161165691815260200190565b60405180910390a350505050565b6014805460ff1916600117905560125460135460009161168391611e96565b600f546116909084611dd5565b61169a9190611dec565b905060006116a9600283611dec565b905060006116b78284611e96565b9050476116c38361191f565b60006116cf8247611e96565b90506116db8382611aaa565b60408051858152602081018390527f28fc98272ce761178794ad6768050fea1648e07f1e2ffe15afd3a290f8381486910160405180910390a16117266117218688611e96565b61191f565b6000600f5460125460135461173b9190611e96565b6117459190611e96565b6011546117529047611dd5565b61175c9190611dec565b6015546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015611797573d6000803e3d6000fd5b506014546040516001600160a01b036201000090920491909116904780156108fc02916000818181858888f193505050501580156117d9573d6000803e3d6000fd5b50506014805460ff19169055505050505050565b6001600160a01b03821661184d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610904565b6001600160a01b038216600090815260208190526040902054818110156118c15760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610904565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061195457611954611ea9565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156119ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d19190611ebf565b816001815181106119e4576119e4611ea9565b6001600160a01b0392831660209182029290920181019190915260065430600090815260018352604080822092909416815291522054821115611a3b57600654611a3b9030906001600160a01b0316600019610edc565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790611a74908590600090869030904290600401611edc565b600060405180830381600087803b158015611a8e57600080fd5b505af1158015611aa2573d6000803e3d6000fd5b505050505050565b6006546001600160a01b031663f305d719823085600080611ad36005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015611b3b573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906114b69190611f4d565b600060208083528351808285015260005b81811015611b8d57858101830151858201604001528201611b71565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610ed957600080fd5b60008060408385031215611bd657600080fd5b8235611be181611bae565b946020939093013593505050565b600060208284031215611c0157600080fd5b8135611c0c81611bae565b9392505050565b600080600060608486031215611c2857600080fd5b8335611c3381611bae565b92506020840135611c4381611bae565b929592945050506040919091013590565b60008060008060808587031215611c6a57600080fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215611c9857600080fd5b5035919050565b80358015158114611caf57600080fd5b919050565b60008060408385031215611cc757600080fd5b8235611cd281611bae565b9150611ce060208401611c9f565b90509250929050565b600060208284031215611cfb57600080fd5b611c0c82611c9f565b60008060408385031215611d1757600080fd5b8235611d2281611bae565b91506020830135611d3281611bae565b809150509250929050565b600181811c90821680611d5157607f821691505b602082108103611d7157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561087057610870611d77565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b808202811582820484141761087057610870611d77565b600082611e0957634e487b7160e01b600052601260045260246000fd5b500490565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b8181038181111561087057610870611d77565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611ed157600080fd5b8151611c0c81611bae565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611f2c5784516001600160a01b031683529383019391830191600101611f07565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215611f6257600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220eff3aef4201ac4abf300abf11b1da987f7bfe009b419162021a6b522fc0ee0ee64736f6c63430008110033
Verified Source Code Partial Match
Compiler: v0.8.17+commit.8df45f5f
EVM: london
Optimization: Yes (200 runs)
INUBUSTERS.sol 960 lines
// SPDX-License-Identifier: Unlicensed
/*
_________ _ ______ _______ _________ _______ _______ _______
\__ __/( ( /||\ /|( ___ \ |\ /|( ____ \\__ __/( ____ \( ____ )( ____ \
) ( | \ ( || ) ( || ( ) )| ) ( || ( \/ ) ( | ( \/| ( )|| ( \/
| | | \ | || | | || (__/ / | | | || (_____ | | | (__ | (____)|| (_____
| | | (\ \) || | | || __ ( | | | |(_____ ) | | | __) | __)(_____ )
| | | | \ || | | || ( \ \ | | | | ) | | | | ( | (\ ( ) |
___) (___| ) \ || (___) || )___) )| (___) |/\____) | | | | (____/\| ) \ \__/\____) |
\_______/|/ )_)(_______)|/ \___/ (_______)\_______) )_( (_______/|/ \__/\_______)
$INUBUSTERS | Inubusters
We are the Inubusters. Check out our socials to find out what is so special.
Website: https://www.inubusters.com/
Twitter: https://twitter.com/inubusters
TG: https://t.me/InubustersPortal
*/
pragma solidity 0.8.17;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @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() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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 `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @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 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);
}
/**
* @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 this function
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of 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}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* 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 value {ERC20} uses, unless this function is
* 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:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, 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}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), 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}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - 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) {
_approve(_msgSender(), spender, _allowances[_msgSender()][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) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* 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:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, 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 _createSupply(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_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 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 {}
}
interface IUniswapV2Router01 {
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);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
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;
}
interface IUniswapV2Factory {
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;
}
contract INUBUSTERS is ERC20, Ownable {
IUniswapV2Router02 public uniswapV2Router;
address public immutable uniswapV2Pair;
uint256 public swapTokensAtAmount = 5000000 * (10**18); // 0.5%
uint256 public maxTransactionAmount = 20000000 * (10**18); // 2%
uint256 public maxWalletToken = 20000000 * (10**18); // 2%
uint256 public liquidityBuyFee = 1;
uint256 public marketingBuyFee = 7;
uint256 public teamBuyFee = 2;
uint256 public burnBuyFee = 0;
uint256 private totalBuyFees = liquidityBuyFee+marketingBuyFee+teamBuyFee+burnBuyFee;
uint256 public liquiditySellFee = 1;
uint256 public marketingSellFee = 7;
uint256 public teamSellFee = 2;
uint256 public burnSellFee = 0;
uint256 private totalSellFees = liquiditySellFee+marketingSellFee+teamSellFee+burnSellFee;
bool private inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
address payable public marketingWallet = payable(0xF4e77860c63c36f12DBeB0100DFB29acbD47E812);
address payable public teamWallet = payable(0x2D9Ba10B015d7f0725757Ee29EFFD87BF2f3b61B);
address public deadWallet = 0x000000000000000000000000000000000000dEaD;
// Blacklist bots
mapping(address => bool) public _isBlacklisted;
// exlcude from fees and max wallet
mapping (address => bool) private _isExcludedFromFees;
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(uint256 tokensIntoLiqudity, uint256 ethReceived);
event ExcludeFromFees(address indexed account, bool isExcluded);
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor() ERC20("Inubusters", "INUBUSTERS") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
// Create a uniswap pair for this new token
address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = _uniswapV2Pair;
// exclude from paying fees or having max wallet limit
excludeFromFees(owner(), true);
excludeFromFees(marketingWallet, true);
excludeFromFees(teamWallet, true);
excludeFromFees(address(this), true);
/*
an internal function that is only called here,
and CANNOT be called ever again
*/
_createSupply(owner(), 1000000000 * (10**18));
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(!_isBlacklisted[from] && !_isBlacklisted[to], 'Blacklisted address');
if(amount == 0) {
super._transfer(from, to, 0);
return;
}
if(!_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
require(amount <= maxTransactionAmount, "amount must be less than or equal to maxTx limit");
}
if(from==uniswapV2Pair && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
uint256 contractBalanceRecepient = balanceOf(to);
require(contractBalanceRecepient + amount <= maxWalletToken, "Exceeds maximum wallet token amount.");
}
uint256 contractTokenBalance = balanceOf(address(this));
bool overMinTokenBalance = contractTokenBalance >= swapTokensAtAmount;
if(
overMinTokenBalance &&
!inSwapAndLiquify &&
to==uniswapV2Pair &&
swapAndLiquifyEnabled
) {
contractTokenBalance = swapTokensAtAmount;
swapAndLiquify(contractTokenBalance);
}
// if any account belongs to _isExcludedFromFee account then remove the fee
if(!_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
uint256 fees;
uint256 burnShare;
if(from==uniswapV2Pair) {
fees = amount*(totalBuyFees-burnBuyFee)/100;
burnShare = amount*(burnBuyFee)/100;
}
if(to==uniswapV2Pair) {
fees = amount*(totalSellFees-burnSellFee)/100;
burnShare = amount*(burnSellFee)/100;
}
amount = amount-(fees+burnShare);
if(burnShare > 0) {
super._burn(from, burnShare);
}
if(fees > 0) {
super._transfer(from, address(this), fees);
}
}
super._transfer(from, to, amount);
}
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
uint256 tokensForLiquidity = contractTokenBalance*liquiditySellFee/(totalSellFees-burnSellFee);
// split the Liquidity token balance into halves
uint256 half = tokensForLiquidity/2;
uint256 otherHalf = tokensForLiquidity-half;
// capture the contract's current ETH balance.
uint256 initialBalance = address(this).balance;
// swap tokens for ETH
swapTokensForEth(half);
// how much ETH did we just swap into?
uint256 newBalance = address(this).balance-initialBalance;
// add liquidity to uniswap
addLiquidity(otherHalf, newBalance);
emit SwapAndLiquify(half, newBalance);
// swap and Send ether to wallets
swapTokensForEth(contractTokenBalance-tokensForLiquidity);
uint256 teamShare = address(this).balance*teamSellFee/(totalSellFees-burnSellFee-liquiditySellFee);
teamWallet.transfer(teamShare);
marketingWallet.transfer(address(this).balance);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
if(allowance(address(this), address(uniswapV2Router)) < tokenAmount) {
_approve(address(this), address(uniswapV2Router), ~uint256(0));
}
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
owner(),
block.timestamp
);
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
require(_isExcludedFromFees[account] != excluded, "Account is already the value of 'excluded'");
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
function setSwapTokensAtAmouunt(uint256 _newAmount) public onlyOwner {
swapTokensAtAmount = _newAmount;
}
function updateBuyFee(uint256 _liqFee, uint256 _markFee, uint256 _teamFee, uint256 _burnFee) public onlyOwner {
liquidityBuyFee = _liqFee;
marketingBuyFee = _markFee;
teamBuyFee = _teamFee;
burnBuyFee = _burnFee;
totalSellFees = liquidityBuyFee+marketingBuyFee+teamBuyFee+burnBuyFee;
}
function updateSellFee(uint256 _liqFee, uint256 _markFee, uint256 _teamFee, uint256 _burnFee) public onlyOwner {
liquiditySellFee = _liqFee;
marketingSellFee = _markFee;
teamSellFee = _teamFee;
burnSellFee = _burnFee;
totalSellFees = liquiditySellFee+marketingSellFee+teamSellFee+burnSellFee;
}
function setWallets(address payable _marketing, address payable _team) public onlyOwner {
marketingWallet = _marketing;
teamWallet = _team;
}
function setMaxTxAmount(uint256 _percent) public onlyOwner {
require(_percent > 0 && _percent <= 100);
maxTransactionAmount = _percent*totalSupply()/100;
}
function setMaxWalletLimit(uint256 _percent) public onlyOwner {
require(_percent > 0 && _percent <= 100);
maxWalletToken = _percent*totalSupply()/100;
}
function blacklistBots(address account, bool value) external onlyOwner{
_isBlacklisted[account] = value;
}
receive() external payable {
}
}
Read Contract
_isBlacklisted 0x1cdd3be3 → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
burnBuyFee 0x7ae3ff47 → uint256
burnSellFee 0x7e761377 → uint256
deadWallet 0x85141a77 → address
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
liquidityBuyFee 0xccb61358 → uint256
liquiditySellFee 0x099d0d30 → uint256
marketingBuyFee 0x68078952 → uint256
marketingSellFee 0xe7f444b3 → uint256
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWalletToken 0xe6c75f71 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapAndLiquifyEnabled 0x4a74bb02 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamBuyFee 0x1d38ff96 → uint256
teamSellFee 0x19998bbb → uint256
teamWallet 0x59927044 → address
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklistBots 0xaba88f02
address account
bool value
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setMaxTxAmount 0xec28438a
uint256 _percent
setMaxWalletLimit 0x728d41c9
uint256 _percent
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
setSwapTokensAtAmouunt 0x750c11b6
uint256 _newAmount
setWallets 0xd3f6a157
address _marketing
address _team
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFee 0x3ff4c478
uint256 _liqFee
uint256 _markFee
uint256 _teamFee
uint256 _burnFee
updateSellFee 0x7187507a
uint256 _liqFee
uint256 _markFee
uint256 _teamFee
uint256 _burnFee
Recent Transactions
Transaction index is loading. Only unfinalized transactions are shown while the index starts up.