Address Contract Partially Verified
Address
0xA17b1712dBA02a7Ba477b5b161Cc526BEd404b66
Balance
0.345881 ETH
Nonce
1
Code Size
21617 bytes
Creator
0x93eaddf4...9F1c at tx 0x2afafa71...a635e9
Indexed Transactions
0
Contract Bytecode
21617 bytes
0x6080604052600436106103d25760003560e01c80637571336a116101fd578063a9059cbb11610118578063c8c8ebe4116100ab578063e2f456051161007a578063e2f4560514610e86578063e884f26014610eb1578063f2fde38b14610edc578063f319ae7714610f05578063f8b45b0514610f2e576103d9565b8063c8c8ebe414610db6578063d257b34f14610de1578063d85ba06314610e1e578063dd62ed3e14610e49576103d9565b8063c0246668116100e7578063c024666814610d10578063c18bc19514610d39578063c779c39114610d62578063c876d0b914610d8b576103d9565b8063a9059cbb14610c42578063aacebbe314610c7f578063b62496f514610ca8578063bbc0c74214610ce5576103d9565b806395d89b41116101905780639fccce321161015f5780639fccce3214610b84578063a0d82dc514610baf578063a457c2d714610bda578063a4c82a0014610c17576103d9565b806395d89b4114610ada5780639a7a23d614610b055780639c3b4fdc14610b2e5780639ec22c0e14610b59576103d9565b80638da5cb5b116101cc5780638da5cb5b14610a305780638ea5220f14610a5b5780639213691314610a86578063924de9b714610ab1576103d9565b80637571336a1461099a57806375f0a874146109c35780637bce5a04146109ee5780638a8c523c14610a19576103d9565b80632c3e486c116102ed57806351fb012d1161028057806370a082311161024f57806370a08231146108f2578063715018a61461092f578063730c188814610946578063751039fc1461096f576103d9565b806351fb012d1461084857806366ca9b83146108735780636a486a8e1461089c5780636ddd1713146108c7576103d9565b806349bd5a5e116102bc57806349bd5a5e1461078a5780634a62bb65146107b55780634b0c5451146107e05780634fbee1931461080b576103d9565b80632c3e486c146106cc5780632e82f1a0146106f7578063313ce56714610722578063395093511461074d576103d9565b80631816467f116103655780631f3fed8f116103345780631f3fed8f14610610578063203e727e1461063b57806323b872dd1461066457806327c8f835146106a1576103d9565b80631816467f14610554578063184c16c51461057d578063199ffc72146105a85780631e7be210146105d3576103d9565b80631006ee0c116103a15780631006ee0c1461049857806310d5de53146104c15780631694505e146104fe57806318160ddd14610529576103d9565b806301b38af5146103de57806302dbd8f81461040757806306fdde0314610430578063095ea7b31461045b576103d9565b366103d957005b600080fd5b3480156103ea57600080fd5b5061040560048036038101906104009190613c4e565b610f59565b005b34801561041357600080fd5b5061042e60048036038101906104299190613ce4565b611006565b005b34801561043c57600080fd5b5061044561107c565b6040516104529190613dbd565b60405180910390f35b34801561046757600080fd5b50610482600480360381019061047d9190613e3d565b61110e565b60405161048f9190613e8c565b60405180910390f35b3480156104a457600080fd5b506104bf60048036038101906104ba9190613ce4565b611131565b005b3480156104cd57600080fd5b506104e860048036038101906104e39190613ea7565b611203565b6040516104f59190613e8c565b60405180910390f35b34801561050a57600080fd5b50610513611223565b6040516105209190613f33565b60405180910390f35b34801561053557600080fd5b5061053e611247565b60405161054b9190613f5d565b60405180910390f35b34801561056057600080fd5b5061057b60048036038101906105769190613ea7565b611251565b005b34801561058957600080fd5b50610592611319565b60405161059f9190613f5d565b60405180910390f35b3480156105b457600080fd5b506105bd61131f565b6040516105ca9190613f5d565b60405180910390f35b3480156105df57600080fd5b506105fa60048036038101906105f59190613ea7565b611325565b6040516106079190613e8c565b60405180910390f35b34801561061c57600080fd5b50610625611345565b6040516106329190613f5d565b60405180910390f35b34801561064757600080fd5b50610662600480360381019061065d9190613f78565b61134b565b005b34801561067057600080fd5b5061068b60048036038101906106869190613fa5565b6113f0565b6040516106989190613e8c565b60405180910390f35b3480156106ad57600080fd5b506106b661141f565b6040516106c39190614007565b60405180910390f35b3480156106d857600080fd5b506106e1611425565b6040516106ee9190613f5d565b60405180910390f35b34801561070357600080fd5b5061070c61142b565b6040516107199190613e8c565b60405180910390f35b34801561072e57600080fd5b5061073761143e565b604051610744919061403e565b60405180910390f35b34801561075957600080fd5b50610774600480360381019061076f9190613e3d565b611447565b6040516107819190613e8c565b60405180910390f35b34801561079657600080fd5b5061079f61147e565b6040516107ac9190614007565b60405180910390f35b3480156107c157600080fd5b506107ca6114a2565b6040516107d79190613e8c565b60405180910390f35b3480156107ec57600080fd5b506107f56114b5565b6040516108029190613e8c565b60405180910390f35b34801561081757600080fd5b50610832600480360381019061082d9190613ea7565b6114cc565b60405161083f9190613e8c565b60405180910390f35b34801561085457600080fd5b5061085d611522565b60405161086a9190613e8c565b60405180910390f35b34801561087f57600080fd5b5061089a60048036038101906108959190613ce4565b611535565b005b3480156108a857600080fd5b506108b16115ab565b6040516108be9190613f5d565b60405180910390f35b3480156108d357600080fd5b506108dc6115b1565b6040516108e99190613e8c565b60405180910390f35b3480156108fe57600080fd5b5061091960048036038101906109149190613ea7565b6115c4565b6040516109269190613f5d565b60405180910390f35b34801561093b57600080fd5b5061094461160c565b005b34801561095257600080fd5b5061096d60048036038101906109689190614059565b611620565b005b34801561097b57600080fd5b506109846116ec565b6040516109919190613e8c565b60405180910390f35b3480156109a657600080fd5b506109c160048036038101906109bc91906140ac565b611718565b005b3480156109cf57600080fd5b506109d861177b565b6040516109e59190614007565b60405180910390f35b3480156109fa57600080fd5b50610a036117a1565b604051610a109190613f5d565b60405180910390f35b348015610a2557600080fd5b50610a2e6117a7565b005b348015610a3c57600080fd5b50610a456117ee565b604051610a529190614007565b60405180910390f35b348015610a6757600080fd5b50610a70611818565b604051610a7d9190614007565b60405180910390f35b348015610a9257600080fd5b50610a9b61183e565b604051610aa89190613f5d565b60405180910390f35b348015610abd57600080fd5b50610ad86004803603810190610ad391906140ec565b611844565b005b348015610ae657600080fd5b50610aef611869565b604051610afc9190613dbd565b60405180910390f35b348015610b1157600080fd5b50610b2c6004803603810190610b2791906140ac565b6118fb565b005b348015610b3a57600080fd5b50610b436119a0565b604051610b509190613f5d565b60405180910390f35b348015610b6557600080fd5b50610b6e6119a6565b604051610b7b9190613f5d565b60405180910390f35b348015610b9057600080fd5b50610b996119ac565b604051610ba69190613f5d565b60405180910390f35b348015610bbb57600080fd5b50610bc46119b2565b604051610bd19190613f5d565b60405180910390f35b348015610be657600080fd5b50610c016004803603810190610bfc9190613e3d565b6119b8565b604051610c0e9190613e8c565b60405180910390f35b348015610c2357600080fd5b50610c2c611a2f565b604051610c399190613f5d565b60405180910390f35b348015610c4e57600080fd5b50610c696004803603810190610c649190613e3d565b611a35565b604051610c769190613e8c565b60405180910390f35b348015610c8b57600080fd5b50610ca66004803603810190610ca19190613ea7565b611a58565b005b348015610cb457600080fd5b50610ccf6004803603810190610cca9190613ea7565b611b20565b604051610cdc9190613e8c565b60405180910390f35b348015610cf157600080fd5b50610cfa611b3f565b604051610d079190613e8c565b60405180910390f35b348015610d1c57600080fd5b50610d376004803603810190610d3291906140ac565b611b52565b005b348015610d4557600080fd5b50610d606004803603810190610d5b9190613f78565b611c03565b005b348015610d6e57600080fd5b50610d896004803603810190610d8491906140ec565b611ca8565b005b348015610d9757600080fd5b50610da0611ccd565b604051610dad9190613e8c565b60405180910390f35b348015610dc257600080fd5b50610dcb611ce0565b604051610dd89190613f5d565b60405180910390f35b348015610ded57600080fd5b50610e086004803603810190610e039190613f78565b611ce6565b604051610e159190613e8c565b60405180910390f35b348015610e2a57600080fd5b50610e33611dc7565b604051610e409190613f5d565b60405180910390f35b348015610e5557600080fd5b50610e706004803603810190610e6b9190614119565b611dcd565b604051610e7d9190613f5d565b60405180910390f35b348015610e9257600080fd5b50610e9b611e54565b604051610ea89190613f5d565b60405180910390f35b348015610ebd57600080fd5b50610ec6611e5a565b604051610ed39190613e8c565b60405180910390f35b348015610ee857600080fd5b50610f036004803603810190610efe9190613ea7565b611e86565b005b348015610f1157600080fd5b50610f2c6004803603810190610f279190613ce4565b611f0a565b005b348015610f3a57600080fd5b50610f43612045565b604051610f509190613f5d565b60405180910390f35b610f6161204b565b60005b838390508110156110005781601f6000868685818110610f8757610f86614159565b5b9050602002016020810190610f9c9190613ea7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610ff8906141b7565b915050610f64565b50505050565b61100e61204b565b816018819055508060198190555060195460185461102c9190614200565b60178190555060636017541115611078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106f906142a2565b60405180910390fd5b5050565b60606003805461108b906142f1565b80601f01602080910402602001604051908101604052809291908181526020018280546110b7906142f1565b80156111045780601f106110d957610100808354040283529160200191611104565b820191906000526020600020905b8154815290600101906020018083116110e757829003601f168201915b5050505050905090565b6000806111196120c9565b90506111268185856120d1565b600191505092915050565b61113961204b565b80601981905550816016819055506019546018546111579190614200565b60178190555060165460155461116d9190614200565b601481905550601960145411156111b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b09061436f565b60405180910390fd5b606360175411156111ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f6906142a2565b60405180910390fd5b5050565b601e6020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b61125961204b565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74360405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f5481565b600b5481565b601f6020528060005260406000206000915054906101000a900460ff1681565b601a5481565b61135361204b565b6009600a61136191906144c2565b6103e8600161136e611247565b611378919061450d565b6113829190614596565b61138c9190614596565b8110156113ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c590614639565b60405180910390fd5b6009600a6113dc91906144c2565b816113e7919061450d565b60088190555050565b6000806113fb6120c9565b905061140885828561229c565b611413858585612328565b60019150509392505050565b61dead81565b600d5481565b600c60009054906101000a900460ff1681565b60006009905090565b6000806114526120c9565b90506114738185856114648589611dcd565b61146e9190614200565b6120d1565b600191505092915050565b7f000000000000000000000000819cea6c1fdc97ba58809424d773e5bb3f9e6ad781565b601160009054906101000a900460ff1681565b6000601c60009054906101000a900460ff16905090565b6000601d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b601c60009054906101000a900460ff1681565b61153d61204b565b816015819055508060168190555060165460155461155b9190614200565b601481905550601960145411156115a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159e9061436f565b60405180910390fd5b5050565b60175481565b601160029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61161461204b565b61161e6000613150565b565b61162861204b565b61025883101561166d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611664906146cb565b60405180910390fd5b6103e88211158015611680575060008210155b6116bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b69061475d565b60405180910390fd5b82600d8190555081600b8190555080600c60006101000a81548160ff021916908315150217905550505050565b60006116f661204b565b6000601160006101000a81548160ff0219169083151502179055506001905090565b61172061204b565b80601e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60155481565b6117af61204b565b6001601160016101000a81548160ff0219169083151502179055506001601160026101000a81548160ff02191690831515021790555042600e81905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60185481565b61184c61204b565b80601160026101000a81548160ff02191690831515021790555050565b606060048054611878906142f1565b80601f01602080910402602001604051908101604052809291908181526020018280546118a4906142f1565b80156118f15780601f106118c6576101008083540402835291602001916118f1565b820191906000526020600020905b8154815290600101906020018083116118d457829003601f168201915b5050505050905090565b61190361204b565b7f000000000000000000000000819cea6c1fdc97ba58809424d773e5bb3f9e6ad773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611992576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611989906147ef565b60405180910390fd5b61199c8282613216565b5050565b60165481565b60105481565b601b5481565b60195481565b6000806119c36120c9565b905060006119d18286611dcd565b905083811015611a16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0d90614881565b60405180910390fd5b611a2382868684036120d1565b60019250505092915050565b600e5481565b600080611a406120c9565b9050611a4d818585612328565b600191505092915050565b611a6061204b565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567460405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b602080528060005260406000206000915054906101000a900460ff1681565b601160019054906101000a900460ff1681565b611b5a61204b565b80601d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611bf79190613e8c565b60405180910390a25050565b611c0b61204b565b6009600a611c1991906144c2565b6103e86005611c26611247565b611c30919061450d565b611c3a9190614596565b611c449190614596565b811015611c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7d90614913565b60405180910390fd5b6009600a611c9491906144c2565b81611c9f919061450d565b600a8190555050565b611cb061204b565b80601c60006101000a81548160ff02191690831515021790555050565b601360009054906101000a900460ff1681565b60085481565b6000611cf061204b565b620186a06001611cfe611247565b611d08919061450d565b611d129190614596565b821015611d54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4b906149a5565b60405180910390fd5b6103e8600a611d61611247565b611d6b919061450d565b611d759190614596565b821115611db7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dae90614a37565b60405180910390fd5b8160098190555060019050919050565b60145481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60095481565b6000611e6461204b565b6000601360006101000a81548160ff0219169083151502179055506001905090565b611e8e61204b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611efe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef590614ac9565b60405180910390fd5b611f0781613150565b50565b611f1261204b565b6009600a611f2091906144c2565b6103e86001611f2d611247565b611f37919061450d565b611f419190614596565b611f4b9190614596565b821015611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8490614639565b60405180910390fd5b6009600a611f9b91906144c2565b82611fa6919061450d565b600881905550670de0b6b3a76400006103e86005611fc2611247565b611fcc919061450d565b611fd69190614596565b611fe09190614596565b811015612022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201990614913565b60405180910390fd5b6009600a61203091906144c2565b8161203b919061450d565b600a819055505050565b600a5481565b6120536120c9565b73ffffffffffffffffffffffffffffffffffffffff166120716117ee565b73ffffffffffffffffffffffffffffffffffffffff16146120c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120be90614b35565b60405180910390fd5b565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612141576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213890614bc7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a890614c59565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161228f9190613f5d565b60405180910390a3505050565b60006122a88484611dcd565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146123225781811015612314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230b90614cc5565b60405180910390fd5b61232184848484036120d1565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238f90614d57565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612408576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ff90614de9565b60405180910390fd5b601c60009054906101000a900460ff16156124fe57601f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806124be5750601f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6124fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f490614e55565b60405180910390fd5b5b600081141561251857612513838360006132b7565b61314b565b601160009054906101000a900460ff1615612bdb576125356117ee565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156125a357506125736117ee565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125dc5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612616575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561262f5750600560149054906101000a900460ff16155b15612bda57601160019054906101000a900460ff1661272957601d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806126e95750601d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271f90614ec1565b60405180910390fd5b5b601360009054906101000a900460ff16156128f1576127466117ee565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156127cd57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561282557507f000000000000000000000000819cea6c1fdc97ba58809424d773e5bb3f9e6ad773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156128f05743601260003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106128ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a290614f79565b60405180910390fd5b43601260003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5b602060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156129945750601e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612a3b576008548111156129de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d59061500b565b60405180910390fd5b600a546129ea836115c4565b826129f59190614200565b1115612a36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2d90615077565b60405180910390fd5b612bd9565b602060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612ade5750601e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612b2d57600854811115612b28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1f90615109565b60405180910390fd5b612bd8565b601e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612bd757600a54612b8a836115c4565b82612b959190614200565b1115612bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bcd90615077565b60405180910390fd5b5b5b5b5b5b6000612be6306115c4565b905060006009548210159050808015612c0b5750601160029054906101000a900460ff165b8015612c245750600560149054906101000a900460ff16155b8015612c7a5750602060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612cd05750601d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612d265750601d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612d6a576001600560146101000a81548160ff021916908315150217905550612d4e61352f565b6000600560146101000a81548160ff0219169083151502179055505b600560149054906101000a900460ff16158015612dd05750602060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b8015612de85750600c60009054906101000a900460ff165b8015612e035750600d54600e54612dff9190614200565b4210155b8015612e595750601d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612e6857612e66613758565b505b6000600560149054906101000a900460ff16159050601d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612f1e5750601d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612f2857600090505b6000811561313b57602060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612f8b57506000601754115b1561302557612fb86064612faa6017548861391e90919063ffffffff16565b61393490919063ffffffff16565b905060175460195482612fcb919061450d565b612fd59190614596565b601b6000828254612fe69190614200565b9250508190555060175460185482612ffe919061450d565b6130089190614596565b601a60008282546130199190614200565b92505081905550613117565b602060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561308057506000601454115b15613116576130ad606461309f6014548861391e90919063ffffffff16565b61393490919063ffffffff16565b9050601454601654826130c0919061450d565b6130ca9190614596565b601b60008282546130db9190614200565b92505081905550601454601554826130f3919061450d565b6130fd9190614596565b601a600082825461310e9190614200565b925050819055505b5b600081111561312c5761312b8730836132b7565b5b80856131389190615129565b94505b6131468787876132b7565b505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80602060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331e90614d57565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338e90614de9565b60405180910390fd5b6133a283838361394a565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341f906151cf565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516135169190613f5d565b60405180910390a361352984848461394f565b50505050565b600061353a306115c4565b90506000601b54601a5461354e9190614200565b90506000808314806135605750600082145b1561356d57505050613756565b601460095461357c919061450d565b831115613595576014600954613592919061450d565b92505b600083905060004790506135a882613954565b60006135bd8247613b9190919063ffffffff16565b905060006135e8866135da601a548561391e90919063ffffffff16565b61393490919063ffffffff16565b9050600061361387613605601b548661391e90919063ffffffff16565b61393490919063ffffffff16565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161365b90615220565b60006040518083038185875af1925050503d8060008114613698576040519150601f19603f3d011682016040523d82523d6000602084013e61369d565b606091505b5050809650506000601a54111561373d57600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516136f490615220565b60006040518083038185875af1925050503d8060008114613731576040519150601f19603f3d011682016040523d82523d6000602084013e613736565b606091505b5050809650505b6000601a819055506000601b8190555050505050505050505b565b600042600e8190555060003073ffffffffffffffffffffffffffffffffffffffff166370a082317f000000000000000000000000819cea6c1fdc97ba58809424d773e5bb3f9e6ad76040518263ffffffff1660e01b81526004016137bc9190614007565b602060405180830381865afa1580156137d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137fd919061524a565b9050600061382a61271061381c600b548561391e90919063ffffffff16565b61393490919063ffffffff16565b90506000811115613863576138627f000000000000000000000000819cea6c1fdc97ba58809424d773e5bb3f9e6ad761dead836132b7565b5b60007f000000000000000000000000819cea6c1fdc97ba58809424d773e5bb3f9e6ad790508073ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156138d057600080fd5b505af11580156138e4573d6000803e3d6000fd5b505050507f454c91ae84fcc766ddda0dcb289f26b3d0176efeacf4061fc219fa6ca8c3048d60405160405180910390a16001935050505090565b6000818361392c919061450d565b905092915050565b600081836139429190614596565b905092915050565b505050565b505050565b6000600267ffffffffffffffff81111561397157613970615277565b5b60405190808252806020026020018201604052801561399f5781602001602082028036833780820191505090505b50905030816000815181106139b7576139b6614159565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a8091906152bb565b81600181518110613a9457613a93614159565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613af9307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846120d1565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613b5b9594939291906153e1565b600060405180830381600087803b158015613b7557600080fd5b505af1158015613b89573d6000803e3d6000fd5b505050505050565b60008183613b9f9190615129565b905092915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112613bd657613bd5613bb1565b5b8235905067ffffffffffffffff811115613bf357613bf2613bb6565b5b602083019150836020820283011115613c0f57613c0e613bbb565b5b9250929050565b60008115159050919050565b613c2b81613c16565b8114613c3657600080fd5b50565b600081359050613c4881613c22565b92915050565b600080600060408486031215613c6757613c66613ba7565b5b600084013567ffffffffffffffff811115613c8557613c84613bac565b5b613c9186828701613bc0565b93509350506020613ca486828701613c39565b9150509250925092565b6000819050919050565b613cc181613cae565b8114613ccc57600080fd5b50565b600081359050613cde81613cb8565b92915050565b60008060408385031215613cfb57613cfa613ba7565b5b6000613d0985828601613ccf565b9250506020613d1a85828601613ccf565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d5e578082015181840152602081019050613d43565b83811115613d6d576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d8f82613d24565b613d998185613d2f565b9350613da9818560208601613d40565b613db281613d73565b840191505092915050565b60006020820190508181036000830152613dd78184613d84565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e0a82613ddf565b9050919050565b613e1a81613dff565b8114613e2557600080fd5b50565b600081359050613e3781613e11565b92915050565b60008060408385031215613e5457613e53613ba7565b5b6000613e6285828601613e28565b9250506020613e7385828601613ccf565b9150509250929050565b613e8681613c16565b82525050565b6000602082019050613ea16000830184613e7d565b92915050565b600060208284031215613ebd57613ebc613ba7565b5b6000613ecb84828501613e28565b91505092915050565b6000819050919050565b6000613ef9613ef4613eef84613ddf565b613ed4565b613ddf565b9050919050565b6000613f0b82613ede565b9050919050565b6000613f1d82613f00565b9050919050565b613f2d81613f12565b82525050565b6000602082019050613f486000830184613f24565b92915050565b613f5781613cae565b82525050565b6000602082019050613f726000830184613f4e565b92915050565b600060208284031215613f8e57613f8d613ba7565b5b6000613f9c84828501613ccf565b91505092915050565b600080600060608486031215613fbe57613fbd613ba7565b5b6000613fcc86828701613e28565b9350506020613fdd86828701613e28565b9250506040613fee86828701613ccf565b9150509250925092565b61400181613dff565b82525050565b600060208201905061401c6000830184613ff8565b92915050565b600060ff82169050919050565b61403881614022565b82525050565b6000602082019050614053600083018461402f565b92915050565b60008060006060848603121561407257614071613ba7565b5b600061408086828701613ccf565b935050602061409186828701613ccf565b92505060406140a286828701613c39565b9150509250925092565b600080604083850312156140c3576140c2613ba7565b5b60006140d185828601613e28565b92505060206140e285828601613c39565b9150509250929050565b60006020828403121561410257614101613ba7565b5b600061411084828501613c39565b91505092915050565b600080604083850312156141305761412f613ba7565b5b600061413e85828601613e28565b925050602061414f85828601613e28565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141c282613cae565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141f5576141f4614188565b5b600182019050919050565b600061420b82613cae565b915061421683613cae565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561424b5761424a614188565b5b828201905092915050565b7f4d757374206b656570206665657320617420393925206f72206c657373000000600082015250565b600061428c601d83613d2f565b915061429782614256565b602082019050919050565b600060208201905081810360008301526142bb8161427f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061430957607f821691505b6020821081141561431d5761431c6142c2565b5b50919050565b7f4d757374206b656570206665657320617420323525206f72206c657373000000600082015250565b6000614359601d83613d2f565b915061436482614323565b602082019050919050565b600060208201905081810360008301526143888161434c565b9050919050565b60008160011c9050919050565b6000808291508390505b60018511156143e6578086048111156143c2576143c1614188565b5b60018516156143d15780820291505b80810290506143df8561438f565b94506143a6565b94509492505050565b6000826143ff57600190506144bb565b8161440d57600090506144bb565b8160018114614423576002811461442d5761445c565b60019150506144bb565b60ff84111561443f5761443e614188565b5b8360020a91508482111561445657614455614188565b5b506144bb565b5060208310610133831016604e8410600b84101617156144915782820a90508381111561448c5761448b614188565b5b6144bb565b61449e848484600161439c565b925090508184048111156144b5576144b4614188565b5b81810290505b9392505050565b60006144cd82613cae565b91506144d883614022565b92506145057fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846143ef565b905092915050565b600061451882613cae565b915061452383613cae565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561455c5761455b614188565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006145a182613cae565b91506145ac83613cae565b9250826145bc576145bb614567565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060008201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b6000614623602f83613d2f565b915061462e826145c7565b604082019050919050565b6000602082019050818103600083015261465281614616565b9050919050565b7f63616e6e6f7420736574206275796261636b206d6f7265206f6674656e20746860008201527f616e206576657279203130206d696e7574657300000000000000000000000000602082015250565b60006146b5603383613d2f565b91506146c082614659565b604082019050919050565b600060208201905081810360008301526146e4816146a8565b9050919050565b7f4d75737420736574206175746f204c50206275726e2070657263656e7420626560008201527f747765656e20302520616e642031302500000000000000000000000000000000602082015250565b6000614747603083613d2f565b9150614752826146eb565b604082019050919050565b600060208201905081810360008301526147768161473a565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006147d9603983613d2f565b91506147e48261477d565b604082019050919050565b60006020820190508181036000830152614808816147cc565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b600061486b602583613d2f565b91506148768261480f565b604082019050919050565b6000602082019050818103600083015261489a8161485e565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b60006148fd602483613d2f565b9150614908826148a1565b604082019050919050565b6000602082019050818103600083015261492c816148f0565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b600061498f603583613d2f565b915061499a82614933565b604082019050919050565b600060208201905081810360008301526149be81614982565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20312520746f74616c20737570706c792e0000000000000000000000000000602082015250565b6000614a21603283613d2f565b9150614a2c826149c5565b604082019050919050565b60006020820190508181036000830152614a5081614a14565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ab3602683613d2f565b9150614abe82614a57565b604082019050919050565b60006020820190508181036000830152614ae281614aa6565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b1f602083613d2f565b9150614b2a82614ae9565b602082019050919050565b60006020820190508181036000830152614b4e81614b12565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614bb1602483613d2f565b9150614bbc82614b55565b604082019050919050565b60006020820190508181036000830152614be081614ba4565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614c43602283613d2f565b9150614c4e82614be7565b604082019050919050565b60006020820190508181036000830152614c7281614c36565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000614caf601d83613d2f565b9150614cba82614c79565b602082019050919050565b60006020820190508181036000830152614cde81614ca2565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614d41602583613d2f565b9150614d4c82614ce5565b604082019050919050565b60006020820190508181036000830152614d7081614d34565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614dd3602383613d2f565b9150614dde82614d77565b604082019050919050565b60006020820190508181036000830152614e0281614dc6565b9050919050565b7f52656a6563746564000000000000000000000000000000000000000000000000600082015250565b6000614e3f600883613d2f565b9150614e4a82614e09565b602082019050919050565b60006020820190508181036000830152614e6e81614e32565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b6000614eab601683613d2f565b9150614eb682614e75565b602082019050919050565b60006020820190508181036000830152614eda81614e9e565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60008201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b6000614f63604983613d2f565b9150614f6e82614ee1565b606082019050919050565b60006020820190508181036000830152614f9281614f56565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b6000614ff5603583613d2f565b915061500082614f99565b604082019050919050565b6000602082019050818103600083015261502481614fe8565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b6000615061601383613d2f565b915061506c8261502b565b602082019050919050565b6000602082019050818103600083015261509081615054565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b60006150f3603683613d2f565b91506150fe82615097565b604082019050919050565b60006020820190508181036000830152615122816150e6565b9050919050565b600061513482613cae565b915061513f83613cae565b92508282101561515257615151614188565b5b828203905092915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006151b9602683613d2f565b91506151c48261515d565b604082019050919050565b600060208201905081810360008301526151e8816151ac565b9050919050565b600081905092915050565b50565b600061520a6000836151ef565b9150615215826151fa565b600082019050919050565b600061522b826151fd565b9150819050919050565b60008151905061524481613cb8565b92915050565b6000602082840312156152605761525f613ba7565b5b600061526e84828501615235565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000815190506152b581613e11565b92915050565b6000602082840312156152d1576152d0613ba7565b5b60006152df848285016152a6565b91505092915050565b6000819050919050565b600061530d615308615303846152e8565b613ed4565b613cae565b9050919050565b61531d816152f2565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61535881613dff565b82525050565b600061536a838361534f565b60208301905092915050565b6000602082019050919050565b600061538e82615323565b615398818561532e565b93506153a38361533f565b8060005b838110156153d45781516153bb888261535e565b97506153c683615376565b9250506001810190506153a7565b5085935050505092915050565b600060a0820190506153f66000830188613f4e565b6154036020830187615314565b81810360408301526154158186615383565b90506154246060830185613ff8565b6154316080830184613f4e565b969550505050505056fea2646970667358221220f20a989b58ae1a1d032c34a9e06bbce5b51f97f92ec06df21b01f5ce70c1b11064736f6c634300080a0033
Verified Source Code Partial Match
Compiler: v0.8.10+commit.fc410830
EVM: london
Optimization: No
Axe.sol 1634 lines
/*
************,,,,,,,,,,,,,,,,,,,,,,,.................................
************,,,,,,,,,,,,,,,,,,,,,,,.................................
************,,,,,,,,,,,,,,,,,,,,,,,...&@@@..........................
************,,,,,,,,,,,,,,,,,,,,,,,..#@@@@@.........................
************,,,,,,,,,,,,,,,,,,,,,,,.*@@@@@@@........................
************,,,,,,,,,,,,,,,,,,,,,,,,@@@..@@@@.......................
************,,,,,,,,,,,,,,,,,,,,,,,@@@....@@@@......................
************,,,,,,,,,,,,,,,,,,,,,,@@@......@@@@.....................
************,,,,,,,,,,,,,,,,,,,,,@@@........@@@@....................
************,,,,,,,,,,,,,,,,,,,,@@@,.........@@@@...................
************,,,,,,,,,,,,,,,,,,,@@@*...........@@@&..................
************,,,,,,,,,,,,,,,,,,@@@(,............@@@#.................
************,,,,,,,,,,,,,,,,,@@@%,,.............@@@(................
************,,,,,,,,,,,,,,,,@@@@,,,..............@@@/...............
************,,,,,,,,,,,,,,,@@@@,,,,...............@@@/..............
************,,,,,,,,,,,,,,@@@@,,,,,................@@@*.............
************,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,............
************,,,,,,,,,,,,%@@@,,,,,,,..................@@@............
************,,,,,,,,,,,(@@@,,,,,,,,...................@@@...........
************,,,,,,,,,,*@@@,,,,,,,,,....................@@@..........
************,,,,,,,,,,@@@,,,,,,,,,,.....................@@@.........
************,,,,,,,,,@@@,,,,,,,,,,,......................@@@........
************,,,,,,,,,%@,,,,,,,,,,,,.................................
************,,,,,,,,,,,,,,,,,,,,,,,.................................
************,,,,,,,,,,,,,,,,,,,,,,,.................................
*/
// SPDX-License-Identifier: MIT
/**
Website: https://axecapital.pro/
Twitter: https://twitter.com/coinaxecapital
Telegram: https://t.me/+TR-DjyYpFwkzZjEy
*/
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File: @openzeppelin/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 9;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
pragma solidity 0.8.10;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint 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 (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint 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 (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
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 (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
/**
* @dev Division of two int256 variables and fails on overflow.
*/
function div(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
/**
* @dev Subtracts two int256 variables and fails on overflow.
*/
function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
/**
* @dev Adds two int256 variables and fails on overflow.
*/
function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
/**
* @dev Converts to absolute value, and fails on overflow.
*/
function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
function toUint256Safe(int256 a) internal pure returns (uint256) {
require(a >= 0);
return uint256(a);
}
}
library SafeMathUint {
function toInt256Safe(uint256 a) internal pure returns (int256) {
int256 b = int256(a);
require(b >= 0);
return b;
}
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract Axe is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
uint256 public percentForLPBurn = 1; // 25 = .25%
bool public lpBurnEnabled = false;
uint256 public lpBurnFrequency = 1360000000000 seconds;
uint256 public lastLpBurnTime;
uint256 public manualBurnFrequency = 43210 minutes;
uint256 public lastManualLpBurnTime;
bool public limitsInEffect = true;
bool public tradingActive = true; // go live after adding LP
bool public swapEnabled = true;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
bool public transferDelayEnabled = true;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyDevFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellDevFee;
uint256 public tokensForMarketing;
uint256 public tokensForDev;
bool public whitelistEnabled = false;
/******************/
// exlcude from fees and max transaction amount
mapping (address => bool) private _isExcludedFromFees;
mapping (address => bool) public _isExcludedMaxTransactionAmount;
// whitelist
mapping(address => bool) public whitelists;
// 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 UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event marketingWalletUpdated(address indexed newWallet, address indexed oldWallet);
event devWalletUpdated(address indexed newWallet, address indexed oldWallet);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived
);
event AutoNukeLP();
event ManualNukeLP();
uint8 private constant _decimals = 9;
constructor() ERC20("Axe", "AXE") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 0;
uint256 _buyDevFee = 1;
uint256 _sellMarketingFee = 0;
uint256 _sellDevFee = 1;
uint256 totalSupply = 100000000 * 10 ** _decimals;
// Maximum tx size and wallet size
maxTransactionAmount = totalSupply * 55 / 10000;
maxWallet = totalSupply * 55 / 10000;
swapTokensAtAmount = totalSupply * 1 / 10000;
buyMarketingFee = _buyMarketingFee;
buyDevFee = _buyDevFee;
buyTotalFees = buyMarketingFee + buyDevFee;
sellMarketingFee = _sellMarketingFee;
sellDevFee = _sellDevFee;
sellTotalFees = sellMarketingFee + sellDevFee;
marketingWallet = address(owner()); // set as marketing wallet
devWallet = address(owner()); // set as dev wallet
// 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 is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(msg.sender, totalSupply);
}
receive() external payable {
}
function whitelist(address[] calldata _addresses, bool _isWhitelisting) external onlyOwner {
for (uint i=0; i<_addresses.length; i++) {
whitelists[_addresses[i]] = _isWhitelisting;
}
}
function updateWhitelistEnabled(bool _isWhitelisting) external onlyOwner {
whitelistEnabled = _isWhitelisting;
}
function isWhitetlistEnabled() public view returns (bool) {
return whitelistEnabled;
}
// once enabled, can never be turned off
function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
lastLpBurnTime = block.timestamp;
}
// remove limits after token is stable
function removeLimits() external onlyOwner returns (bool){
limitsInEffect = false;
return true;
}
// disable Transfer delay - cannot be reenabled
function disableTransferDelay() external onlyOwner returns (bool){
transferDelayEnabled = false;
return true;
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= totalSupply() * 10 / 1000, "Swap amount cannot be higher than 1% total supply.");
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxLimits(uint256 maxPerTx, uint256 maxPerWallet) external onlyOwner {
require(maxPerTx >= (totalSupply() * 1 / 1000)/10**_decimals, "Cannot set maxTransactionAmount lower than 0.1%");
maxTransactionAmount = maxPerTx * (10**_decimals);
require(maxPerWallet >= (totalSupply() * 5 / 1000)/1e18, "Cannot set maxWallet lower than 0.5%");
maxWallet = maxPerWallet * (10**_decimals);
}
function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 1000)/10**_decimals, "Cannot set maxTransactionAmount lower than 0.1%");
maxTransactionAmount = newNum * (10**_decimals);
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 5 / 1000)/10**_decimals, "Cannot set maxWallet lower than 0.5%");
maxWallet = newNum * (10**_decimals);
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool enabled) external onlyOwner(){
swapEnabled = enabled;
}
function updateBuyFees(uint256 _marketingFee, uint256 _devFee) external onlyOwner {
buyMarketingFee = _marketingFee;
buyDevFee = _devFee;
buyTotalFees = buyMarketingFee + buyDevFee;
require(buyTotalFees <= 25, "Must keep fees at 25% or less");
}
function updateSellFees(uint256 _marketingFee, uint256 _devFee) external onlyOwner {
sellMarketingFee = _marketingFee;
sellDevFee = _devFee;
sellTotalFees = sellMarketingFee + sellDevFee;
require(sellTotalFees <= 99, "Must keep fees at 99% or less");
}
function updateTaxes (uint256 buy, uint256 sell) external onlyOwner {
sellDevFee = sell;
buyDevFee = buy;
sellTotalFees = sellMarketingFee + sellDevFee;
buyTotalFees = buyMarketingFee + buyDevFee;
require(buyTotalFees <= 25, "Must keep fees at 25% or less");
require(sellTotalFees <= 99, "Must keep fees at 99% or less");
}
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 updateMarketingWallet(address newMarketingWallet) external onlyOwner {
emit marketingWalletUpdated(newMarketingWallet, marketingWallet);
marketingWallet = newMarketingWallet;
}
function updateDevWallet(address newWallet) external onlyOwner {
emit devWalletUpdated(newWallet, devWallet);
devWallet = newWallet;
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
event BoughtEarly(address indexed sniper);
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 (whitelistEnabled)
require(whitelists[to] || whitelists[from], "Rejected");
if(amount == 0) {
super._transfer(from, to, 0);
return;
}
...
// [truncated — 57432 bytes total]
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
isWhitetlistEnabled 0x4b0c5451 → bool
lastLpBurnTime 0xa4c82a00 → uint256
lastManualLpBurnTime 0x9ec22c0e → uint256
limitsInEffect 0x4a62bb65 → bool
lpBurnEnabled 0x2e82f1a0 → bool
lpBurnFrequency 0x2c3e486c → uint256
manualBurnFrequency 0x184c16c5 → uint256
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
percentForLPBurn 0x199ffc72 → uint256
sellDevFee 0xa0d82dc5 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
whitelistEnabled 0x51fb012d → bool
whitelists 0x1e7be210 → bool
Write Contract 26 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
disableTransferDelay 0xe884f260
No parameters
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutoLPBurnSettings 0x730c1888
uint256 _frequencyInSeconds
uint256 _percent
bool _Enabled
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x66ca9b83
uint256 _marketingFee
uint256 _devFee
updateDevWallet 0x1816467f
address newWallet
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateMaxLimits 0xf319ae77
uint256 maxPerTx
uint256 maxPerWallet
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0x02dbd8f8
uint256 _marketingFee
uint256 _devFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updateTaxes 0x1006ee0c
uint256 buy
uint256 sell
updateWhitelistEnabled 0xc779c391
bool _isWhitelisting
whitelist 0x01b38af5
address[] _addresses
bool _isWhitelisting
Recent Transactions
No transactions found for this address