0 txs
1 call
constructor
constructor(address _owner)
functions
allowance
viewfunction allowance(address owner, address spender) view returns (uint256)
balanceOf
viewfunction balanceOf(address account) view returns (uint256)
decimals
viewfunction decimals() view returns (uint8)
ethPerDollar
viewfunction ethPerDollar() view returns (uint256)
getETHNeededForToken
viewfunction getETHNeededForToken(uint256 tokenAmount) view returns (uint256 ethAmount)
MAX_SUPPLY
viewfunction MAX_SUPPLY() view returns (uint256)
maxMintPerUser
viewfunction maxMintPerUser() view returns (uint256)
name
viewfunction name() view returns (string)
owner
viewfunction owner() view returns (address)
symbol
viewfunction symbol() view returns (string)
tokensMintedPerDollar
viewfunction tokensMintedPerDollar() view returns (uint256)
totalMinted
viewfunction totalMinted(address) view returns (uint256)
totalSupply
viewfunction totalSupply() view returns (uint256)
airdrop
nonpayablefunction airdrop(address[] users, uint256[] amounts)
approve
nonpayablefunction approve(address spender, uint256 value) returns (bool)
mint
payablefunction mint(uint256 amount) payable
mintDollarWorthToken
payablefunction mintDollarWorthToken() payable
renounceOwnership
nonpayablefunction renounceOwnership()
setMintDetails
nonpayablefunction setMintDetails(uint256 _maxMintPerUser, uint256 _tokensMintedPerDollar, uint256 _ethPerDollar)
transfer
nonpayablefunction transfer(address to, uint256 value) returns (bool)
transferFrom
nonpayablefunction transferFrom(address from, address to, uint256 value) returns (bool)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdrawETH
nonpayablefunction withdrawETH()
events
Approval
event Approval(address indexed owner, address indexed spender, uint256 value)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Transfer
event Transfer(address indexed from, address indexed to, uint256 value)
UserMint
event UserMint(address indexed user, uint256 amount, uint256 ethAmount)
errors
ERC20InsufficientAllowance
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed)
ERC20InsufficientBalance
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed)
ERC20InvalidApprover
error ERC20InvalidApprover(address approver)
ERC20InvalidReceiver
error ERC20InvalidReceiver(address receiver)
ERC20InvalidSender
error ERC20InvalidSender(address sender)
ERC20InvalidSpender
error ERC20InvalidSpender(address spender)
InsufficientETH
error InsufficientETH()
InvalidLength
error InvalidLength()
MaxMintError
error MaxMintError()
MaxSupplyReached
error MaxSupplyReached()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
creation bytecode
0x608060405269d3c21bcecceda100000060075569043c33c1937564800000600855660110d9316ec00060095534801561003757600080fd5b50604051611689380380611689833981016040819052610056916102c2565b60408051808201825260068082526521a0a9a822a960d11b6020808401829052845180860190955291845290830152829160036100938382610391565b5060046100a08282610391565b5050506001600160a01b0381166100d257604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6100db8161010c565b5061010673ffd99b73baf1d6ecbe3548033304f8b8b57afbc36b019d971e4fe8401e7400000061015e565b50610476565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166101885760405163ec442f0560e01b8152600060048201526024016100c9565b61019460008383610198565b5050565b6001600160a01b0383166101c35780600260008282546101b8919061044f565b909155506102359050565b6001600160a01b038316600090815260208190526040902054818110156102165760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100c9565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661025157600280548290039055610270565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516102b591815260200190565b60405180910390a3505050565b6000602082840312156102d457600080fd5b81516001600160a01b03811681146102eb57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061031c57607f821691505b60208210810361033c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561038c57806000526020600020601f840160051c810160208510156103695750805b601f840160051c820191505b818110156103895760008155600101610375565b50505b505050565b81516001600160401b038111156103aa576103aa6102f2565b6103be816103b88454610308565b84610342565b6020601f8211600181146103f257600083156103da5750848201515b600019600385901b1c1916600184901b178455610389565b600084815260208120601f198516915b828110156104225787850151825560209485019460019092019101610402565b50848210156104405786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b8082018082111561047057634e487b7160e01b600052601160045260246000fd5b92915050565b611204806104856000396000f3fe60806040526004361061017f5760003560e01c806367243482116100d6578063a9059cbb1161007f578063dd62ed3e11610059578063dd62ed3e14610408578063e086e5ec1461045b578063f2fde38b1461047057600080fd5b8063a9059cbb146103bc578063ba10001a146103dc578063d304c4bc146103f257600080fd5b80638da5cb5b116100b05780638da5cb5b1461035f57806395d89b4114610394578063a0712d68146103a957600080fd5b806367243482146102e757806370a0823114610307578063715018a61461034a57600080fd5b806323b872dd1161013857806332cb6b0c1161011257806332cb6b0c1461029157806356b12266146102b1578063571bbb9e146102c757600080fd5b806323b872dd1461023557806326a7465114610255578063313ce5671461027557600080fd5b8063095ea7b311610169578063095ea7b3146101e657806318160ddd146102165780631c9e528f1461022b57600080fd5b80623d47901461018457806306fdde03146101c4575b600080fd5b34801561019057600080fd5b506101b161019f366004610ea4565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156101d057600080fd5b506101d9610490565b6040516101bb9190610ec6565b3480156101f257600080fd5b50610206610201366004610f32565b610522565b60405190151581526020016101bb565b34801561022257600080fd5b506002546101b1565b61023361053c565b005b34801561024157600080fd5b50610206610250366004610f5c565b610549565b34801561026157600080fd5b506101b1610270366004610f99565b61056d565b34801561028157600080fd5b50604051601281526020016101bb565b34801561029d57600080fd5b506101b16b033b2e3c9fd0803ce800000081565b3480156102bd57600080fd5b506101b160085481565b3480156102d357600080fd5b506102336102e2366004610fb2565b61058a565b3480156102f357600080fd5b5061023361030236600461102a565b6105a0565b34801561031357600080fd5b506101b1610322366004610ea4565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b34801561035657600080fd5b5061023361063e565b34801561036b57600080fd5b5060055460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101bb565b3480156103a057600080fd5b506101d9610650565b6102336103b7366004610f99565b61065f565b3480156103c857600080fd5b506102066103d7366004610f32565b61080c565b3480156103e857600080fd5b506101b160095481565b3480156103fe57600080fd5b506101b160075481565b34801561041457600080fd5b506101b161042336600461109b565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b34801561046757600080fd5b5061023361081a565b34801561047c57600080fd5b5061023361048b366004610ea4565b61086b565b60606003805461049f906110ce565b80601f01602080910402602001604051908101604052809291908181526020018280546104cb906110ce565b80156105185780601f106104ed57610100808354040283529160200191610518565b820191906000526020600020905b8154815290600101906020018083116104fb57829003601f168201915b5050505050905090565b6000336105308185856108d1565b60019150505b92915050565b61054760085461065f565b565b6000336105578582856108e3565b6105628585856109b3565b506001949350505050565b6000600854600954836105809190611150565b6105369190611167565b610592610a5e565b600792909255600855600955565b8281146105d9576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260005b818110156106365761062e338787848181106105fb576105fb6111a2565b90506020020160208101906106109190610ea4565b868685818110610622576106226111a2565b905060200201356109b3565b6001016105dd565b505050505050565b610646610a5e565b6105476000610ab1565b60606004805461049f906110ce565b6007543360009081526006602052604090205461067d9083906111d1565b11156106b5576040517f3bbfc75100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6b033b2e3c9fd0803ce8000000816106cc60025490565b6106d691906111d1565b111561070e576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006107198261056d565b905080341080610727575080155b1561075e576040517f6a12f10400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600660205260408120805484929061077d9084906111d1565b9091555061078d90503383610b28565b803411156107cd57336108fc6107a383346111e4565b6040518115909202916000818181858888f193505050501580156107cb573d6000803e3d6000fd5b505b604080518381526020810183905233917f9486b502a37fda6f02dd212bc295995bb65ef449c115d0d7c733186fad3631f1910160405180910390a25050565b6000336105308185856109b3565b610822610a5e565b60055460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015610868573d6000803e3d6000fd5b50565b610873610a5e565b73ffffffffffffffffffffffffffffffffffffffff81166108c8576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61086881610ab1565b6108de8383836001610b88565b505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156109ad578181101561099e576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015260248101829052604481018390526064016108bf565b6109ad84848484036000610b88565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610a03576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016108bf565b73ffffffffffffffffffffffffffffffffffffffff8216610a53576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016108bf565b6108de838383610cd0565b60055473ffffffffffffffffffffffffffffffffffffffff163314610547576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016108bf565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff8216610b78576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016108bf565b610b8460008383610cd0565b5050565b73ffffffffffffffffffffffffffffffffffffffff8416610bd8576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016108bf565b73ffffffffffffffffffffffffffffffffffffffff8316610c28576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016108bf565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020908152604080832093871683529290522082905580156109ad578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610cc291815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff8316610d08578060026000828254610cfd91906111d1565b90915550610dba9050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610d8e576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101829052604481018390526064016108bf565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff8216610de357600280548290039055610e0f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e6e91815260200190565b60405180910390a3505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610e9f57600080fd5b919050565b600060208284031215610eb657600080fd5b610ebf82610e7b565b9392505050565b602081526000825180602084015260005b81811015610ef45760208186018101516040868401015201610ed7565b5060006040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b60008060408385031215610f4557600080fd5b610f4e83610e7b565b946020939093013593505050565b600080600060608486031215610f7157600080fd5b610f7a84610e7b565b9250610f8860208501610e7b565b929592945050506040919091013590565b600060208284031215610fab57600080fd5b5035919050565b600080600060608486031215610fc757600080fd5b505081359360208301359350604090920135919050565b60008083601f840112610ff057600080fd5b50813567ffffffffffffffff81111561100857600080fd5b6020830191508360208260051b850101111561102357600080fd5b9250929050565b6000806000806040858703121561104057600080fd5b843567ffffffffffffffff81111561105757600080fd5b61106387828801610fde565b909550935050602085013567ffffffffffffffff81111561108357600080fd5b61108f87828801610fde565b95989497509550505050565b600080604083850312156110ae57600080fd5b6110b783610e7b565b91506110c560208401610e7b565b90509250929050565b600181811c908216806110e257607f821691505b60208210810361111b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808202811582820484141761053657610536611121565b60008261119d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b8082018082111561053657610536611121565b818103818111156105365761053661112156fea164736f6c634300081c000a0000000000000000000000000448c567f12aaa7ef3c99a3c7fb89c505781cf96