Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xEDD817dFD3e905221E723175c83600dc41E968Fa
Balance 0.237849 ETH
Nonce 1
Code Size 13241 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

13241 bytes
0x60806040526004361061037f575f3560e01c80637571336a116101d3578063b6d927f6116100fd578063d80528ae1161009d578063eba4c3331161006d578063eba4c33314610aa3578063f2fde38b14610ac2578063f8b45b0514610ae1578063fb3dd95f14610af6575f5ffd5b8063d80528ae14610a14578063d85ba06314610a35578063dd62ed3e14610a4a578063e2f4560514610a8e575f5ffd5b8063c8c8ebe4116100d8578063c8c8ebe4146109b6578063cc2ffe7c146109cb578063d257b34f146109e0578063d588efb6146109ff575f5ffd5b8063b6d927f61461094c578063bbc0c74214610979578063c024666814610997575f5ffd5b8063924de9b711610173578063a85c38ef11610143578063a85c38ef1461086b578063a9059cbb146108e0578063b1e95e94146108ff578063b62496f51461091e575f5ffd5b8063924de9b7146107fa57806395d89b41146108195780639a7a23d61461082d578063a457c2d71461084c575f5ffd5b80638a8c523c116101ae5780638a8c523c1461078b5780638da5cb5b1461079f5780638ed462c3146107bc578063906aa49c146107db575f5ffd5b80637571336a1461072d5780637cb332bb1461074c5780637e9401c31461076b575f5ffd5b806349bd5a5e116102b45780636a486a8e11610254578063715018a611610224578063715018a6146106b357806371fc4688146106c7578063735de9f7146106e6578063751039fc14610719575f5ffd5b80636a486a8e146106365780636b2fb1241461064b5780636ddd17131461066057806370a082311461067f575f5ffd5b80634fbee1931161028f5780634fbee193146105ac57806359927044146105e35780635c068a8c146106025780635faf7b6f14610617575f5ffd5b806349bd5a5e1461055f5780634a62bb651461057e5780634e6fd6c414610597575f5ffd5b8063313ce5671161031f57806342642df9116102fa57806342642df9146104f15780634626402b1461050757806346d636761461052b5780634815327914610540575f5ffd5b8063313ce5671461047857806337d277d41461049357806339509351146104d2575f5ffd5b806318160ddd1161035a57806318160ddd14610411578063213a839e1461042f57806323b872dd146104445780632a58b33014610463575f5ffd5b806306fdde031461038a578063095ea7b3146103b457806310d5de53146103e3575f5ffd5b3661038657005b5f5ffd5b348015610395575f5ffd5b5061039e610b15565b6040516103ab9190612e30565b60405180910390f35b3480156103bf575f5ffd5b506103d36103ce366004612e56565b610ba5565b60405190151581526020016103ab565b3480156103ee575f5ffd5b506103d36103fd366004612e80565b60196020525f908152604090205460ff1681565b34801561041c575f5ffd5b506002545b6040519081526020016103ab565b34801561043a575f5ffd5b50610421600c5481565b34801561044f575f5ffd5b506103d361045e366004612e9b565b610bbb565b34801561046e575f5ffd5b5061042160085481565b348015610483575f5ffd5b50604051601281526020016103ab565b34801561049e575f5ffd5b506104ba73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6040516001600160a01b0390911681526020016103ab565b3480156104dd575f5ffd5b506103d36104ec366004612e56565b610c68565b3480156104fc575f5ffd5b50610505610ca3565b005b348015610512575f5ffd5b50600d546104ba9061010090046001600160a01b031681565b348015610536575f5ffd5b50610421600b5481565b34801561054b575f5ffd5b5061042161055a366004612ed9565b61109e565b34801561056a575f5ffd5b506007546104ba906001600160a01b031681565b348015610589575f5ffd5b506012546103d39060ff1681565b3480156105a2575f5ffd5b506104ba61dead81565b3480156105b7575f5ffd5b506103d36105c6366004612e80565b6001600160a01b03165f9081526018602052604090205460ff1690565b3480156105ee575f5ffd5b50600e546104ba906001600160a01b031681565b34801561060d575f5ffd5b5061042160145481565b348015610622575f5ffd5b50610505610631366004612ed9565b61125a565b348015610641575f5ffd5b5061042160155481565b348015610656575f5ffd5b5061042160165481565b34801561066b575f5ffd5b506012546103d39062010000900460ff1681565b34801561068a575f5ffd5b50610421610699366004612e80565b6001600160a01b03165f9081526020819052604090205490565b3480156106be575f5ffd5b50610505611289565b3480156106d2575f5ffd5b506105056106e1366004612ed9565b6112bc565b3480156106f1575f5ffd5b506104ba7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b348015610724575f5ffd5b506103d36112f0565b348015610738575f5ffd5b50610505610747366004612efd565b61132c565b348015610757575f5ffd5b50610505610766366004612e80565b611380565b348015610776575f5ffd5b506104ba5f5160206133645f395f51905f5281565b348015610796575f5ffd5b50610505611422565b3480156107aa575f5ffd5b506005546001600160a01b03166104ba565b3480156107c7575f5ffd5b506105056107d6366004612ed9565b61145f565b3480156107e6575f5ffd5b506105056107f5366004612ed9565b61148e565b348015610805575f5ffd5b50610505610814366004612f34565b611a12565b348015610824575f5ffd5b5061039e611a58565b348015610838575f5ffd5b50610505610847366004612efd565b611a67565b348015610857575f5ffd5b506103d3610866366004612e56565b611b23565b348015610876575f5ffd5b506108b6610885366004612ed9565b60096020525f9081526040902080546001820154600283015460038401546004909401549293919290919060ff1685565b6040805195865260208601949094529284019190915260608301521515608082015260a0016103ab565b3480156108eb575f5ffd5b506103d36108fa366004612e56565b611bbb565b34801561090a575f5ffd5b50610505610919366004612ed9565b611bc7565b348015610929575f5ffd5b506103d3610938366004612e80565b601a6020525f908152604090205460ff1681565b348015610957575f5ffd5b5061096b610966366004612ed9565b611bf6565b6040516103ab929190612f4f565b348015610984575f5ffd5b506012546103d390610100900460ff1681565b3480156109a2575f5ffd5b506105056109b1366004612efd565b611df3565b3480156109c1575f5ffd5b50610421600f5481565b3480156109d6575f5ffd5b5061042160175481565b3480156109eb575f5ffd5b506103d36109fa366004612ed9565b611e7b565b348015610a0a575f5ffd5b50610421600a5481565b348015610a1f575f5ffd5b50610a28611eb0565b6040516103ab9190612f71565b348015610a40575f5ffd5b5061042160135481565b348015610a55575f5ffd5b50610421610a64366004612fb3565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610a99575f5ffd5b5061042160105481565b348015610aae575f5ffd5b50610505610abd366004612ed9565b611fff565b348015610acd575f5ffd5b50610505610adc366004612e80565b612033565b348015610aec575f5ffd5b5061042160115481565b348015610b01575f5ffd5b50610421610b10366004612ed9565b6120cb565b606060038054610b2490612fdf565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5090612fdf565b8015610b9b5780601f10610b7257610100808354040283529160200191610b9b565b820191905f5260205f20905b815481529060010190602001808311610b7e57829003601f168201915b5050505050905090565b5f610bb13384846121c2565b5060015b92915050565b5f610bc78484846122e5565b6001600160a01b0384165f90815260016020908152604080832033845290915290205482811015610c505760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610c5d85338584036121c2565b506001949350505050565b335f8181526001602090815260408083206001600160a01b03871684529091528120549091610bb1918590610c9e90869061302b565b6121c2565b610cab6128e7565b600b54600a544791610cbc9161302b565b811015610d0b5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682045544820696e2074726561737572790000000000006044820152606401610c47565b6040516370a0823160e01b81523060048201525f905f5160206133645f395f51905f52906370a0823190602401602060405180830381865afa158015610d53573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d77919061303e565b6040805160028082526060820183529293505f9290916020830190803683370190505090507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610df8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e1c9190613069565b815f81518110610e2e57610e2e613084565b60200260200101906001600160a01b031690816001600160a01b0316815250505f5160206133645f395f51905f5281600181518110610e6f57610e6f613084565b60200260200101906001600160a01b031690816001600160a01b0316815250505f610ea1600b548561055a9190613098565b90506064610eb082605f6130ab565b610eba91906130c2565b90507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663b6f9de95600b5486610ef99190613098565b838530426040518663ffffffff1660e01b8152600401610f1c9493929190613124565b5f604051808303818588803b158015610f33575f5ffd5b505af1158015610f45573d5f5f3e3d5ffd5b50506040516370a0823160e01b81523060048201525f93505f5160206133645f395f51905f5292506370a082319150602401602060405180830381865afa158015610f92573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fb6919061303e565b90505f610fc38583613098565b600880549192505f919082610fd783613158565b9190505590506040518060a00160405280600b5489610ff69190613098565b8152602080820185905242604080840191909152436060808501919091525f6080948501819052868152600984528281208651815593860151600185015585830151600285015590850151600384015593909201516004909101805460ff1916911515919091179055600b54905133926108fc831502929190818181858888f1935050505015801561108a573d5f5f3e3d5ffd5b505050505050505061109c6001600655565b565b6040805160028082526060820183525f92839291906020830190803683370190505090507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561111e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111429190613069565b815f8151811061115457611154613084565b60200260200101906001600160a01b031690816001600160a01b0316815250505f5160206133645f395f51905f528160018151811061119557611195613084565b6001600160a01b03928316602091820292909201015260405163d06ca61f60e01b81525f917f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063d06ca61f906111f39087908690600401613170565b5f60405180830381865afa15801561120d573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526112349190810190613188565b90508060018151811061124957611249613084565b602002602001015192505050919050565b6005546001600160a01b031633146112845760405162461bcd60e51b8152600401610c4790613250565b600a55565b6005546001600160a01b031633146112b35760405162461bcd60e51b8152600401610c4790613250565b61109c5f612940565b6005546001600160a01b031633146112e65760405162461bcd60e51b8152600401610c4790613250565b6014819055601355565b6005545f906001600160a01b0316331461131c5760405162461bcd60e51b8152600401610c4790613250565b506012805460ff19169055600190565b6005546001600160a01b031633146113565760405162461bcd60e51b8152600401610c4790613250565b6001600160a01b03919091165f908152601960205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146113aa5760405162461bcd60e51b8152600401610c4790613250565b6001600160a01b0381166114005760405162461bcd60e51b815260206004820152601860248201527f5a65726f2061646472657373206e6f7420616c6c6f77656400000000000000006044820152606401610c47565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461144c5760405162461bcd60e51b8152600401610c4790613250565b6012805462ffff00191662010100179055565b6005546001600160a01b031633146114895760405162461bcd60e51b8152600401610c4790613250565b600c55565b6114966128e7565b5f818152600960205260409020600481015460ff16156114e75760405162461bcd60e51b815260206004820152600c60248201526b105b1c9958591e481cdbdb1960a21b6044820152606401610c47565b600c5481600301546114f9919061302b565b43101561155b5760405162461bcd60e51b815260206004820152602a60248201527f4d7573742077616974206d6f726520626c6f636b73206265747765656e2062756044820152691e48185b99081cd95b1b60b21b6064820152608401610c47565b5f61156982600101546120cb565b825490915061157b906104b0906130ab565b611587826103e86130ab565b10156115d05760405162461bcd60e51b8152602060048201526018602482015277141c9bd99a5d081d1a1c995cda1bdb19081b9bdd081b595d60421b6044820152606401610c47565b60018201546040516370a0823160e01b81523060048201525f5160206133645f395f51905f52906370a0823190602401602060405180830381865afa15801561161b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061163f919061303e565b101561168d5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682053505820696e20636f6e74726163740000000000006044820152606401610c47565b600182015460405163095ea7b360e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d16600482015260248101919091525f5160206133645f395f51905f529063095ea7b3906044016020604051808303815f875af115801561170a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061172e9190613285565b50604080516003808252608082019092525f91602082016060803683370190505090505f5160206133645f395f51905f52815f8151811061177157611771613084565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117ed573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118119190613069565b8160018151811061182457611824613084565b60200260200101906001600160a01b031690816001600160a01b031681525050308160028151811061185857611858613084565b6001600160a01b039283166020918202929092010152600184015460405163d06ca61f60e01b81525f927f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169163d06ca61f916118ba91908690600401613170565b5f60405180830381865afa1580156118d4573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526118fb9190810190613188565b90505f60648260028151811061191357611913613084565b6020026020010151605a61192791906130ab565b61193191906130c2565b6001860154604051635c11d79560e01b81529192506001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1691635c11d7959161198d918590889061dead9042906004016132a0565b5f604051808303815f87803b1580156119a4575f5ffd5b505af11580156119b6573d5f5f3e3d5ffd5b50505060048601805460ff1916600117905550600b54471115611a0057600b54604051339180156108fc02915f818181858888f193505050501580156119fe573d5f5f3e3d5ffd5b505b5050505050611a0f6001600655565b50565b6005546001600160a01b03163314611a3c5760405162461bcd60e51b8152600401610c4790613250565b60128054911515620100000262ff000019909216919091179055565b606060048054610b2490612fdf565b6005546001600160a01b03163314611a915760405162461bcd60e51b8152600401610c4790613250565b6007546001600160a01b0390811690831603611b155760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610c47565b611b1f8282612991565b5050565b335f9081526001602090815260408083206001600160a01b038616845290915281205482811015611ba45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610c47565b611bb133858584036121c2565b5060019392505050565b5f610bb13384846122e5565b6005546001600160a01b03163314611bf15760405162461bcd60e51b8152600401610c4790613250565b600b55565b5f81815260096020526040812060048101546060919060ff1615611c44575f6040518060400160405280600c81526020016b105b1c9958591e481cdbdb1960a21b8152509250925050915091565b600c548160030154611c56919061302b565b431015611c94575f60405180604001604052806013815260200172109b1bd8dac819195b185e481b9bdd081b595d606a1b8152509250925050915091565b5f611ca282600101546120cb565b8254909150611cb4906104b0906130ab565b611cc0826103e86130ab565b1015611d03575f60405180604001604052806018815260200177141c9bd99a5d081d1a1c995cda1bdb19081b9bdd081b595d60421b815250935093505050915091565b60018201546040516370a0823160e01b81523060048201525f5160206133645f395f51905f52906370a0823190602401602060405180830381865afa158015611d4e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d72919061303e565b1015611dba575f6040518060400160405280601a81526020017f4e6f7420656e6f7567682053505820696e20636f6e7472616374000000000000815250935093505050915091565b60016040518060400160405280601381526020017213dc99195c881c9958591e481d1bc81cd95b1b606a1b815250935093505050915091565b6005546001600160a01b03163314611e1d5760405162461bcd60e51b8152600401610c4790613250565b6001600160a01b0382165f81815260186020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005545f906001600160a01b03163314611ea75760405162461bcd60e51b8152600401610c4790613250565b50601055600190565b604080516003808252608082019092526060915f9190602082018480368337019050506040516370a0823160e01b815261dead600482015290915030906370a0823190602401602060405180830381865afa158015611f11573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f35919061303e565b815f81518110611f4757611f47613084565b6020026020010181815250504781600181518110611f6757611f67613084565b60209081029190910101526040516370a0823160e01b81523060048201525f5160206133645f395f51905f52906370a0823190602401602060405180830381865afa158015611fb8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fdc919061303e565b81600281518110611fef57611fef613084565b6020908102919091010152919050565b6005546001600160a01b031633146120295760405162461bcd60e51b8152600401610c4790613250565b6016819055601555565b6005546001600160a01b0316331461205d5760405162461bcd60e51b8152600401610c4790613250565b6001600160a01b0381166120c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c47565b611a0f81612940565b6040805160028082526060820183525f92839291906020830190803683370190505090505f5160206133645f395f51905f52815f8151811061210f5761210f613084565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561218b573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906121af9190613069565b8160018151811061119557611195613084565b6001600160a01b0383166122245760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c47565b6001600160a01b0382166122855760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c47565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661230b5760405162461bcd60e51b8152600401610c47906132db565b6001600160a01b0382166123315760405162461bcd60e51b8152600401610c4790613320565b805f036123485761234383835f6129e4565b505050565b60125460ff1615612697576005546001600160a01b0384811691161480159061237f57506005546001600160a01b03838116911614155b801561239357506001600160a01b03821615155b80156123a25750600d5460ff16155b1561269757601254610100900460ff16612438576001600160a01b0383165f9081526018602052604090205460ff16806123f357506001600160a01b0382165f9081526018602052604090205460ff165b6124385760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610c47565b6001600160a01b0383165f908152601a602052604090205460ff16801561247757506001600160a01b0382165f9081526019602052604090205460ff16155b1561255a57600f548111156124ec5760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610c47565b6011546001600160a01b0383165f90815260208190526040902054612511908361302b565b11156125555760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610c47565b612697565b6001600160a01b0382165f908152601a602052604090205460ff16801561259957506001600160a01b0383165f9081526019602052604090205460ff16155b1561260f57600f548111156125555760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610c47565b6001600160a01b0382165f9081526019602052604090205460ff16612697576011546001600160a01b0383165f90815260208190526040902054612653908361302b565b11156126975760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610c47565b305f90815260208190526040902054601054811080159081906126c2575060125462010000900460ff165b80156126d15750600d5460ff16155b80156126f557506001600160a01b0385165f908152601a602052604090205460ff16155b801561271957506001600160a01b0385165f9081526018602052604090205460ff16155b801561273d57506001600160a01b0384165f9081526018602052604090205460ff16155b1561276257600d805460ff19166001179055612757612b37565b600d805460ff191690555b600d546001600160a01b0386165f9081526018602052604090205460ff918216159116806127a757506001600160a01b0385165f9081526018602052604090205460ff165b156127af57505f5b5f81156128d3576001600160a01b0386165f908152601a602052604090205460ff1680156127de57505f601554115b1561283b5761280360646127fd60155488612c2490919063ffffffff16565b90612c36565b90506015546016548261281691906130ab565b61282091906130c2565b60175f828254612830919061302b565b909155506128b59050565b6001600160a01b0387165f908152601a602052604090205460ff16801561286357505f601354115b156128b55761288260646127fd60135488612c2490919063ffffffff16565b90506013546014548261289591906130ab565b61289f91906130c2565b60175f8282546128af919061302b565b90915550505b80156128c6576128c68730836129e4565b6128d08186613098565b94505b6128de8787876129e4565b50505050505050565b6002600654036129395760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c47565b6002600655565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382165f818152601a6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038316612a0a5760405162461bcd60e51b8152600401610c47906132db565b6001600160a01b038216612a305760405162461bcd60e51b8152600401610c4790613320565b6001600160a01b0383165f9081526020819052604090205481811015612aa75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610c47565b6001600160a01b038085165f90815260208190526040808220858503905591851681529081208054849290612add90849061302b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612b2991815260200190565b60405180910390a350505050565b305f908152602081905260408120546017549091821580612b56575081155b15612b6057505050565b601054612b6e9060146130ab565b831115612b8657601054612b839060146130ab565b92505b8247612b9182612c41565b5f612b9c4783612df7565b5f6017819055909150612bb560646127fd846014612c24565b600e549091506001600160a01b0316156128de57600e546040516001600160a01b039091169082905f81818185875af1925050503d805f8114612c13576040519150601f19603f3d011682016040523d82523d5f602084013e612c18565b606091505b50505050505050505050565b5f612c2f82846130ab565b9392505050565b5f612c2f82846130c2565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110612c7457612c74613084565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cf0573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d149190613069565b81600181518110612d2757612d27613084565b60200260200101906001600160a01b031690816001600160a01b031681525050612d72307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846121c2565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790612dc69085905f908690309042906004016132a0565b5f604051808303815f87803b158015612ddd575f5ffd5b505af1158015612def573d5f5f3e3d5ffd5b505050505050565b5f612c2f8284613098565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f612c2f6020830184612e02565b6001600160a01b0381168114611a0f575f5ffd5b5f5f60408385031215612e67575f5ffd5b8235612e7281612e42565b946020939093013593505050565b5f60208284031215612e90575f5ffd5b8135612c2f81612e42565b5f5f5f60608486031215612ead575f5ffd5b8335612eb881612e42565b92506020840135612ec881612e42565b929592945050506040919091013590565b5f60208284031215612ee9575f5ffd5b5035919050565b8015158114611a0f575f5ffd5b5f5f60408385031215612f0e575f5ffd5b8235612f1981612e42565b91506020830135612f2981612ef0565b809150509250929050565b5f60208284031215612f44575f5ffd5b8135612c2f81612ef0565b8215158152604060208201525f612f696040830184612e02565b949350505050565b602080825282518282018190525f918401906040840190835b81811015612fa8578351835260209384019390920191600101612f8a565b509095945050505050565b5f5f60408385031215612fc4575f5ffd5b8235612fcf81612e42565b91506020830135612f2981612e42565b600181811c90821680612ff357607f821691505b60208210810361301157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610bb557610bb5613017565b5f6020828403121561304e575f5ffd5b5051919050565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215613079575f5ffd5b8151612c2f81612e42565b634e487b7160e01b5f52603260045260245ffd5b81810381811115610bb557610bb5613017565b8082028115828204841417610bb557610bb5613017565b5f826130dc57634e487b7160e01b5f52601260045260245ffd5b500490565b5f8151808452602084019350602083015f5b8281101561311a5781516001600160a01b03168652602095860195909101906001016130f3565b5093949350505050565b848152608060208201525f61313c60808301866130e1565b6001600160a01b03949094166040830152506060015292915050565b5f6001820161316957613169613017565b5060010190565b828152604060208201525f612f6960408301846130e1565b5f60208284031215613198575f5ffd5b815167ffffffffffffffff8111156131ae575f5ffd5b8201601f810184136131be575f5ffd5b805167ffffffffffffffff8111156131d8576131d8613055565b8060051b604051601f19603f830116810181811067ffffffffffffffff8211171561320557613205613055565b604052918252602081840181019290810187841115613222575f5ffd5b6020850194505b8385101561324557845180825260209586019590935001613229565b509695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f60208284031215613295575f5ffd5b8151612c2f81612ef0565b85815284602082015260a060408201525f6132be60a08301866130e1565b6001600160a01b0394909416606083015250608001529392505050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b60608201526080019056fe000000000000000000000000e0f63a424a4439cbe457d80e4f4b51ad25b2c56ca264697066735822122052916c3a4409df91d7e9e42a52a275bb5774ef877f3d792590f5ef8db96b645264736f6c634300081e0033

Verified Source Code Partial Match

Compiler: v0.8.30+commit.73712a01 EVM: prague Optimization: Yes (200 runs)
SPX_STRATEGY.sol 1512 lines
/*
https://t.me/SPXStrategyFund
https://x.com/SPXStrategyFund
https://spxstrategy.fun/
*/
pragma solidity >=0.6.2;

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



pragma solidity >=0.6.2;


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



pragma solidity >=0.5.0;

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: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}


pragma solidity ^0.8.19;

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0; 

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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);
}



// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.19;

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


pragma solidity ^0.8.0;




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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

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

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

        emit Transfer(account, address(0), amount);

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

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

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

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


// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.19;


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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


pragma solidity ^0.8.30;
contract SPX_STRATEGY is ERC20, Ownable,ReentrancyGuard {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapRouter;
    address public uniswapV2Pair;

    address constant public SPX_TOKEN = payable(0xE0f63A424a4439cBE457D80E4f4b51aD25b2c56C);
    address constant public WETH_TOKEN = payable(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    address constant public DEAD_ADDRESS = payable(0x000000000000000000000000000000000000dEaD);

    uint256 private constant PROFIT_BPS = 1200;

    struct Order {
        uint256 ethSpent;
        uint256 spxBought;
        uint256 timestamp;
        uint256 blockNumber; // Block when order was created
        bool sold; 
    }

    uint256 public nextOrderId = 1;
    mapping(uint256 => Order) public orders;

    uint256 public minSPXBuy = 1 ether;
    uint256 public txReward = 0.01 ether; 
    
    // Flashloan protection
    uint256 public minBlocksBetweenActions = 5; // Minimum blocks between buy and sell
    bool private swapping;

    address public treasuryWallet;
    address public teamWallet;

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

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

    uint256 public buyTotalFees;
    uint256 public buyTreasuryFee;

    uint256 public sellTotalFees;
    uint256 public sellTreasuryFee;

    uint256 public tokensForTreasury;


    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public _isExcludedMaxTransactionAmount;

    mapping(address => bool) public automatedMarketMakerPairs;

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

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event treasuryWalletUpdated(
        address indexed newWallet,
        address indexed oldWallet
    );

    constructor() ERC20("SPX Strategy", "SPXSTR") {
        IUniswapV2Router02 _uniswapRouter = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D 
        );

        excludeFromMaxTransaction(address(_uniswapRouter), true);
        uniswapRouter = _uniswapRouter;

        uniswapV2Pair = IUniswapV2Factory(uniswapRouter.factory())
            .createPair(address(this), uniswapRouter.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);

        uint256 _buyTreasuryFee = 25; 
        uint256 _sellTreasuryFee = 25;

        uint256 totalSupply = 1_000_000_000 * 1e18;

        maxTransactionAmount = totalSupply / 100;
        maxWallet = totalSupply / 100;
        swapTokensAtAmount = (totalSupply * 5) / 10000; 

        buyTreasuryFee = _buyTreasuryFee;
        buyTotalFees = buyTreasuryFee;

        sellTreasuryFee = _sellTreasuryFee;
        sellTotalFees = sellTreasuryFee;

        treasuryWallet = address(0x0b52BCb7ffe61340fD94dFe939153587A193ebF5);
        teamWallet = msg.sender;

        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);

        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);

        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        _mint(msg.sender, totalSupply);
    }

    receive() external payable {}

    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
    }

    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool) {
        limitsInEffect = false;
        return true;
    }

    // Admin functions to adjust protection parameters
    function updateMinBlocksBetweenActions(uint256 blocks) external onlyOwner {
        minBlocksBetweenActions = blocks;
    }

    // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount)
        external
        onlyOwner
        returns (bool)
    {
        swapTokensAtAmount = newAmount;
        return true;
    }

    function excludeFromMaxTransaction(address updAds, bool isEx)
        public
        onlyOwner
    {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    function updateSwapEnabled(bool enabled) external onlyOwner {
        swapEnabled = enabled;
    }

    function updateBuyFees(
        uint256 _treasuryFee
    ) external onlyOwner {
        buyTreasuryFee = _treasuryFee;
        buyTotalFees = buyTreasuryFee;
    }

    function updateSellFees(
        uint256 _treasuryFee
    ) external onlyOwner {
        sellTreasuryFee = _treasuryFee;
        sellTotalFees = sellTreasuryFee;
    }

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

    function setAutomatedMarketMakerPair(address pair, bool value)
        public
        onlyOwner
    {
        require(
            pair != uniswapV2Pair,
            "The pair cannot be removed from automatedMarketMakerPairs"
        );

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }

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


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

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

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

                //when buy
                if (
                    automatedMarketMakerPairs[from] &&
                    !_isExcludedMaxTransactionAmount[to]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Buy transfer amount exceeds the maxTransactionAmount."
                    );
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
                //when sell
                else if (
                    automatedMarketMakerPairs[to] &&
                    !_isExcludedMaxTransactionAmount[from]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Sell transfer amount exceeds the maxTransactionAmount."
                    );
                } else if (!_isExcludedMaxTransactionAmount[to]) {
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

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

            swapBack();

            swapping = false;
        }

        bool takeFee = !swapping;

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

        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
                fees = amount.mul(sellTotalFees).div(100);
                tokensForTreasury += (fees * sellTreasuryFee) / sellTotalFees;
            }
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = amount.mul(buyTotalFees).div(100);
                tokensForTreasury += (fees * buyTreasuryFee) / buyTotalFees;
            }

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

            amount -= fees;
        }

        super._transfer(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapRouter.WETH();

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

        // make the swap
        uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForTreasury;
        bool success;

        if (contractBalance == 0 || totalTokensToSwap == 0) {
            return;
        }

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


        uint256 amountToSwapForETH = contractBalance;
        uint256 initialETHBalance = address(this).balance;
        swapTokensForEth(amountToSwapForETH);
        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
        tokensForTreasury = 0;

        uint256 teamShare = ethBalance.mul(20).div(100);

        if (teamWallet != address(0)) {
            (success, ) = teamWallet.call{value: teamShare}("");
        }
    }


    function updateRewards(uint256 val) external onlyOwner {
        txReward = val;
    }

    function updateMinSPXBuy(uint256 val) external onlyOwner {
        minSPXBuy = val;
    }

    function updateTeamWallet(address newWallet) external onlyOwner {
        require(newWallet != address(0), "Zero address not allowed");
        teamWallet = newWallet;
    }

    function buySPX() external nonReentrant{
        uint256 treasuryBalance = address(this).balance;
        require(treasuryBalance >= minSPXBuy + txReward, "Not enough ETH in treasury");

        uint256 beforeSPXBalance = IERC20(SPX_TOKEN).balanceOf(address(this));
        address[] memory path = new address[](2);
        path[0] = uniswapRouter.WETH();
        path[1] = SPX_TOKEN;
        uint256 minSPX = previewBuy(treasuryBalance - txReward);
        minSPX = minSPX * 95 / 100; // Allow 5% slippage max
        uniswapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: treasuryBalance - txReward}(
            minSPX,
            path,
            address(this),
            block.timestamp
        );
        uint256 afterSPXBalance = IERC20(SPX_TOKEN).balanceOf(address(this));
        uint256 spxBought = afterSPXBalance - beforeSPXBalance;

        uint256 orderId = nextOrderId++;
        orders[orderId] = Order({
            ethSpent: treasuryBalance - txReward,
            spxBought: spxBought,
            timestamp: block.timestamp,
            blockNumber: block.number,
            sold: false
        });
        payable(msg.sender).transfer(txReward);

    }

    function sellSPX(uint256 orderId) external nonReentrant{
        Order storage order = orders[orderId];
        require(!order.sold, "Already sold");
        
        require(
            block.number >= order.blockNumber + minBlocksBetweenActions,
            "Must wait more blocks between buy and sell"
        );
        
        uint256 expectedEth = previewSell(order.spxBought);
        require(expectedEth * 1000 >= order.ethSpent * PROFIT_BPS, "Profit threshold not met");
        require(IERC20(SPX_TOKEN).balanceOf(address(this)) >= order.spxBought, "Not enough SPX in contract");
        
        IERC20(SPX_TOKEN).approve(address(uniswapRouter), order.spxBought);
        address[] memory path = new address[](3);
        path[0] = SPX_TOKEN;
        path[1] = uniswapRouter.WETH();
        path[2] = address(this);
        uint256[] memory amounts = uniswapRouter.getAmountsOut(order.spxBought, path);
        uint256 minSelf = (amounts[2] * 90 )/ 100;
        uniswapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            order.spxBought,
            minSelf,
            path,
            address(DEAD_ADDRESS),
            block.timestamp
        );
        order.sold = true;
        if (address(this).balance > txReward) {
            payable(msg.sender).transfer(txReward);
        }
    }

    function previewSell(uint256 amountIn) public view returns (uint256 ethExpected) {
        address[] memory path = new address[](2);
        path[0] = SPX_TOKEN;
        path[1] = uniswapRouter.WETH();

        uint[] memory amounts = uniswapRouter.getAmountsOut(amountIn, path);
        ethExpected = amounts[1]; // path[1] = ETH (WETH)
    }

    function previewBuy(uint256 amountIn) public view returns (uint256 minOutSPX) {
        address[] memory path = new address[](2);
        path[0] = uniswapRouter.WETH();
        path[1] = SPX_TOKEN;
        uint[] memory amounts = uniswapRouter.getAmountsOut(amountIn, path);
        minOutSPX = amounts[1]; // path[1] = SPX
    }

    /**
     * @dev Check if an order is ready to sell (passes all protection checks)
     * Returns (canSell, reason) where reason explains why if canSell is false
     */
    function canSellOrder(uint256 orderId) public view returns (bool canSell, string memory reason) {
        Order storage order = orders[orderId];
        
        if (order.sold) {
            return (false, "Already sold");
        }
        
        if (block.number < order.blockNumber + minBlocksBetweenActions) {
            return (false, "Block delay not met");
        }
        
        uint256 expectedEth = previewSell(order.spxBought);
        if (expectedEth * 1000 < order.ethSpent * PROFIT_BPS) {
            return (false, "Profit threshold not met");
        }
        
        if (IERC20(SPX_TOKEN).balanceOf(address(this)) < order.spxBought) {
            return (false, "Not enough SPX i...

// [truncated — 50432 bytes total]

Read Contract

DEAD_ADDRESS 0x4e6fd6c4 → address
SPX_TOKEN 0x7e9401c3 → address
WETH_TOKEN 0x37d277d4 → address
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyTotalFees 0xd85ba063 → uint256
buyTreasuryFee 0x5c068a8c → uint256
canSellOrder 0xb6d927f6 → bool, string
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
minBlocksBetweenActions 0x213a839e → uint256
minSPXBuy 0xd588efb6 → uint256
name 0x06fdde03 → string
nextOrderId 0x2a58b330 → uint256
orders 0xa85c38ef → uint256, uint256, uint256, uint256, bool
owner 0x8da5cb5b → address
previewBuy 0x48153279 → uint256
previewSell 0xfb3dd95f → uint256
sellTotalFees 0x6a486a8e → uint256
sellTreasuryFee 0x6b2fb124 → uint256
stats 0xd80528ae → uint256[]
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamWallet 0x59927044 → address
tokensForTreasury 0xcc2ffe7c → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
treasuryWallet 0x4626402b → address
txReward 0x46d63676 → uint256
uniswapRouter 0x735de9f7 → address
uniswapV2Pair 0x49bd5a5e → address

Write Contract 22 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
buySPX 0x42642df9
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
sellSPX 0x906aa49c
uint256 orderId
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x71fc4688
uint256 _treasuryFee
updateMinBlocksBetweenActions 0x8ed462c3
uint256 blocks
updateMinSPXBuy 0x5faf7b6f
uint256 val
updateRewards 0xb1e95e94
uint256 val
updateSellFees 0xeba4c333
uint256 _treasuryFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updateTeamWallet 0x7cb332bb
address newWallet

Recent Transactions

No transactions found for this address