Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x458f58eee6Dbfd4601557e33cDfE0fdc6c159Fa2
Balance 0 ETH
Nonce 3
Code Size 14187 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

14187 bytes
0x60806040526004361061026d575f3560e01c80638c0b5e221161014a578063bf6642e7116100be578063e98030c711610078578063e98030c7146107b2578063f2fde38b146107d1578063f7d53efa146107f0578063f8b45b051461080f578063f9d0831a14610824578063fc6c2bda14610843575f80fd5b8063bf6642e7146106dd578063c0246668146106fc578063c851cc321461071b578063dd62ed3e1461073a578063df4d1ae61461077e578063e2f456051461079d575f80fd5b8063a26579ad1161010f578063a26579ad1461061f578063a457c2d714610633578063a8b9d24014610652578063a9059cbb14610671578063b62496f514610690578063bc337182146106be575f80fd5b80638c0b5e22146105a55780638da5cb5b146105ba57806395d89b41146105d75780639a7a23d6146105eb5780639c1b8af51461060a575f80fd5b806349bd5a5e116101e15780636843cd84116101a65780636843cd84146104f65780636951a0791461051557806370a0823114610534578063715018a61461055357806375f0a87414610567578063871c128d14610586575f80fd5b806349bd5a5e1461044e5780634e71d92d1461046d5780634fbee193146104815780635d0044ca146104b85780635d098b38146104d7575f80fd5b80632b14ca56116102325780632b14ca561461034557806330bb4cff1461039a578063313ce567146103c357806331e79db0146103de57806339509351146103ff578063470624021461041e575f80fd5b806306fdde0314610278578063095ea7b3146102a25780631694505e146102d157806318160ddd1461030857806323b872dd14610326575f80fd5b3661027457005b5f80fd5b348015610283575f80fd5b5061028c610862565b6040516102999190613297565b60405180910390f35b3480156102ad575f80fd5b506102c16102bc3660046132f6565b6108f2565b6040519015158152602001610299565b3480156102dc575f80fd5b506008546102f0906001600160a01b031681565b6040516001600160a01b039091168152602001610299565b348015610313575f80fd5b506002545b604051908152602001610299565b348015610331575f80fd5b506102c1610340366004613320565b610908565b348015610350575f80fd5b506007546103759061ffff808216916201000081048216916401000000009091041683565b6040805161ffff94851681529284166020840152921691810191909152606001610299565b3480156103a5575f80fd5b506103ae6109b5565b60408051928352602083019190915201610299565b3480156103ce575f80fd5b5060405160098152602001610299565b3480156103e9575f80fd5b506103fd6103f836600461335e565b610aa7565b005b34801561040a575f80fd5b506102c16104193660046132f6565b610b89565b348015610429575f80fd5b506006546103759061ffff808216916201000081048216916401000000009091041683565b348015610459575f80fd5b506009546102f0906001600160a01b031681565b348015610478575f80fd5b506103fd610bc4565b34801561048c575f80fd5b506102c161049b36600461335e565b6001600160a01b03165f9081526012602052604090205460ff1690565b3480156104c3575f80fd5b506103fd6104d2366004613379565b610caa565b3480156104e2575f80fd5b506103fd6104f136600461335e565b610d6e565b348015610501575f80fd5b506103ae61051036600461335e565b610e23565b348015610520575f80fd5b506103fd61052f3660046133a6565b610f08565b34801561053f575f80fd5b5061031861054e36600461335e565b611020565b34801561055e575f80fd5b506103fd61103a565b348015610572575f80fd5b506010546102f0906001600160a01b031681565b348015610591575f80fd5b506103fd6105a0366004613379565b61106f565b3480156105b0575f80fd5b50610318600e5481565b3480156105c5575f80fd5b506005546001600160a01b03166102f0565b3480156105e2575f80fd5b5061028c6111c0565b3480156105f6575f80fd5b506103fd6106053660046133f3565b6111cf565b348015610615575f80fd5b5061031860115481565b34801561062a575f80fd5b506103ae61129c565b34801561063e575f80fd5b506102c161064d3660046132f6565b611362565b34801561065d575f80fd5b506103ae61066c36600461335e565b6113fa565b34801561067c575f80fd5b506102c161068b3660046132f6565b61149b565b34801561069b575f80fd5b506102c16106aa36600461335e565b60136020525f908152604090205460ff1681565b3480156106c9575f80fd5b506103fd6106d8366004613379565b6114a7565b3480156106e8575f80fd5b506103fd6106f7366004613379565b611551565b348015610707575f80fd5b506103fd6107163660046133f3565b61158f565b348015610726575f80fd5b506103fd61073536600461335e565b611697565b348015610745575f80fd5b5061031861075436600461342a565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610789575f80fd5b50600a546102f0906001600160a01b031681565b3480156107a8575f80fd5b50610318600d5481565b3480156107bd575f80fd5b506103fd6107cc366004613379565b611aa0565b3480156107dc575f80fd5b506103fd6107eb36600461335e565b611b54565b3480156107fb575f80fd5b50600b546102f0906001600160a01b031681565b34801561081a575f80fd5b50610318600f5481565b34801561082f575f80fd5b506103fd61083e36600461335e565b611bec565b34801561084e575f80fd5b506103fd61085d3660046133a6565b611db3565b60606003805461087190613456565b80601f016020809104026020016040519081016040528092919081815260200182805461089d90613456565b80156108e85780601f106108bf576101008083540402835291602001916108e8565b820191905f5260205f20905b8154815290600101906020018083116108cb57829003601f168201915b5050505050905090565b5f6108fe338484611ec7565b5060015b92915050565b5f610914848484611fea565b6001600160a01b0384165f9081526001602090815260408083203384529091529020548281101561099d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6109aa8533858403611ec7565b506001949350505050565b5f80600a5f9054906101000a90046001600160a01b03166001600160a01b03166385a6b3ae6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a07573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2b919061348e565b600b5f9054906101000a90046001600160a01b03166001600160a01b03166385a6b3ae6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a7b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a9f919061348e565b915091509091565b6005546001600160a01b03163314610ad15760405162461bcd60e51b8152600401610994906134a5565b600a5460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015f604051808303815f87803b158015610b15575f80fd5b505af1158015610b27573d5f803e3d5ffd5b5050600b5460405163031e79db60e41b81526001600160a01b03858116600483015290911692506331e79db091506024015b5f604051808303815f87803b158015610b70575f80fd5b505af1158015610b82573d5f803e3d5ffd5b5050505050565b335f8181526001602090815260408083206001600160a01b038716845290915281205490916108fe918590610bbf9086906134ee565b611ec7565b600a5460405163bc4c4b3760e01b81523360048201525f60248201526001600160a01b039091169063bc4c4b37906044016020604051808303815f875af1158015610c11573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c359190613501565b50600b5460405163bc4c4b3760e01b81523360048201525f60248201526001600160a01b039091169063bc4c4b37906044016020604051808303815f875af1158015610c83573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ca79190613501565b50565b6005546001600160a01b03163314610cd45760405162461bcd60e51b8152600401610994906134a5565b610cf46103e8610cee600a610ce860025490565b906127cc565b906127de565b811015610d695760405162461bcd60e51b815260206004820152603a60248201527f546f6b656e3a204d61782057616c6c6574206c696d69742073686f756c64206260448201527f652067726561746f72207468616e20657175616c20746f2031250000000000006064820152608401610994565b600f55565b6005546001600160a01b03163314610d985760405162461bcd60e51b8152600401610994906134a5565b6001600160a01b038116610e015760405162461bcd60e51b815260206004820152602a60248201527f78536869623a20424f4e452057616c6c65742063616e27742062652061207a65604482015269726f206164647265737360b01b6064820152608401610994565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b600a546040516370a0823160e01b81526001600160a01b0383811660048301525f9283929116906370a0823190602401602060405180830381865afa158015610e6e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e92919061348e565b600b546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a08231906024015b602060405180830381865afa158015610edb573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610eff919061348e565b91509150915091565b6005546001600160a01b03163314610f325760405162461bcd60e51b8152600401610994906134a5565b6006805461ffff83811664010000000090810265ffff00000000198784166201000090810263ffffffff19909616858b161795909517908116821795869055918504831694610f8b94900483169290811691161761351c565b610f95919061351c565b6009805461ffff60b01b1916600160b01b61ffff93841681029190911791829055600a9104909116111561101b5760405162461bcd60e51b815260206004820152602760248201527f78536869623a204d6178206275792066656573206c696d6974206973203130206044820152661c195c98d95b9d60ca1b6064820152608401610994565b505050565b6001600160a01b03165f9081526020819052604090205490565b6005546001600160a01b031633146110645760405162461bcd60e51b8152600401610994906134a5565b61106d5f6127e9565b565b6005546001600160a01b031633146110995760405162461bcd60e51b8152600401610994906134a5565b62030d4081101580156110af57506207a1208111155b6111215760405162461bcd60e51b815260206004820152603b60248201527f78536869623a20676173466f7250726f63657373696e67206d7573742062652060448201527f6265747765656e203230302c30303020616e64203530302c30303000000000006064820152608401610994565b601154810361118e5760405162461bcd60e51b815260206004820152603360248201527f78536869623a2043616e6e6f742075706461746520676173466f7250726f63656044820152727373696e6720746f2073616d652076616c756560681b6064820152608401610994565b60115460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db7905f90a3601155565b60606004805461087190613456565b6005546001600160a01b031633146111f95760405162461bcd60e51b8152600401610994906134a5565b6009546001600160a01b039081169083160361128e5760405162461bcd60e51b815260206004820152604860248201527f78536869623a2054686520556e697377617020706169722063616e6e6f74206260448201527f652072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616064820152676b6572506169727360c01b608482015260a401610994565b611298828261283a565b5050565b5f80600a5f9054906101000a90046001600160a01b03166001600160a01b0316636f2789ec6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112ee573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611312919061348e565b600b5f9054906101000a90046001600160a01b03166001600160a01b0316636f2789ec6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a7b573d5f803e3d5ffd5b335f9081526001602090815260408083206001600160a01b0386168452909152812054828110156113e35760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610994565b6113f03385858403611ec7565b5060019392505050565b600a546040516302a2e74960e61b81526001600160a01b0383811660048301525f92839291169063a8b9d24090602401602060405180830381865afa158015611445573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611469919061348e565b600b546040516302a2e74960e61b81526001600160a01b0386811660048301529091169063a8b9d24090602401610ec0565b5f6108fe338484611fea565b6005546001600160a01b031633146114d15760405162461bcd60e51b8152600401610994906134a5565b6114e56103e8610cee600a610ce860025490565b81101561154c5760405162461bcd60e51b815260206004820152602f60248201527f546f6b656e3a2063616e277420736574206c6f776572207468616e203120706560448201526e7263656e74206f6620737570706c7960881b6064820152608401610994565b600e55565b6005546001600160a01b0316331461157b5760405162461bcd60e51b8152600401610994906134a5565b61158981633b9aca0061353e565b600d5550565b6005546001600160a01b031633146115b95760405162461bcd60e51b8152600401610994906134a5565b8015611639576001600160a01b0382165f9081526012602052604090205481151560ff9091161515036116395760405162461bcd60e51b815260206004820152602260248201527f78536869623a204163636f756e7420697320616c7265616479206578636c7564604482015261195960f21b6064820152608401610994565b6001600160a01b0382165f81815260126020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b031633146116c15760405162461bcd60e51b8152600401610994906134a5565b6008546001600160a01b03908116908216036117325760405162461bcd60e51b815260206004820152602a60248201527f78536869623a2054686520726f7574657220616c7265616479206861732074686044820152696174206164647265737360b01b6064820152608401610994565b600880546001600160a01b031981166001600160a01b038481169182179093556040805163c45a015560e01b8152905193909216925f9263c45a01559160048083019260209291908290030181865afa158015611791573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117b59190613555565b6001600160a01b031663e6a439053060085f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611814573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118389190613555565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015611881573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118a59190613555565b90506001600160a01b038116611a3f5760085f9054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611905573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119299190613555565b6001600160a01b031663c9c653963060085f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611988573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119ac9190613555565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156119f6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a1a9190613555565b600980546001600160a01b0319166001600160a01b0392909216919091179055611a5b565b600980546001600160a01b0319166001600160a01b0383161790555b816001600160a01b0316836001600160a01b03167f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e60405160405180910390a3505050565b6005546001600160a01b03163314611aca5760405162461bcd60e51b8152600401610994906134a5565b600a5460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c7906024015f604051808303815f87803b158015611b0d575f80fd5b505af1158015611b1f573d5f803e3d5ffd5b5050600b5460405163e98030c760e01b8152600481018590526001600160a01b03909116925063e98030c79150602401610b59565b6005546001600160a01b03163314611b7e5760405162461bcd60e51b8152600401610994906134a5565b6001600160a01b038116611be35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610994565b610ca7816127e9565b6005546001600160a01b03163314611c165760405162461bcd60e51b8152600401610994906134a5565b306001600160a01b03821603611c6e5760405162461bcd60e51b815260206004820152601f60248201527f78536869623a2063616e277420636c61696d206e617469766520746f6b656e006044820152606401610994565b6001600160a01b038116611cb2576005546040516001600160a01b03909116904780156108fc02915f818181858888f19350505050158015611298573d5f803e3d5ffd5b6040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015611cf8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d1c919061348e565b9050816001600160a01b031663a9059cbb611d3f6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303815f875af1158015611d89573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611dad9190613501565b50505050565b6005546001600160a01b03163314611ddd5760405162461bcd60e51b8152600401610994906134a5565b6007805461ffff83811664010000000090810265ffff00000000198784166201000090810263ffffffff19909616858b161795909517908116821795869055918504831694611e3694900483169290811691161761351c565b611e40919061351c565b6009805461ffff60c01b1916600160c01b61ffff93841681029190911791829055600a9104909116111561101b5760405162461bcd60e51b815260206004820152602860248201527f78536869623a204d61782053656c6c2066656573206c696d6974206973203130604482015267081c195c98d95b9d60c21b6064820152608401610994565b6001600160a01b038316611f295760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610994565b6001600160a01b038216611f8a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610994565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166120105760405162461bcd60e51b815260040161099490613570565b6001600160a01b0382166120365760405162461bcd60e51b8152600401610994906135b5565b805f036120485761101b83835f6129eb565b5f61205230611020565b600d54909150811080159081906120735750600954600160a01b900460ff16155b801561209757506001600160a01b0385165f9081526013602052604090205460ff16155b80156120b157506005546001600160a01b03868116911614155b80156120cb57506005546001600160a01b03858116911614155b1561210a576009805460ff60a01b1916600160a01b1790556120ec82612aef565b6120f4612c37565b6120fc612dd5565b6009805460ff60a01b191690555b6009546001600160a01b0386165f9081526012602052604090205460ff600160a01b90920482161591168061215657506001600160a01b0385165f9081526012602052604090205460ff165b1561215e57505f5b8015612418575f600e548511156121d45760405162461bcd60e51b815260206004820152603460248201527f546f6b656e3a20416d6f756e742065786365656473207472616e736665722070604482015273195c881d1c985b9cd858dd1a5bdb881b1a5b5a5d60621b6064820152608401610994565b6001600160a01b0386165f9081526013602052604090205460ff1661226857600f548561220088611020565b61220a91906134ee565b11156122685760405162461bcd60e51b815260206004820152602760248201527f546f6b656e3a2042616c616e63652065786365656473204d61782057616c6c656044820152661d081b1a5b5a5d60ca1b6064820152608401610994565b600954600160a81b900460ff1615801561228d5750600954600160d01b900461ffff16155b156122d457600980546006805465ffffffffffff1990811664030001000190811790925560078054909116909117905564ffffffffff60a81b1916630500050160a81b1790555b6001600160a01b0387165f9081526013602052604090205460ff16156123695760095461231490606490610cee908890600160b01b900461ffff166127cc565b6009549091506001600160d01b90910461ffff16106123645760095461234790600190600160d01b900461ffff166135f8565b6009601a6101000a81548161ffff021916908361ffff1602179055505b6123ac565b6001600160a01b0386165f9081526013602052604090205460ff16156123ac576009546123a990606490610cee908890600160c01b900461ffff166127cc565b90505b8015612416576123bc8582612f0c565b9450306001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161240391815260200190565b60405180910390a36124168730836129eb565b505b6124238686866129eb565b846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405161246891815260200190565b60405180910390a3600a546001600160a01b031663e30443bc8761248b81611020565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b1580156124ce575f80fd5b505af19250505080156124df575060015b50600a546001600160a01b031663e30443bc866124fb81611020565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b15801561253e575f80fd5b505af192505050801561254f575060015b50600b546001600160a01b031663e30443bc8761256b81611020565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b1580156125ae575f80fd5b505af19250505080156125bf575060015b50600b546001600160a01b031663e30443bc866125db81611020565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b15801561261e575f80fd5b505af192505050801561262f575060015b50600954600160a01b900460ff166127c457601154600a546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303815f875af19250505080156126ad575060408051601f3d908101601f191682019092526126aa91810190613613565b60015b156127035760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b600b546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303815f875af192505050801561276c575060408051601f3d908101601f1916820190925261276991810190613613565b60015b156127c25760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b505050505050565b5f6127d7828461353e565b9392505050565b5f6127d7828461363e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382165f9081526013602052604090205481151560ff9091161515036128cf5760405162461bcd60e51b815260206004820152603f60248201527f78536869623a204175746f6d61746564206d61726b6574206d616b657220706160448201527f697220697320616c72656164792073657420746f20746861742076616c7565006064820152608401610994565b6001600160a01b0382165f908152601360205260409020805460ff191682158015919091179091556129b057600a5460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db0906024015f604051808303815f87803b15801561293f575f80fd5b505af1158015612951573d5f803e3d5ffd5b5050600b5460405163031e79db60e41b81526001600160a01b03868116600483015290911692506331e79db091506024015f604051808303815f87803b158015612999575f80fd5b505af11580156129ab573d5f803e3d5ffd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab905f90a35050565b6001600160a01b038316612a115760405162461bcd60e51b815260040161099490613570565b6001600160a01b038216612a375760405162461bcd60e51b8152600401610994906135b5565b6001600160a01b0383165f9081526020819052604090205481811015612aae5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610994565b6001600160a01b038085165f90815260208190526040808220858503905591851681529081208054849290612ae49084906134ee565b90915550611dad9050565b47612af982612f17565b5f612b044783612f0c565b6009549091505f90612b6290612b2e9061ffff600160c01b8204811691600160b01b90041661351c565b60075460065461ffff92831692610cee92612b579262010000918290048316929190041661351c565b859061ffff166127cc565b6009549091505f90612bb690612b8c9061ffff600160c01b8204811691600160b01b90041661351c565b60075460065461ffff92831692610cee92612bab92908216911661351c565b869061ffff166127cc565b90505f8215612bc857612bc88361305f565b8115612bd757612bd7826131b2565b47156127c4576010546040516001600160a01b039091169047905f81818185875af1925050503d805f8114612c27576040519150601f19603f3d011682016040523d82523d5f602084013e612c2c565b606091505b505050505050505050565b6040516370a0823160e01b81523060048201525f907395ad61b0a150d79219dcf64e1e6cc01f0b64c4ce906370a0823190602401602060405180830381865afa158015612c86573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612caa919061348e565b600a5460405163a9059cbb60e01b81526001600160a01b039091166004820152602481018290529091505f907395ad61b0a150d79219dcf64e1e6cc01f0b64c4ce9063a9059cbb906044016020604051808303815f875af1158015612d11573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d359190613501565b9050801561129857600a54604051632287d53b60e11b8152600481018490526001600160a01b039091169063450faa76906024015b5f604051808303815f87803b158015612d81575f80fd5b505af1158015612d93573d5f803e3d5ffd5b505060408051858152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15050565b6040516370a0823160e01b81523060048201525f90739813037ee2218799597d83d4a5b6f3b6778218d9906370a0823190602401602060405180830381865afa158015612e24573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612e48919061348e565b600b5460405163a9059cbb60e01b81526001600160a01b039091166004820152602481018290529091505f90739813037ee2218799597d83d4a5b6f3b6778218d99063a9059cbb906044016020604051808303815f875af1158015612eaf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ed39190613501565b9050801561129857600b54604051632287d53b60e11b8152600481018490526001600160a01b039091169063450faa7690602401612d6a565b5f6127d7828461365d565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110612f4a57612f4a613670565b6001600160a01b03928316602091820292909201810191909152600854604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612fa1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612fc59190613555565b81600181518110612fd857612fd8613670565b6001600160a01b039283166020918202929092010152600854612ffe9130911684611ec7565b60085460405163791ac94760e01b81526001600160a01b039091169063791ac947906130369085905f908690309042906004016136c6565b5f604051808303815f87803b15801561304d575f80fd5b505af11580156127c4573d5f803e3d5ffd5b6040805160028082526060820183525f926020830190803683375050600854604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156130c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906130ea9190613555565b815f815181106130fc576130fc613670565b60200260200101906001600160a01b031690816001600160a01b031681525050739813037ee2218799597d83d4a5b6f3b6778218d98160018151811061314457613144613670565b6001600160a01b03928316602091820292909201015260085460405163b6f9de9560e01b815291169063b6f9de95908490613189905f90869030904290600401613701565b5f604051808303818588803b1580156131a0575f80fd5b505af11580156127c2573d5f803e3d5ffd5b6040805160028082526060820183525f926020830190803683375050600854604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015613219573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061323d9190613555565b815f8151811061324f5761324f613670565b60200260200101906001600160a01b031690816001600160a01b0316815250507395ad61b0a150d79219dcf64e1e6cc01f0b64c4ce8160018151811061314457613144613670565b5f6020808352835180828501525f5b818110156132c2578581018301518582016040015282016132a6565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610ca7575f80fd5b5f8060408385031215613307575f80fd5b8235613312816132e2565b946020939093013593505050565b5f805f60608486031215613332575f80fd5b833561333d816132e2565b9250602084013561334d816132e2565b929592945050506040919091013590565b5f6020828403121561336e575f80fd5b81356127d7816132e2565b5f60208284031215613389575f80fd5b5035919050565b803561ffff811681146133a1575f80fd5b919050565b5f805f606084860312156133b8575f80fd5b6133c184613390565b92506133cf60208501613390565b91506133dd60408501613390565b90509250925092565b8015158114610ca7575f80fd5b5f8060408385031215613404575f80fd5b823561340f816132e2565b9150602083013561341f816133e6565b809150509250929050565b5f806040838503121561343b575f80fd5b8235613446816132e2565b9150602083013561341f816132e2565b600181811c9082168061346a57607f821691505b60208210810361348857634e487b7160e01b5f52602260045260245ffd5b50919050565b5f6020828403121561349e575f80fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610902576109026134da565b5f60208284031215613511575f80fd5b81516127d7816133e6565b61ffff818116838216019080821115613537576135376134da565b5092915050565b8082028115828204841417610902576109026134da565b5f60208284031215613565575f80fd5b81516127d7816132e2565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b61ffff828116828216039080821115613537576135376134da565b5f805f60608486031215613625575f80fd5b8351925060208401519150604084015190509250925092565b5f8261365857634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610902576109026134da565b634e487b7160e01b5f52603260045260245ffd5b5f8151808452602080850194508084015f5b838110156136bb5781516001600160a01b031687529582019590820190600101613696565b509495945050505050565b85815284602082015260a060408201525f6136e460a0830186613684565b6001600160a01b0394909416606083015250608001529392505050565b848152608060208201525f6137196080830186613684565b6001600160a01b0394909416604083015250606001529291505056fea2646970667358221220ec362a40a9de2d6460e23808fa560c1d374aa6c4a8f57caf9a38d85c73f6578a64736f6c63430008150033

Verified Source Code Full Match

Compiler: v0.8.21+commit.d9974bed EVM: shanghai Optimization: Yes (200 runs)
SHIBBONE.sol 2423 lines
// SPDX-License-Identifier: MIT

// 1ST EVER $SHIB x $BONE REWARDS TOKEN. WOOF!
// WEBSITE: https://www.shibbonetoken.com/
// TELEGRAM: https://t.me/shibboneportal
// X TWITTER: https://twitter.com/ShibariumSB
// Be True To Your Work And Your Work Will Be True To You.


pragma solidity 0.8.21;
// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol


interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol


interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol


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

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

// File: contracts/math/IterableMapping.sol


library IterableMapping {
    // Iterable mapping from address to uint;
    struct Map {
        address[] keys;
        mapping(address => uint) values;
        mapping(address => uint) indexOf;
        mapping(address => bool) inserted;
    }

    function get(Map storage map, address key) internal view returns (uint) {
        return map.values[key];
    }

    function getIndexOfKey(Map storage map, address key) internal view returns (int) {
        if(!map.inserted[key]) {
            return -1;
        }
        return int(map.indexOf[key]);
    }

    function getKeyAtIndex(Map storage map, uint index) internal view returns (address) {
        return map.keys[index];
    }



    function size(Map storage map) internal view returns (uint) {
        return map.keys.length;
    }

    function set(Map storage map, address key, uint val) internal {
        if (map.inserted[key]) {
            map.values[key] = val;
        } else {
            map.inserted[key] = true;
            map.values[key] = val;
            map.indexOf[key] = map.keys.length;
            map.keys.push(key);
        }
    }

    function remove(Map storage map, address key) internal {
        if (!map.inserted[key]) {
            return;
        }

        delete map.inserted[key];
        delete map.values[key];

        uint index = map.indexOf[key];
        uint lastIndex = map.keys.length - 1;
        address lastKey = map.keys[lastIndex];

        map.indexOf[lastKey] = index;
        delete map.indexOf[key];

        map.keys[index] = lastKey;
        map.keys.pop();
    }
}

// File: contracts/interface/DividendPayingTokenOptionalInterface.sol


/// @title Dividend-Paying Token Optional Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev OPTIONAL functions for a dividend-paying token contract.
interface DividendPayingTokenOptionalInterface {
  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function withdrawableDividendOf(address _owner) external view returns(uint256);

  /// @notice View the amount of dividend in wei that an address has withdrawn.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has withdrawn.
  function withdrawnDividendOf(address _owner) external view returns(uint256);

  /// @notice View the amount of dividend in wei that an address has earned in total.
  /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has earned in total.
  function accumulativeDividendOf(address _owner) external view returns(uint256);
}

// File: contracts/interface/DividendPayingTokenInterface.sol

/// @title Dividend-Paying Token Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev An interface for a dividend-paying token contract.
interface DividendPayingTokenInterface {
  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function dividendOf(address _owner) external view returns(uint256);


  /// @notice Withdraws the ether distributed to the sender.
  /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer.
  ///  MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0.
  function withdrawDividend() external;

  /// @dev This event MUST emit when ether is distributed to token holders.
  /// @param from The address which sends ether to this contract.
  /// @param weiAmount The amount of distributed ether in wei.
  event DividendsDistributed(
    address indexed from,
    uint256 weiAmount
  );

  /// @dev This event MUST emit when an address withdraws their dividend.
  /// @param to The address which withdraws ether from this contract.
  /// @param weiAmount The amount of withdrawn ether in wei.
  event DividendWithdrawn(
    address indexed to,
    uint256 weiAmount
  );
}

// File: contracts/math/SafeMathInt.sol


/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }


    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

// File: contracts/math/SafeMathUint.sol

/**
 * @title SafeMathUint
 * @dev Math operations with safety checks that revert on error
 */
library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}

// File: @openzeppelin/contracts/utils/math/SafeMath.sol


// 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 no longer needed starting with Solidity 0.8. 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;
        }
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


/**
 * @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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


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

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.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);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.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 guidelines: functions revert instead
 * of 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 Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        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;

        _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;

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;


        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

// File: contracts/misc/DividendPayingToken.sol



/// @title Dividend-Paying Token
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev A mintable ERC20 token that allows anyone to pay and distribute ether
///  to token holders as dividends and allows token holders to withdraw their dividends.
///  Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code
contract DividendPayingToken is ERC20, Ownable, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface {
  using SafeMath for uint256;
  using SafeMathUint for uint256;
  using SafeMathInt for int256;

  address public reward;


  // With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
  // For more discussion about choosing the value of `magnitude`,
  //  see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
  uint256 constant internal magnitude = 2**128;

  uint256 internal magnifiedDividendPerShare;

  // About dividendCorrection:
  // If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
  //   `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
  // When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
  //   `dividendOf(_user)` should not be changed,
  //   but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
  // To keep the `dividendOf(_user)` unchanged, we add a correction term:
  //   `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
  //   where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
  //   `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
  // So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
  mapping(address => int256) internal magnifiedDividendCorrections;
  mapping(address => uint256) internal withdrawnDividends;

  uint256 public totalDividendsDistributed;

  constructor (string memory _name, string memory _symbol) ERC20(_name, _symbol) {
     
  }

  function decimals () public pure override returns (uint8) {
        return 9;
    }


  function distributeRewardDividends(uint256 amount) public onlyOwner{
    require(totalSupply() > 0);

    if (amount > 0) {
      magnifiedDividendPerShare = magnifiedDividendPerShare.add(
        (amount).mul(magnitude) / totalSupply()
      );
      emit DividendsDistributed(msg.sender, amount);

      totalDividendsDistributed = totalDividendsDistributed.add(amount);
    }
  }

  /// @notice Withdraws the ether distributed to the sender.
  /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
  function withdrawDividend() public virtual override {
    _withdrawDividendOfUser(payable(msg.sender));
  }

  /// @notice Withdraws the ether distributed to the sender.
  /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
 function _withdrawDividendOfUser(address payable user) internal returns (uint256) {
    uint256 _withdrawableDividend = withdrawableDividendOf(user);
    if (_withdrawableDividend > 0) {
      withdrawnDividends[user] = withdrawnDividends[user].add(_withdrawableDividend);
      emit DividendWithdrawn(user, _withdrawableDividend);
      bool success = IERC20(reward).transfer(user, _withdrawableDividend);

      if(!success) {
        withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend);
        return 0;
      }

      return _withdrawableDividend;
    }

    return 0;
  }


  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function dividendOf(address _owner) public view override returns(uint256) {
    return withdrawableDividendOf(_owner);
  }

  /// @notice View the amount of dividend in wei that an address can withdraw.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` can withdraw.
  function withdrawableDividendOf(address _owner) public view override returns(uint256) {
    return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
  }

  /// @notice View the amount of dividend in wei that an address has withdrawn.
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has withdrawn.
  function withdrawnDividendOf(address _owner) public view override returns(uint256) {
    return withdrawnDividends[_owner];
  }


  /// @notice View the amount of dividend in wei that an address has earned in total.
  /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
  /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
  /// @param _owner The address of a token holder.
  /// @return The amount of dividend in wei that `_owner` has earned in total.
  function accumulativeDividendOf(address _owner) public view override returns(uint256) {
    return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe()
      .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude;
  }

  /// @dev Internal function that transfer tokens from one address to another.
  /// Update magnifiedDividendCorrections to keep dividends unchanged.
  /// @param from The address to transfer from.
  /// @param to The address to transfer to.
  /// @param value The amount to be transferred.
  function _transfer(address from, address to, uint256 value) internal virtual override {
    require(false);

    int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe();
    magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
    magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection);
  }

  /// @dev Internal function that mints tokens to an account.
  /// Update magnifiedDividendCorrections to keep dividends unchanged.
  /// @param account The account that will receive the created tokens.
  /// @param value The amount that will be created.
  function _mint(address account, uint256 value) internal override {
    super._mint(account, value);

    magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
      .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
  }

  /// @dev Internal function that burns an amount of the token of a given account.
  /// Update magnifiedDividendCorrections to keep dividends unchanged.
  /// @param account The account whose tokens will be burnt.
  /// @param value The amount that will be burnt.
  function _burn(address account, uint256 value) internal override {
    super._burn(account, value);

    magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
      .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
  }

  function _setBalance(address account, uint256 newBalance) internal {
    uint256 currentBalance = balanceOf(account);

    if(newBalance > currentBalance) {
      uint256 mintAmount = newBalance.sub(currentBalance);
      _mint(account, mintAmount);
    } else if(newBalance < currentBalance) {
      uint256 burnAmount = currentBalance.sub(newBalance);
      _burn(account, burnAmount);
    }
  }
}

// File: contracts/ShibBone.sol

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

    struct BuyFee {
        uint16 SHIB;
        uint16 BONE;
        uint16 MARKETING;
    }

    struct SellFee {
        uint16 SHIB;
        uint16 BONE;
        uint16 MARKETING;
    }


    BuyFee public buyFee;
    SellFee public sellFee;

    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    bool private swapping;
    bool private normalTaxEnabled = false;

    uint16 private totalBuyFee;
    uint16 private totalSellFee;

    uint16 buyCount = 50; // no. of buys after that tax will become normal

    TOKENDividendTrackerOne public dividendTrackerShib;
    TOKENDividendTrackerTwo public dividendTrackerBone;

    address private  deadWallet = address(0xdead);

    address private constant SHIB =
        address(0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE); //SHIBA INU

    address private constant BONE = 
        address(0x9813037ee2218799597d83D4a5B6F3b6778218d9); //BONE
       

    uint256 public swapTokensAtAmount = 2e9 * 1e9;
    uint256 public maxTxAmount;
    uint256 public maxWallet;

    address public marketingWallet = address(0xED03b444dFEFB577bb0cf13e551610142dae3d00); //set your marketing wallet here

    // use by default 300,000 gas to process auto-claiming dividends
    uint256 public gasForProcessing = 300000;

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

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping(address => bool) public automatedMarketMakerPairs;


    event UpdateUniswapV2Router(
        address indexed newAddress,
        address indexed oldAddress
    );

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event Transfer(address indexed from, address indexed to, uint256 value);
    
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event GasForProcessingUpdated(
        uint256 indexed newValue,
        uint256 indexed oldValue
    );

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    event SendDividends(uint256 tokensSwapped, uint256 amount);

    event ProcessedDividendTracker(
        uint256 iterations,
        uint256 claims,
        uint256 lastProcessedIndex,
        bool indexed automatic,
        uint256 gas,
        address indexed processor
    );

    constructor() ERC20("ShibBone", "xShib") {
        dividendTrackerShib = new TOKENDividendTrackerOne(SHIB);
        dividendTrackerBone = new TOKENDividendTrackerTwo(BONE);

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D //Uniswap V2 router
           
        );
        // Create a uniswap pair for this new token
        address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;
       
       //// INITIAL TAXES ///
        buyFee.SHIB = 3;
        buyFee.BONE = 3;
        buyFee.MARKETING = 9;
        totalBuyFee = 15;

        sellFee.SHIB = 4;
        sellFee.BONE = 4;
        sellFee.MARKETING = 12;
        totalSellFee = 20;

        uint256 maxSupply = 1e15 * 1e9; // 1,000,000,000,000,000 tokens

        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

        // exclude following addresses from receiving dividends
        dividendTrackerShib.excludeFromDividends(address(dividendTrackerShib));
        dividendTrackerShib.excludeFromDividends(address(this));
        dividendTrackerShib.excludeFromDividends(owner());
        dividendTrackerShib.excludeFromDividends(deadWallet);
        dividendTrackerShib.excludeFromDividends(address(_uniswapV2Router));

        dividendTrackerBone.excludeFromDividends(address(dividendTrackerBone));
        dividendTrackerBone.excludeFromDividends(address(this));
        dividendTrackerBone.excludeFromDividends(owner());
        dividendTrackerBone.excludeFromDividends(deadWallet);
        dividendTrackerBone.excludeFromDividends(address(_uniswapV2Router));



        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(marketingWallet, true);
        excludeFromFees(deadWallet, true);
        excludeFromFees(address(this), true);

        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        emit Transfer(address(0), owner(), maxSupply);
        _mint(owner(), maxSupply);

        maxTxAmount = totalSupply().mul(1).div(100); // 1% per per transaction
        maxWallet = totalSupply().mul(3).div(100);// 3% of the supply per wallet limit
    }

    receive() external payable {}

    function decimals () public pure override returns (uint8) {
        return 9;
    }
    
    /// @notice switch to normal taxes 
    /// this function is called when buyCount is completed
    /// eg. if buyCount is 50, means alteast 50 buys should be executed,
    /// before this function excecution
    function switchToNormalTaxes () internal {
        normalTaxEnabled = true;
        buyFee.SHIB = 1;
        buyFee.BONE = 1;
        buyFee.MARKETING = 3;
        totalBuyFee = 5;

        sellFee.SHIB = 1;
        sellFee.BONE = 1;
        sellFee.MARKETING = 3;
        totalSellFee = 5;
    }

 
    ///@dev update router address to new one
    ///@param newAddress: owner can update the router address
    function updateRouter(address newAddress) external onlyOwner {
        require(newAddress != address(uni...

// [truncated — 78521 bytes total]

Read Contract

allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint16, uint16, uint16
decimals 0x313ce567 → uint8
dividendTokenBalanceOf 0x6843cd84 → uint256, uint256
dividendTrackerBone 0xf7d53efa → address
dividendTrackerShib 0xdf4d1ae6 → address
gasForProcessing 0x9c1b8af5 → uint256
getClaimWait 0xa26579ad → uint256, uint256
getTotalDividendsDistributed 0x30bb4cff → uint256, uint256
isExcludedFromFees 0x4fbee193 → bool
marketingWallet 0x75f0a874 → address
maxTxAmount 0x8c0b5e22 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint16, uint16, uint16
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
withdrawableDividendOf 0xa8b9d240 → uint256, uint256

Write Contract 21 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
claim 0x4e71d92d
No parameters
claimStuckTokens 0xf9d0831a
address _token
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromDividends 0x31e79db0
address account
excludeFromFees 0xc0246668
address account
bool excluded
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setBuyFees 0x6951a079
uint16 _SHIB
uint16 _BONE
uint16 _MARKETING
setMarketingWallet 0x5d098b38
address _marketing
setMaxTx 0xbc337182
uint256 amount
setMaxWallet 0x5d0044ca
uint256 amount
setSellFees 0xfc6c2bda
uint16 _SHIB
uint16 _BONE
uint16 _MARKETING
setSwapTokens 0xbf6642e7
uint256 amount
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateClaimWait 0xe98030c7
uint256 claimWait
updateGasForProcessing 0x871c128d
uint256 newValue
updateRouter 0xc851cc32
address newAddress

Recent Transactions

No transactions found for this address