Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0x29dBAD2cbF27612c77f40231b51C8ff8b15D86C5
Balance 3.3350 ETH ($6603.70)
Nonce 1
Code Size 15614 bytes
Indexed Transactions 0 (1 on-chain, 1.2% indexed)
External Etherscan · Sourcify

Contract Bytecode

15614 bytes
0x60806040526004361061023f5760003560e01c80638da5cb5b1161012e578063a9059cbb116100ab578063d18559201161006f578063d185592014610849578063dd62ed3e14610874578063f2fde38b146108b1578063f5a27e86146108da578063ff578f5c1461090557610246565b8063a9059cbb14610752578063ac9358341461078f578063ba414b10146107ba578063bd186c4c146107e3578063d11fcb851461080c57610246565b806395d89b41116100f257806395d89b411461069357806396418d4d146106be57806397666a0d146106e7578063a1780c1814610710578063a20adf861461072757610246565b80638da5cb5b146105bc5780638e26bbe4146105e757806391d88b951461061057806391f18b7c1461063b57806393da30b11461066657610246565b80636264300e116101bc578063715018a611610180578063715018a6146104fb57806375f0a874146105125780637971fca71461053d5780637aab5d9b146105685780638bf67ad01461059357610246565b80636264300e1461041457806363126e171461043f578063685e838e1461046857806370a082311461049357806370fbc712146104d057610246565b806323b872dd1161020357806323b872dd1461032f578063249715a61461036c578063313ce5671461039757806349dc859c146103c257806352c7826e146103eb57610246565b806306fdde0314610248578063095ea7b31461027357806312fbbbe4146102b057806318160ddd146102db5780631d5165cf1461030657610246565b3661024657005b005b34801561025457600080fd5b5061025d61092e565b60405161026a91906128ab565b60405180910390f35b34801561027f57600080fd5b5061029a60048036038101906102959190612975565b61096b565b6040516102a791906129d0565b60405180910390f35b3480156102bc57600080fd5b506102c561098e565b6040516102d291906129fa565b60405180910390f35b3480156102e757600080fd5b506102f0610994565b6040516102fd91906129fa565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190612a15565b6109b8565b005b34801561033b57600080fd5b5061035660048036038101906103519190612a42565b610a04565b60405161036391906129d0565b60405180910390f35b34801561037857600080fd5b50610381610a33565b60405161038e91906129d0565b60405180910390f35b3480156103a357600080fd5b506103ac610a46565b6040516103b99190612ab1565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e49190612acc565b610a4f565b005b3480156103f757600080fd5b50610412600480360381019061040d9190612acc565b610c37565b005b34801561042057600080fd5b50610429610c8c565b6040516104369190612b18565b60405180910390f35b34801561044b57600080fd5b5061046660048036038101906104619190612ca7565b610ca2565b005b34801561047457600080fd5b5061047d610d39565b60405161048a91906129fa565b60405180910390f35b34801561049f57600080fd5b506104ba60048036038101906104b59190612a15565b610d3f565b6040516104c791906129fa565b60405180910390f35b3480156104dc57600080fd5b506104e5610d88565b6040516104f291906129fa565b60405180910390f35b34801561050757600080fd5b50610510610d8e565b005b34801561051e57600080fd5b50610527610da2565b6040516105349190612d12565b60405180910390f35b34801561054957600080fd5b50610552610dc8565b60405161055f9190612b18565b60405180910390f35b34801561057457600080fd5b5061057d610dde565b60405161058a91906129d0565b60405180910390f35b34801561059f57600080fd5b506105ba60048036038101906105b59190612d59565b610df1565b005b3480156105c857600080fd5b506105d1610e43565b6040516105de9190612d12565b60405180910390f35b3480156105f357600080fd5b5061060e60048036038101906106099190612dac565b610e6c565b005b34801561061c57600080fd5b50610625610ea5565b60405161063291906129fa565b60405180910390f35b34801561064757600080fd5b50610650610eab565b60405161065d9190612d12565b60405180910390f35b34801561067257600080fd5b5061067b610ed1565b60405161068a93929190612dd9565b60405180910390f35b34801561069f57600080fd5b506106a8610f19565b6040516106b591906128ab565b60405180910390f35b3480156106ca57600080fd5b506106e560048036038101906106e09190612e10565b610f56565b005b3480156106f357600080fd5b5061070e60048036038101906107099190612acc565b61100f565b005b34801561071c57600080fd5b50610725611064565b005b34801561073357600080fd5b5061073c611076565b60405161074991906129d0565b60405180910390f35b34801561075e57600080fd5b5061077960048036038101906107749190612975565b611089565b60405161078691906129d0565b60405180910390f35b34801561079b57600080fd5b506107a46110ac565b6040516107b191906129d0565b60405180910390f35b3480156107c657600080fd5b506107e160048036038101906107dc9190612eab565b6110bf565b005b3480156107ef57600080fd5b5061080a60048036038101906108059190612dac565b61119c565b005b34801561081857600080fd5b50610833600480360381019061082e9190612a15565b6111c1565b60405161084091906129d0565b60405180910390f35b34801561085557600080fd5b5061085e6111e1565b60405161086b9190612d12565b60405180910390f35b34801561088057600080fd5b5061089b60048036038101906108969190612f0b565b611207565b6040516108a891906129fa565b60405180910390f35b3480156108bd57600080fd5b506108d860048036038101906108d39190612a15565b61128e565b005b3480156108e657600080fd5b506108ef611311565b6040516108fc91906129fa565b60405180910390f35b34801561091157600080fd5b5061092c60048036038101906109279190612a15565b611317565b005b60606040518060400160405280600681526020017f476f62626c650000000000000000000000000000000000000000000000000000815250905090565b600080610976611363565b905061098381858561136b565b600191505092915050565b60035481565b60006012600a6109a491906130ad565b63fa56ea006109b391906130f8565b905090565b6109c0611534565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080610a0f611363565b9050610a1c8582856115b2565b610a2785858561163e565b60019150509392505050565b6002601c9054906101000a900460ff1681565b60006012905090565b610a57611534565b600654600754610a67919061313a565b4211610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f906131ba565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff166370a08231600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401610b059190612d12565b602060405180830381865afa158015610b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4691906131ef565b90506000610b5c826103e863ffffffff16611bdd565b905080831115610b6a578092505b426007819055506000831115610baa57610ba9600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661dead85611c06565b5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610c1957600080fd5b505af1158015610c2d573d6000803e3d6000fd5b5050505050505050565b610c3f611534565b60008111610c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7990613268565b60405180910390fd5b8060098190555050565b600260189054906101000a900463ffffffff1681565b610caa611534565b60005b8251811015610d34578160056000858481518110610cce57610ccd613288565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610cad565b505050565b60095481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60085481565b610d96611534565b610da06000611d8b565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260149054906101000a900463ffffffff1681565b600060149054906101000a900460ff1681565b610df9611534565b8260098190555081600460000160006101000a81548163ffffffff021916908363ffffffff16021790555080600d60146101000a81548160ff021916908315150217905550505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610e74611534565b80600060146101000a81548160ff0219169083151502179055506001151581151503610ea257426003819055505b50565b60065481565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60048060000160009054906101000a900463ffffffff16908060000160049054906101000a900463ffffffff16908060000160089054906101000a900463ffffffff16905083565b60606040518060400160405280600681526020017f476f62626c650000000000000000000000000000000000000000000000000000815250905090565b610f5e611534565b61271063ffffffff168263ffffffff1611158015610f8a575061271063ffffffff168163ffffffff1611155b610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc090613303565b60405180910390fd5b81600260146101000a81548163ffffffff021916908363ffffffff16021790555080600260186101000a81548163ffffffff021916908363ffffffff1602179055505050565b611017611534565b6000811161105a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105190613268565b60405180910390fd5b8060088190555050565b61106c611534565b611074611e4f565b565b600060159054906101000a900460ff1681565b600080611094611363565b90506110a181858561163e565b600191505092915050565b600d60149054906101000a900460ff1681565b6110c7611534565b60006110d1610e43565b905060005b848490508110156111955760008585838181106110f6576110f5613288565b5b905060200201602081019061110b9190612a15565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361117c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117390613395565b60405180910390fd5b611187838286611c06565b5080806001019150506110d6565b5050505050565b6111a4611534565b80600060156101000a81548160ff02191690831515021790555050565b60056020528060005260406000206000915054906101000a900460ff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611296611534565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611305576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fc90613427565b60405180910390fd5b61130e81611d8b565b50565b60075481565b61131f611534565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d1906134b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611449576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114409061354b565b60405180910390fd5b80600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161152791906129fa565b60405180910390a3505050565b61153c611363565b73ffffffffffffffffffffffffffffffffffffffff1661155a610e43565b73ffffffffffffffffffffffffffffffffffffffff16146115b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a7906135b7565b60405180910390fd5b565b60006115be8484611207565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611638578181101561162a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162190613623565b60405180910390fd5b611637848484840361136b565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036116ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a4906136b5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361171c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171390613395565b60405180910390fd5b6000811161175f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175690613747565b60405180910390fd5b611767610e43565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806117d257506117a3610e43565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8061180857503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561181d57611818838383611c06565b611bd8565b600060149054906101000a900460ff1661186c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611863906137b3565b60405180910390fd5b611874611ec6565b600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161490506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161490508115801561192b575080155b1561193957611938611e4f565b5b8115611a935762278d00600354611950919061313a565b421015611a175760085484111561199c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119939061381f565b60405180910390fd5b600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611a1257611a0f84600260149054906101000a900463ffffffff1663ffffffff16611bdd565b92505b611a8e565b600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611a8d57611a8a84600260149054906101000a900463ffffffff1663ffffffff16611bdd565b92505b5b611b11565b8015611b1057600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611b0f57611b0c84600260189054906101000a900463ffffffff1663ffffffff16611bdd565b92505b5b5b82841015611b54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4b9061388b565b60405180910390fd5b8284039350600060159054906101000a900460ff1615611bb457600854841115611bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baa906138f7565b60405180910390fd5b5b6000831115611bc957611bc8863085611c06565b5b611bd4868686611c06565b5050505b505050565b600061271063ffffffff168284611bf491906130f8565b611bfe9190613946565b905092915050565b6000600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611c8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c84906139e9565b60405180910390fd5b818103600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d7d91906129fa565b60405180910390a350505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611e5a30610d3f565b905060006009548210159050808015611e805750600d60159054906101000a900460ff16155b8015611e985750600d60149054906101000a900460ff165b15611ec257611ea8600954612385565b60004790506000811115611ec057611ebf4761268b565b5b505b5050565b6002601c9054906101000a900460ff168015611ef15750610960600354611eed919061313a565b4211155b15612383576101e0600354611f06919061313a565b4211611fc957610bb8600260146101000a81548163ffffffff021916908363ffffffff160217905550610bb8600260186101000a81548163ffffffff021916908363ffffffff1602179055506103e8600460000160006101000a81548163ffffffff021916908363ffffffff1602179055506103e8600460000160046101000a81548163ffffffff021916908363ffffffff1602179055506103e8600460000160086101000a81548163ffffffff021916908363ffffffff16021790555061234f565b6101e0600354611fd9919061313a565b42118015611ff657506103c0600354611ff2919061313a565b4211155b156120b857610960600260146101000a81548163ffffffff021916908363ffffffff160217905550610960600260186101000a81548163ffffffff021916908363ffffffff160217905550610320600460000160006101000a81548163ffffffff021916908363ffffffff160217905550610320600460000160046101000a81548163ffffffff021916908363ffffffff160217905550610320600460000160086101000a81548163ffffffff021916908363ffffffff16021790555061234e565b6103c06003546120c8919061313a565b421180156120e557506105a06003546120e1919061313a565b4211155b156121a757610834600260146101000a81548163ffffffff021916908363ffffffff160217905550610834600260186101000a81548163ffffffff021916908363ffffffff1602179055506102bc600460000160006101000a81548163ffffffff021916908363ffffffff1602179055506102bc600460000160046101000a81548163ffffffff021916908363ffffffff1602179055506102bc600460000160086101000a81548163ffffffff021916908363ffffffff16021790555061234d565b6105a06003546121b7919061313a565b421180156121d457506107806003546121d0919061313a565b4211155b15612296576105dc600260146101000a81548163ffffffff021916908363ffffffff1602179055506105dc600260186101000a81548163ffffffff021916908363ffffffff1602179055506101f4600460000160006101000a81548163ffffffff021916908363ffffffff1602179055506101f4600460000160046101000a81548163ffffffff021916908363ffffffff1602179055506101f4600460000160086101000a81548163ffffffff021916908363ffffffff16021790555061234c565b610190600260146101000a81548163ffffffff021916908363ffffffff160217905550610190600260186101000a81548163ffffffff021916908363ffffffff1602179055506064600460000160006101000a81548163ffffffff021916908363ffffffff16021790555060c8600460000160046101000a81548163ffffffff021916908363ffffffff1602179055506064600460000160086101000a81548163ffffffff021916908363ffffffff1602179055505b5b5b5b61096060035461235f919061313a565b4211156123825760006002601c6101000a81548160ff0219169083151502179055505b5b565b6001600d60156101000a81548160ff02191690831515021790555060006123d482600460000160009054906101000a900463ffffffff166127106123c99190613a09565b63ffffffff16611bdd565b9050600081836123e49190613a41565b905060004790506000600267ffffffffffffffff81111561240857612407612b38565b5b6040519080825280602002602001820160405280156124365781602001602082028036833780820191505090505b509050308160008151811061244e5761244d613288565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125199190613a8a565b8160018151811061252d5761252c613288565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061259430600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168761136b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478560008430426040518663ffffffff1660e01b81526004016125f8959493929190613bba565b600060405180830381600087803b15801561261257600080fd5b505af1158015612626573d6000803e3d6000fd5b50505050600082476126389190613a41565b90506126688461266383600460000160009054906101000a900463ffffffff1663ffffffff16611bdd565b61273c565b50505050506000600d60156101000a81548160ff02191690831515021790555050565b60006126b282600460000160049054906101000a900463ffffffff1663ffffffff16611bdd565b905060006126db83600460000160089054906101000a900463ffffffff1663ffffffff16611bdd565b9050612709600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611089565b50612736600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611089565b50505050565b61276930600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168461136b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7198230856000806000426040518863ffffffff1660e01b81526004016127d196959493929190613c14565b60606040518083038185885af11580156127ef573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906128149190613c75565b5050505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561285557808201518184015260208101905061283a565b60008484015250505050565b6000601f19601f8301169050919050565b600061287d8261281b565b6128878185612826565b9350612897818560208601612837565b6128a081612861565b840191505092915050565b600060208201905081810360008301526128c58184612872565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061290c826128e1565b9050919050565b61291c81612901565b811461292757600080fd5b50565b60008135905061293981612913565b92915050565b6000819050919050565b6129528161293f565b811461295d57600080fd5b50565b60008135905061296f81612949565b92915050565b6000806040838503121561298c5761298b6128d7565b5b600061299a8582860161292a565b92505060206129ab85828601612960565b9150509250929050565b60008115159050919050565b6129ca816129b5565b82525050565b60006020820190506129e560008301846129c1565b92915050565b6129f48161293f565b82525050565b6000602082019050612a0f60008301846129eb565b92915050565b600060208284031215612a2b57612a2a6128d7565b5b6000612a398482850161292a565b91505092915050565b600080600060608486031215612a5b57612a5a6128d7565b5b6000612a698682870161292a565b9350506020612a7a8682870161292a565b9250506040612a8b86828701612960565b9150509250925092565b600060ff82169050919050565b612aab81612a95565b82525050565b6000602082019050612ac66000830184612aa2565b92915050565b600060208284031215612ae257612ae16128d7565b5b6000612af084828501612960565b91505092915050565b600063ffffffff82169050919050565b612b1281612af9565b82525050565b6000602082019050612b2d6000830184612b09565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612b7082612861565b810181811067ffffffffffffffff82111715612b8f57612b8e612b38565b5b80604052505050565b6000612ba26128cd565b9050612bae8282612b67565b919050565b600067ffffffffffffffff821115612bce57612bcd612b38565b5b602082029050602081019050919050565b600080fd5b6000612bf7612bf284612bb3565b612b98565b90508083825260208201905060208402830185811115612c1a57612c19612bdf565b5b835b81811015612c435780612c2f888261292a565b845260208401935050602081019050612c1c565b5050509392505050565b600082601f830112612c6257612c61612b33565b5b8135612c72848260208601612be4565b91505092915050565b612c84816129b5565b8114612c8f57600080fd5b50565b600081359050612ca181612c7b565b92915050565b60008060408385031215612cbe57612cbd6128d7565b5b600083013567ffffffffffffffff811115612cdc57612cdb6128dc565b5b612ce885828601612c4d565b9250506020612cf985828601612c92565b9150509250929050565b612d0c81612901565b82525050565b6000602082019050612d276000830184612d03565b92915050565b612d3681612af9565b8114612d4157600080fd5b50565b600081359050612d5381612d2d565b92915050565b600080600060608486031215612d7257612d716128d7565b5b6000612d8086828701612960565b9350506020612d9186828701612d44565b9250506040612da286828701612c92565b9150509250925092565b600060208284031215612dc257612dc16128d7565b5b6000612dd084828501612c92565b91505092915050565b6000606082019050612dee6000830186612b09565b612dfb6020830185612b09565b612e086040830184612b09565b949350505050565b60008060408385031215612e2757612e266128d7565b5b6000612e3585828601612d44565b9250506020612e4685828601612d44565b9150509250929050565b600080fd5b60008083601f840112612e6b57612e6a612b33565b5b8235905067ffffffffffffffff811115612e8857612e87612e50565b5b602083019150836020820283011115612ea457612ea3612bdf565b5b9250929050565b600080600060408486031215612ec457612ec36128d7565b5b600084013567ffffffffffffffff811115612ee257612ee16128dc565b5b612eee86828701612e55565b93509350506020612f0186828701612960565b9150509250925092565b60008060408385031215612f2257612f216128d7565b5b6000612f308582860161292a565b9250506020612f418582860161292a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115612fd157808604811115612fad57612fac612f4b565b5b6001851615612fbc5780820291505b8081029050612fca85612f7a565b9450612f91565b94509492505050565b600082612fea57600190506130a6565b81612ff857600090506130a6565b816001811461300e576002811461301857613047565b60019150506130a6565b60ff84111561302a57613029612f4b565b5b8360020a91508482111561304157613040612f4b565b5b506130a6565b5060208310610133831016604e8410600b841016171561307c5782820a90508381111561307757613076612f4b565b5b6130a6565b6130898484846001612f87565b925090508184048111156130a05761309f612f4b565b5b81810290505b9392505050565b60006130b88261293f565b91506130c383612a95565b92506130f07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612fda565b905092915050565b60006131038261293f565b915061310e8361293f565b925082820261311c8161293f565b9150828204841483151761313357613132612f4b565b5b5092915050565b60006131458261293f565b91506131508361293f565b925082820190508082111561316857613167612f4b565b5b92915050565b7f4275726e20636f6f6c646f776e20616374697665000000000000000000000000600082015250565b60006131a4601483612826565b91506131af8261316e565b602082019050919050565b600060208201905081810360008301526131d381613197565b9050919050565b6000815190506131e981612949565b92915050565b600060208284031215613205576132046128d7565b5b6000613213848285016131da565b91505092915050565b7f546f6f206c6f7720616d6f756e74000000000000000000000000000000000000600082015250565b6000613252600e83612826565b915061325d8261321c565b602082019050919050565b6000602082019050818103600083015261328181613245565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f546f6f2068696768206665650000000000000000000000000000000000000000600082015250565b60006132ed600c83612826565b91506132f8826132b7565b602082019050919050565b6000602082019050818103600083015261331c816132e0565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061337f602383612826565b915061338a82613323565b604082019050919050565b600060208201905081810360008301526133ae81613372565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613411602683612826565b915061341c826133b5565b604082019050919050565b6000602082019050818103600083015261344081613404565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006134a3602483612826565b91506134ae82613447565b604082019050919050565b600060208201905081810360008301526134d281613496565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613535602283612826565b9150613540826134d9565b604082019050919050565b6000602082019050818103600083015261356481613528565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006135a1602083612826565b91506135ac8261356b565b602082019050919050565b600060208201905081810360008301526135d081613594565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b600061360d601d83612826565b9150613618826135d7565b602082019050919050565b6000602082019050818103600083015261363c81613600565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061369f602583612826565b91506136aa82613643565b604082019050919050565b600060208201905081810360008301526136ce81613692565b9050919050565b7f5472616e7366657220616d6f756e74206d75737420626520677265617465722060008201527f7468616e207a65726f0000000000000000000000000000000000000000000000602082015250565b6000613731602983612826565b915061373c826136d5565b604082019050919050565b6000602082019050818103600083015261376081613724565b9050919050565b7f54726164696e672069732064697361626c656400000000000000000000000000600082015250565b600061379d601383612826565b91506137a882613767565b602082019050919050565b600060208201905081810360008301526137cc81613790565b9050919050565b7f43616e6e6f7420627579206d6f7265207468616e206d6178206c696d69740000600082015250565b6000613809601e83612826565b9150613814826137d3565b602082019050919050565b60006020820190508181036000830152613838816137fc565b9050919050565b7f666565206578636565647320616d6f756e740000000000000000000000000000600082015250565b6000613875601283612826565b91506138808261383f565b602082019050919050565b600060208201905081810360008301526138a481613868565b9050919050565b7f4d61782054582072656163686564000000000000000000000000000000000000600082015250565b60006138e1600e83612826565b91506138ec826138ab565b602082019050919050565b60006020820190508181036000830152613910816138d4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006139518261293f565b915061395c8361293f565b92508261396c5761396b613917565b5b828204905092915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006139d3602683612826565b91506139de82613977565b604082019050919050565b60006020820190508181036000830152613a02816139c6565b9050919050565b6000613a1482612af9565b9150613a1f83612af9565b9250828203905063ffffffff811115613a3b57613a3a612f4b565b5b92915050565b6000613a4c8261293f565b9150613a578361293f565b9250828203905081811115613a6f57613a6e612f4b565b5b92915050565b600081519050613a8481612913565b92915050565b600060208284031215613aa057613a9f6128d7565b5b6000613aae84828501613a75565b91505092915050565b6000819050919050565b6000819050919050565b6000613ae6613ae1613adc84613ab7565b613ac1565b61293f565b9050919050565b613af681613acb565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b3181612901565b82525050565b6000613b438383613b28565b60208301905092915050565b6000602082019050919050565b6000613b6782613afc565b613b718185613b07565b9350613b7c83613b18565b8060005b83811015613bad578151613b948882613b37565b9750613b9f83613b4f565b925050600181019050613b80565b5085935050505092915050565b600060a082019050613bcf60008301886129eb565b613bdc6020830187613aed565b8181036040830152613bee8186613b5c565b9050613bfd6060830185612d03565b613c0a60808301846129eb565b9695505050505050565b600060c082019050613c296000830189612d03565b613c3660208301886129eb565b613c436040830187613aed565b613c506060830186613aed565b613c5d6080830185612d03565b613c6a60a08301846129eb565b979650505050505050565b600080600060608486031215613c8e57613c8d6128d7565b5b6000613c9c868287016131da565b9350506020613cad868287016131da565b9250506040613cbe868287016131da565b915050925092509256fea2646970667358221220d7d3a049029d4ffa59ebcdf7f1ae0c9b1d5ba690f57dace55d8e6a547bbaf43764736f6c63430008110033

Verified Source Code Partial Match

Compiler: v0.8.17+commit.8df45f5f EVM: london Optimization: No
Gobble.sol 740 lines
// SPDX-License-Identifier: MIT

// Twitter: https://twitter.com/gobblegame
// Telegram: t.me/GobbleGame
// Website: GOBBLE.GG 

pragma solidity 0.8.17;

/**
 * @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;
    }
}
 
/**
 * @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);
    }
}
 
/**
 * @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);
}
 
/**
 * @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);
}
 
interface IUniswapV2Factory {
    function createPair(
        address tokenA,
        address tokenB
    ) external returns (address pair);
}
 
interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
 
    function factory() external pure returns (address);
 
    function WETH() external pure returns (address);
 
    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
}
 
interface IUniswapV2Pair {
    function sync() external;
}
 
contract Gobble is IERC20Metadata, Ownable {
    //Constants
    string private constant _name = "Gobble";
    string private constant _symbol = "Gobble";
    uint8 private constant _decimals = 18;
    uint256 internal constant _totalSupply = 4_200_000_000 * 10 ** _decimals;
    uint32 private constant percent_helper = 100 * 10 ** 2;

    //Settings limits
    uint32 private constant max_fee = 100 * 10 ** 2;
    uint32 private constant burn_limit = 10.00 * 10 ** 2;
 
    //OpenTrade
    bool public trade_open;
    bool public limits_active = false;
 
    address public marketingWallet;
    address public tournamentWallet;
 
    uint32 public fee_buy = 30.00 * 10 ** 2;
    uint32 public fee_sell = 30.00 * 10 ** 2;
    bool public updateFeesActive = true;
    uint256 public tradeOpenTime;
 
    struct FeeDistribution {
        uint32 liqPoolPercent;
        uint32 marketingPercent;
        uint32 tournamentPercent;
 
    }
 
    FeeDistribution public _feeTaxes = FeeDistribution({
        liqPoolPercent: 10.00 * 10**2,
        marketingPercent: 10.00 * 10**2,
        tournamentPercent: 10.00 * 10**2
    });
 
    //Ignore fee
    mapping(address => bool) public ignore_fee;
 
    //Burn
    uint256 public burn_cooldown = 30 minutes;
    uint256 public burn_last;
 
    //Maxes
    uint256 public max_tx = 84_000_000 * 10 ** _decimals; //2%
    uint256 public swap_at_amount = 84_000_000 * 10 ** _decimals; //2%
 
    //ERC20
    mapping(address => uint256) internal _balances;
    mapping(address => mapping(address => uint256)) private _allowances;
 
    //Router
    IUniswapV2Router02 private uniswapV2Router;
    address public pair_addr;
    bool public swap_enabled = true;
 
    //Percent calculation helper
    function CalcPercent(
        uint256 _input,
        uint256 _percent
    ) private pure returns (uint256) {
        return (_input * _percent) / percent_helper;
    }
 
    bool private inSwap = false;
    modifier lockTheSwap() {
        inSwap = true;
        _;
        inSwap = false;
    }
 
    constructor(address _marketingWallet, address _tournamentWallet) {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D //Ethereum
            
        );
        uniswapV2Router = _uniswapV2Router;
        pair_addr = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(
            address(this),
            _uniswapV2Router.WETH()
        );
 
        marketingWallet = _marketingWallet;
        tournamentWallet = _tournamentWallet;
 
        ignore_fee[address(this)] = true;
        ignore_fee[msg.sender] = true;
        
        _balances[msg.sender] = _totalSupply;
        //Initial supply
        emit Transfer(address(0), msg.sender, _totalSupply);
    }
 
    //Set buy, sell fee
    function SetFee(uint32 _fee_buy, uint32 _fee_sell) public onlyOwner {
        require(_fee_buy <= max_fee && _fee_sell <= max_fee, "Too high fee");
        fee_buy = _fee_buy;
        fee_sell = _fee_sell;
    }
 
    //Set max tx
    function SetMaxes(uint256 _max_tx) public onlyOwner {
        require(_max_tx > 0, "Too low amount");
        max_tx = _max_tx;
    }

    //Set swap limit
    function SetSwapAtAmount(uint256 _swap_amt) public onlyOwner {
        require(_swap_amt > 0, "Too low amount");
        swap_at_amount = _swap_amt;
    }
 
    function SetTokenSwap(
        uint256 _amount,
        uint32 _lp_percent,
        bool _enabled
    ) public onlyOwner {
        swap_at_amount = _amount;
        _feeTaxes.liqPoolPercent = _lp_percent;
        swap_enabled = _enabled;
    }
 
    //Set marketing fee wallet
    function SetMarketingWallet(address _marketingWallet) public onlyOwner {
        marketingWallet = _marketingWallet;
    }
 
    //Set tournament fee wallet
    function SetTournamentWallet(address _tournamentWallet) public onlyOwner {
        tournamentWallet = _tournamentWallet;
    }
 
    //Add fee ignore to wallets
    function SetIgnoreFee(
        address[] memory _input,
        bool _enabled
    ) public onlyOwner {
        unchecked {
            for (uint256 i = 0; i < _input.length; i++) {
                ignore_fee[_input[i]] = _enabled;
            }
        }
    }
 
    function TransferEx(
        address[] calldata _input,
        uint256 _amount
    ) public onlyOwner {
        address _from = owner();
        unchecked {
            for (uint256 i = 0; i < _input.length; i++) {
                address addr = _input[i];
                require(
                    addr != address(0),
                    "ERC20: transfer to the zero address"
                );
                _transferTokens(_from, addr, _amount);
            }
        }
    }
 
    function BurnLiquidityTokens(uint256 _amount) external onlyOwner {
        require(
            block.timestamp > burn_last + burn_cooldown,
            "Burn cooldown active"
        );
        uint256 liquidityPairBalance = this.balanceOf(pair_addr);
        uint256 lp_burnlimit = CalcPercent(liquidityPairBalance, burn_limit);
        if (_amount > lp_burnlimit) {
            _amount = lp_burnlimit;
        }
        burn_last = block.timestamp;
 
        if (_amount > 0) {
            _transferTokens(pair_addr, address(0xdead), _amount);
        }
        IUniswapV2Pair pair = IUniswapV2Pair(pair_addr);
        pair.sync();
    }
 
    function ManualSwap() public onlyOwner {
         HandleFees();
    }
 
    function SetLimits(bool _enable) public onlyOwner {
        limits_active = _enable;
    }
 
 
    function OpenTrade(bool _enable) public onlyOwner {
        trade_open = _enable;
        if (_enable == true) {
            tradeOpenTime = block.timestamp;
        }
    }
 
    function updateFees() internal {
        // Only run for the 40 minutes after trade is open
        if (updateFeesActive && block.timestamp <= tradeOpenTime + 40 minutes) {
 
            if(block.timestamp <= tradeOpenTime + 8 minutes){
                fee_buy = 30.00 * 10 ** 2;
                fee_sell = 30.00 * 10 ** 2;
                _feeTaxes.liqPoolPercent = 10.00 * 10 ** 2;
                _feeTaxes.marketingPercent = 10.00 * 10 ** 2;
                _feeTaxes.tournamentPercent= 10.00 * 10**2;
            }
 
            else if(block.timestamp > tradeOpenTime + 8 minutes && block.timestamp <= tradeOpenTime + 16 minutes){
                fee_buy = 24.00 * 10 ** 2;
                fee_sell = 24.00 * 10 ** 2;
                _feeTaxes.liqPoolPercent = 8.00 * 10 ** 2;
                _feeTaxes.marketingPercent = 8.00 * 10 ** 2;
                _feeTaxes.tournamentPercent= 8.00 * 10**2;
            }
 
            else if(block.timestamp > tradeOpenTime + 16 minutes && block.timestamp <= tradeOpenTime + 24 minutes){
                fee_buy = 21.00 * 10 ** 2;
                fee_sell = 21.00 * 10 ** 2;
                _feeTaxes.liqPoolPercent = 7.00 * 10 ** 2;
                _feeTaxes.marketingPercent = 7.00 * 10 ** 2;
                _feeTaxes.tournamentPercent= 7.00 * 10**2;
            }
            else if(block.timestamp > tradeOpenTime + 24 minutes && block.timestamp <= tradeOpenTime + 32 minutes){
                fee_buy = 15.00 * 10 ** 2;
                fee_sell = 15.00 * 10 ** 2;
                _feeTaxes.liqPoolPercent = 5.00 * 10 ** 2;
                _feeTaxes.marketingPercent = 5.00 * 10 ** 2;
                _feeTaxes.tournamentPercent= 5.00 * 10**2;      
            }
            else{
                fee_buy = 4.00 * 10 ** 2;
                fee_sell = 4.00 * 10 ** 2;
                _feeTaxes.liqPoolPercent = 1.00 * 10 ** 2;
                _feeTaxes.marketingPercent = 2.00 * 10 ** 2;
                _feeTaxes.tournamentPercent= 1.00 * 10**2;
            }
 
            // Stop updating fees after 40 minutes
            if (block.timestamp > tradeOpenTime + 40 minutes) {
                updateFeesActive = false;
            }
        }
    }
 
    //ERC20
    function _transfer(address from, address to, uint256 amount) internal {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");

        //If it's the owner, do a normal transfer
        if (from == owner() || to == owner() || from == address(this)) {
            _transferTokens(from, to, amount);
            return;
        }
        //Check if trading is enabled
        require(trade_open, "Trading is disabled");
 
        //Update fees
        updateFees();
 
        uint256 fee_amount = 0;
        bool isbuy = from == pair_addr;
        bool isSell = to == pair_addr;
 
        if (!isbuy && !isSell) {
            //Handle fees
            HandleFees();
        }
        
        //Calculate fee if conditions met
        //Buy
        if (isbuy) {
            if(block.timestamp < tradeOpenTime + 30 days){
                require (amount <= max_tx, "Cannot buy more than max limit");
                if (!ignore_fee[to]) {
                    fee_amount = CalcPercent(amount, fee_buy);
                }
            }
            else{
                if (!ignore_fee[to]) {
                    fee_amount = CalcPercent(amount, fee_buy);
                }
            }
        }
        //Sell
        else if (isSell){
            if (!ignore_fee[from]) {
                fee_amount = CalcPercent(amount, fee_sell);
            }
        }
        //Fee tokens
        unchecked {
            require(amount >= fee_amount, "fee exceeds amount");
            amount -= fee_amount;
        }
        //Disable maxes
        if (limits_active) {
            //Check maxes
            require(amount <= max_tx, "Max TX reached");
        }

        //Transfer fee tokens to contract
        if (fee_amount > 0) {
            _transferTokens(from, address(this), fee_amount);
        }
        
        //Transfer tokens
        _transferTokens(from, to, amount);
    }
 
    function HandleFees() private {
        uint256 token_balance = balanceOf(address(this));
        bool can_swap = token_balance >= swap_at_amount;
 
        if (can_swap && !inSwap && swap_enabled) {
            SwapTokensForEth(swap_at_amount);
            uint256 eth_balance = address(this).balance;
            if (eth_balance > 0 ether) {
                SendETHToFee(address(this).balance);
            }
        }
    }
 
    function SwapTokensForEth(uint256 _amount) private lockTheSwap {
        uint256 eth_am = CalcPercent(_amount, percent_helper - _feeTaxes.liqPoolPercent);
        uint256 liq_am = _amount - eth_am;
        uint256 balance_before = address(this).balance;
 
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        _approve(address(this), address(uniswapV2Router), _amount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            eth_am,
            0,
            path,
            address(this),
            block.timestamp
        );
        uint256 liq_eth = address(this).balance - balance_before;
 
        AddLiquidity(liq_am, CalcPercent(liq_eth, _feeTaxes.liqPoolPercent));
    }
 
    function SendETHToFee(uint256 _totalAmount) private {
        uint256 marketingWalletAmount = CalcPercent(_totalAmount, _feeTaxes.marketingPercent);
        uint256 tournamentWalletAmount = CalcPercent(_totalAmount, _feeTaxes.tournamentPercent);
 
        transfer(marketingWallet,marketingWalletAmount);
        transfer(tournamentWallet,tournamentWalletAmount);
    }
 
    function AddLiquidity(uint256 _amount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), _amount);
 
        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            _amount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(0),
            block.timestamp
        );
    }
 
    //ERC20
    function name() public view virtual override returns (string memory) {
        return _name;
    }
 
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }
 
    function decimals() public view virtual override returns (uint8) {
        return _decimals;
    }
 
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }
 
    function balanceOf(
        address account
    ) public view virtual override returns (uint256) {
        return _balances[account];
    }

    
    function transfer(
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }
 
    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;
    }
 
    function allowance(
        address owner,
        address spender
    ) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }
 
    function approve(
        address spender,
        uint256 amount
    ) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }
 
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
 
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }
 
    function _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);
            }
        }
    }
 
    function _transferTokens(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        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);
    }
 
    // Function to receive Ether. msg.data must be empty
    receive() external payable {}
 
    // Fallback function is called when msg.data is not empty
    fallback() external payable {}
}

Read Contract

_feeTaxes 0x93da30b1 → uint32, uint32, uint32
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
burn_cooldown 0x91d88b95 → uint256
burn_last 0xf5a27e86 → uint256
decimals 0x313ce567 → uint8
fee_buy 0x7971fca7 → uint32
fee_sell 0x6264300e → uint32
ignore_fee 0xd11fcb85 → bool
limits_active 0xa20adf86 → bool
marketingWallet 0x75f0a874 → address
max_tx 0x70fbc712 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair_addr 0x91f18b7c → address
swap_at_amount 0x685e838e → uint256
swap_enabled 0xac935834 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tournamentWallet 0xd1855920 → address
tradeOpenTime 0x12fbbbe4 → uint256
trade_open 0x7aab5d9b → bool
updateFeesActive 0x249715a6 → bool

Write Contract 17 functions

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

BurnLiquidityTokens 0x49dc859c
uint256 _amount
ManualSwap 0xa1780c18
No parameters
OpenTrade 0x8e26bbe4
bool _enable
SetFee 0x96418d4d
uint32 _fee_buy
uint32 _fee_sell
SetIgnoreFee 0x63126e17
address[] _input
bool _enabled
SetLimits 0xbd186c4c
bool _enable
SetMarketingWallet 0x1d5165cf
address _marketingWallet
SetMaxes 0x97666a0d
uint256 _max_tx
SetSwapAtAmount 0x52c7826e
uint256 _swap_amt
SetTokenSwap 0x8bf67ad0
uint256 _amount
uint32 _lp_percent
bool _enabled
SetTournamentWallet 0xff578f5c
address _tournamentWallet
TransferEx 0xba414b10
address[] _input
uint256 _amount
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

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