Address Contract Verified
Address
0x565d3902d6A5A2D5CE28ff427423E88933334DD2
Balance
0 ETH
Nonce
2
Code Size
14882 bytes
Creator
0xAb6FcA0E...17E1 at tx 0x385a6005...efab11
Indexed Transactions
0
Contract Bytecode
14882 bytes
0x608060405260043610610344575f3560e01c80638091f3bf116101bd578063b0249cc6116100f2578063d8fb9cc411610092578063e2f456051161006d578063e2f4560514610ad0578063e8cd2fec14610ae5578063f270fde414610afe578063f2fde38b14610b48575f80fd5b8063d8fb9cc414610a6a578063dbe66ca014610a83578063dd62ed3e14610ab1575f80fd5b8063bf78019b116100cd578063bf78019b146109c5578063c0f306ef146109e4578063ca13a70e14610a03578063cc1776d314610a22575f80fd5b8063b0249cc614610959578063b2a9c0c014610987578063bd9dfecc146109a6575f80fd5b8063a457c2d71161015d578063a9059cbb11610138578063a9059cbb1461089f578063aa5f7e26146108be578063ad56c13c146108dd578063ad5c464814610926575f80fd5b8063a457c2d714610842578063a8aa1b3114610861578063a8b9d24014610880575f80fd5b80638da5cb5b116101985780638da5cb5b146107d05780639507b19b146107ed57806395d89b41146108015780639e93ad8e14610815575f80fd5b80638091f3bf1461077957806380dee2571461079257806385033762146107b1575f80fd5b806331e79db0116102935780636612e66f1161023357806370a082311161020e57806370a08231146106ef578063715018a61461072357806371778e7d146107375780637b812b411461074b575f80fd5b80636612e66f146106305780636843cd841461064f5780636d7adcad1461066e575f80fd5b80634008c2f01161026e5780634008c2f01461055d5780634b833d641461057c5780634e71d92d1461059b5780634f7041a5146105af575f80fd5b806331e79db014610500578063395093511461051f5780633ad10ef61461053e575f80fd5b806314bb4edd116102fe5780631f903dfa116102d95780631f903dfa1461049357806323b872dd146104b257806330bb4cff146104d1578063313ce567146104e5575f80fd5b806314bb4edd1461043357806318160ddd146104605780631b03ddc114610474575f80fd5b80630106aaef1461034f57806304816a4e1461036557806306fdde03146103845780630758d924146103ae578063095ea7b3146103e557806313a351b514610414575f80fd5b3661034b57005b5f80fd5b34801561035a575f80fd5b50610363610b67565b005b348015610370575f80fd5b5061036361037f366004613335565b610c0f565b34801561038f575f80fd5b50610398610d2a565b6040516103a59190613362565b60405180910390f35b3480156103b9575f80fd5b506017546103cd906001600160a01b031681565b6040516001600160a01b0390911681526020016103a5565b3480156103f0575f80fd5b506104046103ff3660046133c1565b610dba565b60405190151581526020016103a5565b34801561041f575f80fd5b5061036361042e366004613335565b610dd3565b34801561043e575f80fd5b5061045261044d3660046133eb565b610ee4565b6040519081526020016103a5565b34801561046b575f80fd5b50600254610452565b34801561047f575f80fd5b50600e546103cd906001600160a01b031681565b34801561049e575f80fd5b50600a546103cd906001600160a01b031681565b3480156104bd575f80fd5b506104046104cc366004613406565b6110d2565b3480156104dc575f80fd5b506104526110f5565b3480156104f0575f80fd5b50604051601281526020016103a5565b34801561050b575f80fd5b5061036361051a3660046133eb565b611165565b34801561052a575f80fd5b506104046105393660046133c1565b6111ed565b348015610549575f80fd5b50600b546103cd906001600160a01b031681565b348015610568575f80fd5b50610452610577366004613444565b61120e565b348015610587575f80fd5b506103636105963660046133eb565b6113ef565b3480156105a6575f80fd5b50610363611480565b3480156105ba575f80fd5b50600c546105f79065ffffffffffff80821691600160301b8104821691600160601b8204811691600160901b8104821691600160c01b9091041685565b6040805165ffffffffffff968716815294861660208601529285169284019290925283166060830152909116608082015260a0016103a5565b34801561063b575f80fd5b5061036361064a366004613468565b6114f4565b34801561065a575f80fd5b506104526106693660046133eb565b61161e565b348015610679575f80fd5b50600f546010546106b4916001600160401b0380821692600160401b8304821692600160801b8104831692600160c01b909104169060ff1685565b604080516001600160401b0396871681529486166020860152928516928401929092529092166060820152901515608082015260a0016103a5565b3480156106fa575f80fd5b506104526107093660046133eb565b6001600160a01b03165f9081526020819052604090205490565b34801561072e575f80fd5b5061036361168b565b348015610742575f80fd5b506104526116fe565b348015610756575f80fd5b506104046107653660046133eb565b60076020525f908152604090205460ff1681565b348015610784575f80fd5b506008546104049060ff1681565b34801561079d575f80fd5b506103636107ac3660046134b9565b611745565b3480156107bc575f80fd5b506103636107cb3660046133eb565b611902565b3480156107db575f80fd5b506005546001600160a01b03166103cd565b3480156107f8575f80fd5b50610363611993565b34801561080c575f80fd5b50610398611a16565b348015610820575f80fd5b5061082a61271081565b6040516001600160401b0390911681526020016103a5565b34801561084d575f80fd5b5061040461085c3660046133c1565b611a25565b34801561086c575f80fd5b506016546103cd906001600160a01b031681565b34801561088b575f80fd5b5061045261089a3660046133eb565b611a9f565b3480156108aa575f80fd5b506104046108b93660046133c1565b611ad1565b3480156108c9575f80fd5b506103636108d8366004613444565b611ade565b3480156108e8575f80fd5b506108fc6108f73660046133eb565b611b95565b604080516001600160a01b03909516855260208501939093529183015260608201526080016103a5565b348015610931575f80fd5b506103cd7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b348015610964575f80fd5b506104046109733660046133eb565b60096020525f908152604090205460ff1681565b348015610992575f80fd5b506103636109a1366004613444565b611c16565b3480156109b1575f80fd5b506103636109c03660046134b9565b611d61565b3480156109d0575f80fd5b506103636109df366004613468565b611f1e565b3480156109ef575f80fd5b506103636109fe3660046133eb565b612040565b348015610a0e575f80fd5b50610363610a1d36600461350a565b61209c565b348015610a2d575f80fd5b50600d546105f79065ffffffffffff80821691600160301b8104821691600160601b8204811691600160901b8104821691600160c01b9091041685565b348015610a75575f80fd5b506014546104049060ff1681565b348015610a8e575f80fd5b50610404610a9d3660046133eb565b60066020525f908152604090205460ff1681565b348015610abc575f80fd5b50610452610acb366004613525565b6120d9565b348015610adb575f80fd5b5061045260155481565b348015610af0575f80fd5b506012546104049060ff1681565b348015610b09575f80fd5b50601154610b28906001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016103a5565b348015610b53575f80fd5b50610363610b623660046133eb565b612103565b6005546001600160a01b03163314610b9a5760405162461bcd60e51b8152600401610b9190613551565b60405180910390fd5b6012805460ff19169055604080518082019091525f80825260208201525f610bc160025490565b6001600160801b03811680845260208401819052600160801b8102176011556040519091507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c905f90a15050565b6005546001600160a01b03163314610c395760405162461bcd60e51b8152600401610b9190613551565b610c456012600a61367a565b6103e8610c5160025490565b610c5c906001613688565b610c6691906136b3565b610c7091906136b3565b816001600160801b03161015610cb25760405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606401610b91565b610cbe6012600a61367a565b610cd1906001600160801b038316613688565b601180546001600160801b03908116600160801b93821684021791829055604051929091041681527fde064515fae8f8bb6d8ff19d2c6ba704322def7494147d8a971266430ade0788906020015b60405180910390a150565b606060038054610d39906136c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d65906136c6565b8015610db05780601f10610d8757610100808354040283529160200191610db0565b820191905f5260205f20905b815481529060010190602001808311610d9357829003601f168201915b5050505050905090565b5f33610dc78185856121ed565b60019150505b92915050565b6005546001600160a01b03163314610dfd5760405162461bcd60e51b8152600401610b9190613551565b610e096012600a61367a565b6103e8610e1560025490565b610e20906001613688565b610e2a91906136b3565b610e3491906136b3565b816001600160801b03161015610e765760405162461bcd60e51b8152602060048201526007602482015266546f6f206c6f7760c81b6044820152606401610b91565b610e826012600a61367a565b610e95906001600160801b038316613688565b601180546001600160801b0319166001600160801b039290921691821790556040519081527f6710da7d4acedae09cb83751ae24c150719ef67dcbc1e02049f171d13c6b44e690602001610d1f565b5f80610eef83611a9f565b6040805160028082526060820183529293505f9290916020830190803683375050601754604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015610f5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f7f9190613712565b815f81518110610f9157610f9161372d565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110610fc557610fc561372d565b6001600160a01b03928316602091820292909201015260175460405163d06ca61f60e01b81525f92919091169063d06ca61f906110089086908690600401613783565b5f60405180830381865afa158015611022573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052611049919081019061379b565b600c549091506127109061106d90600160c01b900465ffffffffffff166032613853565b65ffffffffffff16826001815181106110885761108861372d565b602002602001015161109a9190613688565b6110a491906136b3565b816001815181106110b7576110b761372d565b60200260200101516110c99190613879565b95945050505050565b5f336110df858285612310565b6110ea858585612388565b506001949350505050565b600e54604080516342d359d760e11b815290515f926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa15801561113c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611160919061388c565b905090565b6005546001600160a01b0316331461118f5760405162461bcd60e51b8152600401610b9190613551565b600e5460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015b5f604051808303815f87803b1580156111d4575f80fd5b505af11580156111e6573d5f803e3d5ffd5b5050505050565b5f33610dc78185856111ff83836120d9565b61120991906138a3565b6121ed565b6040805160028082526060820183525f92839291906020830190803683375050601754604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015611279573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061129d9190613712565b815f815181106112af576112af61372d565b60200260200101906001600160a01b031690816001600160a01b03168152505030816001815181106112e3576112e361372d565b6001600160a01b03928316602091820292909201015260175460405163d06ca61f60e01b81525f92919091169063d06ca61f906113269087908690600401613783565b5f60405180830381865afa158015611340573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052611367919081019061379b565b600c549091506127109061138b90600160c01b900465ffffffffffff166032613853565b65ffffffffffff16826001815181106113a6576113a661372d565b60200260200101516113b89190613688565b6113c291906136b3565b816001815181106113d5576113d561372d565b60200260200101516113e79190613879565b949350505050565b6005546001600160a01b031633146114195760405162461bcd60e51b8152600401610b9190613551565b6001600160a01b03811661145e5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610b91565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600e5460405163bc4c4b3760e01b81523360048201525f60248201526001600160a01b039091169063bc4c4b37906044016020604051808303815f875af11580156114cd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114f191906138b6565b50565b6005546001600160a01b0316331461151e5760405162461bcd60e51b8152600401610b9190613551565b6001600160a01b0382166115635760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610b91565b306001600160a01b038316036115bb5760405162461bcd60e51b815260206004820152601a60248201527f43616e6e6f7420756e6578636c7564656420636f6e74726163740000000000006044820152606401610b91565b6001600160a01b0382165f81815260066020908152604091829020805460ff19168515159081179091558251938452908301527fc4eea32423e96d678d53f47ddd9b7a5103eea02606d7daa81c77038c54dc8edb91015b60405180910390a15050565b600e5460405163156dbbf560e31b81526001600160a01b0383811660048301525f92169063ab6ddfa8906024015b602060405180830381865afa158015611667573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dcd919061388c565b6005546001600160a01b031633146116b55760405162461bcd60e51b8152600401610b9190613551565b6005546040515f916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b600e546040805163ad7a672f60e01b815290515f926001600160a01b03169163ad7a672f9160048083019260209291908290030181865afa15801561113c573d5f803e3d5ffd5b6005546001600160a01b0316331461176f5760405162461bcd60e51b8152600401610b9190613551565b6040805160a0810182525f608082015265ffffffffffff8681168252858116928201929092528382166020820152908216606082015281836117b18688613853565b6117bb9190613853565b6117c59190613853565b65ffffffffffff16608082018190526103e8101561181a5760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610b91565b608081015160405165ffffffffffff90911681527f7a758dc8e99047b028278b3e2ff1416d8493a7aacee7a5dc30b6bf93270eccce9060200160405180910390a18051600c805460208401516040850151606086015160809096015165ffffffffffff908116600160c01b0265ffffffffffff60c01b19978216600160901b0265ffffffffffff60901b19938316600160601b02939093166bffffffffffffffffffffffff60601b19948316600160301b026bffffffffffffffffffffffff199096169290971691909117939093179190911693909317929092179290921617905550505050565b6005546001600160a01b0316331461192c5760405162461bcd60e51b8152600401610b9190613551565b6001600160a01b0381166119715760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b6044820152606401610b91565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146119bd5760405162461bcd60e51b8152600401610b9190613551565b60085460ff1615611a075760405162461bcd60e51b815260206004820152601460248201527354726164696e6720616c7265616479206c69766560601b6044820152606401610b91565b6008805460ff19166001179055565b606060048054610d39906136c6565b5f3381611a3282866120d9565b905083811015611a925760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b91565b6110ea82868684036121ed565b600e546040516302a2e74960e61b81526001600160a01b0383811660048301525f92169063a8b9d2409060240161164c565b5f33610dc7818585612388565b600e5460405163dcb95ed960e01b81523360048201525f916001600160a01b03169063dcb95ed9906024016020604051808303815f875af1158015611b25573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b49919061388c565b90508015611b6057611b5c81833361255b565b5050565b60405162461bcd60e51b815260206004820152600a6024820152694e6f207265776172647360b01b6044820152606401610b91565b600e5460405163fbcbc0f160e01b81526001600160a01b0383811660048301525f92839283928392169063fbcbc0f190602401608060405180830381865afa158015611be3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c0791906138d1565b93509350935093509193509193565b6005546001600160a01b03163314611c405760405162461bcd60e51b8152600401610b9190613551565b620186a0611c4d60025490565b611c58906001613688565b611c6291906136b3565b811015611ccf5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610b91565b6103e8611cdb60025490565b611ce6906005613688565b611cf091906136b3565b811115611d5c5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610b91565b601555565b6005546001600160a01b03163314611d8b5760405162461bcd60e51b8152600401610b9190613551565b6040805160a0810182525f608082015265ffffffffffff868116825285811692820192909252838216602082015290821660608201528183611dcd8688613853565b611dd79190613853565b611de19190613853565b65ffffffffffff16608082018190526103e81015611e365760405162461bcd60e51b81526020600482015260126024820152714b656570207461782062656c6f772031302560701b6044820152606401610b91565b608081015160405165ffffffffffff90911681527fa6255338a5f732d64ceba7f4c18182567f9d1067eb984b46d478b37d72a52d119060200160405180910390a18051600d805460208401516040850151606086015160809096015165ffffffffffff908116600160c01b0265ffffffffffff60c01b19978216600160901b0265ffffffffffff60901b19938316600160601b02939093166bffffffffffffffffffffffff60601b19948316600160301b026bffffffffffffffffffffffff199096169290971691909117939093179190911693909317929092179290921617905550505050565b6005546001600160a01b03163314611f485760405162461bcd60e51b8152600401610b9190613551565b6001600160a01b038216611f8d5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f204164647265737360a01b6044820152606401610b91565b80611fe5576016546001600160a01b0390811690831603611fe55760405162461bcd60e51b815260206004820152601260248201527121b0b73737ba103932b6b7bb32903830b4b960711b6044820152606401610b91565b6001600160a01b0382165f81815260076020908152604091829020805460ff19168515159081179091558251938452908301527f0712a8411c7892e205c3d35c5d2beabe76bb0b484bec43945f2024cd28eaae8d9101611612565b6005546001600160a01b0316331461206a5760405162461bcd60e51b8152600401610b9190613551565b600e5460405163c0f306ef60e01b81526001600160a01b0383811660048301529091169063c0f306ef906024016111bd565b6005546001600160a01b031633146120c65760405162461bcd60e51b8152600401610b9190613551565b6014805460ff1916911515919091179055565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6005546001600160a01b0316331461212d5760405162461bcd60e51b8152600401610b9190613551565b6001600160a01b0381166121925760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b91565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03831661224f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b91565b6001600160a01b0382166122b05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b91565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61231b84846120d9565b90505f19811461238257818110156123755760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b91565b61238284848484036121ed565b50505050565b6001600160a01b0383165f9081526006602052604090205460ff161580156123c857506001600160a01b0382165f9081526006602052604090205460ff16155b156124375760085460ff166124145760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610b91565b61241f8383836126a5565b61242a838383612943565b6124349082613879565b90505b612442838383612d2f565b600e546001600160a01b031663e30443bc83612472816001600160a01b03165f9081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b1580156124b5575f80fd5b505af11580156124c7573d5f803e3d5ffd5b5050600e546001600160a01b0316915063e30443bc9050846124fd816001600160a01b03165f9081526020819052604090205490565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044015f604051808303815f87803b158015612540575f80fd5b505af1158015612552573d5f803e3d5ffd5b50505050505050565b6040805160028082526060820183525f926020830190803683375050601754604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156125c2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125e69190613712565b815f815181106125f8576125f861372d565b60200260200101906001600160a01b031690816001600160a01b031681525050308160018151811061262c5761262c61372d565b6001600160a01b03928316602091820292909201015260175460405163b6f9de9560e01b815291169063b6f9de9590869061267190879086908890429060040161390d565b5f604051808303818588803b158015612688575f80fd5b505af115801561269a573d5f803e3d5ffd5b505050505050505050565b60125460ff161561289c576001600160a01b038281165f9081526007602090815260408083205483835281842054825180840184526011546001600160801b038082168352600160801b90910416818601529589168552600990935292205460ff928316939192168015612717575082155b156127b85780516001600160801b03168411156127605760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610b91565b60208101516001600160801b031661277883866138a3565b11156127b35760405162461bcd60e51b815260206004820152600a60248201526913585e0815d85b1b195d60b21b6044820152606401610b91565b612898565b6001600160a01b0385165f9081526009602052604090205460ff1680156127f757506001600160a01b0386165f9081526007602052604090205460ff16155b156128405780516001600160801b03168411156127b35760405162461bcd60e51b815260206004820152600760248201526626b0bc102a3c3760c91b6044820152606401610b91565b826128985760208101516001600160801b031661285d83866138a3565b11156128985760405162461bcd60e51b815260206004820152600a60248201526913585e0815d85b1b195d60b21b6044820152606401610b91565b5050505b60145460ff1615612918576001600160a01b0382165f9081526009602052604090205460ff161561291d576001600160a01b0383165f9081526013602052604090205443116129185760405162461bcd60e51b815260206004820152600860248201526720b73a349026a2ab60c11b6044820152606401610b91565b505050565b506001600160a01b03165f90815260136020526040808220439081905532835291205550565b601554305f9081526020819052604081205490911115801561297d57506001600160a01b0384165f9081526009602052604090205460ff16155b1561298a5761298a612ed2565b6040805160a0810182525f808252602080830182905282840182905260608301829052608083018290526001600160a01b0387168252600990529182205460ff1615612a2a57506040805160a081018252600d5465ffffffffffff8082168352600160301b820481166020840152600160601b8204811693830193909352600160901b810483166060830152600160c01b90049091166080820152612aa0565b6001600160a01b0386165f9081526009602052604090205460ff1615612aa057506040805160a081018252600c5465ffffffffffff8082168352600160301b820481166020840152600160601b8204811693830193909352600160901b810483166060830152600160c01b900490911660808201525b608081015165ffffffffffff1615612d1d576040805160a081018252600f546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b9004909116606082015260105460ff16151560808083019190915282015161271090612b239065ffffffffffff1687613688565b612b2d91906136b3565b9250633b9aca00826080015165ffffffffffff16836040015165ffffffffffff1685612b599190613941565b612b63919061396c565b612b6d919061396c565b81602001818151612b7e9190613991565b6001600160401b031690525060808201518251633b9aca009165ffffffffffff90811691612bad911686613941565b612bb7919061396c565b612bc1919061396c565b81518290612bd0908390613991565b6001600160401b031690525060808201516020830151633b9aca009165ffffffffffff90811691612c02911686613941565b612c0c919061396c565b612c16919061396c565b81604001818151612c279190613991565b6001600160401b031690525060808201516060830151633b9aca009165ffffffffffff90811691612c59911686613941565b612c63919061396c565b612c6d919061396c565b81606001818151612c7e9190613991565b6001600160401b039081169091528251600f80546020860151604087015160608801518616600160c01b026001600160c01b03918716600160801b02919091166001600160801b03928716600160401b026001600160801b031990941695909616949094179190911781169390931791909117905560808301516010805491151560ff19909216919091179055612d1b9150889030908616612d2f565b505b506001600160801b0316949350505050565b6001600160a01b038316612d935760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b91565b6001600160a01b038216612df55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b91565b6001600160a01b0383165f9081526020819052604090205481811015612e6c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b91565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b305f9081526020818152604080832054815160a081018352600f546001600160401b03808216808452600160401b83048216968401879052600160801b83048216958401869052600160c01b909204166060830181905260105460ff161515608084015292959194919391612f479190613991565b612f519190613991565b612f5b9190613991565b6001600160401b03169050821580612f71575080155b15612f7b57505050565b601554612f89906014613688565b831115612fa157601554612f9e906014613688565b92505b60208201516001600160401b03161561307b575f8183602001516001600160401b031685612fcf9190613688565b612fd991906136b3565b601654909150612ff49030906001600160a01b031683612d2f565b60165f9054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b158015613040575f80fd5b505af1925050508015613051575060015b5061305c8185613879565b935082602001516001600160401b0316826130779190613879565b9150505b82156132035761308a83613238565b604082015147905f906001600160401b03161561311857600b5460408501516001600160a01b039091169084906130ca906001600160401b031685613688565b6130d491906136b3565b6040515f81818185875af1925050503d805f811461310d576040519150601f19603f3d011682016040523d82523d5f602084013e613112565b606091505b50909150505b60608401516001600160401b0316156131a257600e5460608501516001600160a01b03909116908490613154906001600160401b031685613688565b61315e91906136b3565b6040515f81818185875af1925050503d805f8114613197576040519150601f19603f3d011682016040523d82523d5f602084013e61319c565b606091505b50909150505b479150811561320057600a546040516001600160a01b039091169083905f81818185875af1925050503d805f81146131f5576040519150601f19603f3d011682016040523d82523d5f602084013e6131fa565b606091505b50909150505b50505b505f602082018190528082526040820181905260608201819052600f55608001516010805460ff191691151591909117905550565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061326b5761326b61372d565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106132bf576132bf61372d565b6001600160a01b03928316602091820292909201015260175460405163791ac94760e01b815291169063791ac947906133049085905f908690309042906004016139b1565b5f604051808303815f87803b15801561331b575f80fd5b505af115801561332d573d5f803e3d5ffd5b505050505050565b5f60208284031215613345575f80fd5b81356001600160801b038116811461335b575f80fd5b9392505050565b5f6020808352835180828501525f5b8181101561338d57858101830151858201604001528201613371565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146114f1575f80fd5b5f80604083850312156133d2575f80fd5b82356133dd816133ad565b946020939093013593505050565b5f602082840312156133fb575f80fd5b813561335b816133ad565b5f805f60608486031215613418575f80fd5b8335613423816133ad565b92506020840135613433816133ad565b929592945050506040919091013590565b5f60208284031215613454575f80fd5b5035919050565b80151581146114f1575f80fd5b5f8060408385031215613479575f80fd5b8235613484816133ad565b915060208301356134948161345b565b809150509250929050565b803565ffffffffffff811681146134b4575f80fd5b919050565b5f805f80608085870312156134cc575f80fd5b6134d58561349f565b93506134e36020860161349f565b92506134f16040860161349f565b91506134ff6060860161349f565b905092959194509250565b5f6020828403121561351a575f80fd5b813561335b8161345b565b5f8060408385031215613536575f80fd5b8235613541816133ad565b91506020830135613494816133ad565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156135d457815f19048211156135ba576135ba613586565b808516156135c757918102915b93841c939080029061359f565b509250929050565b5f826135ea57506001610dcd565b816135f657505f610dcd565b816001811461360c576002811461361657613632565b6001915050610dcd565b60ff84111561362757613627613586565b50506001821b610dcd565b5060208310610133831016604e8410600b8410161715613655575081810a610dcd565b61365f838361359a565b805f190482111561367257613672613586565b029392505050565b5f61335b60ff8416836135dc565b8082028115828204841417610dcd57610dcd613586565b634e487b7160e01b5f52601260045260245ffd5b5f826136c1576136c161369f565b500490565b600181811c908216806136da57607f821691505b6020821081036136f857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215613722575f80fd5b815161335b816133ad565b634e487b7160e01b5f52603260045260245ffd5b5f8151808452602080850194508084015f5b838110156137785781516001600160a01b031687529582019590820190600101613753565b509495945050505050565b828152604060208201525f6113e76040830184613741565b5f60208083850312156137ac575f80fd5b82516001600160401b03808211156137c2575f80fd5b818501915085601f8301126137d5575f80fd5b8151818111156137e7576137e76136fe565b8060051b604051601f19603f8301168101818110858211171561380c5761380c6136fe565b604052918252848201925083810185019188831115613829575f80fd5b938501935b828510156138475784518452938501939285019261382e565b98975050505050505050565b65ffffffffffff81811683821601908082111561387257613872613586565b5092915050565b81810381811115610dcd57610dcd613586565b5f6020828403121561389c575f80fd5b5051919050565b80820180821115610dcd57610dcd613586565b5f602082840312156138c6575f80fd5b815161335b8161345b565b5f805f80608085870312156138e4575f80fd5b84516138ef816133ad565b60208601516040870151606090970151919890975090945092505050565b848152608060208201525f6139256080830186613741565b6001600160a01b03949094166040830152506060015292915050565b6001600160801b0381811683821602808216919082811461396457613964613586565b505092915050565b5f6001600160801b03808416806139855761398561369f565b92169190910492915050565b6001600160401b0381811683821601908082111561387257613872613586565b85815284602082015260a060408201525f6139cf60a0830186613741565b6001600160a01b039490941660608301525060800152939250505056fea2646970667358221220741fea1299a23570b8725253fcdf9b3ec1e1bdfc6e654d5b147c01cf008785cf64736f6c63430008140033
Verified Source Code Full Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: Yes (200 runs)
AdultPlayground.sol 1430 lines
pragma solidity 0.8.20;
// SPDX-License-Identifier: MIT
/**
Dive into the future of the adult entertainment industry, and the premier brand of metaverse, blockchain, and AI-powered adult experiences.
Website: https://adultplayground.club
Whitepaper: https://adultplayground.gitbook.io/docs/
X (Twitter): https://x.com/APClubMain
Community: https://t.me/APClubMain
Announcements: https://t.me/APClubAnn
**/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
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);
}
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}.
*
* 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 default value returned by this function, unless
* it's 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:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
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);
}
/** @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");
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() external virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
library Address {
function isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
library SafeERC20 {
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
function _callOptionalReturn(IERC20 token, bytes memory data) private {
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
}
interface ILpPair {
function sync() external;
}
interface IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
interface IDexFactory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, 'SafeMath: addition overflow');
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, 'SafeMath: subtraction overflow');
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// 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 0;
}
uint256 c = a * b;
require(c / a == b, 'SafeMath: multiplication overflow');
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, 'SafeMath: division by zero');
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, 'SafeMath: modulo by zero');
}
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
z = x < y ? x : y;
}
function sqrt(uint256 y) internal pure returns (uint256 z) {
if (y > 3) {
z = y;
uint256 x = y / 2 + 1;
while (x < z) {
z = x;
x = (y / x + x) / 2;
}
} else if (y != 0) {
z = 1;
}
}
}
library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
/**
* @dev Division of two int256 variables and fails on overflow.
*/
function div(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
/**
* @dev Subtracts two int256 variables and fails on overflow.
*/
function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
/**
* @dev Adds two int256 variables and fails on overflow.
*/
function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
/**
* @dev Converts to absolute value, and fails on overflow.
*/
function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
function toUint256Safe(int256 a) internal pure returns (uint256) {
require(a >= 0);
return uint256(a);
}
}
library SafeMathUint {
function toInt256Safe(uint256 a) internal pure returns (int256) {
int256 b = int256(a);
require(b >= 0);
return b;
}
}
interface DividendPayingContractOptionalInterface {
function withdrawableDividendOf(address _owner) external view returns(uint256);
function withdrawnDividendOf(address _owner) external view returns(uint256);
function accumulativeDividendOf(address _owner) external view returns(uint256);
}
interface DividendPayingContractInterface {
function dividendOf(address _owner) external view returns(uint256);
function distributeDividends() external payable;
function withdrawDividend() external;
event DividendsDistributed(
address indexed from,
uint256 weiAmount
);
event DividendWithdrawn(
address indexed to,
uint256 weiAmount
);
}
contract DividendPayingContract is DividendPayingContractInterface, DividendPayingContractOptionalInterface, Ownable {
using SafeMath for uint256;
using SafeMathUint for uint256;
using SafeMathInt for int256;
uint256 constant internal magnitude = 2**128;
uint256 internal magnifiedDividendPerShare;
mapping(address => int256) internal magnifiedDividendCorrections;
mapping(address => uint256) internal withdrawnDividends;
mapping (address => uint256) public holderBalance;
uint256 public totalBalance;
uint256 public totalDividendsDistributed;
receive() external payable {
distributeDividends();
}
function distributeDividends() public override payable {
if(totalBalance > 0 && msg.value > 0){
magnifiedDividendPerShare = magnifiedDividendPerShare.add(
(msg.value).mul(magnitude) / totalBalance
);
emit DividendsDistributed(msg.sender, msg.value);
totalDividendsDistributed = totalDividendsDistributed.add(msg.value);
}
}
function withdrawDividend() external virtual override {
_withdrawDividendOfUser(payable(msg.sender));
}
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,) = user.call{value: _withdrawableDividend}("");
if(!success) {
withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend);
return 0;
}
return _withdrawableDividend;
}
return 0;
}
function withdrawDividendOfUserForCompound(address payable user) external onlyOwner returns (uint256 _withdrawableDividend) {
_withdrawableDividend = withdrawableDividendOf(user);
if (_withdrawableDividend > 0) {
withdrawnDividends[user] = withdrawnDividends[user] + _withdrawableDividend;
emit DividendWithdrawn(user, _withdrawableDividend);
}
(bool success,) = owner().call{value: _withdrawableDividend}("");
if(!success) {
withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend);
return 0;
}
}
function dividendOf(address _owner) external view override returns(uint256) {
return withdrawableDividendOf(_owner);
}
function withdrawableDividendOf(address _owner) public view override returns(uint256) {
return accumulativeDividendOf(_owner).sub(withdrawnDividends[_owner]);
}
function withdrawnDividendOf(address _owner) external view override returns(uint256) {
return withdrawnDividends[_owner];
}
function accumulativeDividendOf(address _owner) public view override returns(uint256) {
return magnifiedDividendPerShare.mul(holderBalance[_owner]).toInt256Safe()
.add(magnifiedDividendCorrections[_owner]).toUint256Safe() / magnitude;
}
function _increase(address account, uint256 value) internal {
magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
.sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
}
function _reduce(address account, uint256 value) internal {
magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
.add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
}
function _setBalance(address account, uint256 newBalance) internal {
uint256 currentBalance = holderBalance[account];
holderBalance[account] = newBalance;
if(newBalance > currentBalance) {
uint256 increaseAmount = newBalance.sub(currentBalance);
_increase(account, increaseAmount);
totalBalance += increaseAmount;
} else if(newBalance < currentBalance) {
uint256 reduceAmount = currentBalance.sub(newBalance);
_reduce(account, reduceAmount);
totalBalance -= reduceAmount;
}
}
}
contract RevShare is DividendPayingContract {
event Claim(address indexed account, uint256 amount, bool indexed automatic);
mapping (address => bool) public excludedFromDividends;
constructor() {}
function getAccount(address _account)
public view returns (
address account,
uint256 withdrawableDividends,
uint256 totalDividends,
uint256 balance) {
account = _account;
withdrawableDividends = withdrawableDividendOf(account);
totalDividends = accumulativeDividendOf(account);
balance = holderBalance[account];
}
function setBalance(address payable account, uint256 newBalance) external onlyOwner {
if(excludedFromDividends[account]) {
return;
}
_setBalance(account, newBalance);
processAccount(account, true);
}
function processAccount(address payable account, bool automatic) public onlyOwner returns (bool) {
uint256 amount = _withdrawDividendOfUser(account);
if(amount > 0) {
emit Claim(account, amount, automatic);
return true;
}
return false;
}
function getTotalDividendsDistributed() external view returns (uint256) {
return totalDividendsDistributed;
}
function dividendTokenBalanceOf(address account) public view returns (uint256) {
return holderBalance[account];
}
function getNumberOfDividends() external view returns(uint256) {
return totalBalance;
}
function excludeFromDividends(address account) external onlyOwner {
excludedFromDividends[account] = true;
_setBalance(account, 0);
}
function includeInDividends(address account) external onlyOwner {
require(excludedFromDividends[account]);
excludedFromDividends[account] = false;
_setBalance(account, IERC20(owner()).balanceOf(account)); // sets balance back to token balance
}
}
contract AdultPlayground is ERC20, Ownable {
mapping (address => bool) public excludedFromFees;
mapping (address => bool) public excludedFromLimits;
bool public launched;
mapping (address => bool) public isAMMPair;
address public mktingAddress;
address public devAddress;
Tax public buyTax;
Tax public sellTax;
RevShare public revShare;
TokenDistributionForTax public tokensForTax;
TxLimits public txLimits;
bool public txLimitsActive = true;
mapping(address => uint256) private _holderLastTransferBlock; // MEV protection
bool public antiSandwichEnabled = true;
uint256 public swapTokensAtAmount;
address public pair;
IDexRouter public dexRouter;
address public immutable WETH;
uint64 public constant FEE_DIVISOR = 10000;
// structs
struct TxLimits {
uint128 transactionLimit;
uint128 walletLimit;
}
struct Tax {
uint48 mktingTax;
uint48 devTax;
uint48 lpTax;
uint48 revShareTax;
uint48 totalTax;
}
struct TokenDistributionForTax {
uint64 tokensForMkting;
uint64 tokensForLP;
uint64 tokensForDev;
uint64 tokensForRevShare;
bool gasSaver;
}
// events
event UpdatedTransactionLimit(uint newMax);
event UpdatedWalletLimit(uint newMax);
event SetExcludedFromFees(address _address, bool _isExcluded);
event SetExcludedFromLimits(address _address, bool _isExcluded);
event RemovedLimits();
event BuyTaxUpdated(uint newAmount);
event SellTaxUpdated(uint newAmount);
// constructor
constructor()
ERC20("Adult Playground", "ADULT")
{
_mint(msg.sender, 100_000_000 * 1e18);
address _v2Router;
// @dev assumes WETH pair
if(block.chainid == 1){
_v2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
} else if(block.chainid == 5){
_v2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
} else {
revert("Chain not configured");
}
revShare = new RevShare();
dexRouter = IDexRouter(_v2Router);
txLimits.transactionLimit = uint128(totalSupply() * 20 / 1000);
txLimits.walletLimit = uint128(totalSupply() * 2 / 100);
swapTokensAtAmount = totalSupply() * 25 / 100000;
mktingAddress = 0x66b4A9f206cDa846897964945b2E0eA2fAcd3B15; // update
devAddress = 0xAb6FcA0ED814755b79F03d89efbC966F63b217E1; // update
buyTax.mktingTax = 600;
buyTax.lpTax = 300;
buyTax.devTax = 300;
buyTax.revShareTax = 300;
buyTax.totalTax = buyTax.mktingTax + buyTax.lpTax + buyTax.devTax + buyTax.revShareTax;
sellTax.mktingTax = 600;
sellTax.lpTax = 300;
sellTax.devTax = 300;
sellTax.revShareTax = 300;
sellTax.totalTax = sellTax.mktingTax + sellTax.lpTax + sellTax.devTax + buyTax.revShareTax + sellTax.revShareTax;
tokensForTax.gasSaver = true;
WETH = dexRouter.WETH();
pair = IDexFactory(dexRouter.factory()).createPair(address(this), WETH);
isAMMPair[pair] = true;
excludedFromLimits[pair] = true;
excludedFromLimits[msg.sender] = true;
excludedFromLimits[address(this)] = true;
excludedFromLimits[_v2Router] = true;
excludedFromFees[msg.sender] = true;
excludedFromFees[address(this)] = true;
excludedFromFees[address(0xdead)] = true;
excludedFromFees[_v2Router] = true;
revShare.excludeFromDividends(address(this));
revShare.excludeFromDividends(address(pair));
revShare.excludeFromDividends(address(0xdead));
_approve(address(this), address(dexRouter), type(uint256).max);
_approve(address(msg.sender), address(dexRouter), totalSupply());
}
function _transfer(
address from,
address to,
uint256 amount
) internal virtual override {
if(!excludedFromFees[from] && !excludedFromFees[to]){
require(launched, "Trading not active");
checkLimits(from, to, amount);
amount -= handleTax(from, to, amount);
}
super._transfer(from,to,amount);
revShare.setBalance(payable(to), balanceOf(to));
revShare.setBalance(payable(from), balanceOf(from));
}
function checkLimits(address from, address to, uint256 amount) internal {
if(txLimitsActive){
bool exFromLimitsTo = excludedFromLimits[to];
uint256 balanceOfTo = balanceOf(to);
TxLimits memory _txLimits = txLimits;
// buy
if (isAMMPair[from] && !exFromLimitsTo) {
require(amount <= _txLimits.transactionLimit, "Max Txn");
require(amount + balanceOfTo <= _txLimits.walletLimit, "Max Wallet");
}
// sell
else if (isAMMPair[to] && !excludedFromLimits[from]) {
require(amount <= _txLimits.transactionLimit, "Max Txn");
}
else if(!exFromLimitsTo) {
require(amount + balanceOfTo <= _txLimits.walletLimit, "Max Wallet");
}
}
if (antiSandwichEnabled){
if(isAMMPair[to]){
require(_holderLastTransferBlock[from] < block.number, "Anti MEV");
} else {
_holderLastTransferBlock[to] = block.number;
_holderLastTransferBlock[tx.origin] = block.number;
}
}
}
function handleTax(address from, address to, uint256 amount) internal returns (uint256){
if(balanceOf(address(this)) >= swapTokensAtAmount && !isAMMPair[from]) {
convertTax();
}
uint128 tax = 0;
Tax memory taxes;
if (isAMMPair[to]){
taxes = sellTax;
} else if(isAMMPair[from]){
taxes = buyTax;
}
if(taxes.totalTax > 0){
TokenDistributionForTax memory tokensForTaxUpdate = tokensForTax;
tax = uint128(amount * taxes.totalTax / FEE_DIVISOR);
tokensForTaxUpdate.tokensForLP += uint64(tax * taxes.lpTax / taxes.totalTax / 1e9);
tokensForTaxUpdate.tokensForMkting += uint64(tax * taxes.mktingTax / taxes.totalTax / 1e9);
tokensForTaxUpdate.tokensForDev += uint64(tax * taxes.devTax / taxes.totalTax / 1e9);
tokensForTaxUpdate.tokensForRevShare += uint64(tax * taxes.revShareTax / taxes.totalTax / 1e9);
tokensForTax = tokensForTaxUpdate;
super._transfer(from, address(this), tax);
}
return tax;
}
function swapTokensForETH(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = WETH;
dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function convertTax() private {
uint256 contractBalance = balanceOf(address(this));
TokenDistributionForTax memory tokensForTaxMem = tokensForTax;
uint256 totalTokensToSwap = tokensForTaxMem.tokensForLP + tokensForTaxMem.tokensForMkting + tokensForTaxMem.tokensForDev + tokensForTaxMem.tokensForRevShare;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 20){
contractBalance = swapTokensAtAmount * 20;
}
if(tokensForTaxMem.tokensForLP > 0){
uint256 lpTokens = contractBalance * tokensForTaxMem.tokensForLP / totalTokensToSwap;
super._transfer(address(this), pair, lpTokens);
try ILpPair(pair).sync(){} catch {}
contractBalance -= lpTokens;
totalTokensToSwap -= tokensForTaxMem.tokensForLP;
}
if(contractBalance > 0){
swapTokensForETH(contractBalance);
uint256 ethBalance = address(this).balance;
bool success;
if(tokensForTaxMem.tokensForDev > 0){
(success,) = devAddress.call{value: ethBalance * tokensForTaxMem.tokensForDev / totalTokensToSwap}("");
}
if(tokensForTaxMem.tokensForRevShare > 0){
(success,) = address(revShare).call{value: ethBalance * tokensForTaxMem.tokensForRevShare/ totalTokensToSwap}("");
}
ethBalance = address(this).balance;
if(ethBalance > 0){
(success,) = mktingAddress.call{value: ethBalance}("");
}
}
tokensForTaxMem.tokensForLP = 0;
tokensForTaxMem.tokensForMkting = 0;
tokensForTaxMem.tokensForDev = 0;
tokensForTaxMem.tokensForRevShare = 0;
tokensForTax = tokensForTaxMem;
}
// owner functions
function setExcludedFromFee(address _address, bool _isExcluded) external onlyOwner {
require(_address != address(0), "Zero Address");
require(_address != address(this), "Cannot unexcluded contract");
excludedFromFees[_address] = _isExcluded;
emit SetExcludedFromFees(_address, _isExcluded);
}
function setExcludedFromLimit(address _address, bool _isExcluded) external onlyOwner {
require(_address != address(0), "Zero Address");
if(!_isExcluded){
require(_address != pair, "Cannot remove pair");
}
excludedFromLimits[_address] = _isExcluded;
emit SetExcludedFromLimits(_address, _isExcluded);
}
function changeTransactionLimit(uint128 newNumInTokens) external onlyOwner {
require(newNumInTokens >= (totalSupply() * 1 / 1000)/(10**decimals()), "Too low");
txLimits.transactionLimit = uint128(newNumInTokens * (10**decimals()));
emit UpdatedTransactionLimit(txLimits.transactionLimit);
}
function changeWalletLimit(uint128 newNumInTokens) external onlyOwner {
require(newNumInTokens >= (totalSupply() * 1 / 1000)/(10**decimals()), "Too low");
txLimits.walletLimit = uint128(newNumInTokens * (10**decimals()));
emit UpdatedWalletLimit(txLimits.walletLimit);
}
function changeSwapTokensAmount(uint256 newAmount) external onlyOwner {
require(newAmount >= (totalSupply() * 1) / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= (totalSupply() * 5) / 1000, "Swap amount cannot be higher than 0.5% total supply.");
swapTokensAtAmount = newAmount;
}
function changeSellTax(uint48 _mktingTax, uint48 _lpTax, uint48 _devTax, uint48 _revShareTax) external onlyOwner {
Tax memory taxes;
taxes.mktingTax = _mktingTax;
taxes.lpTax = _lpTax;
taxes.devTax = _devTax;
taxes.revShareTax = _revShareTax;
taxes.totalTax = _mktingTax + _lpTax + _devTax + _revShareTax;
require(taxes.totalTax <= 1000, "Keep tax below 10%");
emit SellTaxUpdated(taxes.totalTax);
sellTax = taxes;
}
function changeBuyTax(uint48 _mktingTax, uint48 _lpTax, uint48 _devTax, uint48 _revShareTax) external onlyOwner {
Tax memory taxes;
taxes.mktingTax = _mktingTax;
taxes.lpTax = _lpTax;
taxes.devTax = _devTax;
taxes.revShareTax = _revShareTax;
taxes.totalTax = _mktingTax + _lpTax + _devTax + _revShareTax;
require(taxes.totalTax <= 1000, "Keep tax below 10%");
emit BuyTaxUpdated(taxes.totalTax);
buyTax = taxes;
}
function setLaunched() external onlyOwner {
require(!launched, "Trading already live");
launched = true;
}
function removeTxLimits() external onlyOwner {
txLimitsActive = false;
TxLimits memory _txLimits;
uint256 supply = totalSupply();
_txLimits.transactionLimit = uint128(supply);
_txLimits.walletLimit = uint128(supply);
txLimits = _txLimits;
emit RemovedLimits();
}
function updateSandwichBlockerEnabled(bool _enabled) external onlyOwner {
antiSandwichEnabled = _enabled;
}
function updateMktingAddress(address _address) external onlyOwner {
require(_address != address(0), "zero address");
mktingAddress = _address;
}
function updateDevAddress(address _address) external onlyOwner {
require(_address != address(0), "zero address");
devAddress = _address;
}
receive() payable external {}
// dividend functions
function claim() external {
revShare.processAccount(payable(msg.sender), false);
}
function getTotalDividendsDistributed() external view returns (uint256) {
return revShare.totalDividendsDistributed();
}
function withdrawableDividendOf(address account) public view returns(uint256) {
return revShare.withdrawableDividendOf(account);
}
function dividendTokenBalanceOf(address account) public view returns (uint256) {
return revShare.holderBalance(account);
}
function getAccountDividendsInfo(address account)
external view returns (
address,
uint256,
uint256,
uint256) {
return revShare.getAccount(account);
}
function getNumberOfDividends() external view returns(uint256) {
return revShare.totalBalance();
}
function excludeFromDividends(address _wallet) external onlyOwner {
revShare.excludeFromDividends(_wallet);
}
function includeInDividends(address _wallet) external onlyOwner {
revShare.includeInDividends(_wallet);
}
function compound(uint256 minOutput) external {
uint256 amountEthForCompound = revShare.withdrawDividendOfUserForCompound(payable(msg.sender));
if(amountEthForCompound > 0){
buyBackTokens(amountEthForCompound, minOutput, msg.sender);
} else {
revert("No rewards");
}
}
function buyBackTokens(uint256 ethAmountInWei, uint256 minOut, address to) internal {
// generate the uniswap pair path of weth -> eth
address[] memory path = new address[](2);
path[0] = dexRouter.WETH();
path[1] = address(this);
// make the swap
dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmountInWei}(
minOut,
path,
address(to),
block.timestamp
);
}
// helper views
function getCompoundOutputByEthAmount(uint256 rewardAmount) external view returns(uint256) {
address[] memory path = new address[](2);
path[0] = dexRouter.WETH();
path[1] = address(this);
uint256[] memory amounts = dexRouter.getAmountsOut(rewardAmount, path);
return amounts[1] - (amounts[1] * (buyTax.totalTax + 50) / FEE_DIVISOR);
}
function getCompoundOutputByWallet(address wallet) external view returns(uint256) {
uint256 rewardAmount = withdrawableDividendOf(wallet);
address[] memory path = new address[](2);
path[0] = dexRouter.WETH();
path[1] = address(this);
uint256[] memory amounts = dexRouter.getAmountsOut(rewardAmount, path);
return amounts[1] - (amounts[1] * (buyTax.totalTax + 50) / FEE_DIVISOR);
}
}
Read Contract
FEE_DIVISOR 0x9e93ad8e → uint64
WETH 0xad5c4648 → address
allowance 0xdd62ed3e → uint256
antiSandwichEnabled 0xd8fb9cc4 → bool
balanceOf 0x70a08231 → uint256
buyTax 0x4f7041a5 → uint48, uint48, uint48, uint48, uint48
decimals 0x313ce567 → uint8
devAddress 0x3ad10ef6 → address
dexRouter 0x0758d924 → address
dividendTokenBalanceOf 0x6843cd84 → uint256
excludedFromFees 0xdbe66ca0 → bool
excludedFromLimits 0x7b812b41 → bool
getAccountDividendsInfo 0xad56c13c → address, uint256, uint256, uint256
getCompoundOutputByEthAmount 0x4008c2f0 → uint256
getCompoundOutputByWallet 0x14bb4edd → uint256
getNumberOfDividends 0x71778e7d → uint256
getTotalDividendsDistributed 0x30bb4cff → uint256
isAMMPair 0xb0249cc6 → bool
launched 0x8091f3bf → bool
mktingAddress 0x1f903dfa → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair 0xa8aa1b31 → address
revShare 0x1b03ddc1 → address
sellTax 0xcc1776d3 → uint48, uint48, uint48, uint48, uint48
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForTax 0x6d7adcad → uint64, uint64, uint64, uint64, bool
totalSupply 0x18160ddd → uint256
txLimits 0xf270fde4 → uint128, uint128
txLimitsActive 0xe8cd2fec → bool
withdrawableDividendOf 0xa8b9d240 → uint256
Write Contract 23 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changeBuyTax 0x80dee257
uint48 _mktingTax
uint48 _lpTax
uint48 _devTax
uint48 _revShareTax
changeSellTax 0xbd9dfecc
uint48 _mktingTax
uint48 _lpTax
uint48 _devTax
uint48 _revShareTax
changeSwapTokensAmount 0xb2a9c0c0
uint256 newAmount
changeTransactionLimit 0x13a351b5
uint128 newNumInTokens
changeWalletLimit 0x04816a4e
uint128 newNumInTokens
claim 0x4e71d92d
No parameters
compound 0xaa5f7e26
uint256 minOutput
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromDividends 0x31e79db0
address _wallet
includeInDividends 0xc0f306ef
address _wallet
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeTxLimits 0x0106aaef
No parameters
renounceOwnership 0x715018a6
No parameters
setExcludedFromFee 0x6612e66f
address _address
bool _isExcluded
setExcludedFromLimit 0xbf78019b
address _address
bool _isExcluded
setLaunched 0x9507b19b
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateDevAddress 0x85033762
address _address
updateMktingAddress 0x4b833d64
address _address
updateSandwichBlockerEnabled 0xca13a70e
bool _enabled
Recent Transactions
No transactions found for this address