Address Contract Partially Verified
Address
0x5aEbC2271B12ad5CE60Ff53a4851F04697fC3068
Balance
0 ETH
Nonce
1
Code Size
20229 bytes
Creator
0x27ce88fE...a784 at tx 0x0e170835...044ad5
Indexed Transactions
0
Contract Bytecode
20229 bytes
0x608060405260043610610280575f3560e01c8063751039fc1161014e578063bbc0c742116100c0578063dd62ed3e11610079578063dd62ed3e1461096b578063e2f45605146109a7578063ee40166e146109d1578063f2fde38b146109fb578063f5648a4f14610a23578063fabb0b4f14610a3957610287565b8063bbc0c74214610877578063c0246668146108a1578063c18bc195146108c9578063cc274b29146108f1578063cc2ffe7c14610919578063dc3f0d0f1461094357610287565b806395d89b411161011257806395d89b41146107475780639a7a23d614610771578063a457c2d714610799578063a9059cbb146107d5578063aa4bde2814610811578063b62496f51461083b57610287565b8063751039fc146106795780637571336a1461068f5780638366e79a146106b757806388e765ff146106f35780638da5cb5b1461071d57610287565b8063467abe0a116101f25780635e83ae76116101ab5780635e83ae76146105835780636605bfda146105ab57806366d602ae146105d35780636ddd1713146105fd57806370a0823114610627578063715018a61461066357610287565b8063467abe0a1461049d57806347062402146104c557806349bd5a5e146104ef5780634a62bb651461051957806351bc3c85146105435780635b5c251f1461055957610287565b80631d933a4a116102445780631d933a4a1461038157806323b872dd146103a95780632b14ca56146103e55780632be32b611461040f578063313ce56714610437578063395093511461046157610287565b806306fdde031461028b578063095ea7b3146102b557806310d5de53146102f15780631694505e1461032d57806318160ddd1461035757610287565b3661028757005b5f5ffd5b348015610296575f5ffd5b5061029f610a63565b6040516102ac919061394c565b60405180910390f35b3480156102c0575f5ffd5b506102db60048036038101906102d691906139fd565b610af3565b6040516102e89190613a55565b60405180910390f35b3480156102fc575f5ffd5b5061031760048036038101906103129190613a6e565b610b10565b6040516103249190613a55565b60405180910390f35b348015610338575f5ffd5b50610341610b2d565b60405161034e9190613af4565b60405180910390f35b348015610362575f5ffd5b5061036b610b51565b6040516103789190613b1c565b60405180910390f35b34801561038c575f5ffd5b506103a760048036038101906103a29190613b35565b610b5a565b005b3480156103b4575f5ffd5b506103cf60048036038101906103ca9190613b60565b610c40565b6040516103dc9190613a55565b60405180910390f35b3480156103f0575f5ffd5b506103f9610d32565b6040516104069190613b1c565b60405180910390f35b34801561041a575f5ffd5b5061043560048036038101906104309190613b35565b610d38565b005b348015610442575f5ffd5b5061044b610e9a565b6040516104589190613bcb565b60405180910390f35b34801561046c575f5ffd5b50610487600480360381019061048291906139fd565b610ea2565b6040516104949190613a55565b60405180910390f35b3480156104a8575f5ffd5b506104c360048036038101906104be9190613b35565b610f49565b005b3480156104d0575f5ffd5b506104d961102f565b6040516104e69190613b1c565b60405180910390f35b3480156104fa575f5ffd5b50610503611035565b6040516105109190613bf3565b60405180910390f35b348015610524575f5ffd5b5061052d611059565b60405161053a9190613a55565b60405180910390f35b34801561054e575f5ffd5b5061055761106b565b005b348015610564575f5ffd5b5061056d61111d565b60405161057a9190613bf3565b60405180910390f35b34801561058e575f5ffd5b506105a960048036038101906105a49190613c36565b611142565b005b3480156105b6575f5ffd5b506105d160048036038101906105cc9190613a6e565b6112da565b005b3480156105de575f5ffd5b506105e7611464565b6040516105f49190613b1c565b60405180910390f35b348015610608575f5ffd5b5061061161146a565b60405161061e9190613a55565b60405180910390f35b348015610632575f5ffd5b5061064d60048036038101906106489190613a6e565b61147d565b60405161065a9190613b1c565b60405180910390f35b34801561066e575f5ffd5b506106776114c2565b005b348015610684575f5ffd5b5061068d611615565b005b34801561069a575f5ffd5b506106b560048036038101906106b09190613c74565b6116f2565b005b3480156106c2575f5ffd5b506106dd60048036038101906106d89190613cb2565b611874565b6040516106ea9190613a55565b60405180910390f35b3480156106fe575f5ffd5b50610707611aaa565b6040516107149190613b1c565b60405180910390f35b348015610728575f5ffd5b50610731611ab0565b60405161073e9190613bf3565b60405180910390f35b348015610752575f5ffd5b5061075b611ad8565b604051610768919061394c565b60405180910390f35b34801561077c575f5ffd5b5061079760048036038101906107929190613c74565b611b68565b005b3480156107a4575f5ffd5b506107bf60048036038101906107ba91906139fd565b611c9a565b6040516107cc9190613a55565b60405180910390f35b3480156107e0575f5ffd5b506107fb60048036038101906107f691906139fd565b611d80565b6040516108089190613a55565b60405180910390f35b34801561081c575f5ffd5b50610825611d9d565b6040516108329190613b1c565b60405180910390f35b348015610846575f5ffd5b50610861600480360381019061085c9190613a6e565b611da3565b60405161086e9190613a55565b60405180910390f35b348015610882575f5ffd5b5061088b611dc0565b6040516108989190613a55565b60405180910390f35b3480156108ac575f5ffd5b506108c760048036038101906108c29190613c74565b611dd3565b005b3480156108d4575f5ffd5b506108ef60048036038101906108ea9190613b35565b611f0f565b005b3480156108fc575f5ffd5b5061091760048036038101906109129190613b35565b612071565b005b348015610924575f5ffd5b5061092d61211d565b60405161093a9190613b1c565b60405180910390f35b34801561094e575f5ffd5b5061096960048036038101906109649190613b35565b612123565b005b348015610976575f5ffd5b50610991600480360381019061098c9190613cb2565b612285565b60405161099e9190613b1c565b60405180910390f35b3480156109b2575f5ffd5b506109bb612307565b6040516109c89190613b1c565b60405180910390f35b3480156109dc575f5ffd5b506109e561230d565b6040516109f29190613b1c565b60405180910390f35b348015610a06575f5ffd5b50610a216004803603810190610a1c9190613a6e565b612313565b005b348015610a2e575f5ffd5b50610a376124d5565b005b348015610a44575f5ffd5b50610a4d6125d1565b604051610a5a9190613b1c565b60405180910390f35b606060038054610a7290613d1d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9e90613d1d565b8015610ae95780601f10610ac057610100808354040283529160200191610ae9565b820191905f5260205f20905b815481529060010190602001808311610acc57829003601f168201915b5050505050905090565b5f610b06610aff6125d7565b84846125de565b6001905092915050565b6013602052805f5260405f205f915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b610b626125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790613d97565b60405180910390fd5b80601081905550600a6010541115610c3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3490613dff565b60405180910390fd5b50565b5f610c4c8484846127a1565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610c936125d7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015610d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0990613e8d565b60405180910390fd5b610d2685610d1e6125d7565b8584036125de565b60019150509392505050565b60105481565b610d406125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc590613d97565b60405180910390fd5b670de0b6b3a76400006103e86001610de4610b51565b610dee9190613ed8565b610df89190613f46565b610e029190613f46565b811015610e44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3b90613fe6565b60405180910390fd5b670de0b6b3a764000081610e589190613ed8565b6006819055507ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009600654604051610e8f9190613b1c565b60405180910390a150565b5f6012905090565b5f610f3f610eae6125d7565b848460015f610ebb6125d7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610f3a9190614004565b6125de565b6001905092915050565b610f516125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd690613d97565b60405180910390fd5b80600f81905550600a600f54111561102c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102390613dff565b60405180910390fd5b50565b600f5481565b7f00000000000000000000000001b9f73365df7231c97b8421d6f7febb81da1dab81565b600e5f9054906101000a900460ff1681565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166110ab6125d7565b73ffffffffffffffffffffffffffffffffffffffff16146110ca575f5ffd5b5f6110d43061147d565b90505f81111561111a57600160095f6101000a81548160ff02191690831515021790555061110061320f565b5f60095f6101000a81548160ff0219169083151502179055505b50565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61114a6125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf90613d97565b60405180910390fd5b600e60019054906101000a900460ff1615611228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121f90614081565b60405180910390fd5b81600e60016101000a81548160ff0219169083151502179055506001600e60026101000a81548160ff0219169083151502179055507fe185248899f361d51a48833938ab33493ebd7272d195abf7f51a833ea8138812600e60019054906101000a900460ff168260405161129d92919061409f565b60405180910390a1600e60019054906101000a900460ff1680156112c257505f600c54145b156112d65743600c8190555080600d819055505b5050565b6112e26125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136790613d97565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d590614136565b60405180910390fd5b80600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f2e1e696cfb265fa16e1170d24ef04cb2262772bde00ecf34d80bae6722487b7f60405160405180910390a250565b60075481565b600e60029054906101000a900460ff1681565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6114ca6125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154f90613d97565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b61161d6125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a290613d97565b60405180910390fd5b5f600e5f6101000a81548160ff0219169083151502179055507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c60405160405180910390a1565b6116fa6125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177f90613d97565b60405180910390fd5b8061181c577f00000000000000000000000001b9f73365df7231c97b8421d6f7febb81da1dab73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361181b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611812906141c4565b60405180910390fd5b5b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036118e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118da9061422c565b60405180910390fd5b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611972576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611969906142ba565b60405180910390fd5b5f8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016119ac9190613bf3565b602060405180830381865afa1580156119c7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119eb91906142ec565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401611a28929190614317565b6020604051808303815f875af1158015611a44573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a689190614352565b91507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e4388482604051611a9b929190614317565b60405180910390a15092915050565b60065481565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611ae790613d1d565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1390613d1d565b8015611b5e5780601f10611b3557610100808354040283529160200191611b5e565b820191905f5260205f20905b815481529060010190602001808311611b4157829003601f168201915b5050505050905090565b611b706125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf590613d97565b60405180910390fd5b7f00000000000000000000000001b9f73365df7231c97b8421d6f7febb81da1dab73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c83906143ed565b60405180910390fd5b611c968282613311565b5050565b5f5f60015f611ca76125d7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015611d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d589061447b565b60405180910390fd5b611d75611d6c6125d7565b858584036125de565b600191505092915050565b5f611d93611d8c6125d7565b84846127a1565b6001905092915050565b60085481565b6014602052805f5260405f205f915054906101000a900460ff1681565b600e60019054906101000a900460ff1681565b611ddb6125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6090613d97565b60405180910390fd5b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611f039190613a55565b60405180910390a25050565b611f176125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9c90613d97565b60405180910390fd5b670de0b6b3a76400006103e86003611fbb610b51565b611fc59190613ed8565b611fcf9190613f46565b611fd99190613f46565b81101561201b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201290614509565b60405180910390fd5b670de0b6b3a76400008161202f9190613ed8565b6008819055507fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc6008546040516120669190613b1c565b60405180910390a150565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612100576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f790614597565b60405180910390fd5b670de0b6b3a7640000816121149190613ed8565b600a8190555050565b60115481565b61212b6125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146121b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b090613d97565b60405180910390fd5b670de0b6b3a76400006103e860016121cf610b51565b6121d99190613ed8565b6121e39190613f46565b6121ed9190613f46565b81101561222f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222690614625565b60405180910390fd5b670de0b6b3a7640000816122439190613ed8565b6007819055507f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e60075460405161227a9190613b1c565b60405180910390a150565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600a5481565b600c5481565b61231b6125d7565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146123a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a090613d97565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240e906146b3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255c906142ba565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1647604051612589906146fe565b5f6040518083038185875af1925050503d805f81146125c3576040519150601f19603f3d011682016040523d82523d5f602084013e6125c8565b606091505b50508091505050565b600d5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361264c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264390614782565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b190614810565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516127949190613b1c565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361280f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128069061489e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361287d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128749061492c565b60405180910390fd5b5f81116128bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b690614994565b60405180910390fd5b600e5f9054906101000a900460ff1615612e54576128db611ab0565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156129495750612919611ab0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561298157505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156129bb575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612e5357600e60019054906101000a900460ff16612b245760135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612a6f575060135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612aae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa5906149fc565b60405180910390fd5b612ab6611ab0565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1a90614a64565b60405180910390fd5b5b60145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612bc1575060135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612c6857600654811115612c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0290614af2565b60405180910390fd5b600854612c178361147d565b82612c229190614004565b1115612c63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5a90614b5a565b60405180910390fd5b612e52565b60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612d05575060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612d5457600754811115612d4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4690614be8565b60405180910390fd5b612e51565b60135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015612df2575060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612e5057600854612e038361147d565b82612e0e9190614004565b1115612e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4690614b5a565b60405180910390fd5b5b5b5b5b5b5f612e5e3061147d565b90505f600a548210159050808015612e825750600e60029054906101000a900460ff165b8015612e9a575060095f9054906101000a900460ff16155b8015612eed575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612f40575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612f93575060125f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612fd457600160095f6101000a81548160ff021916908315150217905550612fba61320f565b5f60095f6101000a81548160ff0219169083151502179055505b5f6001905060125f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680613074575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b1561307d575f90505b5f5f90505f5f905082801561309357505f600c54115b80156130a05750600c5443115b156131fa5760145f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156130fc57505f601054115b1561313a576064601054876131119190613ed8565b61311b9190613f46565b91508160115f82825461312e9190614004565b925050819055506131cc565b60145f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561319157505f600f54115b156131cb576064600f54876131a69190613ed8565b6131b09190613f46565b91508160115f8282546131c39190614004565b925050819055505b5b5f8211156131e0576131df8830846133b9565b5b80826131ec9190614004565b866131f79190614c06565b95505b6132058888886133b9565b5050505050505050565b5f6132193061147d565b90505f60115490505f82148061322e57505f81145b1561323a57505061330f565b6005600a546132499190613ed8565b821115613262576005600a5461325f9190613ed8565b91505b5f61326c83613618565b5f6011819055505f4790505f81111561330a57600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516132c4906146fe565b5f6040518083038185875af1925050503d805f81146132fe576040519150601f19603f3d011682016040523d82523d5f602084013e613303565b606091505b5050809250505b505050505b565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555061336f828261384b565b8015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341e9061489e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613495576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348c9061492c565b60405180910390fd5b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015613518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350f90614ca9565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546135a69190614004565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161360a9190613b1c565b60405180910390a350505050565b5f600267ffffffffffffffff81111561363457613633614cc7565b5b6040519080825280602002602001820160405280156136625781602001602082028036833780820191505090505b50905030815f8151811061367957613678614cf4565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561371c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137409190614d35565b8160018151811061375457613753614cf4565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506137b9307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846125de565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b815260040161381a959493929190614e50565b5f604051808303815f87803b158015613831575f5ffd5b505af1158015613843573d5f5f3e3d5ffd5b505050505050565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd674682826040516138d0929190614ea8565b60405180910390a15050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61391e826138dc565b61392881856138e6565b93506139388185602086016138f6565b61394181613904565b840191505092915050565b5f6020820190508181035f8301526139648184613914565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61399982613970565b9050919050565b6139a98161398f565b81146139b3575f5ffd5b50565b5f813590506139c4816139a0565b92915050565b5f819050919050565b6139dc816139ca565b81146139e6575f5ffd5b50565b5f813590506139f7816139d3565b92915050565b5f5f60408385031215613a1357613a1261396c565b5b5f613a20858286016139b6565b9250506020613a31858286016139e9565b9150509250929050565b5f8115159050919050565b613a4f81613a3b565b82525050565b5f602082019050613a685f830184613a46565b92915050565b5f60208284031215613a8357613a8261396c565b5b5f613a90848285016139b6565b91505092915050565b5f819050919050565b5f613abc613ab7613ab284613970565b613a99565b613970565b9050919050565b5f613acd82613aa2565b9050919050565b5f613ade82613ac3565b9050919050565b613aee81613ad4565b82525050565b5f602082019050613b075f830184613ae5565b92915050565b613b16816139ca565b82525050565b5f602082019050613b2f5f830184613b0d565b92915050565b5f60208284031215613b4a57613b4961396c565b5b5f613b57848285016139e9565b91505092915050565b5f5f5f60608486031215613b7757613b7661396c565b5b5f613b84868287016139b6565b9350506020613b95868287016139b6565b9250506040613ba6868287016139e9565b9150509250925092565b5f60ff82169050919050565b613bc581613bb0565b82525050565b5f602082019050613bde5f830184613bbc565b92915050565b613bed8161398f565b82525050565b5f602082019050613c065f830184613be4565b92915050565b613c1581613a3b565b8114613c1f575f5ffd5b50565b5f81359050613c3081613c0c565b92915050565b5f5f60408385031215613c4c57613c4b61396c565b5b5f613c5985828601613c22565b9250506020613c6a858286016139e9565b9150509250929050565b5f5f60408385031215613c8a57613c8961396c565b5b5f613c97858286016139b6565b9250506020613ca885828601613c22565b9150509250929050565b5f5f60408385031215613cc857613cc761396c565b5b5f613cd5858286016139b6565b9250506020613ce6858286016139b6565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613d3457607f821691505b602082108103613d4757613d46613cf0565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613d816020836138e6565b9150613d8c82613d4d565b602082019050919050565b5f6020820190508181035f830152613dae81613d75565b9050919050565b7f46656573206d7573742062652031302520206f72206c657373000000000000005f82015250565b5f613de96019836138e6565b9150613df482613db5565b602082019050919050565b5f6020820190508181035f830152613e1681613ddd565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f613e776028836138e6565b9150613e8282613e1d565b604082019050919050565b5f6020820190508181035f830152613ea481613e6b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613ee2826139ca565b9150613eed836139ca565b9250828202613efb816139ca565b91508282048414831517613f1257613f11613eab565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613f50826139ca565b9150613f5b836139ca565b925082613f6b57613f6a613f19565b5b828204905092915050565b7f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572205f8201527f7468616e20302e31250000000000000000000000000000000000000000000000602082015250565b5f613fd06029836138e6565b9150613fdb82613f76565b604082019050919050565b5f6020820190508181035f830152613ffd81613fc4565b9050919050565b5f61400e826139ca565b9150614019836139ca565b925082820190508082111561403157614030613eab565b5b92915050565b7f43616e6e6f7420726520656e61626c652074726164696e6700000000000000005f82015250565b5f61406b6018836138e6565b915061407682614037565b602082019050919050565b5f6020820190508181035f8301526140988161405f565b9050919050565b5f6040820190506140b25f830185613a46565b6140bf6020830184613b0d565b9392505050565b7f5f54726561737572794164647265737320616464726573732063616e6e6f74205f8201527f6265203000000000000000000000000000000000000000000000000000000000602082015250565b5f6141206024836138e6565b915061412b826140c6565b604082019050919050565b5f6020820190508181035f83015261414d81614114565b9050919050565b7f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d205f8201527f6d61782074786e00000000000000000000000000000000000000000000000000602082015250565b5f6141ae6027836138e6565b91506141b982614154565b604082019050919050565b5f6020820190508181035f8301526141db816141a2565b9050919050565b7f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000005f82015250565b5f614216601a836138e6565b9150614221826141e2565b602082019050919050565b5f6020820190508181035f8301526142438161420a565b9050919050565b7f6f6e6c79205472656173757279416464726573732063616e20776974686472615f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f6142a46021836138e6565b91506142af8261424a565b604082019050919050565b5f6020820190508181035f8301526142d181614298565b9050919050565b5f815190506142e6816139d3565b92915050565b5f602082840312156143015761430061396c565b5b5f61430e848285016142d8565b91505092915050565b5f60408201905061432a5f830185613be4565b6143376020830184613b0d565b9392505050565b5f8151905061434c81613c0c565b92915050565b5f602082840312156143675761436661396c565b5b5f6143748482850161433e565b91505092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f6143d76039836138e6565b91506143e28261437d565b604082019050919050565b5f6020820190508181035f830152614404816143cb565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6144656025836138e6565b91506144708261440b565b604082019050919050565b5f6020820190508181035f83015261449281614459565b9050919050565b7f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f775f8201527f6572207468616e20302e33250000000000000000000000000000000000000000602082015250565b5f6144f3602c836138e6565b91506144fe82614499565b604082019050919050565b5f6020820190508181035f830152614520816144e7565b9050919050565b7f6f6e6c79205472656173757279416464726573732063616e206368616e6765205f8201527f737761705468726573686f6c6400000000000000000000000000000000000000602082015250565b5f614581602d836138e6565b915061458c82614527565b604082019050919050565b5f6020820190508181035f8301526145ae81614575565b9050919050565b7f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f7765725f8201527f207468616e20302e312500000000000000000000000000000000000000000000602082015250565b5f61460f602a836138e6565b915061461a826145b5565b604082019050919050565b5f6020820190508181035f83015261463c81614603565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61469d6026836138e6565b91506146a882614643565b604082019050919050565b5f6020820190508181035f8301526146ca81614691565b9050919050565b5f81905092915050565b50565b5f6146e95f836146d1565b91506146f4826146db565b5f82019050919050565b5f614708826146de565b9150819050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61476c6024836138e6565b915061477782614712565b604082019050919050565b5f6020820190508181035f83015261479981614760565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6147fa6022836138e6565b9150614805826147a0565b604082019050919050565b5f6020820190508181035f830152614827816147ee565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6148886025836138e6565b91506148938261482e565b604082019050919050565b5f6020820190508181035f8301526148b58161487c565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6149166023836138e6565b9150614921826148bc565b604082019050919050565b5f6020820190508181035f8301526149438161490a565b9050919050565b7f616d6f756e74206d7573742062652067726561746572207468616e20300000005f82015250565b5f61497e601d836138e6565b91506149898261494a565b602082019050919050565b5f6020820190508181035f8301526149ab81614972565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f6149e66016836138e6565b91506149f1826149b2565b602082019050919050565b5f6020820190508181035f830152614a13816149da565b9050919050565b7f54726164696e67206973206e6f7420656e61626c6564000000000000000000005f82015250565b5f614a4e6016836138e6565b9150614a5982614a1a565b602082019050919050565b5f6020820190508181035f830152614a7b81614a42565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d6178206275792e000000000000000000000000000000000000000000000000602082015250565b5f614adc6028836138e6565b9150614ae782614a82565b604082019050919050565b5f6020820190508181035f830152614b0981614ad0565b9050919050565b7f43616e6e6f7420457863656564206d61782077616c6c657400000000000000005f82015250565b5f614b446018836138e6565b9150614b4f82614b10565b602082019050919050565b5f6020820190508181035f830152614b7181614b38565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61782073656c6c2e00000000000000000000000000000000000000000000602082015250565b5f614bd2602a836138e6565b9150614bdd82614b78565b604082019050919050565b5f6020820190508181035f830152614bff81614bc6565b9050919050565b5f614c10826139ca565b9150614c1b836139ca565b9250828203905081811115614c3357614c32613eab565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f614c936026836138e6565b9150614c9e82614c39565b604082019050919050565b5f6020820190508181035f830152614cc081614c87565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050614d2f816139a0565b92915050565b5f60208284031215614d4a57614d4961396c565b5b5f614d5784828501614d21565b91505092915050565b5f819050919050565b5f614d83614d7e614d7984614d60565b613a99565b6139ca565b9050919050565b614d9381614d69565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614dcb8161398f565b82525050565b5f614ddc8383614dc2565b60208301905092915050565b5f602082019050919050565b5f614dfe82614d99565b614e088185614da3565b9350614e1383614db3565b805f5b83811015614e43578151614e2a8882614dd1565b9750614e3583614de8565b925050600181019050614e16565b5085935050505092915050565b5f60a082019050614e635f830188613b0d565b614e706020830187614d8a565b8181036040830152614e828186614df4565b9050614e916060830185613be4565b614e9e6080830184613b0d565b9695505050505050565b5f604082019050614ebb5f830185613be4565b614ec86020830184613a46565b939250505056fea2646970667358221220298d488a1a541d3f5dd6bcf374917288897183aa2e8ad9d987938eae399b6f7064736f6c634300081e0033
Verified Source Code Partial Match
Compiler: v0.8.30+commit.73712a01
EVM: prague
Optimization: No
datavault.sol 559 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
/*
X: https://x.com/datavaultdefi
Telegram: https://t.me/DataVaultEth
Site: www.meritdata.site
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this;
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 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
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;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
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 18;
}
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");
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);
}
function _createInitialSupply(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, 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);
}
}
contract Ownable is Context {
address private _owner;
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 renounceOwnership() external 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 IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
}
interface IDexFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract datavault is ERC20, Ownable {
uint256 public maxBuyAmount;
uint256 public maxSellAmount;
uint256 public maxWalletAmount;
IDexRouter public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
uint256 public swapTokensAtAmount;
address public TreasuryAddress;
uint256 public tradingActiveBlock = 0; // 0 means trading is not active
uint256 public deadBlocks = 1;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public buyFee;
uint256 public sellFee;
uint256 public tokensForTreasury;
// exlcude from fees and max transaction amount
mapping (address => bool) private _isExcludedFromFees;
mapping (address => bool) public _isExcludedMaxTransactionAmount;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping (address => bool) public automatedMarketMakerPairs;
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event EnabledTrading(bool tradingActive, uint256 deadBlocks);
event RemovedLimits();
event ExcludeFromFees(address indexed account, bool isExcluded);
event UpdatedMaxBuyAmount(uint256 newAmount);
event UpdatedMaxSellAmount(uint256 newAmount);
event UpdatedMaxWalletAmount(uint256 newAmount);
event UpdatedTreasuryAddress(address indexed newWallet);
event MaxTransactionExclusion(address _address, bool excluded);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
constructor() ERC20("DataVault", "DATA") {
address newOwner = msg.sender;
IDexRouter _uniswapV2Router = IDexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
_excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IDexFactory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 totalSupply = 10000000 * 1e18;
maxBuyAmount = totalSupply * 2 / 100;
maxSellAmount = totalSupply * 5 / 1000;
maxWalletAmount = totalSupply * 10 / 1000;
swapTokensAtAmount = totalSupply * 50 / 100000;
buyFee = 5;
sellFee = 5;
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
TreasuryAddress = address(0x27ce88fEF97E5f102dF868452069c1f64C78a784);
excludeFromFees(newOwner, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(TreasuryAddress, true);
_createInitialSupply(newOwner, totalSupply);
transferOwnership(newOwner);
}
receive() external payable {}
function updateMaxBuyAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set max buy amount lower than 0.1%");
maxBuyAmount = newNum * (10**18);
emit UpdatedMaxBuyAmount(maxBuyAmount);
}
function updateMaxSellAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set max sell amount lower than 0.1%");
maxSellAmount = newNum * (10**18);
emit UpdatedMaxSellAmount(maxSellAmount);
}
// remove limits after token is stable
function removeLimits() external onlyOwner {
limitsInEffect = false;
emit RemovedLimits();
}
function _excludeFromMaxTransaction(address updAds, bool isExcluded) private {
_isExcludedMaxTransactionAmount[updAds] = isExcluded;
emit MaxTransactionExclusion(updAds, isExcluded);
}
function excludeFromMaxTransaction(address updAds, bool isEx) external onlyOwner {
if(!isEx){
require(updAds != uniswapV2Pair, "Cannot remove uniswap pair from max txn");
}
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 3 / 1000)/1e18, "Cannot set max wallet amount lower than 0.3%");
maxWalletAmount = newNum * (10**18);
emit UpdatedMaxWalletAmount(maxWalletAmount);
}
function updateSwapThreshold(uint256 newAmount) public {
require(msg.sender==TreasuryAddress,"only TreasuryAddress can change swapThreshold");
swapTokensAtAmount = newAmount* (10**18);
}
function transferForeignToken(address _token, address _to) public returns (bool _sent) {
require(_token != address(0), "_token address cannot be 0");
require(msg.sender==TreasuryAddress,"only TreasuryAddress can withdraw");
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
_sent = IERC20(_token).transfer(_to, _contractBalance);
emit TransferForeignToken(_token, _contractBalance);
}
// withdraw ETH if stuck or someone sends to the address
function withdrawStuckETH() public {
bool success;
require(msg.sender==TreasuryAddress,"only TreasuryAddress can withdraw");
(success,) = address(msg.sender).call{value: address(this).balance}("");
}
function updateBuyFee(uint256 _fee) external onlyOwner {
buyFee = _fee;
require(buyFee <= 10, "Fees must be 10% or less");
}
function updateSellFee(uint256 _fee) external onlyOwner {
sellFee = _fee;
require(sellFee <= 10, "Fees must be 10% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function _transfer(address from, address to, uint256 amount) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "amount must be greater than 0");
if(limitsInEffect){
if (from != owner() && to != owner() && to != address(0) && to != address(0xdead)){
if(!tradingActive){
require(_isExcludedMaxTransactionAmount[from] || _isExcludedMaxTransactionAmount[to], "Trading is not active.");
require(from == owner(), "Trading is not enabled");
}
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
require(amount <= maxBuyAmount, "Buy transfer amount exceeds the max buy.");
require(amount + balanceOf(to) <= maxWalletAmount, "Cannot Exceed max wallet");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxSellAmount, "Sell transfer amount exceeds the max sell.");
}
else if (!_isExcludedMaxTransactionAmount[to] && !_isExcludedMaxTransactionAmount[from]){
require(amount + balanceOf(to) <= maxWalletAmount, "Cannot Exceed max wallet");
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if(canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = true;
// if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
uint256 penaltyAmount = 0;
// only take fees on Trades, not on wallet transfers
if(takeFee && tradingActiveBlock>0 && (block.number>tradingActiveBlock)) {
// on sell
if (automatedMarketMakerPairs[to] && sellFee > 0) {
fees = amount * sellFee / 100;
tokensForTreasury += fees;
}
// on buy
else if(automatedMarketMakerPairs[from] && buyFee > 0) {
fees = amount * buyFee / 100;
tokensForTreasury += fees;
}
if(fees > 0){
super._transfer(from, address(this), fees);
}
amount -= fees + penaltyAmount;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner {
require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
_excludeFromMaxTransaction(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
address(owner()),
block.timestamp
);
}
function setTreasuryAddress(address _TreasuryAddress) external onlyOwner {
require(_TreasuryAddress != address(0), "_TreasuryAddress address cannot be 0");
TreasuryAddress = payable(_TreasuryAddress);
emit UpdatedTreasuryAddress(_TreasuryAddress);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForTreasury;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 5){
contractBalance = swapTokensAtAmount * 5;
}
bool success;
swapTokensForEth(contractBalance);
tokensForTreasury = 0;
uint256 ethBalance=address(this).balance;
if(ethBalance>0){
(success,) = address(TreasuryAddress).call{value: address(this).balance}("");
}
}
function manualSwap() external {
require(_msgSender()==TreasuryAddress);
uint256 tokenBalance=balanceOf(address(this));
if(tokenBalance>0){
swapping = true;
swapBack();
swapping = false;
}
}
// once enabled, can never be turned off
function enableTrading(bool _status, uint256 _deadBlocks) external onlyOwner {
require(!tradingActive, "Cannot re enable trading");
tradingActive = _status;
swapEnabled = true;
emit EnabledTrading(tradingActive, _deadBlocks);
if (tradingActive && tradingActiveBlock == 0) {
tradingActiveBlock = block.number;
deadBlocks = _deadBlocks;
}
}
}
Read Contract
TreasuryAddress 0x5b5c251f → address
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
deadBlocks 0xfabb0b4f → uint256
decimals 0x313ce567 → uint8
limitsInEffect 0x4a62bb65 → bool
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForTreasury 0xcc2ffe7c → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 22 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
enableTrading 0x5e83ae76
bool _status
uint256 _deadBlocks
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwap 0x51bc3c85
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setTreasuryAddress 0x6605bfda
address _TreasuryAddress
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFee 0x467abe0a
uint256 _fee
updateMaxBuyAmount 0x2be32b61
uint256 newNum
updateMaxSellAmount 0xdc3f0d0f
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFee 0x1d933a4a
uint256 _fee
updateSwapThreshold 0xcc274b29
uint256 newAmount
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
No transactions found for this address