Address Contract Partially Verified
Address
0x55bD5f6A1Caea02c4f1eaE6119b2ac0babAb2C9F
Balance
0 ETH
Nonce
1
Code Size
16127 bytes
Creator
0xAc44E249...69b1 at tx 0x55ac5568...6ac439
Indexed Transactions
0
Contract Bytecode
16127 bytes
0x608060405260043610610249575f3560e01c8063914eb66a11610138578063c81d9246116100b5578063e2f4560511610079578063e2f45605146108a2578063e4748b9e146108cc578063f023f573146108f6578063f2fde38b1461091e578063f887ea4014610946578063f8b45b051461097057610250565b8063c81d9246146107ae578063cd73ab02146107d8578063dd62ed3e14610800578063e0f3ccf51461083c578063e1bc33941461086657610250565b8063a9059cbb116100fc578063a9059cbb146106ba578063b62496f5146106f6578063bbc0c74214610732578063c02466681461075c578063c3f70b521461078457610250565b8063914eb66a146105ee578063924de9b71461060457806395d89b411461062c5780639a7a23d614610656578063a457c2d71461067e57610250565b806349bd5a5e116101c65780636ddd17131161018a5780636ddd17131461050c57806370a082311461053657806373a94292146105725780637571336a1461059c5780638da5cb5b146105c457610250565b806349bd5a5e1461042a5780634a62bb65146104545780634fbee1931461047e57806363ee4d1c146104ba5780636db79437146104e457610250565b80631694505e1161020d5780631694505e1461033457806318160ddd1461035e57806323b872dd14610388578063313ce567146103c457806339509351146103ee57610250565b806301339c211461025457806306fdde031461026a578063095ea7b31461029457806309d6bf0a146102d05780630b006d601461030c57610250565b3661025057005b5f80fd5b34801561025f575f80fd5b5061026861099a565b005b348015610275575f80fd5b5061027e610ac0565b60405161028b9190612c98565b60405180910390f35b34801561029f575f80fd5b506102ba60048036038101906102b59190612d49565b610b50565b6040516102c79190612da1565b60405180910390f35b3480156102db575f80fd5b506102f660048036038101906102f19190612dba565b610b6d565b6040516103039190612da1565b60405180910390f35b348015610317575f80fd5b50610332600480360381019061032d9190612dba565b610cdc565b005b34801561033f575f80fd5b50610348610dfe565b6040516103559190612e40565b60405180910390f35b348015610369575f80fd5b50610372610e22565b60405161037f9190612e68565b60405180910390f35b348015610393575f80fd5b506103ae60048036038101906103a99190612e81565b610e2b565b6040516103bb9190612da1565b60405180910390f35b3480156103cf575f80fd5b506103d8610f1d565b6040516103e59190612eec565b60405180910390f35b3480156103f9575f80fd5b50610414600480360381019061040f9190612d49565b610f32565b6040516104219190612da1565b60405180910390f35b348015610435575f80fd5b5061043e610fd9565b60405161044b9190612f14565b60405180910390f35b34801561045f575f80fd5b50610468610ffd565b6040516104759190612da1565b60405180910390f35b348015610489575f80fd5b506104a4600480360381019061049f9190612f2d565b61100f565b6040516104b19190612da1565b60405180910390f35b3480156104c5575f80fd5b506104ce611061565b6040516104db9190612e68565b60405180910390f35b3480156104ef575f80fd5b5061050a60048036038101906105059190612f58565b611067565b005b348015610517575f80fd5b5061052061119a565b60405161052d9190612da1565b60405180910390f35b348015610541575f80fd5b5061055c60048036038101906105579190612f2d565b6111ad565b6040516105699190612e68565b60405180910390f35b34801561057d575f80fd5b506105866111f2565b6040516105939190612e68565b60405180910390f35b3480156105a7575f80fd5b506105c260048036038101906105bd9190612fc0565b6111f8565b005b3480156105cf575f80fd5b506105d86112e7565b6040516105e59190612f14565b60405180910390f35b3480156105f9575f80fd5b50610602611310565b005b34801561060f575f80fd5b5061062a60048036038101906106259190612ffe565b611466565b005b348015610637575f80fd5b5061064061151a565b60405161064d9190612c98565b60405180910390f35b348015610661575f80fd5b5061067c60048036038101906106779190612fc0565b6115aa565b005b348015610689575f80fd5b506106a4600480360381019061069f9190612d49565b6116dd565b6040516106b19190612da1565b60405180910390f35b3480156106c5575f80fd5b506106e060048036038101906106db9190612d49565b6117c3565b6040516106ed9190612da1565b60405180910390f35b348015610701575f80fd5b5061071c60048036038101906107179190612f2d565b6117e0565b6040516107299190612da1565b60405180910390f35b34801561073d575f80fd5b506107466117fd565b6040516107539190612da1565b60405180910390f35b348015610767575f80fd5b50610782600480360381019061077d9190612fc0565b611810565b005b34801561078f575f80fd5b5061079861194d565b6040516107a59190612e68565b60405180910390f35b3480156107b9575f80fd5b506107c2611953565b6040516107cf9190612e68565b60405180910390f35b3480156107e3575f80fd5b506107fe60048036038101906107f99190612dba565b611959565b005b34801561080b575f80fd5b5061082660048036038101906108219190613029565b611a7b565b6040516108339190612e68565b60405180910390f35b348015610847575f80fd5b50610850611afd565b60405161085d9190612e68565b60405180910390f35b348015610871575f80fd5b5061088c60048036038101906108879190612f2d565b611b03565b6040516108999190612da1565b60405180910390f35b3480156108ad575f80fd5b506108b6611b20565b6040516108c39190612e68565b60405180910390f35b3480156108d7575f80fd5b506108e0611b26565b6040516108ed9190612e68565b60405180910390f35b348015610901575f80fd5b5061091c60048036038101906109179190612f2d565b611b2c565b005b348015610929575f80fd5b50610944600480360381019061093f9190612f2d565b611c81565b005b348015610951575f80fd5b5061095a611e46565b6040516109679190612f14565b60405180910390f35b34801561097b575f80fd5b50610984611e6b565b6040516109919190612e68565b60405180910390f35b6109a2611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a28906130b1565b60405180910390fd5b600c60019054906101000a900460ff1615610a81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7890613119565b60405180910390fd5b6001600c60016101000a81548160ff02191690831515021790555043600e819055506001600c60026101000a81548160ff021916908315150217905550565b606060038054610acf90613164565b80601f0160208091040260200160405190810160405280929190818152602001828054610afb90613164565b8015610b465780601f10610b1d57610100808354040283529160200191610b46565b820191905f5260205f20905b815481529060010190602001808311610b2957829003601f168201915b5050505050905090565b5f610b63610b5c611e71565b8484611e78565b6001905092915050565b5f610b76611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfc906130b1565b60405180910390fd5b620186a06001610c13610e22565b610c1d91906131c1565b610c27919061322f565b821015610c69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c60906132cf565b60405180910390fd5b6127106064610c76610e22565b610c8091906131c1565b610c8a919061322f565b821115610ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc390613337565b60405180910390fd5b81600a8190555060019050919050565b610ce4611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6a906130b1565b60405180910390fd5b6127106032610d80610e22565b610d8a91906131c1565b610d94919061322f565b811015610dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcd9061339f565b60405180910390fd5b610dde610f1d565b600a610dea91906134ec565b81610df591906131c1565b600b8190555050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b5f610e3784848461203b565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610e7e611e71565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015610efd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef4906135a6565b60405180910390fd5b610f1185610f09611e71565b858403611e78565b60019150509392505050565b5f60055f9054906101000a900460ff16905090565b5f610fcf610f3e611e71565b848460015f610f4b611e71565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610fca91906135c4565b611e78565b6001905092915050565b7f00000000000000000000000067524c78449a08b0513dd101c821d9788ff0579681565b600c5f9054906101000a900460ff1681565b5f60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b600e5481565b61106f611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f5906130b1565b60405180910390fd5b611388821115611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113a90613641565b60405180910390fd5b611388811115611188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117f906136a9565b60405180910390fd5b81600f81905550806010819055505050565b600c60029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60135481565b611200611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461128f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611286906130b1565b60405180910390fd5b8060155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611318611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e906130b1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b61146e611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f4906130b1565b60405180910390fd5b80600c60026101000a81548160ff02191690831515021790555050565b60606004805461152990613164565b80601f016020809104026020016040519081016040528092919081815260200182805461155590613164565b80156115a05780601f10611577576101008083540402835291602001916115a0565b820191905f5260205f20905b81548152906001019060200180831161158357829003601f168201915b5050505050905090565b6115b2611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611641576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611638906130b1565b60405180910390fd5b7f00000000000000000000000067524c78449a08b0513dd101c821d9788ff0579673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c690613737565b60405180910390fd5b6116d982826124ef565b5050565b5f8060015f6116ea611e71565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050828110156117a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179b906137c5565b60405180910390fd5b6117b86117af611e71565b85858403611e78565b600191505092915050565b5f6117d66117cf611e71565b848461203b565b6001905092915050565b6016602052805f5260405f205f915054906101000a900460ff1681565b600c60019054906101000a900460ff1681565b611818611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189e906130b1565b60405180910390fd5b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516119419190612da1565b60405180910390a25050565b60095481565b60125481565b611961611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e7906130b1565b60405180910390fd5b612710600a6119fd610e22565b611a0791906131c1565b611a11919061322f565b811015611a53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4a9061382d565b60405180910390fd5b611a5b610f1d565b600a611a6791906134ec565b81611a7291906131c1565b60098190555050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60105481565b6015602052805f5260405f205f915054906101000a900460ff1681565b600a5481565b600f5481565b611b34611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bba906130b1565b60405180910390fd5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f94cc1498503be9a145caf3e96f856665f29cf9b26c7179a93fbe1c1e5f56a0fd60405160405180910390a38060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611c89611e71565b73ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0f906130b1565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7d906138bb565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edd90613949565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4b906139d7565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161202e9190612e68565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a090613a65565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612117576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210e90613af3565b60405180910390fd5b5f810361212e5761212983835f61258d565b6124ea565b5f612138306111ad565b90505f600a54821015905080801561215c5750600c60029054906101000a900460ff165b80156121755750600760149054906101000a900460ff16155b80156121c8575060165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561221b575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561226e575060145f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561227d5750601254601354115b156122cc576001600760146101000a81548160ff0219169083151502179055506122b16122ac83601154612802565b61281a565b5f600760146101000a81548160ff0219169083151502179055505b5f600760149054906101000a900460ff1615905060145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061237b575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612384575f90505b5f81156124da5760165f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156123e257505f601054115b1561241757612410612710612402601054886128ca90919063ffffffff16565b61294190919063ffffffff16565b90506124b7565b60165f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561246e57505f600f54115b156124b65761249c61271061248e600f54886128ca90919063ffffffff16565b61294190919063ffffffff16565b905060135f8154809291906124b090613b11565b91905055505b5b5f8111156124cb576124ca87308361258d565b5b80856124d79190613b58565b94505b6124e587878761258d565b505050505b505050565b8060165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036125fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f290613a65565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612669576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266090613af3565b60405180910390fd5b61267483838361298a565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156126f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ee90613bfb565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461278591906135c4565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516127e99190612e68565b60405180910390a36127fc84848461298f565b50505050565b5f8183116128105782612812565b815b905092915050565b5f80820361282857506128c7565b5f82905061283581612994565b5f47905060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161287e90613c46565b5f6040518083038185875af1925050503d805f81146128b8576040519150601f19603f3d011682016040523d82523d5f602084013e6128bd565b606091505b5050809350505050505b50565b5f8083036128da575f905061293b565b5f82846128e791906131c1565b90508284826128f6919061322f565b14612936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292d90613cca565b60405180910390fd5b809150505b92915050565b5f61298283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612bc7565b905092915050565b505050565b505050565b5f600267ffffffffffffffff8111156129b0576129af613ce8565b5b6040519080825280602002602001820160405280156129de5781602001602082028036833780820191505090505b50905030815f815181106129f5576129f4613d15565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a98573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612abc9190613d56565b81600181518110612ad057612acf613d15565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612b35307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611e78565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401612b96959493929190613e71565b5f604051808303815f87803b158015612bad575f80fd5b505af1158015612bbf573d5f803e3d5ffd5b505050505050565b5f8083118290612c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c049190612c98565b60405180910390fd5b505f8385612c1b919061322f565b9050809150509392505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612c6a82612c28565b612c748185612c32565b9350612c84818560208601612c42565b612c8d81612c50565b840191505092915050565b5f6020820190508181035f830152612cb08184612c60565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612ce582612cbc565b9050919050565b612cf581612cdb565b8114612cff575f80fd5b50565b5f81359050612d1081612cec565b92915050565b5f819050919050565b612d2881612d16565b8114612d32575f80fd5b50565b5f81359050612d4381612d1f565b92915050565b5f8060408385031215612d5f57612d5e612cb8565b5b5f612d6c85828601612d02565b9250506020612d7d85828601612d35565b9150509250929050565b5f8115159050919050565b612d9b81612d87565b82525050565b5f602082019050612db45f830184612d92565b92915050565b5f60208284031215612dcf57612dce612cb8565b5b5f612ddc84828501612d35565b91505092915050565b5f819050919050565b5f612e08612e03612dfe84612cbc565b612de5565b612cbc565b9050919050565b5f612e1982612dee565b9050919050565b5f612e2a82612e0f565b9050919050565b612e3a81612e20565b82525050565b5f602082019050612e535f830184612e31565b92915050565b612e6281612d16565b82525050565b5f602082019050612e7b5f830184612e59565b92915050565b5f805f60608486031215612e9857612e97612cb8565b5b5f612ea586828701612d02565b9350506020612eb686828701612d02565b9250506040612ec786828701612d35565b9150509250925092565b5f60ff82169050919050565b612ee681612ed1565b82525050565b5f602082019050612eff5f830184612edd565b92915050565b612f0e81612cdb565b82525050565b5f602082019050612f275f830184612f05565b92915050565b5f60208284031215612f4257612f41612cb8565b5b5f612f4f84828501612d02565b91505092915050565b5f8060408385031215612f6e57612f6d612cb8565b5b5f612f7b85828601612d35565b9250506020612f8c85828601612d35565b9150509250929050565b612f9f81612d87565b8114612fa9575f80fd5b50565b5f81359050612fba81612f96565b92915050565b5f8060408385031215612fd657612fd5612cb8565b5b5f612fe385828601612d02565b9250506020612ff485828601612fac565b9150509250929050565b5f6020828403121561301357613012612cb8565b5b5f61302084828501612fac565b91505092915050565b5f806040838503121561303f5761303e612cb8565b5b5f61304c85828601612d02565b925050602061305d85828601612d02565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61309b602083612c32565b91506130a682613067565b602082019050919050565b5f6020820190508181035f8301526130c88161308f565b9050919050565b7f546f6b656e206c61756e636865640000000000000000000000000000000000005f82015250565b5f613103600e83612c32565b915061310e826130cf565b602082019050919050565b5f6020820190508181035f830152613130816130f7565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061317b57607f821691505b60208210810361318e5761318d613137565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6131cb82612d16565b91506131d683612d16565b92508282026131e481612d16565b915082820484148315176131fb576131fa613194565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61323982612d16565b915061324483612d16565b92508261325457613253613202565b5b828204905092915050565b7f5377617020616d6f756e74203c20302e3030312520746f74616c20737570706c5f8201527f792e000000000000000000000000000000000000000000000000000000000000602082015250565b5f6132b9602283612c32565b91506132c48261325f565b604082019050919050565b5f6020820190508181035f8301526132e6816132ad565b9050919050565b7f5377617020616d6f756e74203e20312520746f74616c20737570706c792e00005f82015250565b5f613321601e83612c32565b915061332c826132ed565b602082019050919050565b5f6020820190508181035f83015261334e81613315565b9050919050565b7f6d617857616c6c6574203c20302e3525000000000000000000000000000000005f82015250565b5f613389601083612c32565b915061339482613355565b602082019050919050565b5f6020820190508181035f8301526133b68161337d565b9050919050565b5f8160011c9050919050565b5f808291508390505b6001851115613412578086048111156133ee576133ed613194565b5b60018516156133fd5780820291505b808102905061340b856133bd565b94506133d2565b94509492505050565b5f8261342a57600190506134e5565b81613437575f90506134e5565b816001811461344d576002811461345757613486565b60019150506134e5565b60ff84111561346957613468613194565b5b8360020a9150848211156134805761347f613194565b5b506134e5565b5060208310610133831016604e8410600b84101617156134bb5782820a9050838111156134b6576134b5613194565b5b6134e5565b6134c884848460016133c9565b925090508184048111156134df576134de613194565b5b81810290505b9392505050565b5f6134f682612d16565b915061350183612ed1565b925061352e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461341b565b905092915050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f613590602883612c32565b915061359b82613536565b604082019050919050565b5f6020820190508181035f8301526135bd81613584565b9050919050565b5f6135ce82612d16565b91506135d983612d16565b92508282019050808211156135f1576135f0613194565b5b92915050565b7f427579206665652065786365656473206c696d697400000000000000000000005f82015250565b5f61362b601583612c32565b9150613636826135f7565b602082019050919050565b5f6020820190508181035f8301526136588161361f565b9050919050565b7f53656c6c206665652065786365656473206c696d6974000000000000000000005f82015250565b5f613693601683612c32565b915061369e8261365f565b602082019050919050565b5f6020820190508181035f8301526136c081613687565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f613721603983612c32565b915061372c826136c7565b604082019050919050565b5f6020820190508181035f83015261374e81613715565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6137af602583612c32565b91506137ba82613755565b604082019050919050565b5f6020820190508181035f8301526137dc816137a3565b9050919050565b7f6d61785472616e73616374696f6e203c20302e312500000000000000000000005f82015250565b5f613817601583612c32565b9150613822826137e3565b602082019050919050565b5f6020820190508181035f8301526138448161380b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6138a5602683612c32565b91506138b08261384b565b604082019050919050565b5f6020820190508181035f8301526138d281613899565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613933602483612c32565b915061393e826138d9565b604082019050919050565b5f6020820190508181035f83015261396081613927565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6139c1602283612c32565b91506139cc82613967565b604082019050919050565b5f6020820190508181035f8301526139ee816139b5565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613a4f602583612c32565b9150613a5a826139f5565b604082019050919050565b5f6020820190508181035f830152613a7c81613a43565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613add602383612c32565b9150613ae882613a83565b604082019050919050565b5f6020820190508181035f830152613b0a81613ad1565b9050919050565b5f613b1b82612d16565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613b4d57613b4c613194565b5b600182019050919050565b5f613b6282612d16565b9150613b6d83612d16565b9250828203905081811115613b8557613b84613194565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f613be5602683612c32565b9150613bf082613b8b565b604082019050919050565b5f6020820190508181035f830152613c1281613bd9565b9050919050565b5f81905092915050565b50565b5f613c315f83613c19565b9150613c3c82613c23565b5f82019050919050565b5f613c5082613c26565b9150819050919050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f613cb4602183612c32565b9150613cbf82613c5a565b604082019050919050565b5f6020820190508181035f830152613ce181613ca8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050613d5081612cec565b92915050565b5f60208284031215613d6b57613d6a612cb8565b5b5f613d7884828501613d42565b91505092915050565b5f819050919050565b5f613da4613d9f613d9a84613d81565b612de5565b612d16565b9050919050565b613db481613d8a565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613dec81612cdb565b82525050565b5f613dfd8383613de3565b60208301905092915050565b5f602082019050919050565b5f613e1f82613dba565b613e298185613dc4565b9350613e3483613dd4565b805f5b83811015613e64578151613e4b8882613df2565b9750613e5683613e09565b925050600181019050613e37565b5085935050505092915050565b5f60a082019050613e845f830188612e59565b613e916020830187613dab565b8181036040830152613ea38186613e15565b9050613eb26060830185612f05565b613ebf6080830184612e59565b969550505050505056fea2646970667358221220c9dcd76f94cb3a7cbe0f0e400acd998ad2a3475ee9e2126fd66ca7a4c5eabe5264736f6c63430008190033
Verified Source Code Partial Match
Compiler: v0.8.25+commit.b61c2a91
EVM: cancun
Optimization: No
AgenTensor.sol 1094 lines
/*
Website: https://agentensor.com/
DApp: https://app.agentensor.com/
X: https://x.com/AgenTensor
Telegram Portal: https://t.me/AgenTensor
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount)
external
returns (bool);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
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);
}
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;
uint8 private _decimals;
constructor(
string memory name_,
string memory symbol_,
uint8 decimals_
) {
_name = name_;
_symbol = symbol_;
_decimals = decimals_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return _decimals;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account)
public
view
virtual
override
returns (uint256)
{
return _balances[account];
}
function transfer(address recipient, uint256 amount)
public
virtual
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender)
public
view
virtual
override
returns (uint256)
{
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount)
public
virtual
override
returns (bool)
{
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(
currentAllowance >= amount,
"ERC20: transfer amount exceeds allowance"
);
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender] + addedValue
);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(
senderBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
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;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
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;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
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);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
library Address {
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly {
codehash := extcodehash(account)
}
return (codehash != accountHash && codehash != 0x0);
}
function sendValue(address payable recipient, uint256 amount) internal {
require(
address(this).balance >= amount,
"Address: insufficient balance"
);
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{value: amount}("");
require(
success,
"Address: unable to send value, recipient may have reverted"
);
}
function functionCall(address target, bytes memory data)
internal
returns (bytes memory)
{
return functionCall(target, data, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return
functionCallWithValue(
target,
data,
value,
"Address: low-level call with value failed"
);
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(
address(this).balance >= value,
"Address: insufficient balance for call"
);
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(
address target,
bytes memory data,
uint256 weiValue,
string memory errorMessage
) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: weiValue}(
data
);
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
contract Ownable is Context {
address private _owner;
address private _previousOwner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function waiveOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB)
external
view
returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112 reserve1,
uint32 blockTimestampLast
);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function burn(address to)
external
returns (uint256 amount0, uint256 amount1);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function removeLiquidity(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETH(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETHWithPermit(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountToken, uint256 amountETH);
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapTokensForExactTokens(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactETHForTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function swapTokensForExactETH(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactTokensForETH(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapETHForExactTokens(
uint256 amountOut,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function quote(
uint256 amountA,
uint256 reserveA,
uint256 reserveB
) external pure returns (uint256 amountB);
function getAmountOut(
uint256 amountIn,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountOut);
function getAmountIn(
uint256 amountOut,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountIn);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
function getAmountsIn(uint256 amountOut, address[] calldata path)
external
view
returns (uint256[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract AgenTensor is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
bool private swapping;
address private developmentWallet;
uint256 public maxTransaction;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
mapping(address => uint256) private _holderLastTransferBlock;
uint256 public launchBlockNo;
uint256 public buyFees;
uint256 public sellFees;
uint256 private _maxSwapableTokens;
uint256 public _preventSwapBefore = 0;
uint256 public _totalBuys = 0;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedmaxTransaction;
mapping(address => bool) public automatedMarketMakerPairs;
constructor() ERC20("AgenTensor", "AGTS", 8) {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 totalSupply = 21_000_000 * 10**decimals();
maxTransaction = (totalSupply * 200) / 10_000; // 2.0% max transaction at launch
maxWallet = (totalSupply * 200) / 10_000; // 2.0% max wallet at launch
swapTokensAtAmount = (totalSupply * 50) / 10_000;
_maxSwapableTokens = (totalSupply * 100) / 10_000;
buyFees = 2_500;
sellFees = 2_500;
developmentWallet = 0x19119b0eBfE8f2adC747e7421d4f18AD03A8B3D9;
// exclude from paying fees or having max transaction amount
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
_mint(msg.sender, totalSupply);
}
receive() external payable {}
function launch() external onlyOwner {
require(!tradingActive, "Token launched");
tradingActive = true;
launchBlockNo = block.number;
swapEnabled = true;
}
function excludeFromMaxTransaction(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedmaxTransaction[updAds] = isEx;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(address pair, bool value)
public
onlyOwner
{
require(
pair != uniswapV2Pair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateDevelopmentWallet(address newWallet) external onlyOwner {
emit DevelopmentWalletUpdated(newWallet, developmentWallet);
developmentWallet = newWallet;
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to] &&
_totalBuys > _preventSwapBefore
) {
swapping = true;
swapBack(min(contractTokenBalance, _maxSwapableTokens));
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
// SELL
if (automatedMarketMakerPairs[to] && sellFees > 0) {
fees = amount.mul(sellFees).div(10_000);
}
// BUY
else if (automatedMarketMakerPairs[from] && buyFees > 0) {
fees = amount.mul(buyFees).div(10_000);
_totalBuys++;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function min(uint256 a, uint256 b) private pure returns (uint256) {
return (a > b) ? b : a;
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function swapBack(uint256 amount) private {
bool success;
if (amount == 0) {
return;
}
uint256 amountToSwapForETH = amount;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance;
(success, ) = address(developmentWallet).call{value: ethBalance}("");
}
event UpdateUniswapV2Router(
address indexed newAddress,
address indexed oldAddress
);
function changeSwapTokensAtAmount(uint256 newValue)
external
onlyOwner
returns (bool)
{
require(
newValue >= (totalSupply() * 1) / 100_000,
"Swap amount < 0.001% total supply."
);
require(
newValue <= (totalSupply() * 100) / 10_000,
"Swap amount > 1% total supply."
);
swapTokensAtAmount = newValue;
return true;
}
function changeMaxTransaction(uint256 newValue) external onlyOwner {
require(
newValue >= ((totalSupply() * 10) / 10_000),
"maxTransaction < 0.1%"
);
maxTransaction = newValue * (10**decimals());
}
function changeMaxWallet(uint256 newValue) external onlyOwner {
require(
newValue >= ((totalSupply() * 50) / 10_000),
"maxWallet < 0.5%"
);
maxWallet = newValue * (10**decimals());
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool _isEnable) external onlyOwner {
swapEnabled = _isEnable;
}
function updateFees(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
require(_buyFee <= 5_000, "Buy fee exceeds limit");
require(_sellFee <= 5_000, "Sell fee exceeds limit");
buyFees = _buyFee;
sellFees = _sellFee;
}
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event DevelopmentWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
}
Read Contract
_isExcludedmaxTransaction 0xe1bc3394 → bool
_preventSwapBefore 0xc81d9246 → uint256
_totalBuys 0x73a94292 → uint256
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyFees 0xe4748b9e → uint256
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
launchBlockNo 0x63ee4d1c → uint256
limitsInEffect 0x4a62bb65 → bool
maxTransaction 0xc3f70b52 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
router 0xf887ea40 → address
sellFees 0xe0f3ccf5 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 17 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changeMaxTransaction 0xcd73ab02
uint256 newValue
changeMaxWallet 0x0b006d60
uint256 newValue
changeSwapTokensAtAmount 0x09d6bf0a
uint256 newValue
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
launch 0x01339c21
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateDevelopmentWallet 0xf023f573
address newWallet
updateFees 0x6db79437
uint256 _buyFee
uint256 _sellFee
updateSwapEnabled 0x924de9b7
bool _isEnable
waiveOwnership 0x914eb66a
No parameters
Recent Transactions
No transactions found for this address