Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0x5a1B2bc070C62D9FD3C1c7A3e57B409C390DdB97
Balance 0 ETH
Nonce 1
Code Size 15912 bytes
Indexed Transactions 0 (1 on-chain, 1.6% indexed)
External Etherscan · Sourcify

Contract Bytecode

15912 bytes
Copy Bytecode
0x60806040526004361061028b575f3560e01c8063751039fc11610159578063c17b5b8c116100c0578063e2f4560511610079578063e2f45605146109a6578063efdee94f146109d0578063f11a24d3146109fa578063f2fde38b14610a24578063f637434214610a4c578063f8b45b0514610a7657610292565b8063c17b5b8c1461088a578063c18bc195146108b2578063c8c8ebe4146108da578063d257b34f14610904578063d85ba06314610940578063dd62ed3e1461096a57610292565b8063924de9b711610112578063924de9b71461078257806395d89b41146107aa578063a9059cbb146107d4578063aacebbe314610810578063bbc0c74214610838578063c02466681461086257610292565b8063751039fc1461069e5780637571336a146106c85780638095d564146106f05780638322fff2146107185780638a8c523c146107425780638da5cb5b1461075857610292565b8063313ce567116101fd5780634fbee193116101b65780634fbee1931461059257806365c1bef8146105ce5780636a486a8e146105f85780636ddd17131461062257806370a082311461064c578063715018a61461068857610292565b8063313ce567146104965780634853e7d9146104c0578063489ae78d146104ea57806348c492d61461051457806349bd5a5e1461053e5780634a62bb651461056857610292565b806318160ddd1161024f57806318160ddd1461038c5780631816467f146103b6578063203e727e146103de57806323b872dd14610406578063274a533c1461044257806327c8f8351461046c57610292565b806303fc20131461029657806306fdde03146102c0578063095ea7b3146102ea57806310d5de53146103265780631694505e1461036257610292565b3661029257005b5f5ffd5b3480156102a1575f5ffd5b506102aa610aa0565b6040516102b79190612e68565b60405180910390f35b3480156102cb575f5ffd5b506102d4610ac5565b6040516102e19190612ef1565b60405180910390f35b3480156102f5575f5ffd5b50610310600480360381019061030b9190612f72565b610b55565b60405161031d9190612fca565b60405180910390f35b348015610331575f5ffd5b5061034c60048036038101906103479190612fe3565b610b72565b6040516103599190612fca565b60405180910390f35b34801561036d575f5ffd5b50610376610b8f565b6040516103839190613069565b60405180910390f35b348015610397575f5ffd5b506103a0610bb3565b6040516103ad9190613091565b60405180910390f35b3480156103c1575f5ffd5b506103dc60048036038101906103d79190612fe3565b610bbc565b005b3480156103e9575f5ffd5b5061040460048036038101906103ff91906130aa565b610cf6565b005b348015610411575f5ffd5b5061042c600480360381019061042791906130d5565b610e05565b6040516104399190612fca565b60405180910390f35b34801561044d575f5ffd5b50610456610ef7565b6040516104639190613091565b60405180910390f35b348015610477575f5ffd5b50610480610efd565b60405161048d9190612e68565b60405180910390f35b3480156104a1575f5ffd5b506104aa610f03565b6040516104b79190613140565b60405180910390f35b3480156104cb575f5ffd5b506104d4610f0b565b6040516104e19190613091565b60405180910390f35b3480156104f5575f5ffd5b506104fe610f11565b60405161050b9190613091565b60405180910390f35b34801561051f575f5ffd5b50610528610f17565b6040516105359190613091565b60405180910390f35b348015610549575f5ffd5b50610552610f1d565b60405161055f9190612e68565b60405180910390f35b348015610573575f5ffd5b5061057c610f41565b6040516105899190612fca565b60405180910390f35b34801561059d575f5ffd5b506105b860048036038101906105b39190612fe3565b610f53565b6040516105c59190612fca565b60405180910390f35b3480156105d9575f5ffd5b506105e2610fa5565b6040516105ef9190613091565b60405180910390f35b348015610603575f5ffd5b5061060c610fab565b6040516106199190613091565b60405180910390f35b34801561062d575f5ffd5b50610636610fb1565b6040516106439190612fca565b60405180910390f35b348015610657575f5ffd5b50610672600480360381019061066d9190612fe3565b610fc4565b60405161067f9190613091565b60405180910390f35b348015610693575f5ffd5b5061069c611009565b005b3480156106a9575f5ffd5b506106b2611090565b6040516106bf9190612fca565b60405180910390f35b3480156106d3575f5ffd5b506106ee60048036038101906106e99190613183565b61112d565b005b3480156106fb575f5ffd5b50610716600480360381019061071191906131c1565b611201565b005b348015610723575f5ffd5b5061072c611300565b6040516107399190612e68565b60405180910390f35b34801561074d575f5ffd5b50610756611325565b005b348015610763575f5ffd5b5061076c6113d9565b6040516107799190612e68565b60405180910390f35b34801561078d575f5ffd5b506107a860048036038101906107a39190613211565b611401565b005b3480156107b5575f5ffd5b506107be61149a565b6040516107cb9190612ef1565b60405180910390f35b3480156107df575f5ffd5b506107fa60048036038101906107f59190612f72565b61152a565b6040516108079190612fca565b60405180910390f35b34801561081b575f5ffd5b5061083660048036038101906108319190612fe3565b611547565b005b348015610843575f5ffd5b5061084c611681565b6040516108599190612fca565b60405180910390f35b34801561086d575f5ffd5b5061088860048036038101906108839190613183565b611694565b005b348015610895575f5ffd5b506108b060048036038101906108ab91906131c1565b6117b6565b005b3480156108bd575f5ffd5b506108d860048036038101906108d391906130aa565b6118b5565b005b3480156108e5575f5ffd5b506108ee6119c4565b6040516108fb9190613091565b60405180910390f35b34801561090f575f5ffd5b5061092a600480360381019061092591906130aa565b6119ca565b6040516109379190612fca565b60405180910390f35b34801561094b575f5ffd5b50610954611b1e565b6040516109619190613091565b60405180910390f35b348015610975575f5ffd5b50610990600480360381019061098b919061323c565b611b24565b60405161099d9190613091565b60405180910390f35b3480156109b1575f5ffd5b506109ba611ba6565b6040516109c79190613091565b60405180910390f35b3480156109db575f5ffd5b506109e4611bac565b6040516109f19190612e68565b60405180910390f35b348015610a05575f5ffd5b50610a0e611bd1565b604051610a1b9190613091565b60405180910390f35b348015610a2f575f5ffd5b50610a4a6004803603810190610a459190612fe3565b611bd7565b005b348015610a57575f5ffd5b50610a60611ccd565b604051610a6d9190613091565b60405180910390f35b348015610a81575f5ffd5b50610a8a611cd3565b604051610a979190613091565b60405180910390f35b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060038054610ad4906132a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b00906132a7565b8015610b4b5780601f10610b2257610100808354040283529160200191610b4b565b820191905f5260205f20905b815481529060010190602001808311610b2e57829003601f168201915b5050505050905090565b5f610b68610b61611cd9565b8484611ce0565b6001905092915050565b6019602052805f5260405f205f915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b610bc4611cd9565b73ffffffffffffffffffffffffffffffffffffffff16610be26113d9565b73ffffffffffffffffffffffffffffffffffffffff1614610c38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2f90613321565b60405180910390fd5b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74360405160405180910390a380600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610cfe611cd9565b73ffffffffffffffffffffffffffffffffffffffff16610d1c6113d9565b73ffffffffffffffffffffffffffffffffffffffff1614610d72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6990613321565b60405180910390fd5b670de0b6b3a76400006103e86005610d88610bb3565b610d92919061336c565b610d9c91906133da565b610da691906133da565b811015610de8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddf9061347a565b60405180910390fd5b670de0b6b3a764000081610dfc919061336c565b600c8190555050565b5f610e11848484611ea3565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610e58611cd9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015610ed7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ece90613508565b60405180910390fd5b610eeb85610ee3611cd9565b858403611ce0565b60019150509392505050565b60075481565b61dead81565b5f6012905090565b60125481565b60115481565b60165481565b7f000000000000000000000000f99001f22403e2f006d96e732ee5c6367f611c1b81565b600f5f9054906101000a900460ff1681565b5f60185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60155481565b60145481565b600f60029054906101000a900460ff1681565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b611011611cd9565b73ffffffffffffffffffffffffffffffffffffffff1661102f6113d9565b73ffffffffffffffffffffffffffffffffffffffff1614611085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107c90613321565b60405180910390fd5b61108e5f612821565b565b5f611099611cd9565b73ffffffffffffffffffffffffffffffffffffffff166110b76113d9565b73ffffffffffffffffffffffffffffffffffffffff161461110d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110490613321565b60405180910390fd5b5f600f5f6101000a81548160ff0219169083151502179055506001905090565b611135611cd9565b73ffffffffffffffffffffffffffffffffffffffff166111536113d9565b73ffffffffffffffffffffffffffffffffffffffff16146111a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a090613321565b60405180910390fd5b8060195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b611209611cd9565b73ffffffffffffffffffffffffffffffffffffffff166112276113d9565b73ffffffffffffffffffffffffffffffffffffffff161461127d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127490613321565b60405180910390fd5b8260118190555081601281905550806013819055506013546012546011546112a59190613526565b6112af9190613526565b601081905550606360105411156112fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f2906135a3565b60405180910390fd5b505050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61132d611cd9565b73ffffffffffffffffffffffffffffffffffffffff1661134b6113d9565b73ffffffffffffffffffffffffffffffffffffffff16146113a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139890613321565b60405180910390fd5b6001600f60016101000a81548160ff0219169083151502179055506001600f60026101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611409611cd9565b73ffffffffffffffffffffffffffffffffffffffff166114276113d9565b73ffffffffffffffffffffffffffffffffffffffff161461147d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147490613321565b60405180910390fd5b80600f60026101000a81548160ff02191690831515021790555050565b6060600480546114a9906132a7565b80601f01602080910402602001604051908101604052809291908181526020018280546114d5906132a7565b80156115205780601f106114f757610100808354040283529160200191611520565b820191905f5260205f20905b81548152906001019060200180831161150357829003601f168201915b5050505050905090565b5f61153d611536611cd9565b8484611ea3565b6001905092915050565b61154f611cd9565b73ffffffffffffffffffffffffffffffffffffffff1661156d6113d9565b73ffffffffffffffffffffffffffffffffffffffff16146115c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ba90613321565b60405180910390fd5b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8616c7a330e3cf61290821331585511f1e2778171e2b005fb5ec60cfe874dc6760405160405180910390a380600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f60019054906101000a900460ff1681565b61169c611cd9565b73ffffffffffffffffffffffffffffffffffffffff166116ba6113d9565b73ffffffffffffffffffffffffffffffffffffffff1614611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170790613321565b60405180910390fd5b8060185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516117aa9190612fca565b60405180910390a25050565b6117be611cd9565b73ffffffffffffffffffffffffffffffffffffffff166117dc6113d9565b73ffffffffffffffffffffffffffffffffffffffff1614611832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182990613321565b60405180910390fd5b82601581905550816016819055508060178190555060175460165460155461185a9190613526565b6118649190613526565b601481905550606360145411156118b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a7906135a3565b60405180910390fd5b505050565b6118bd611cd9565b73ffffffffffffffffffffffffffffffffffffffff166118db6113d9565b73ffffffffffffffffffffffffffffffffffffffff1614611931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192890613321565b60405180910390fd5b670de0b6b3a76400006103e86005611947610bb3565b611951919061336c565b61195b91906133da565b61196591906133da565b8110156119a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199e90613631565b60405180910390fd5b670de0b6b3a7640000816119bb919061336c565b600e8190555050565b600c5481565b5f6119d3611cd9565b73ffffffffffffffffffffffffffffffffffffffff166119f16113d9565b73ffffffffffffffffffffffffffffffffffffffff1614611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e90613321565b60405180910390fd5b620186a06001611a55610bb3565b611a5f919061336c565b611a6991906133da565b821015611aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa2906136bf565b60405180910390fd5b6103e86005611ab8610bb3565b611ac2919061336c565b611acc91906133da565b821115611b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b059061374d565b60405180910390fd5b81600d8190555060019050919050565b60105481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600d5481565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60135481565b611bdf611cd9565b73ffffffffffffffffffffffffffffffffffffffff16611bfd6113d9565b73ffffffffffffffffffffffffffffffffffffffff1614611c53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4a90613321565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611cc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb8906137db565b60405180910390fd5b611cca81612821565b50565b60175481565b600e5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4590613869565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db3906138f7565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611e969190613091565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0890613985565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7690613a13565b60405180910390fd5b5f8103611f9657611f9183835f6128e4565b61281c565b600f5f9054906101000a900460ff161561239257611fb26113d9565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156120205750611ff06113d9565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561205857505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612092575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156120ab5750600660149054906101000a900460ff16155b1561239157600f60019054906101000a900460ff1661219f5760185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061215f575060185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b61219e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219590613a7b565b60405180910390fd5b5b7f000000000000000000000000f99001f22403e2f006d96e732ee5c6367f611c1b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148015612241575060195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156122e857600c5481111561228b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228290613b09565b60405180910390fd5b600e5461229783610fc4565b826122a29190613526565b11156122e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122da90613b71565b60405180910390fd5b612390565b60195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661238f57600e5461234283610fc4565b8261234d9190613526565b111561238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238590613b71565b60405180910390fd5b5b5b5b5b5f61239c30610fc4565b90505f600d5482101590508080156123c05750600f60029054906101000a900460ff165b80156123d95750600660149054906101000a900460ff16155b801561243057507f000000000000000000000000f99001f22403e2f006d96e732ee5c6367f611c1b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b8015612483575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156124d6575060185f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612519576001600660146101000a81548160ff0219169083151502179055506124fe612b59565b5f600660146101000a81548160ff0219169083151502179055505b5f600660149054906101000a900460ff1615905060185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806125c8575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b156125d1575f90505b5f5f90505f5f90505f5f90505f5f90508415612809577f000000000000000000000000f99001f22403e2f006d96e732ee5c6367f611c1b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614801561264357505f601454115b156126ce5761267060646126626014548b612ba790919063ffffffff16565b612bbc90919063ffffffff16565b935060145460175485612683919061336c565b61268d91906133da565b9250601454601554856126a0919061336c565b6126aa91906133da565b9150601454601654856126bd919061336c565b6126c791906133da565b90506127b2565b7f000000000000000000000000f99001f22403e2f006d96e732ee5c6367f611c1b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614801561272a57505f601054115b156127b15761275760646127496010548b612ba790919063ffffffff16565b612bbc90919063ffffffff16565b93506010546013548561276a919061336c565b61277491906133da565b925060105460115485612787919061336c565b61279191906133da565b9150601054601254856127a4919061336c565b6127ae91906133da565b90505b5b5f8411156127c6576127c58a30866128e4565b5b5f8311156127fa576127f9307f000000000000000000000000f99001f22403e2f006d96e732ee5c6367f611c1b856128e4565b5b83886128069190613b8f565b97505b6128148a8a8a6128e4565b505050505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612952576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294990613985565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036129c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b790613a13565b60405180910390fd5b6129cb838383612bd1565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612a4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4590613c32565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254612adc9190613526565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612b409190613091565b60405180910390a3612b53848484612bd6565b50505050565b5f612b6330610fc4565b90505f8103612b725750612ba5565b6014600d54612b81919061336c565b811115612b9a576014600d54612b97919061336c565b90505b612ba381612bdb565b505b565b5f8183612bb4919061336c565b905092915050565b5f8183612bc991906133da565b905092915050565b505050565b505050565b5f600267ffffffffffffffff811115612bf757612bf6613c50565b5b604051908082528060200260200182016040528015612c255781602001602082028036833780820191505090505b50905030815f81518110612c3c57612c3b613c7d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600181518110612cac57612cab613c7d565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612d11307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611ce0565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff16635c11d795835f84600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b8152600401612d93959493929190613d9a565b5f604051808303815f87803b158015612daa575f5ffd5b505af1158015612dbc573d5f5f3e3d5ffd5b50505050600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015612e24573d5f5f3e3d5ffd5b505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612e5282612e29565b9050919050565b612e6281612e48565b82525050565b5f602082019050612e7b5f830184612e59565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612ec382612e81565b612ecd8185612e8b565b9350612edd818560208601612e9b565b612ee681612ea9565b840191505092915050565b5f6020820190508181035f830152612f098184612eb9565b905092915050565b5f5ffd5b612f1e81612e48565b8114612f28575f5ffd5b50565b5f81359050612f3981612f15565b92915050565b5f819050919050565b612f5181612f3f565b8114612f5b575f5ffd5b50565b5f81359050612f6c81612f48565b92915050565b5f5f60408385031215612f8857612f87612f11565b5b5f612f9585828601612f2b565b9250506020612fa685828601612f5e565b9150509250929050565b5f8115159050919050565b612fc481612fb0565b82525050565b5f602082019050612fdd5f830184612fbb565b92915050565b5f60208284031215612ff857612ff7612f11565b5b5f61300584828501612f2b565b91505092915050565b5f819050919050565b5f61303161302c61302784612e29565b61300e565b612e29565b9050919050565b5f61304282613017565b9050919050565b5f61305382613038565b9050919050565b61306381613049565b82525050565b5f60208201905061307c5f83018461305a565b92915050565b61308b81612f3f565b82525050565b5f6020820190506130a45f830184613082565b92915050565b5f602082840312156130bf576130be612f11565b5b5f6130cc84828501612f5e565b91505092915050565b5f5f5f606084860312156130ec576130eb612f11565b5b5f6130f986828701612f2b565b935050602061310a86828701612f2b565b925050604061311b86828701612f5e565b9150509250925092565b5f60ff82169050919050565b61313a81613125565b82525050565b5f6020820190506131535f830184613131565b92915050565b61316281612fb0565b811461316c575f5ffd5b50565b5f8135905061317d81613159565b92915050565b5f5f6040838503121561319957613198612f11565b5b5f6131a685828601612f2b565b92505060206131b78582860161316f565b9150509250929050565b5f5f5f606084860312156131d8576131d7612f11565b5b5f6131e586828701612f5e565b93505060206131f686828701612f5e565b925050604061320786828701612f5e565b9150509250925092565b5f6020828403121561322657613225612f11565b5b5f6132338482850161316f565b91505092915050565b5f5f6040838503121561325257613251612f11565b5b5f61325f85828601612f2b565b925050602061327085828601612f2b565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806132be57607f821691505b6020821081036132d1576132d061327a565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61330b602083612e8b565b9150613316826132d7565b602082019050919050565b5f6020820190508181035f830152613338816132ff565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61337682612f3f565b915061338183612f3f565b925082820261338f81612f3f565b915082820484148315176133a6576133a561333f565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6133e482612f3f565b91506133ef83612f3f565b9250826133ff576133fe6133ad565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e74205f8201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b5f613464602f83612e8b565b915061346f8261340a565b604082019050919050565b5f6020820190508181035f83015261349181613458565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f6134f2602883612e8b565b91506134fd82613498565b604082019050919050565b5f6020820190508181035f83015261351f816134e6565b9050919050565b5f61353082612f3f565b915061353b83612f3f565b92508282019050808211156135535761355261333f565b5b92915050565b7f4d757374206b656570206665657320617420313025206f72206c6573730000005f82015250565b5f61358d601d83612e8b565b915061359882613559565b602082019050919050565b5f6020820190508181035f8301526135ba81613581565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e205f8201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b5f61361b602483612e8b565b9150613626826135c1565b604082019050919050565b5f6020820190508181035f8301526136488161360f565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f6136a9603583612e8b565b91506136b48261364f565b604082019050919050565b5f6020820190508181035f8301526136d68161369d565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b5f613737603483612e8b565b9150613742826136dd565b604082019050919050565b5f6020820190508181035f8301526137648161372b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6137c5602683612e8b565b91506137d08261376b565b604082019050919050565b5f6020820190508181035f8301526137f2816137b9565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613853602483612e8b565b915061385e826137f9565b604082019050919050565b5f6020820190508181035f83015261388081613847565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6138e1602283612e8b565b91506138ec82613887565b604082019050919050565b5f6020820190508181035f83015261390e816138d5565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61396f602583612e8b565b915061397a82613915565b604082019050919050565b5f6020820190508181035f83015261399c81613963565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6139fd602383612e8b565b9150613a08826139a3565b604082019050919050565b5f6020820190508181035f830152613a2a816139f1565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f613a65601683612e8b565b9150613a7082613a31565b602082019050919050565b5f6020820190508181035f830152613a9281613a59565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f613af3603583612e8b565b9150613afe82613a99565b604082019050919050565b5f6020820190508181035f830152613b2081613ae7565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f613b5b601383612e8b565b9150613b6682613b27565b602082019050919050565b5f6020820190508181035f830152613b8881613b4f565b9050919050565b5f613b9982612f3f565b9150613ba483612f3f565b9250828203905081811115613bbc57613bbb61333f565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f613c1c602683612e8b565b9150613c2782613bc2565b604082019050919050565b5f6020820190508181035f830152613c4981613c10565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f613ccd613cc8613cc384613caa565b61300e565b612f3f565b9050919050565b613cdd81613cb3565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613d1581612e48565b82525050565b5f613d268383613d0c565b60208301905092915050565b5f602082019050919050565b5f613d4882613ce3565b613d528185613ced565b9350613d5d83613cfd565b805f5b83811015613d8d578151613d748882613d1b565b9750613d7f83613d32565b925050600181019050613d60565b5085935050505092915050565b5f60a082019050613dad5f830188613082565b613dba6020830187613cd4565b8181036040830152613dcc8186613d3e565b9050613ddb6060830185612e59565b613de86080830184613082565b969550505050505056fea26469706673582212203459c43522f5667da8e7d1ebbabea140dfd41820397bf66a6a80829257294fd464736f6c634300081b0033

Verified Source Code Partial Match

Compiler: v0.8.27+commit.40a35a09 EVM: cancun Optimization: No
MauveFinance.sol 1145 lines
// SPDX-License-Identifier: MIT

/**

Telegram: https://t.me/MauveFinancePortal
Website: https://mauvefinance.com
Twitter: https://x.com/0xMauveFinance

**/

pragma solidity ^0.8.10;

pragma experimental ABIEncoderV2;

////// lib/openzeppelin-contracts/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (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;
    }
}

////// lib/openzeppelin-contracts/contracts/access/Ownable.sol
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

/* pragma solidity ^0.8.0; */

/* import "../utils/Context.sol"; */

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

////// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

/* pragma solidity ^0.8.0; */

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

////// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)

/* pragma solidity ^0.8.0; */

/* import "../IERC20.sol"; */

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

////// lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)

/* pragma solidity ^0.8.0; */

/* import "./IERC20.sol"; */
/* import "./extensions/IERC20Metadata.sol"; */
/* import "../../utils/Context.sol"; */

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    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;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @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;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, 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 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 {}
}

////// lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

/* 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 substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

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

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

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

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

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

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

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

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

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

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

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

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

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

interface IUniswapV2Router02 {
    function factory() external pure returns (address);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

contract MauveFinance is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    address public constant deadAddress = address(0x000000000000000000000000000000000000dEaD);
    address public ETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

    bool private swapping;
    
    uint256 public genesis_block;

    address public deployerAddress;
    address public lpLocker;

    address private devWallet;
    address private MarketingWallet;

    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = true;

    uint256 public buyTotalFees;
    uint256 public buydevfee;
    uint256 public buyMarketingfee;
    uint256 public buyLiquidityFee;

    uint256 public sellTotalFees;
    uint256 public selldevfee;
    uint256 public sellMarketingfee;
    uint256 public sellLiquidityFee;

    /******************/

    // exlcude from fees and max transaction amount
    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public _isExcludedMaxTransactionAmount;


    event ExcludeFromFees(address indexed account, bool isExcluded);

    event devWalletUpdated(
        address indexed newWallet,
        address indexed oldWallet
    );
        event MarketingWalletUpdated(
        address indexed newWallet,
        address indexed oldWallet
    );


    constructor() ERC20("Mauve Finance", "Mauve") {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );

        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), ETH);
        excludeFromMaxTransaction(address(uniswapV2Pair), true);


        uint256 _buydevfee = 25;
        uint256 _buyMarketingfee = 0;
        uint256 _buyLiquidityFee = 0;

        uint256 _selldevfee = 25;
        uint256 _sellMarketingfee = 0;
        uint256 _sellLiquidityFee = 0;

        uint256 totalSupply = 100_000_000 * 1e18;

        maxTransactionAmount =  totalSupply * 10 / 1000; // 1% from total supply maxTransactionAmountTxn
        maxWallet = totalSupply * 20 / 1000; // 2% from total supply maxWallet
        swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05% swap wallet

        buydevfee = _buydevfee;
        buyMarketingfee = _buyMarketingfee;
        buyLiquidityFee = _buyLiquidityFee;
        buyTotalFees = buydevfee + buyMarketingfee + buyLiquidityFee;

        selldevfee = _selldevfee;
        sellMarketingfee = _sellMarketingfee;
        sellLiquidityFee = _sellLiquidityFee;
        sellTotalFees = selldevfee + sellMarketingfee + sellLiquidityFee;

        devWallet = address(0xd349c823154F63497CE7C6516eD557Ef446F8d53); // set as dev wallet
        MarketingWallet = address(0xd349c823154F63497CE7C6516eD557Ef446F8d53);
        deployerAddress = address(0xd349c823154F63497CE7C6516eD557Ef446F8d53); 
        lpLocker = address(msg.sender); 

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdEaD), true);
        excludeFromFees(deployerAddress, true); // Deployer Address
        excludeFromFees(lpLocker, true); // LP Locker

        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdEaD), true);
        excludeFromMaxTransaction(deployerAddress, true); // Deployer Address
        excludeFromMaxTransaction(lpLocker, true); // LP Locker

        /*
            _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 {}

    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
    }

    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool) {
        limitsInEffect = 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() * 5) / 1000,
            "Swap amount cannot be higher than 0.5% total supply."
        );
        swapTokensAtAmount = newAmount;
        return true;
    }

    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(
            newNum >= ((totalSupply() * 5) / 1000) / 1e18,
            "Cannot set maxTransactionAmount lower than 0.1%"
        );
        maxTransactionAmount = newNum * (10**18);
    }

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(
            newNum >= ((totalSupply() * 5) / 1000) / 1e18,
            "Cannot set maxWallet lower than 0.5%"
        );
        maxWallet = newNum * (10**18);
    }

    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 _devfee,
        uint256 _marketingfee,
        uint256 _liquidityFee
    ) external onlyOwner {
        buydevfee = _devfee;
        buyMarketingfee = _marketingfee;
        buyLiquidityFee = _liquidityFee;
        buyTotalFees = buydevfee  + buyMarketingfee + buyLiquidityFee;
        require(buyTotalFees <= 99, "Must keep fees at 10% or less");
    }

    function updateSellFees(
        uint256 _devfee,
        uint256 _marketingfee,
        uint256 _liquidityFee
    ) external onlyOwner {
        selldevfee = _devfee;
        sellMarketingfee = _marketingfee;
        sellLiquidityFee = _liquidityFee;
        sellTotalFees = selldevfee  + sellMarketingfee + sellLiquidityFee;
        require(sellTotalFees <= 99, "Must keep fees at 10% or less");
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function updateDevWallet(address newDevWallet)
        external
        onlyOwner
    {
        emit devWalletUpdated(newDevWallet, devWallet);
        devWallet = newDevWallet;
    }

    function updateMarketingWallet(address newMarketingWallet)
        external
        onlyOwner
    {
        emit MarketingWalletUpdated(newMarketingWallet, MarketingWallet);
        MarketingWallet = newMarketingWallet;
    }


    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if (limitsInEffect) {
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0x000000000000000000000000000000000000dEaD) &&
                !swapping
            ) {
                if (!tradingActive) {
                    require(
                        _isExcludedFromFees[from] || _isExcludedFromFees[to],
                        "Trading is not active."
                    );
                }

                // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
                //when buy
                if (
                    from == uniswapV2Pair &&
                    !_isExcludedMaxTransactionAmount[to]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Buy transfer amount exceeds the maxTransactionAmount."
                    );
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
                else if (!_isExcludedMaxTransactionAmount[to]) {
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            canSwap &&
            swapEnabled &&
            !swapping &&
            to == uniswapV2Pair &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;

            swapBack();

            swapping = false;
        }

        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 fees = 0;
        uint256 tokensForLiquidity = 0;
        uint256 tokensForDev = 0;
        uint256 tokensForMarketing = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            // on sell
            if (to == uniswapV2Pair && sellTotalFees > 0) {
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity = (fees * sellLiquidityFee) / sellTotalFees;
                tokensForDev = (fees * selldevfee) / sellTotalFees;
                tokensForMarketing = (fees * sellMarketingfee) / sellTotalFees;
            }
            // on buy
            else if (from == uniswapV2Pair && buyTotalFees > 0) {
                fees = amount.mul(buyTotalFees).div(100);
                tokensForLiquidity = (fees * buyLiquidityFee) / buyTotalFees; 
                tokensForDev = (fees * buydevfee) / buyTotalFees;
                tokensForMarketing = (fees * buyMarketingfee) / buyTotalFees;
            }

            if (fees> 0) {
                super._transfer(from, address(this), fees);
            }
            if (tokensForLiquidity > 0) {
                super._transfer(address(this), uniswapV2Pair, tokensForLiquidity);
            }

            amount -= fees;
        }

        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] = ETH;

    _approve(address(this), address(uniswapV2Router), tokenAmount);

    // make the swap
    uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
        tokenAmount,
        0, // accept any amount of WETH
        path,
        devWallet,
        block.timestamp
    );


    payable(MarketingWallet).transfer(address(this).balance);
}


    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance == 0) {
            return;
        }

        if (contractBalance > swapTokensAtAmount * 20) {
            contractBalance = swapTokensAtAmount * 20;
        }

        swapTokensForETH(contractBalance);
    }

}

Read Contract

ETH 0x8322fff2 → address
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingfee 0x4853e7d9 → uint256
buyTotalFees 0xd85ba063 → uint256
buydevfee 0x489ae78d → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
deployerAddress 0xefdee94f → address
genesis_block 0x274a533c → uint256
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
lpLocker 0x03fc2013 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellLiquidityFee 0xf6374342 → uint256
sellMarketingfee 0x48c492d6 → uint256
sellTotalFees 0x6a486a8e → uint256
selldevfee 0x65c1bef8 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 17 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _devfee
uint256 _marketingfee
uint256 _liquidityFee
updateDevWallet 0x1816467f
address newDevWallet
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xc17b5b8c
uint256 _devfee
uint256 _marketingfee
uint256 _liquidityFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool

Recent Transactions

This address has 1 on-chain transactions, but only 1.6% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →