Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x888ceA2BBDD5D47a4032cf63668D7525C74af57A
Balance 0 ETH
Nonce 1
Code Size 15538 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15538 bytes
0x6080604052600436106103a25760003560e01c80639a7bdd3c116101e5578063d16336491161010c578063f11a24d3116100a5578063f5a6682f11610077578063f5a6682f14610abf578063f637434214610adf578063fcb4067414610af5578063fe575a8714610b15578063ffb54a9914610b4e57005b8063f11a24d314610a54578063f2fde38b14610a6a578063f34eb0b814610a8a578063f5648a4f14610aaa57005b8063e1baae1f116100de578063e1baae1f146109d1578063e7c89232146109f1578063e99c9d0914610a11578063effb3c5314610a3157005b8063d163364914610951578063dd62ed3e14610971578063dd77b7e614610991578063e01af92c146109b157005b8063a985ceef1161017e578063c9c9afc511610150578063c9c9afc5146108d1578063cb963728146108f1578063cec9945914610911578063d158272d1461093157005b8063a985ceef14610865578063aa4bde2814610886578063afa4f3b21461089c578063bb57ad20146108bc57005b8063a457c2d7116101b7578063a457c2d7146107e3578063a64e4f8a14610803578063a901dd9214610825578063a9059cbb1461084557005b80639a7bdd3c146107775780639bb19a32146107975780639e93ad8e146107ad578063a3a560d7146107c357005b80635932ead1116102c95780637bce5a04116102625780638da5cb5b116102345780638da5cb5b146106fa5780638eb83f251461072c578063921369131461074c57806395d89b411461076257005b80637bce5a04146106a257806385c5b319146106b857806386f39ae9146106ce57806388e765ff146106e457005b80636ddd17131161029b5780636ddd17131461062257806370a0823114610642578063715018a614610678578063751039fc1461068d57005b80635932ead1146105c15780635ce84c08146105e157806366d602ae146105f757806367c453491461060d57005b80631d865c301161033b57806327a14fc21161030d57806327a14fc214610545578063313ce5671461056557806339509351146105815780634cb80fd5146105a157005b80631d865c30146104cf5780631dbe04ee146104ef57806323b872dd1461050557806325519cf21461052557005b80630e23500e116103745780630e23500e14610456578063105222f91461047a57806314626dc61461049a57806318160ddd146104ba57005b8063046dc166146103ab57806306fdde03146103cb578063095ea7b3146103f65780630988df751461042657005b366103a957005b005b3480156103b757600080fd5b506103a96103c63660046136f4565b610b68565b3480156103d757600080fd5b506103e0610bed565b6040516103ed9190613735565b60405180910390f35b34801561040257600080fd5b50610416610411366004613768565b610c7f565b60405190151581526020016103ed565b34801561043257600080fd5b506104166104413660046136f4565b600b6020526000908152604090205460ff1681565b34801561046257600080fd5b5061046c60105481565b6040519081526020016103ed565b34801561048657600080fd5b506103a96104953660046137c3565b610c99565b3480156104a657600080fd5b506103a96104b536600461389a565b610d0d565b3480156104c657600080fd5b5060025461046c565b3480156104db57600080fd5b506103a96104ea3660046138b3565b610d63565b3480156104fb57600080fd5b5061046c601f5481565b34801561051157600080fd5b506104166105203660046138df565b610e25565b34801561053157600080fd5b506103a96105403660046138b3565b610e49565b34801561055157600080fd5b506103a961056036600461389a565b610efc565b34801561057157600080fd5b50604051601281526020016103ed565b34801561058d57600080fd5b5061041661059c366004613768565b610fd5565b3480156105ad57600080fd5b506103a96105bc3660046136f4565b610ff7565b3480156105cd57600080fd5b506103a96105dc366004613920565b6110de565b3480156105ed57600080fd5b5061046c60255481565b34801561060357600080fd5b5061046c600e5481565b34801561061957600080fd5b506103a9611104565b34801561062e57600080fd5b50600c546104169062010000900460ff1681565b34801561064e57600080fd5b5061046c61065d3660046136f4565b6001600160a01b031660009081526020819052604090205490565b34801561068457600080fd5b506103a9611128565b34801561069957600080fd5b506103a961113c565b3480156106ae57600080fd5b5061046c60175481565b3480156106c457600080fd5b5061046c60235481565b3480156106da57600080fd5b5061046c60195481565b3480156106f057600080fd5b5061046c600d5481565b34801561070657600080fd5b506005546001600160a01b03165b6040516001600160a01b0390911681526020016103ed565b34801561073857600080fd5b50602f54610714906001600160a01b031681565b34801561075857600080fd5b5061046c601d5481565b34801561076e57600080fd5b506103e0611165565b34801561078357600080fd5b50602e54610714906001600160a01b031681565b3480156107a357600080fd5b5061046c60275481565b3480156107b957600080fd5b5061046c6103e881565b3480156107cf57600080fd5b506103a96107de36600461393d565b611174565b3480156107ef57600080fd5b506104166107fe366004613768565b61138e565b34801561080f57600080fd5b50600c5461041690640100000000900460ff1681565b34801561083157600080fd5b506103a9610840366004613920565b611409565b34801561085157600080fd5b50610416610860366004613768565b611431565b34801561087157600080fd5b50600c54610416906301000000900460ff1681565b34801561089257600080fd5b5061046c600f5481565b3480156108a857600080fd5b506103a96108b736600461389a565b61143f565b3480156108c857600080fd5b506103a961157f565b3480156108dd57600080fd5b506103a96108ec3660046136f4565b611591565b3480156108fd57600080fd5b506103a961090c3660046136f4565b611678565b34801561091d57600080fd5b506103a961092c366004613920565b61185b565b34801561093d57600080fd5b50602d54610714906001600160a01b031681565b34801561095d57600080fd5b506103a961096c36600461389a565b611887565b34801561097d57600080fd5b5061046c61098c366004613978565b611dc2565b34801561099d57600080fd5b506103a96109ac366004613920565b611ded565b3480156109bd57600080fd5b506103a96109cc366004613920565b611e17565b3480156109dd57600080fd5b506103a96109ec3660046137c3565b611e3b565b3480156109fd57600080fd5b506103a9610a0c3660046138b3565b611f68565b348015610a1d57600080fd5b506103a9610a2c36600461389a565b612026565b348015610a3d57600080fd5b50600c546104169065010000000000900460ff1681565b348015610a6057600080fd5b5061046c601b5481565b348015610a7657600080fd5b506103a9610a853660046136f4565b6120ec565b348015610a9657600080fd5b506103a9610aa536600461389a565b612162565b348015610ab657600080fd5b506103a9612221565b348015610acb57600080fd5b506103a9610ada3660046137c3565b612276565b348015610aeb57600080fd5b5061046c60215481565b348015610b0157600080fd5b506103a9610b103660046136f4565b6122e5565b348015610b2157600080fd5b50610416610b303660046136f4565b6001600160a01b03166000908152600a602052604090205460ff1690565b348015610b5a57600080fd5b50600c546104169060ff1681565b610b706123e0565b6001600160a01b038116610bcb5760405162461bcd60e51b815260206004820152601a60248201527f5f7369676e6572416464726573732063616e6e6f74206265203000000000000060448201526064015b60405180910390fd5b603080546001600160a01b0319166001600160a01b0392909216919091179055565b606060038054610bfc906139b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610c28906139b1565b8015610c755780601f10610c4a57610100808354040283529160200191610c75565b820191906000526020600020905b815481529060010190602001808311610c5857829003601f168201915b5050505050905090565b600033610c8d81858561243a565b60019150505b92915050565b610ca16123e0565b60005b8251811015610d08578160086000858481518110610cc457610cc46139eb565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610d0081613a17565b915050610ca4565b505050565b610d156123e0565b600a811115610d5e5760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b210313637b1b5b99031b7bab73a1760591b6044820152606401610bc2565b601255565b610d6b6123e0565b6078610d8182610d7b868661255e565b9061255e565b1115610dcf5760405162461bcd60e51b815260206004820152601e60248201527f4d757374206b6565702073656c6c2074617865732062656c6f772031322500006044820152606401610bc2565b601d839055601f829055602181905560408051848152602081018490529081018290527f5ff33e060dbf96ff8c11eeadaaa320b34884dc8af8156d77ab6134d2bece22c3906060015b60405180910390a1505050565b600033610e3385828561256a565b610e3e8585856125de565b506001949350505050565b610e516123e0565b6078610e6182610d7b868661255e565b1115610eaf5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206275792074617865732062656c6f77203132250000006044820152606401610bc2565b60178390556019829055601b81905560408051848152602081018490529081018290527f4b44023290188702187818a2359a9d40279e516e5e9bbade40c321936a77362090606001610e18565b610f046123e0565b610f246103e8610f1e6001610f1860025490565b906123c1565b906123d4565b811015610f995760405162461bcd60e51b815260206004820152603960248201527f4d61782077616c6c657420616d6f756e742063616e6e6f74206265206c6f776560448201527f72207468616e20302e312520746f74616c20737570706c792e000000000000006064820152608401610bc2565b600f8190556040518181527f0176e9211818debdc4483c2bb0972798b7eb106239c8e465d4f1cee4ce5ae6e7906020015b60405180910390a150565b600033610c8d818585610fe88383611dc2565b610ff29190613a30565b61243a565b610fff6123e0565b6001600160a01b0381166110605760405162461bcd60e51b815260206004820152602260248201527f6d61726b6574696e6757616c6c6574416464726573732063616e6e6f74206265604482015261020360f41b6064820152608401610bc2565b602d80546001600160a01b039081166000908152600860208181526040808420805460ff19908116909155865486168552600980845282862080548316905587546001600160a01b03191698871698891788559785529282528084208054841660019081179091559554909416835294909452208054909216179055565b6110e66123e0565b600c805491151563010000000263ff00000019909216919091179055565b61110c6123e0565b3060009081526020819052604090205461112581612d65565b50565b6111306123e0565b61113a6000612ebf565b565b6111446123e0565b600254600d55600254600e55600254600f55600c805463ff00000019169055565b606060048054610bfc906139b1565b600c5460ff166111c65760405162461bcd60e51b815260206004820152601b60248201527f54726164696e67206973206e6f7420616c6c6f776564207965742e00000000006044820152606401610bc2565b60408051808201909152601c81527f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152600030336040516bffffffffffffffffffffffff19606093841b811660208301529190921b16603482015264504f4f462160d81b6048820152604d0160405160208183030381529060405280519060200120905060008282604051602001611263929190613a43565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa1580156112ce573d6000803e3d6000fd5b5050604051601f1901516030549092506001600160a01b0390811690831603905061134757336000818152600b6020908152604091829020805460ff19166001179055815192835290517fe385c2eb95e37ee2cdf02c6a43e5d1ae3ccdc71f092306f1b23574eae3cddc859281900390910190a1611385565b60405162461bcd60e51b8152602060048201526013602482015272243ab6b0b7103737ba103b32b934b334b2b21760691b6044820152606401610bc2565b50505050505050565b6000338161139c8286611dc2565b9050838110156113fc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610bc2565b610e3e828686840361243a565b6114116123e0565b600c80549115156401000000000264ff0000000019909216919091179055565b600033610c8d8185856125de565b6114476123e0565b61145c620f4240610f1e6001610f1860025490565b8110156114ca5760405162461bcd60e51b815260206004820152603660248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e6044820152751018171818181892903a37ba30b61039bab838363c9760511b6064820152608401610bc2565b6114de6103e8610f1e6005610f1860025490565b81111561154a5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610bc2565b602c8190556040518181527f09e89af7cbd8410d0ad2a74ab3cc8d9ddeef8ab1177f0f8a1984d355bb9d78f190602001610fca565b6115876123e0565b4761112581612f11565b6115996123e0565b6001600160a01b0381166115fa5760405162461bcd60e51b815260206004820152602260248201527f6c697175696469747957616c6c6574416464726573732063616e6e6f74206265604482015261020360f41b6064820152608401610bc2565b602f80546001600160a01b039081166000908152600860208181526040808420805460ff19908116909155865486168552600980845282862080548316905587546001600160a01b03191698871698891788559785529282528084208054841660019081179091559554909416835294909452208054909216179055565b6116806123e0565b306001600160a01b038216036116d85760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207769746864726177206f776e20746f6b656e000000000000006044820152606401610bc2565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561171f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117439190613a65565b1161177c5760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b6044820152606401610bc2565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156117c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e79190613a65565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611837573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d089190613a7e565b6118636123e0565b600c805491151566010000000000000266ff00000000000019909216919091179055565b61188f6123e0565b600c5460ff16156118e25760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610bc2565b600a81111561192b5760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b210313637b1b5b99031b7bab73a1760591b6044820152606401610bc2565b466001148061193a5750466005145b1561196a57600680546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d179055611a4a565b4660380361199d57600680546001600160a01b0319167310ed43c718714eb63d5aa57b78b54704e256024e179055611a4a565b466061036119d057600680546001600160a01b03191673d99d1c33f9fc3444f8101754abc46c52416550d1179055611a4a565b46608914806119e157504662013881145b15611a1157600680546001600160a01b03191673a5e0829caced8ffdd4de3c43696c57f7d7a678ff179055611a4a565b60405162461bcd60e51b815260206004820152600e60248201526d21b430b4b7103737ba1039b2ba1760911b6044820152606401610bc2565b600654611a659030906001600160a01b0316610ff260025490565b600660009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ab8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611adc9190613a9b565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b629190613a9b565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015611baf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd39190613a9b565b603180546001600160a01b039283166001600160a01b03199091161790556006541663f305d7194730611c1b816001600160a01b031660009081526020819052604090205490565b600080611c306005546001600160a01b031690565b426040518863ffffffff1660e01b8152600401611c5296959493929190613ab8565b60606040518083038185885af1158015611c70573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611c959190613af3565b505060315460065460405163095ea7b360e01b81526001600160a01b03918216600482015260001960248201529116915063095ea7b3906044016020604051808303816000875af1158015611cee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d129190613a7e565b50611d276103e8610f1e6002610f1860025490565b600d55611d3e6103e8610f1e6002610f1860025490565b600e55611d546064610f1e6001610f1860025490565b600f55611d6b612710610f1e6002610f1860025490565b602c55600c805463ffff00ff19166301010001179055436010819055601182905560408051918252602082018390527f8d3438059bb853597d71f33faf1d080795f797da60ef1c460fe5849903c24adb9101610fca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611df56123e0565b600c8054911515650100000000000265ff000000000019909216919091179055565b611e1f6123e0565b600c8054911515620100000262ff000019909216919091179055565b611e436123e0565b60005b8251811015610d085760315483516001600160a01b0390911690849083908110611e7257611e726139eb565b60200260200101516001600160a01b031614158015611ec3575060065483516001600160a01b0390911690849083908110611eaf57611eaf6139eb565b60200260200101516001600160a01b031614155b8015611efa5750306001600160a01b0316838281518110611ee657611ee66139eb565b60200260200101516001600160a01b031614155b15611f565781600a6000858481518110611f1657611f166139eb565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80611f6081613a17565b915050611e46565b611f706123e0565b60fa611f8082610d7b868661255e565b1115611fd95760405162461bcd60e51b815260206004820152602260248201527f4d757374206b656570207472616e736665722074617865732062656c6f772032604482015261352560f01b6064820152608401610bc2565b60238390556025829055602781905560408051848152602081018490529081018290527f0a1ca1cf020cce18eb2c1acd1eb2fbb0911b33f048c9592de691823a416a94bb90606001610e18565b61202e6123e0565b6120426103e8610f1e6001610f1860025490565b8110156120b75760405162461bcd60e51b815260206004820152603760248201527f4d61782073656c6c20616d6f756e742063616e6e6f74206265206c6f7765722060448201527f7468616e20302e312520746f74616c20737570706c792e0000000000000000006064820152608401610bc2565b600e8190556040518181527fa37090cc2feed4f3799a43ad59e5dab1cb6e70a7c1be92b72dbf9610550d5ac890602001610fca565b6120f46123e0565b6001600160a01b0381166121595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bc2565b61112581612ebf565b61216a6123e0565b61217e6103e8610f1e6001610f1860025490565b8110156121ec5760405162461bcd60e51b815260206004820152603660248201527f4d61782062757920616d6f756e742063616e6e6f74206265206c6f77657220746044820152753430b71018171892903a37ba30b61039bab838363c9760511b6064820152608401610bc2565b600d8190556040518181527f3a0b1f960db2351f13a6a83576ad81b35de3396cf92b9150216f2a6eea641d9a90602001610fca565b6122296123e0565b604051600090339047908381818185875af1925050503d806000811461226b576040519150601f19603f3d011682016040523d82523d6000602084013e612270565b606091505b50505050565b61227e6123e0565b60005b8251811015610d085781600960008584815181106122a1576122a16139eb565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806122dd81613a17565b915050612281565b6122ed6123e0565b6001600160a01b0381166123435760405162461bcd60e51b815260206004820152601e60248201527f647265616d57616c6c6574416464726573732063616e6e6f74206265203000006044820152606401610bc2565b602e80546001600160a01b039081166000908152600860208181526040808420805460ff19908116909155865486168552600980845282862080548316905587546001600160a01b03191698871698891788559785529282528084208054841660019081179091559554909416835294909452208054909216179055565b60006123cd8284613b21565b9392505050565b60006123cd8284613b38565b6005546001600160a01b0316331461113a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bc2565b6001600160a01b03831661249c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610bc2565b6001600160a01b0382166124fd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610bc2565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006123cd8284613a30565b60006125768484611dc2565b9050600019811461227057818110156125d15760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610bc2565b612270848484840361243a565b6001600160a01b0383166126045760405162461bcd60e51b8152600401610bc290613b5a565b6001600160a01b03821661262a5760405162461bcd60e51b8152600401610bc290613b9f565b6000811161268c5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610bc2565b6031546001906000906001600160a01b038681169116146126ca576031546001600160a01b038581169116146126c35760026126cd565b60016126cd565b60005b90506126e16005546001600160a01b031690565b6001600160a01b0316856001600160a01b03161415801561271057506005546001600160a01b03858116911614155b801561272457506001600160a01b03841615155b801561273b57506001600160a01b03841661dead14155b801561274f5750600c54610100900460ff16155b15612bf2576001600160a01b0385166000908152600a602052604090205460ff1615801561279657506001600160a01b0384166000908152600a602052604090205460ff16155b6127d15760405162461bcd60e51b815260206004820152600c60248201526b213630b1b5b634b9ba32b21760a11b6044820152606401610bc2565b600c5460ff16612866576001600160a01b03851660009081526008602052604090205460ff168061281a57506001600160a01b03841660009081526008602052604090205460ff165b6128665760405162461bcd60e51b815260206004820152601b60248201527f54726164696e67206973206e6f7420616c6c6f776564207965742e00000000006044820152606401610bc2565b600c546301000000900460ff1615612978576006546001600160a01b038581169116148015906128a457506031546001600160a01b03858116911614155b15612978576012546128b69043613be2565b326000908152600760205260409020541080156128f657506012546128db9043613be2565b6001600160a01b038516600090815260076020526040902054105b6129535760405162461bcd60e51b815260206004820152602860248201527f5472616e736665722064656c617920656e61626c65642e20547279206167616960448201526737103630ba32b91760c11b6064820152608401610bc2565b3260009081526007602052604080822043908190556001600160a01b03871683529120555b600081600281111561298c5761298c613bf5565b1480156129a757506006546001600160a01b03858116911614155b80156129cc57506001600160a01b03841660009081526009602052604090205460ff16155b15612b3457600c546601000000000000900460ff1615612a49576001600160a01b0384166000908152600b602052604090205460ff161515600114612a495760405162461bcd60e51b8152602060048201526013602482015272243ab6b0b7103737ba103b32b934b334b2b21760691b6044820152606401610bc2565b600d54831115612aad5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178426044820152683abca0b6b7bab73a1760b91b6064820152608401610bc2565b600f5483612ad0866001600160a01b031660009081526020819052604090205490565b612ada9190613a30565b1115612b345760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d2077616c6c657420746f6b656e20616d6f6044820152633ab73a1760e11b6064820152608401610bc2565b6001816002811115612b4857612b48613bf5565b148015612b6357506006546001600160a01b03868116911614155b8015612b8857506001600160a01b03851660009081526009602052604090205460ff16155b15612bf257600e54831115612bf25760405162461bcd60e51b815260206004820152602a60248201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785360448201526932b63620b6b7bab73a1760b11b6064820152608401610bc2565b6001600160a01b03851660009081526008602052604090205460ff1680612c3157506001600160a01b03841660009081526008602052604090205460ff165b80612c475750600c54640100000000900460ff16155b80612c7a5750600c5465010000000000900460ff16158015612c7a57506002816002811115612c7857612c78613bf5565b145b15612c8457600091505b3060009081526020819052604081205490506000602c5482118015612cba57506001836002811115612cb857612cb8613bf5565b145b9050808015612cd15750600c5462010000900460ff165b8015612ce55750600c54610100900460ff16155b8015612d0a57506001600160a01b03871660009081526008602052604090205460ff16155b8015612d2f57506001600160a01b03861660009081526008602052604090205460ff16155b15612d5857600c805461ff001916610100179055612d4c82612f9a565b600c805461ff00191690555b6113858787878787613175565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612d9a57612d9a6139eb565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612df3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e179190613a9b565b81600181518110612e2a57612e2a6139eb565b6001600160a01b039283166020918202929092010152600654612e50913091168461243a565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790612e89908590600090869030904290600401613c0b565b600060405180830381600087803b158015612ea357600080fd5b505af1158015612eb7573d6000803e3d6000fd5b505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b602d546001600160a01b03166108fc612f2b8360026123d4565b6040518115909202916000818181858888f19350505050158015612f53573d6000803e3d6000fd5b50602e546001600160a01b03166108fc612f6e8360026123d4565b6040518115909202916000818181858888f19350505050158015612f96573d6000803e3d6000fd5b5050565b6000612fb9602b54610d7b602a5460295461255e90919063ffffffff16565b90506000821580612fc8575081155b15612fd257505050565b602c54612fe09060056123c1565b831115612ff857602c54612ff59060056123c1565b92505b60006130186002610f1e85610f1e602b54896123c190919063ffffffff16565b9050600061302685836131e7565b90504761303282612d65565b600061303e47836131e7565b9050600061305b87610f1e602954856123c190919063ffffffff16565b9050600061307888610f1e602a54866123c190919063ffffffff16565b905060006130908261308a86866131e7565b906131e7565b60006029819055602a819055602b55905086158015906130b05750600081115b156130bf576130bf87826131f3565b602e546040516001600160a01b03909116908390600081818185875af1925050503d806000811461310c576040519150601f19603f3d011682016040523d82523d6000602084013e613111565b606091505b5050602d546040519199506001600160a01b0316904790600081818185875af1925050503d8060008114613161576040519150601f19603f3d011682016040523d82523d6000602084013e613166565b606091505b50505050505050505050505050565b816131875761318261328e565b613195565b61319285848361335a565b92505b6131a0858585613508565b816131e0576131e0601854601755601a54601955601c54601b55601e54601d55602054601f55602254602155602454602355602654602555602854602755565b5050505050565b60006123cd8284613be2565b60065461320b9030906001600160a01b03168461243a565b600654602f5460405163f305d71960e01b81526001600160a01b039283169263f305d71992859261324b9230928992600092839216904290600401613ab8565b60606040518083038185885af1158015613269573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906131e09190613af3565b60175415801561329e5750601954155b80156132aa5750601b54155b80156132b65750601d54155b80156132c25750601f54155b80156132ce5750602154155b80156132da5750602354155b80156132e65750602554155b80156132f25750602754155b156132f957565b6017805460185560198054601a55601b8054601c55601d8054601e55601f8054602055602180546022556023805460245560258054602655602780546028556000988990559688905594879055928690559085905584905583905582905555565b60004360115460105461336d9190613a30565b1061337f5761337a613632565b61342a565b600182600281111561339357613393613bf5565b036133a05761337a613657565b60008260028111156133b4576133b4613bf5565b036133c15761337a61367f565b60028260028111156133d5576133d5613bf5565b036133e25761337a6136a7565b60405162461bcd60e51b815260206004820152601960248201527f496e76616c6964207472616e73616374696f6e20747970652e000000000000006044820152606401610bc2565b601354600090156134e4576134506103e8610f1e601354876123c190919063ffffffff16565b9050601354601454826134639190613b21565b61346d9190613b38565b6029600082825461347e9190613a30565b90915550506013546015546134939083613b21565b61349d9190613b38565b602a60008282546134ae9190613a30565b90915550506013546016546134c39083613b21565b6134cd9190613b38565b602b60008282546134de9190613a30565b90915550505b80156134f5576134f5853083613508565b6134ff8185613be2565b95945050505050565b6001600160a01b03831661352e5760405162461bcd60e51b8152600401610bc290613b5a565b6001600160a01b0382166135545760405162461bcd60e51b8152600401610bc290613b9f565b6001600160a01b038316600090815260208190526040902054818110156135cc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610bc2565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3612270565b61014d60148190556015819055601681905561365290610d7b818061255e565b601355565b601d546014819055601f5460158190556021546016819055613652929091610d7b919061255e565b60175460148190556019546015819055601b546016819055613652929091610d7b919061255e565b602354601481905560255460158190556027546016819055613652929091610d7b919061255e565b6001600160a01b038116811461112557600080fd5b80356136ef816136cf565b919050565b60006020828403121561370657600080fd5b81356123cd816136cf565b60005b8381101561372c578181015183820152602001613714565b50506000910152565b6020815260008251806020840152613754816040850160208701613711565b601f01601f19169190910160400192915050565b6000806040838503121561377b57600080fd5b8235613786816136cf565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b801515811461112557600080fd5b80356136ef816137aa565b600080604083850312156137d657600080fd5b823567ffffffffffffffff808211156137ee57600080fd5b818501915085601f83011261380257600080fd5b813560208282111561381657613816613794565b8160051b604051601f19603f8301168101818110868211171561383b5761383b613794565b60405292835281830193508481018201928984111561385957600080fd5b948201945b8386101561387e5761386f866136e4565b8552948201949382019361385e565b965061388d90508782016137b8565b9450505050509250929050565b6000602082840312156138ac57600080fd5b5035919050565b6000806000606084860312156138c857600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156138f457600080fd5b83356138ff816136cf565b9250602084013561390f816136cf565b929592945050506040919091013590565b60006020828403121561393257600080fd5b81356123cd816137aa565b60008060006060848603121561395257600080fd5b833560ff8116811461396357600080fd5b95602085013595506040909401359392505050565b6000806040838503121561398b57600080fd5b8235613996816136cf565b915060208301356139a6816136cf565b809150509250929050565b600181811c908216806139c557607f821691505b6020821081036139e557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201613a2957613a29613a01565b5060010190565b80820180821115610c9357610c93613a01565b60008351613a55818460208801613711565b9190910191825250602001919050565b600060208284031215613a7757600080fd5b5051919050565b600060208284031215613a9057600080fd5b81516123cd816137aa565b600060208284031215613aad57600080fd5b81516123cd816136cf565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b600080600060608486031215613b0857600080fd5b8351925060208401519150604084015190509250925092565b8082028115828204841417610c9357610c93613a01565b600082613b5557634e487b7160e01b600052601260045260246000fd5b500490565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b81810381811115610c9357610c93613a01565b634e487b7160e01b600052602160045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613c5b5784516001600160a01b031683529383019391830191600101613c36565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220aa3440f7e00f061a3b03291c9798b1948f6978cf54c1c21d306a71da36f0377064736f6c63430008110033

Verified Source Code Partial Match

Compiler: v0.8.17+commit.8df45f5f EVM: london Optimization: Yes (200 runs)
PoofToken.sol 1367 lines
// SPDX-License-Identifier: MIT

pragma solidity =0.8.17;

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

/**
 * @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;
    }
}

// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.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 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 {
        _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);
    }
}

// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

/**
 * @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);
}

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.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);
}

// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.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].
 *
 * 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}.
     *
     * 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:
     *
     * - `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 {}
}

interface IDEXFactory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

interface IDEXRouter {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

contract PoofToken is Context, ERC20, Ownable {
    using SafeMath for uint256;

    IDEXRouter private _dexRouter;

    mapping (address => uint) private _cooldown;

    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) private _isExcludedMaxTransactionAmount;
    mapping (address => bool) private _isBlacklisted;
    mapping (address => bool) public humanVerified;

    bool public tradingOpen;
    bool private _swapping;
    bool public swapEnabled = false;
    bool public cooldownEnabled = false;
    bool public feesEnabled = true;
    bool public transferFeesEnabled = true;
    bool private humanVerificationRequired = true;

    uint256 private constant _tSupply = 100_000_000 ether;

    uint256 public maxBuyAmount = _tSupply;
    uint256 public maxSellAmount = _tSupply;
    uint256 public maxWalletAmount = _tSupply;

    uint256 public tradingOpenBlock = 0;
    uint256 private _blocksToBlacklist = 0;
    uint256 private _cooldownBlocks = 1;

    uint256 public constant FEE_DIVISOR = 1000;

    uint256 private _totalFees;
    uint256 private _marketingFee;
    uint256 private _dreamFee;
    uint256 private _liquidityFee;

    uint256 public buyMarketingFee = 20;
    uint256 private _previousBuyMarketingFee = buyMarketingFee;
    uint256 public buyDREAMFee = 10;
    uint256 private _previousBuyDREAMFee = buyDREAMFee;
    uint256 public buyLiquidityFee = 30;
    uint256 private _previousBuyLiquidityFee = buyLiquidityFee;

    uint256 public sellMarketingFee = 20;
    uint256 private _previousSellMktgFee = sellMarketingFee;
    uint256 public sellDREAMFee = 10;
    uint256 private _previousSellDevFee = sellDREAMFee;
    uint256 public sellLiquidityFee = 30;
    uint256 private _previousSellLiqFee = sellLiquidityFee;

    uint256 public transferMarketingFee = 20;
    uint256 private _previousTransferMarketingFee = transferMarketingFee;
    uint256 public transferDREAMFee = 10;
    uint256 private _previousTransferDREAMFee = transferDREAMFee;
    uint256 public transferLiquidityFee = 30;
    uint256 private _previousTransferLiquidityFee = transferLiquidityFee;

    uint256 private _tokensForMarketing;
    uint256 private _tokensForDREAM;
    uint256 private _tokensForLiquidity;
    uint256 private _swapTokensAtAmount = 0;

    address payable public marketingWalletAddress;
    address payable public dreamWalletAddress;
    address payable public liquidityWalletAddress;
    address private _signerAddress;

    address private _dexPair;
    address constant private DEAD = 0x000000000000000000000000000000000000dEaD;
    address constant private ZERO = 0x0000000000000000000000000000000000000000;

    enum TransactionType {
        BUY,
        SELL,
        TRANSFER
    }

    event OpenTrading(uint256 tradingOpenBlock, uint256 _blocksToBlacklist);
    event SetMaxBuyAmount(uint256 newMaxBuyAmount);
    event SetMaxSellAmount(uint256 newMaxSellAmount);
    event SetMaxWalletAmount(uint256 newMaxWalletAmount);
    event SetSwapTokensAtAmount(uint256 newSwapTokensAtAmount);
    event SetBuyFee(uint256 buyMarketingFee, uint256 buyDREAMFee, uint256 buyLiquidityFee);
	event SetSellFee(uint256 sellMarketingFee, uint256 sellDREAMFee, uint256 sellLiquidityFee);
    event SetTransferFee(uint256 transferMarketingFee, uint256 transferDREAMFee, uint256 transferLiquidityFee);
    event VerifyHuman(address signer);
    
    constructor (address payable _marketingWalletAddress, address payable _dreamWalletAddress, address payable _liquidityWalletAddress, address signerAddress) ERC20("Poof Token", "POOF") payable {
        require(_marketingWalletAddress != ZERO, "_marketingWalletAddress cannot be 0");
        require(_dreamWalletAddress != ZERO, "_dreamWalletAddress cannot be 0");
        require(_liquidityWalletAddress != ZERO, "_liquidityWalletAddress cannot be 0");
        require(signerAddress != ZERO, "_signerAddress cannot be 0");

        marketingWalletAddress = _marketingWalletAddress;
        dreamWalletAddress = _dreamWalletAddress;
        liquidityWalletAddress = _liquidityWalletAddress;
        _signerAddress = signerAddress;

        _isExcludedFromFees[owner()] = true;
        _isExcludedFromFees[address(this)] = true;
        _isExcludedFromFees[DEAD] = true;
        _isExcludedFromFees[marketingWalletAddress] = true;
        _isExcludedFromFees[dreamWalletAddress] = true;
        _isExcludedFromFees[liquidityWalletAddress] = true;
        _isExcludedFromFees[_signerAddress] = true;

        _isExcludedMaxTransactionAmount[owner()] = true;
        _isExcludedMaxTransactionAmount[address(this)] = true;
        _isExcludedMaxTransactionAmount[DEAD] = true;
        _isExcludedMaxTransactionAmount[marketingWalletAddress] = true;
        _isExcludedMaxTransactionAmount[dreamWalletAddress] = true;
        _isExcludedMaxTransactionAmount[liquidityWalletAddress] = true;
        _isExcludedMaxTransactionAmount[_signerAddress] = true;

        humanVerified[owner()] = true;
        humanVerified[address(this)] = true;
        humanVerified[DEAD] = true;
        humanVerified[marketingWalletAddress] = true;
        humanVerified[dreamWalletAddress] = true;
        humanVerified[liquidityWalletAddress] = true;
        humanVerified[_signerAddress] = true;

        _mint(address(this), _tSupply.mul(5).div(100));
        _mint(owner(), _tSupply.mul(95).div(100));
    }

    function _transfer(address from, address to, uint256 amount) internal override {
        require(from != ZERO, "ERC20: transfer from the zero address");
        require(to != ZERO, "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");

        bool takeFee = true;
        TransactionType txType = (from == _dexPair) ? TransactionType.BUY : (to == _dexPair) ? TransactionType.SELL : TransactionType.TRANSFER;
        if (from != owner() && to != owner() && to != ZERO && to != DEAD && !_swapping) {
            require(!_isBlacklisted[from] && !_isBlacklisted[to], "Blacklisted.");

            if(!tradingOpen) require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not allowed yet.");

            if (cooldownEnabled) {
                if (to != address(_dexRouter) && to != address(_dexPair)) {
                    require(_cooldown[tx.origin] < block.number - _cooldownBlocks && _cooldown[to] < block.number - _cooldownBlocks, "Transfer delay enabled. Try again later.");
                    _cooldown[tx.origin] = block.number;
                    _cooldown[to] = block.number;
                }
            }

            if (txType == TransactionType.BUY && to != address(_dexRouter) && !_isExcludedMaxTransactionAmount[to]) {
                if (humanVerificationRequired) require(humanVerified[to] == true, "Human not verified.");
                
                require(amount <= maxBuyAmount, "Transfer amount exceeds the maxBuyAmount.");
                require(balanceOf(to) + amount <= maxWalletAmount, "Exceeds maximum wallet token amount.");
            }
            
            if (txType == TransactionType.SELL && from != address(_dexRouter) && !_isExcludedMaxTransactionAmount[from]) require(amount <= maxSellAmount, "Transfer amount exceeds the maxSellAmount.");
        }

        if(_isExcludedFromFees[from] || _isExcludedFromFees[to] || !feesEnabled || (!transferFeesEnabled && txType == TransactionType.TRANSFER)) takeFee = false;

        uint256 contractBalance = balanceOf(address(this));
        bool canSwap = (contractBalance > _swapTokensAtAmount) && (txType == TransactionType.SELL);

        if (canSwap && swapEnabled && !_swapping && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
            _swapping = true;
            _swapBack(contractBalance);
            _swapping = false;
        }

        _tokenTransfer(from, to, amount, takeFee, txType);
    }

    function _swapBack(uint256 contractBalance) internal {
        uint256 totalTokensToSwap =  _tokensForMarketing.add(_tokensForDREAM).add(_tokensForLiquidity);
        bool success;
        
        if (contractBalance == 0 || totalTokensToSwap == 0) return;

        if (contractBalance > _swapTokensAtAmount.mul(5)) contractBalance = _swapTokensAtAmount.mul(5);

        uint256 liquidityTokens = contractBalance.mul(_tokensForLiquidity).div(totalTokensToSwap).div(2);
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);

        uint256 initialETHBalance = address(this).balance;

        _swapTokensForETH(amountToSwapForETH);
        
        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
        uint256 ethForMktg = ethBalance.mul(_tokensForMarketing).div(totalTokensToSwap);
        uint256 ethForDev = ethBalance.mul(_tokensForDREAM).div(totalTokensToSwap);
        uint256 ethForLiq = ethBalance.sub(ethForMktg).sub(ethForDev);
        
        _tokensForMarketing = 0;
        _tokensForDREAM = 0;
        _tokensForLiquidity = 0;

        if(liquidityTokens > 0 && ethForLiq > 0) _addLiquidity(liquidityTokens, ethForLiq);

        (success,) = address(dreamWalletAddress).call{value: ethForDev}("");
        (success,) = address(marketingWalletAddress).call{value: address(this).balance}("");
    }

    function _swapTokensForETH(uint256 tokenAmount) internal {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = _dexRouter.WETH();
        _approve(address(this), address(_dexRouter), tokenAmount);
        _dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) internal {
        _approve(address(this), address(_dexRouter), tokenAmount);
        _dexRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0,
            0,
            liquidityWalletAddress,
            block.timestamp
        );
    }
        
    function _sendETHToFee(uint256 amount) internal {
        marketingWalletAddress.transfer(amount.div(2));
        dreamWalletAddress.transfer(amount.div(2));
    }

    function isBlacklisted(address wallet) external view returns (bool) {
        return _isBlacklisted[wallet];
    }

    function openTrading(uint256 blocks) public onlyOwner {
        require(!tradingOpen, "Trading is already open");
        require(blocks <= 10, "Invalid blocks count.");

        if (block.chainid == 1 || block.chainid == 5) _dexRouter = IDEXRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // ETH: Uniswap V2
        else if (block.chainid == 56) _dexRouter = IDEXRouter(0x10ED43C718714eb63d5aA57B78B54704E256024E); // ETH Chain: PCS V2
        else if (block.chainid == 97) _dexRouter = IDEXRouter(0xD99D1c33F9fC3444f8101754aBC46c52416550D1); // ETH Chain Testnet: PCS V2
        else if (block.chainid == 137 || block.chainid == 80001) _dexRouter = IDEXRouter(0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff); // Polygon: Quickswap 
        else revert("Chain not set.");

        _approve(address(this), address(_dexRouter), totalSupply());
        _dexPair = IDEXFactory(_dexRouter.factory()).createPair(address(this), _dexRouter.WETH());
        _dexRouter.addLiquidityETH{value: address(this).balance}(address(this), balanceOf(address(this)), 0, 0, owner(), block.timestamp);
        IERC20(_dexPair).approve(address(_dexRouter), type(uint).max);

        maxBuyAmount = totalSupply().mul(2).div(1000);
        maxSellAmount = totalSupply().mul(2).div(1000);
        maxWalletAmount = totalSupply().mul(1).div(100);
        _swapTokensAtAmount = totalSupply().mul(2).div(10000);
        swapEnabled = true;
        cooldownEnabled = true;
        tradingOpen = true;
        tradingOpenBlock = block.number;
        _blocksToBlacklist = blocks;
        emit OpenTrading(tradingOpenBlock, _blocksToBlacklist);
    }

    function setCooldownEnabled(bool onoff) public onlyOwner {
        cooldownEnabled = onoff;
    }

    function setSwapEnabled(bool onoff) public onlyOwner {
        swapEnabled = onoff;
    }

    function setFeesEnabled(bool onoff) public onlyOwner {
        feesEnabled = onoff;
    }

    function setTransferFeesEnabled(bool onoff) public onlyOwner {
        transferFeesEnabled = onoff;
    }

    function setHumanVerificationRequired(bool onoff) public onlyOwner {
        humanVerificationRequired = onoff;
    }

    function setMaxBuyAmount(uint256 _maxBuyAmount) public onlyOwner {
        require(_maxBuyAmount >= (totalSupply().mul(1).div(1000)), "Max buy amount cannot be lower than 0.1% total supply.");
        maxBuyAmount = _maxBuyAmount;
        emit SetMaxBuyAmount(maxBuyAmount);
    }

    function setMaxSellAmount(uint256 _maxSellAmount) public onlyOwner {
        require(_maxSellAmount >= (totalSupply().mul(1).div(1000)), "Max sell amount cannot be lower than 0.1% total supply.");
        maxSellAmount = _maxSellAmount;
        emit SetMaxSellAmount(maxSellAmount);
    }
    
    function setMaxWalletAmount(uint256 _maxWalletAmount) public onlyOwner {
        require(_maxWalletAmount >= (totalSupply().mul(1).div(1000)), "Max wallet amount cannot be lower than 0.1% total supply.");
        maxWalletAmount = _maxWalletAmount;
        emit SetMaxWalletAmount(maxWalletAmount);
    }
    
    function setSwapTokensAtAmount(uint256 swapTokensAtAmount) public onlyOwner {
        require(swapTokensAtAmount >= (totalSupply().mul(1).div(1000000)), "Swap amount cannot be lower than 0.0001% total supply.");
        require(swapTokensAtAmount <= (totalSupply().mul(5).div(1000)), "Swap amount cannot be higher than 0.5% total supply.");
        _swapTokensAtAmount = swapTokensAtAmount;
        emit SetSwapTokensAtAmount(_swapTokensAtAmount);
    }

    function setMarketingWalletAddress(address _marketingWalletAddress) public onlyOwner {
        require(_marketingWalletAddress != ZERO, "marketingWalletAddress cannot be 0");
        _isExcludedFromFees[marketingWalletAddress] = false;
        _isExcludedMaxTransactionAmount[marketingWalletAddress] = false;
        marketingWalletAddress = payable(_marketingWalletAddress);
        _isExcludedFromFees[marketingWalletAddress] = true;
        _isExcludedMaxTransactionAmount[marketingWalletAddress] = true;
    }

    function setDREAMWalletAddress(address _dreamWalletAddress) public onlyOwner {
        require(_dreamWalletAddress != ZERO, "dreamWalletAddress cannot be 0");
        _isExcludedFromFees[dreamWalletAddress] = false;
        _isExcludedMaxTransactionAmount[dreamWalletAddress] = false;
        dreamWalletAddress = payable(_dreamWalletAddress);
        _isExcludedFromFees[dreamWalletAddress] = true;
        _isExcludedMaxTransactionAmount[dreamWalletAddress] = true;
    }

    function setLiquidityWalletAddress(address _liquidityWalletAddress) public onlyOwner {
        require(_liquidityWalletAddress != ZERO, "liquidityWalletAddress cannot be 0");
        _isExcludedFromFees[liquidityWalletAddress] = false;
        _isExcludedMaxTransactionAmount[liquidityWalletAddress] = false;
        liquidityWalletAddress = payable(_liquidityWalletAddress);
        _isExcludedFromFees[liquidityWalletAddress] = true;
        _isExcludedMaxTransactionAmount[liquidityWalletAddress] = true;
    }

    function setSignerAddress(address signerAddress) public onlyOwner {
        require(signerAddress != ZERO, "_signerAddress cannot be 0");
        _signerAddress = signerAddress;
    }

    function setExcludedFromFees(address[] memory accounts, bool isEx) public onlyOwner {
        for (uint i = 0; i < accounts.length; i++) _isExcludedFromFees[accounts[i]] = isEx;
    }
    
    function setExcludeFromMaxTransaction(address[] memory accounts, bool isEx) public onlyOwner {
        for (uint i = 0; i < accounts.length; i++) _isExcludedMaxTransactionAmount[accounts[i]] = isEx;
    }
    
    function setBlacklisted(address[] memory accounts, bool isBL) public onlyOwner {
        for (uint i = 0; i < accounts.length; i++) {
            if((accounts[i] != _dexPair) && (accounts[i] != address(_dexRouter)) && (accounts[i] != address(this))) _isBlacklisted[accounts[i]] = isBL;
        }
    }

    function setBuyFee(uint256 _buyMarketingFee, uint256 _buyDREAMFee, uint256 _buyLiquidityFee) public onlyOwner {
        require(_buyMarketingFee.add(_buyDREAMFee).add(_buyLiquidityFee) <= 120, "Must keep buy taxes below 12%");
        buyMarketingFee = _buyMarketingFee;
        buyDREAMFee = _buyDREAMFee;
        buyLiquidityFee = _buyLiquidityFee;
        emit SetBuyFee(buyMarketingFee, buyDREAMFee, buyLiquidityFee);
    }

    function setSellFee(uint256 _sellMarketingFee, uint256 _sellDREAMFee, uint256 _sellLiquidityFee) public onlyOwner {
        require(_sellMarketingFee.add(_sellDREAMFee).add(_sellLiquidityFee) <= 120, "Must keep sell taxes below 12%");
        sellMarketingFee = _sellMarketingFee;
        sellDREAMFee = _sellDREAMFee;
        sellLiquidityFee = _sellLiquidityFee;
        emit SetSellFee(sellMarketingFee, sellDREAMFee, sellLiquidityFee);
    }

    function setTransferFee(uint256 _transferMarketingFee, uint256 _transferDREAMFee, uint256 _transferLiquidityFee) public onlyOwner {
        require(_transferMarketingFee.add(_transferDREAMFee).add(_transferLiquidityFee) <= 250, "Must keep transfer taxes below 25%");
        transferMarketingFee = _transferMarketingFee;
        transferDREAMFee = _transferDREAMFee;
        transferLiquidityFee = _transferLiquidityFee;
        emit SetTransferFee(transferMarketingFee, transferDREAMFee, transferLiquidityFee);
    }

    function setCooldownBlocks(uint256 blocks) public onlyOwner {
        require(blocks <= 10, "Invalid blocks count.");
        _cooldownBlocks = blocks;
    }

    function _removeAllFee() internal {
        if (buyMarketingFee == 0 && buyDREAMFee == 0 && buyLiquidityFee == 0 && 
        sellMarketingFee == 0 && sellDREAMFee == 0 && sellLiquidityFee == 0 &&
        transferMarketingFee == 0 && transferDREAMFee == 0 && transferLiquidityFee == 0) return;

        _previousBuyMarketingFee = buyMarketingFee;
        _previousBuyDREAMFee = buyDREAMFee;
        _previousBuyLiquidityFee = buyLiquidityFee;
        _previousSellMktgFee = sellMarketingFee;
        _previousSellDevFee = sellDREAMFee;
        _previousSellLiqFee = sellLiquidityFee;
        _previousTransferMarketingFee = transferMarketingFee;
        _previousTransferDREAMFee = transferDREAMFee;
        _previousTransferLiquidityFee = transferLiquidityFee;
        
        buyMarketingFee = 0;
        buyDREAMFee = 0;
        buyLiquidityFee = 0;
        sellMarketingFee = 0;
        sellDREAMFee = 0;
        sellLiquidityFee = 0;
        transferMarketingFee = 0;
        transferDREAMFee = 0;
        transferLiquidityFee = 0;
    }
    
    function _restoreAllFee() internal {
        buyMarketingFee = _previousBuyMarketingFee;
        buyDREAMFee = _previousBuyDREAMFee;
        buyLiquidityFee = _previousBuyLiquidityFee;
        sellMarketingFee = _previousSellMktgFee;
        sellDREAMFee = _previousSellDevFee;
        sellLiquidityFee = _previousSellLiqFee;
        transferMarketingFee = _previousTransferMarketingFee;
        transferDREAMFee = _previousTransferDREAMFee;
        transferLiquidityFee = _previousTransferLiquidityFee;
    }
        
    function _tokenTransfer(address sender, address recipient, uint256 amount, bool takeFee, TransactionType txType) internal {
        if (!takeFee) _removeAllFee();
        else amount = _takeFees(sender, amount, txType);

        super._transfer(sender, recipient, amount);
        
        if (!takeFee) _restoreAllFee();
    }

    function _takeFees(address sender, uint256 amount, TransactionType txType) internal returns (uint256) {
        if(tradingOpenBlock + _blocksToBlacklist >= block.number) _setBot();
        else if (txType == TransactionType.SELL) _setSell();
        else if (txType == TransactionType.BUY) _setBuy();
        else if (txType == TransactionType.TRANSFER) _setTransfer();
        else revert("Invalid transaction type.");
        
        uint256 fees;
        if (_totalFees > 0) {
            fees = amount.mul(_totalFees).div(FEE_DIVISOR);
            _tokensForMarketing += fees * _marketingFee / _totalFees;
            _tokensForDREAM += fees * _dreamFee / _totalFees;
            _tokensForLiquidity += fees * _liquidityFee / _totalFees;
        }

        if (fees > 0) super._transfer(sender, address(this), fees);

        return amount -= fees;
    }

    function _setBot() internal {
        _marketingFee = 333;
        _dreamFee = 333;
        _liquidityFee = 333;
        _totalFees = _marketingFee.add(_dreamFee).add(_liquidityFee);
    }

    function _setSell() internal {
        _marketingFee = sellMarketingFee;
        _dreamFee = sellDREAMFee;
        _liquidityFee = sellLiquidityFee;
        _totalFees = _marketingFee.add(_dreamFee).add(_liquidityFee);
    }

    function _setBuy() internal {
        _marketingFee = buyMarketingFee;
        _dreamFee = buyDREAMFee;
        _liquidityFee = buyLiquidityFee;
        _totalFees = _marketingFee.add(_dreamFee).add(_liquidityFee);
    }

    function _setTransfer() internal {
        _marketingFee = transferMarketingFee;
        _dreamFee = transferDREAMFee;
        _liquidityFee = transferLiquidityFee;
        _totalFees = _marketingFee.add(_dreamFee).add(_liquidityFee);
    }
    
    function unclog() public onlyOwner {
        uint256 contractBalance = balanceOf(address(this));
        _swapTokensForETH(contractBalance);
    }...

// [truncated — 51605 bytes total]

Read Contract

FEE_DIVISOR 0x9e93ad8e → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyDREAMFee 0x86f39ae9 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
cooldownEnabled 0xa985ceef → bool
decimals 0x313ce567 → uint8
dreamWalletAddress 0x9a7bdd3c → address
feesEnabled 0xa64e4f8a → bool
humanVerified 0x0988df75 → bool
isBlacklisted 0xfe575a87 → bool
liquidityWalletAddress 0x8eb83f25 → address
marketingWalletAddress 0xd158272d → address
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDREAMFee 0x1dbe04ee → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
swapEnabled 0x6ddd1713 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
tradingOpenBlock 0x0e23500e → uint256
transferDREAMFee 0x5ce84c08 → uint256
transferFeesEnabled 0xeffb3c53 → bool
transferLiquidityFee 0x9bb19a32 → uint256
transferMarketingFee 0x85c5b319 → uint256

Write Contract 34 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
distributeFees 0xbb57ad20
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
openTrading 0xd1633649
uint256 blocks
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setBlacklisted 0xe1baae1f
address[] accounts
bool isBL
setBuyFee 0x25519cf2
uint256 _buyMarketingFee
uint256 _buyDREAMFee
uint256 _buyLiquidityFee
setCooldownBlocks 0x14626dc6
uint256 blocks
setCooldownEnabled 0x5932ead1
bool onoff
setDREAMWalletAddress 0xfcb40674
address _dreamWalletAddress
setExcludeFromMaxTransaction 0xf5a6682f
address[] accounts
bool isEx
setExcludedFromFees 0x105222f9
address[] accounts
bool isEx
setFeesEnabled 0xa901dd92
bool onoff
setHumanVerificationRequired 0xcec99459
bool onoff
setLiquidityWalletAddress 0xc9c9afc5
address _liquidityWalletAddress
setMarketingWalletAddress 0x4cb80fd5
address _marketingWalletAddress
setMaxBuyAmount 0xf34eb0b8
uint256 _maxBuyAmount
setMaxSellAmount 0xe99c9d09
uint256 _maxSellAmount
setMaxWalletAmount 0x27a14fc2
uint256 _maxWalletAmount
setSellFee 0x1d865c30
uint256 _sellMarketingFee
uint256 _sellDREAMFee
uint256 _sellLiquidityFee
setSignerAddress 0x046dc166
address signerAddress
setSwapEnabled 0xe01af92c
bool onoff
setSwapTokensAtAmount 0xafa4f3b2
uint256 swapTokensAtAmount
setTransferFee 0xe7c89232
uint256 _transferMarketingFee
uint256 _transferDREAMFee
uint256 _transferLiquidityFee
setTransferFeesEnabled 0xdd77b7e6
bool onoff
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unclog 0x67c45349
No parameters
verifyHuman 0xa3a560d7
uint8 _v
bytes32 _r
bytes32 _s
withdrawStuckETH 0xf5648a4f
No parameters
withdrawStuckTokens 0xcb963728
address tkn

Recent Transactions

No transactions found for this address