Address Contract Partially Verified
Address
0xa330cfe4CBaC4d8fa89371fFeDc190308CD9C0EC
Balance
0.078286 ETH ($153.24)
Nonce
2
Code Size
18849 bytes
Creator
0xAAa12491...9AeA at tx 0xff073ed5...ab7376
Indexed Transactions
Index loading...
Contract Bytecode
18849 bytes
0x608060405260043610610384575f3560e01c80637bce5a04116101d0578063c8c8ebe411610101578063e2f456051161009f578063f5648a4f1161006e578063f5648a4f14610cbd578063f637434214610cd3578063f8b45b0514610cfd578063fe72b27a14610d275761038b565b8063e2f4560514610c19578063f083d52514610c43578063f11a24d314610c6b578063f2fde38b14610c955761038b565b8063d4698016116100db578063d469801614610b61578063d85ba06314610b8b578063dd62ed3e14610bb5578063e083e92214610bf15761038b565b8063c8c8ebe414610ae5578063c9567bf914610b0f578063d257b34f14610b255761038b565b8063a457c2d71161016e578063b8c8788d11610148578063b8c8788d14610a41578063bbc0c74214610a6b578063c024666814610a95578063c17b5b8c14610abd5761038b565b8063a457c2d71461099f578063a4c82a00146109db578063a9059cbb14610a055761038b565b806392136913116101aa57806392136913146108f957806395d89b4114610923578063961883991461094d5780639ec22c0e146109755761038b565b80637bce5a041461087d5780638095d564146108a75780638da5cb5b146108cf5761038b565b806349bd5a5e116102b55780636a486a8e11610253578063730c188811610222578063730c1888146107d957806373489e45146108015780637571336a1461082b57806375f0a874146108535761038b565b80636a486a8e146107335780636ddd17131461075d57806370a0823114610787578063715018a6146107c35761038b565b80634fbee1931161028f5780634fbee1931461068d5780635a3a96f3146106c95780635d60c7be146106f3578063672729991461071d5761038b565b806349bd5a5e1461060f5780634a62bb65146106395780634ad9b1d3146106635761038b565b806327c8f83511610322578063313ce567116102fc578063313ce56714610557578063325b3b181461058157806339509351146105ab57806342966c68146105e75761038b565b806327c8f835146104d95780632c3e486c146105035780632e82f1a01461052d5761038b565b806318160ddd1161035e57806318160ddd1461041f578063184c16c514610449578063226cf6601461047357806323b872dd1461049d5761038b565b806306fdde031461038f578063095ea7b3146103b95780631694505e146103f55761038b565b3661038b57005b5f80fd5b34801561039a575f80fd5b506103a3610d63565b6040516103b0919061392f565b60405180910390f35b3480156103c4575f80fd5b506103df60048036038101906103da91906139e0565b610df3565b6040516103ec9190613a38565b60405180910390f35b348015610400575f80fd5b50610409610e15565b6040516104169190613aac565b60405180910390f35b34801561042a575f80fd5b50610433610e39565b6040516104409190613ad4565b60405180910390f35b348015610454575f80fd5b5061045d610e42565b60405161046a9190613ad4565b60405180910390f35b34801561047e575f80fd5b50610487610e48565b6040516104949190613ad4565b60405180910390f35b3480156104a8575f80fd5b506104c360048036038101906104be9190613aed565b610e4e565b6040516104d09190613a38565b60405180910390f35b3480156104e4575f80fd5b506104ed610e7c565b6040516104fa9190613b4c565b60405180910390f35b34801561050e575f80fd5b50610517610e82565b6040516105249190613ad4565b60405180910390f35b348015610538575f80fd5b50610541610e88565b60405161054e9190613a38565b60405180910390f35b348015610562575f80fd5b5061056b610e9a565b6040516105789190613b80565b60405180910390f35b34801561058c575f80fd5b50610595610ea2565b6040516105a29190613ad4565b60405180910390f35b3480156105b6575f80fd5b506105d160048036038101906105cc91906139e0565b610ea8565b6040516105de9190613a38565b60405180910390f35b3480156105f2575f80fd5b5061060d60048036038101906106089190613b99565b610ede565b005b34801561061a575f80fd5b50610623610eeb565b6040516106309190613b4c565b60405180910390f35b348015610644575f80fd5b5061064d610f10565b60405161065a9190613a38565b60405180910390f35b34801561066e575f80fd5b50610677610f22565b6040516106849190613ad4565b60405180910390f35b348015610698575f80fd5b506106b360048036038101906106ae9190613bc4565b610f28565b6040516106c09190613a38565b60405180910390f35b3480156106d4575f80fd5b506106dd610f7a565b6040516106ea9190613ad4565b60405180910390f35b3480156106fe575f80fd5b50610707610f80565b6040516107149190613b4c565b60405180910390f35b348015610728575f80fd5b50610731610fa5565b005b34801561073e575f80fd5b5061074761114a565b6040516107549190613ad4565b60405180910390f35b348015610768575f80fd5b50610771611150565b60405161077e9190613a38565b60405180910390f35b348015610792575f80fd5b506107ad60048036038101906107a89190613bc4565b611163565b6040516107ba9190613ad4565b60405180910390f35b3480156107ce575f80fd5b506107d76111a8565b005b3480156107e4575f80fd5b506107ff60048036038101906107fa9190613c19565b6111bb565b005b34801561080c575f80fd5b50610815611285565b6040516108229190613c89565b60405180910390f35b348015610836575f80fd5b50610851600480360381019061084c9190613ca2565b6112aa565b005b34801561085e575f80fd5b5061086761130a565b6040516108749190613b4c565b60405180910390f35b348015610888575f80fd5b5061089161132f565b60405161089e9190613ad4565b60405180910390f35b3480156108b2575f80fd5b506108cd60048036038101906108c89190613ce0565b611335565b005b3480156108da575f80fd5b506108e3611389565b6040516108f09190613b4c565b60405180910390f35b348015610904575f80fd5b5061090d6113b1565b60405161091a9190613ad4565b60405180910390f35b34801561092e575f80fd5b506109376113b7565b604051610944919061392f565b60405180910390f35b348015610958575f80fd5b50610973600480360381019061096e9190613d30565b611447565b005b348015610980575f80fd5b506109896114b9565b6040516109969190613ad4565b60405180910390f35b3480156109aa575f80fd5b506109c560048036038101906109c091906139e0565b6114bf565b6040516109d29190613a38565b60405180910390f35b3480156109e6575f80fd5b506109ef611534565b6040516109fc9190613ad4565b60405180910390f35b348015610a10575f80fd5b50610a2b6004803603810190610a2691906139e0565b61153a565b604051610a389190613a38565b60405180910390f35b348015610a4c575f80fd5b50610a5561155c565b604051610a629190613ad4565b60405180910390f35b348015610a76575f80fd5b50610a7f611562565b604051610a8c9190613a38565b60405180910390f35b348015610aa0575f80fd5b50610abb6004803603810190610ab69190613ca2565b611575565b005b348015610ac8575f80fd5b50610ae36004803603810190610ade9190613ce0565b6115d5565b005b348015610af0575f80fd5b50610af9611632565b604051610b069190613ad4565b60405180910390f35b348015610b1a575f80fd5b50610b23611638565b005b348015610b30575f80fd5b50610b4b6004803603810190610b469190613b99565b611ac3565b604051610b589190613a38565b60405180910390f35b348015610b6c575f80fd5b50610b75611b35565b604051610b829190613b4c565b60405180910390f35b348015610b96575f80fd5b50610b9f611b5a565b604051610bac9190613ad4565b60405180910390f35b348015610bc0575f80fd5b50610bdb6004803603810190610bd69190613d6e565b611b60565b604051610be89190613ad4565b60405180910390f35b348015610bfc575f80fd5b50610c176004803603810190610c129190613bc4565b611be2565b005b348015610c24575f80fd5b50610c2d611e57565b604051610c3a9190613ad4565b60405180910390f35b348015610c4e575f80fd5b50610c696004803603810190610c649190613b99565b611e5d565b005b348015610c76575f80fd5b50610c7f611e8b565b604051610c8c9190613ad4565b60405180910390f35b348015610ca0575f80fd5b50610cbb6004803603810190610cb69190613bc4565b611e91565b005b348015610cc8575f80fd5b50610cd1611f13565b005b348015610cde575f80fd5b50610ce761202a565b604051610cf49190613ad4565b60405180910390f35b348015610d08575f80fd5b50610d11612030565b604051610d1e9190613ad4565b60405180910390f35b348015610d32575f80fd5b50610d4d6004803603810190610d489190613b99565b612036565b604051610d5a9190613a38565b60405180910390f35b606060038054610d7290613dd9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9e90613dd9565b8015610de95780601f10610dc057610100808354040283529160200191610de9565b820191905f5260205f20905b815481529060010190602001808311610dcc57829003601f168201915b5050505050905090565b5f80610dfd612282565b9050610e0a818585612289565b600191505092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b60125481565b60155481565b5f80610e58612282565b9050610e65858285612370565b610e708585856123c4565b60019150509392505050565b61dead81565b60105481565b600f5f9054906101000a900460ff1681565b5f6012905090565b60145481565b5f80610eb2612282565b9050610ed3818585610ec48589611b60565b610ece9190613e36565b612289565b600191505092915050565b610ee83382612dd9565b50565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60165f9054906101000a900460ff1681565b601e5481565b5f60235f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b600e5481565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a90613eb3565b60405180910390fd5b5f61101d33611163565b90505f8111611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105890613f1b565b60405180910390fd5b5f61106a610e39565b90505f818347603261107c9190613f39565b6110869190613f39565b6110909190613fa7565b905061109c3384612dd9565b5f3373ffffffffffffffffffffffffffffffffffffffff16826040516110c190614004565b5f6040518083038185875af1925050503d805f81146110fb576040519150601f19603f3d011682016040523d82523d5f602084013e611100565b606091505b5050905080611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90614062565b60405180910390fd5b50505050565b601b5481565b601660029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6111b0612ea3565b6111b95f612f21565b565b6111c3612ea3565b610258831015611208576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ff906140f0565b60405180910390fd5b6103e8821115801561121a57505f8210155b611259576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112509061417e565b60405180910390fd5b8260108190555081600e8190555080600f5f6101000a81548160ff021916908315150217905550505050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112b2612ea3565b8060245f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60185481565b61133d612ea3565b826018819055508160198190555080601a81905550601954601a546018546113659190613e36565b61136f9190613e36565b60178190555060196017541115611384575f80fd5b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601c5481565b6060600480546113c690613dd9565b80601f01602080910402602001604051908101604052809291908181526020018280546113f290613dd9565b801561143d5780601f106114145761010080835404028352916020019161143d565b820191905f5260205f20905b81548152906001019060200180831161142057829003601f168201915b5050505050905090565b61144f612ea3565b6103e8600561145c610e39565b6114669190613f39565b6114709190613fa7565b82101561147b575f80fd5b6103e86005611488610e39565b6114929190613f39565b61149c9190613fa7565b8110156114a7575f80fd5b80600d8190555081600b819055505050565b60135481565b5f806114c9612282565b90505f6114d68286611b60565b90508381101561151b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115129061420c565b60405180910390fd5b6115288286868403612289565b60019250505092915050565b60115481565b5f80611544612282565b90506115518185856123c4565b600191505092915050565b601a5481565b601660019054906101000a900460ff1681565b61157d612ea3565b8060235f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b6115dd612ea3565b82601c8190555081601d8190555080601e81905550601d54601e54601c546116059190613e36565b61160f9190613e36565b601b81905550601b546022819055506019601b54111561162d575f80fd5b505050565b600b5481565b611640612ea3565b601660019054906101000a900460ff1615611659575f80fd5b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156116c2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116e6919061423e565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561176b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061178f919061423e565b6040518363ffffffff1660e01b81526004016117ac929190614269565b6020604051808303815f875af11580156117c8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117ec919061423e565b60075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506118773060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612289565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401611913929190614290565b6020604051808303815f875af115801561192f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061195391906142cb565b5061198060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001612fe4565b6119ac60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016112aa565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d71947306119f330611163565b5f8060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b8152600401611a399695949392919061432f565b60606040518083038185885af1158015611a55573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611a7a91906143a2565b5050506001601660016101000a81548160ff0219169083151502179055506001601660026101000a81548160ff0219169083151502179055504260118190555042601481905550565b5f611acc612ea3565b620186a06001611ada610e39565b611ae49190613f39565b611aee9190613fa7565b821015611af9575f80fd5b6103e86005611b06610e39565b611b109190613f39565b611b1a9190613fa7565b821115611b25575f80fd5b81600c8190555060019050919050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60175481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c3a575f80fd5b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ca8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9f90614462565b60405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611ce29190613b4c565b602060405180830381865afa158015611cfd573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d219190614480565b11611d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d58906144f5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611db79190613b4c565b602060405180830381865afa158015611dd2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611df69190614480565b6040518363ffffffff1660e01b8152600401611e13929190614290565b6020604051808303815f875af1158015611e2f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e5391906142cb565b5050565b600c5481565b611e65612ea3565b5f8111611e70575f80fd5b8060155f828254611e819190613e36565b9250508190555050565b60195481565b611e99612ea3565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efe90614583565b60405180910390fd5b611f1081612f21565b50565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f6b575f80fd5b601554601454611f7b9190613e36565b421015611fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb4906145eb565b60405180910390fd5b5f3373ffffffffffffffffffffffffffffffffffffffff1647604051611fe290614004565b5f6040518083038185875af1925050503d805f811461201c576040519150601f19603f3d011682016040523d82523d5f602084013e612021565b606091505b50508091505050565b601d5481565b600d5481565b5f61203f612ea3565b60125460135461204f9190613e36565b4211612090576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208790614653565b60405180910390fd5b6103e88211156120d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cc906146e1565b60405180910390fd5b426013819055505f3073ffffffffffffffffffffffffffffffffffffffff166370a0823160075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016121379190613b4c565b602060405180830381865afa158015612152573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906121769190614480565b90505f61271084836121889190613f39565b6121929190613fa7565b90505f8111156121cb576121ca60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661dead8361303c565b5b5f60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b158015612235575f80fd5b505af1158015612247573d5f803e3d5ffd5b505050507e22c74b3a86ea8dfa255116234c1bcddd89a3f4379935fa263daefeb087008e60405160405180910390a160019350505050919050565b5f33905090565b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516123639190613ad4565b60405180910390a3505050565b5f61237b8484611b60565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146123be57818110156123b0575f80fd5b6123bd8484848403612289565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123fb575f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612432575f80fd5b5f81036124495761244483835f61303c565b612dd4565b612451611389565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156124bf575061248f611389565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156124f757505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612531575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561254a5750600760149054906101000a900460ff16155b1561283c57601660019054906101000a900460ff1661263e5760235f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806125fe575060235f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b61263d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263490614749565b60405180910390fd5b5b60255f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156126db575060245f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561271457600b548111156126ee575f80fd5b600d546126fa83611163565b826127059190613e36565b111561270f575f80fd5b61283b565b60255f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156127b1575060245f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156127c957600b548111156127c4575f80fd5b61283a565b60245f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661283957600d5461282383611163565b8261282e9190613e36565b1115612838575f80fd5b5b5b5b5b5f61284630611163565b90505f600c54821015905080801561286a5750601660029054906101000a900460ff165b80156128835750600760149054906101000a900460ff16155b80156128d6575060255f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612929575060235f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561297c575060235f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156129bf576001600760146101000a81548160ff0219169083151502179055506129a46131ed565b5f600760146101000a81548160ff0219169083151502179055505b600760149054906101000a900460ff16158015612a22575060255f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b8015612a395750600f5f9054906101000a900460ff165b8015612a545750601054601154612a509190613e36565b4210155b8015612aa7575060235f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612ab657612ab46133cb565b505b5f600760149054906101000a900460ff1615905060235f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612b65575060235f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612b6e575f90505b5f8115612dbb5760255f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612bcc57505f601b54115b15612c88576064601b5486612be19190613f39565b612beb9190613fa7565b9050601b54601e5482612bfe9190613f39565b612c089190613fa7565b60215f828254612c189190613e36565b92505081905550601b54601d5482612c309190613f39565b612c3a9190613fa7565b60205f828254612c4a9190613e36565b92505081905550601b54601c5482612c629190613f39565b612c6c9190613fa7565b601f5f828254612c7c9190613e36565b92505081905550612d98565b60255f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612cdf57505f601754115b15612d9757606460175486612cf49190613f39565b612cfe9190613fa7565b9050601754601a5482612d119190613f39565b612d1b9190613fa7565b60215f828254612d2b9190613e36565b9250508190555060175460195482612d439190613f39565b612d4d9190613fa7565b60205f828254612d5d9190613e36565b9250508190555060175460185482612d759190613f39565b612d7f9190613fa7565b601f5f828254612d8f9190613e36565b925050819055505b5b5f811115612dac57612dab87308361303c565b5b8085612db89190614767565b94505b612dc687878761303c565b602254601b81905550505050505b505050565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254612e249190614767565b925050819055508060025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612e979190613ad4565b60405180910390a35050565b612eab612282565b73ffffffffffffffffffffffffffffffffffffffff16612ec9611389565b73ffffffffffffffffffffffffffffffffffffffff1614612f1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f16906147e4565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060255f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613073575f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130aa575f80fd5b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156130f6575f80fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131df9190613ad4565b60405180910390a350505050565b5f6131f730611163565b90505f602154601f5460205461320d9190613e36565b6132179190613e36565b90505f8083148061322757505f82145b15613234575050506133c9565b6014600c546132439190613f39565b83111561325c576014600c546132599190613f39565b92505b5f6002836020548661326e9190613f39565b6132789190613fa7565b6132829190613fa7565b90505f81856132919190614767565b90505f4790506132a08261357a565b5f81476132ad9190614767565b90505f86601f54836132bf9190613f39565b6132c99190613fa7565b90505f87602154846132db9190613f39565b6132e59190613fa7565b90505f81836132f49190613e36565b846132ff9190614767565b90505f6020819055505f601f819055505f6021819055505f8711801561332457505f81115b156133345761333387826137ad565b5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168360405161337990614004565b5f6040518083038185875af1925050503d805f81146133b3576040519150601f19603f3d011682016040523d82523d5f602084013e6133b8565b606091505b505080985050505050505050505050505b565b5f426011819055505f3073ffffffffffffffffffffffffffffffffffffffff166370a0823160075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161342e9190613b4c565b602060405180830381865afa158015613449573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061346d9190614480565b90505f612710600e54836134819190613f39565b61348b9190613fa7565b90505f8111156134c4576134c360075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661dead8361303c565b5b5f60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561352e575f80fd5b505af1158015613540573d5f803e3d5ffd5b505050507f3b8003ff934e6fbafe481f0ae193446286cc42f0a2b46361542b58076803df2560405160405180910390a16001935050505090565b5f600267ffffffffffffffff81111561359657613595614802565b5b6040519080825280602002602001820160405280156135c45781602001602082028036833780820191505090505b50905030815f815181106135db576135da61482f565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561367e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906136a2919061423e565b816001815181106136b6576136b561482f565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061371b307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612289565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b815260040161377c959493929190614913565b5f604051808303815f87803b158015613793575f80fd5b505af11580156137a5573d5f803e3d5ffd5b505050505050565b6137d8307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612289565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f8060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b815260040161385d9695949392919061432f565b60606040518083038185885af1158015613879573d5f803e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061389e91906143a2565b5050505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156138dc5780820151818401526020810190506138c1565b5f8484015250505050565b5f601f19601f8301169050919050565b5f613901826138a5565b61390b81856138af565b935061391b8185602086016138bf565b613924816138e7565b840191505092915050565b5f6020820190508181035f83015261394781846138f7565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61397c82613953565b9050919050565b61398c81613972565b8114613996575f80fd5b50565b5f813590506139a781613983565b92915050565b5f819050919050565b6139bf816139ad565b81146139c9575f80fd5b50565b5f813590506139da816139b6565b92915050565b5f80604083850312156139f6576139f561394f565b5b5f613a0385828601613999565b9250506020613a14858286016139cc565b9150509250929050565b5f8115159050919050565b613a3281613a1e565b82525050565b5f602082019050613a4b5f830184613a29565b92915050565b5f819050919050565b5f613a74613a6f613a6a84613953565b613a51565b613953565b9050919050565b5f613a8582613a5a565b9050919050565b5f613a9682613a7b565b9050919050565b613aa681613a8c565b82525050565b5f602082019050613abf5f830184613a9d565b92915050565b613ace816139ad565b82525050565b5f602082019050613ae75f830184613ac5565b92915050565b5f805f60608486031215613b0457613b0361394f565b5b5f613b1186828701613999565b9350506020613b2286828701613999565b9250506040613b33868287016139cc565b9150509250925092565b613b4681613972565b82525050565b5f602082019050613b5f5f830184613b3d565b92915050565b5f60ff82169050919050565b613b7a81613b65565b82525050565b5f602082019050613b935f830184613b71565b92915050565b5f60208284031215613bae57613bad61394f565b5b5f613bbb848285016139cc565b91505092915050565b5f60208284031215613bd957613bd861394f565b5b5f613be684828501613999565b91505092915050565b613bf881613a1e565b8114613c02575f80fd5b50565b5f81359050613c1381613bef565b92915050565b5f805f60608486031215613c3057613c2f61394f565b5b5f613c3d868287016139cc565b9350506020613c4e868287016139cc565b9250506040613c5f86828701613c05565b9150509250925092565b5f613c7382613a7b565b9050919050565b613c8381613c69565b82525050565b5f602082019050613c9c5f830184613c7a565b92915050565b5f8060408385031215613cb857613cb761394f565b5b5f613cc585828601613999565b9250506020613cd685828601613c05565b9150509250929050565b5f805f60608486031215613cf757613cf661394f565b5b5f613d04868287016139cc565b9350506020613d15868287016139cc565b9250506040613d26868287016139cc565b9150509250925092565b5f8060408385031215613d4657613d4561394f565b5b5f613d53858286016139cc565b9250506020613d64858286016139cc565b9150509250929050565b5f8060408385031215613d8457613d8361394f565b5b5f613d9185828601613999565b9250506020613da285828601613999565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613df057607f821691505b602082108103613e0357613e02613dac565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613e40826139ad565b9150613e4b836139ad565b9250828201905080821115613e6357613e62613e09565b5b92915050565b7f21636100000000000000000000000000000000000000000000000000000000005f82015250565b5f613e9d6003836138af565b9150613ea882613e69565b602082019050919050565b5f6020820190508181035f830152613eca81613e91565b9050919050565b7f4e6f20746f6b656e732068656c640000000000000000000000000000000000005f82015250565b5f613f05600e836138af565b9150613f1082613ed1565b602082019050919050565b5f6020820190508181035f830152613f3281613ef9565b9050919050565b5f613f43826139ad565b9150613f4e836139ad565b9250828202613f5c816139ad565b91508282048414831517613f7357613f72613e09565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613fb1826139ad565b9150613fbc836139ad565b925082613fcc57613fcb613f7a565b5b828204905092915050565b5f81905092915050565b50565b5f613fef5f83613fd7565b9150613ffa82613fe1565b5f82019050919050565b5f61400e82613fe4565b9150819050919050565b7f455448207472616e73666572206661696c6564000000000000000000000000005f82015250565b5f61404c6013836138af565b915061405782614018565b602082019050919050565b5f6020820190508181035f83015261407981614040565b9050919050565b7f63616e6e6f7420736574206275796261636b206d6f7265206f6674656e2074685f8201527f616e206576657279203130206d696e7574657300000000000000000000000000602082015250565b5f6140da6033836138af565b91506140e582614080565b604082019050919050565b5f6020820190508181035f830152614107816140ce565b9050919050565b7f4d75737420736574206175746f204c50206275726e2070657263656e742062655f8201527f747765656e20302520616e642031302500000000000000000000000000000000602082015250565b5f6141686030836138af565b91506141738261410e565b604082019050919050565b5f6020820190508181035f8301526141958161415c565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6141f66025836138af565b91506142018261419c565b604082019050919050565b5f6020820190508181035f830152614223816141ea565b9050919050565b5f8151905061423881613983565b92915050565b5f602082840312156142535761425261394f565b5b5f6142608482850161422a565b91505092915050565b5f60408201905061427c5f830185613b3d565b6142896020830184613b3d565b9392505050565b5f6040820190506142a35f830185613b3d565b6142b06020830184613ac5565b9392505050565b5f815190506142c581613bef565b92915050565b5f602082840312156142e0576142df61394f565b5b5f6142ed848285016142b7565b91505092915050565b5f819050919050565b5f61431961431461430f846142f6565b613a51565b6139ad565b9050919050565b614329816142ff565b82525050565b5f60c0820190506143425f830189613b3d565b61434f6020830188613ac5565b61435c6040830187614320565b6143696060830186614320565b6143766080830185613b3d565b61438360a0830184613ac5565b979650505050505050565b5f8151905061439c816139b6565b92915050565b5f805f606084860312156143b9576143b861394f565b5b5f6143c68682870161438e565b93505060206143d78682870161438e565b92505060406143e88682870161438e565b9150509250925092565b7f43616e277420776974686472617720746f6b656e732064657374696e656420665f8201527f6f72206c69717569646974790000000000000000000000000000000000000000602082015250565b5f61444c602c836138af565b9150614457826143f2565b604082019050919050565b5f6020820190508181035f83015261447981614440565b9050919050565b5f602082840312156144955761449461394f565b5b5f6144a28482850161438e565b91505092915050565b7f43616e27742077697468647261772030000000000000000000000000000000005f82015250565b5f6144df6010836138af565b91506144ea826144ab565b602082019050919050565b5f6020820190508181035f83015261450c816144d3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61456d6026836138af565b915061457882614513565b604082019050919050565b5f6020820190508181035f83015261459a81614561565b9050919050565b7f746f6f20736f6f6e0000000000000000000000000000000000000000000000005f82015250565b5f6145d56008836138af565b91506145e0826145a1565b602082019050919050565b5f6020820190508181035f830152614602816145c9565b9050919050565b7f4d757374207761697420666f7220636f6f6c646f776e20746f2066696e6973685f82015250565b5f61463d6020836138af565b915061464882614609565b602082019050919050565b5f6020820190508181035f83015261466a81614631565b9050919050565b7f4d6179206e6f74206e756b65206d6f7265207468616e20313025206f6620746f5f8201527f6b656e7320696e204c5000000000000000000000000000000000000000000000602082015250565b5f6146cb602a836138af565b91506146d682614671565b604082019050919050565b5f6020820190508181035f8301526146f8816146bf565b9050919050565b7f54726164696e67206e6f74206f70656e000000000000000000000000000000005f82015250565b5f6147336010836138af565b915061473e826146ff565b602082019050919050565b5f6020820190508181035f83015261476081614727565b9050919050565b5f614771826139ad565b915061477c836139ad565b925082820390508181111561479457614793613e09565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6147ce6020836138af565b91506147d98261479a565b602082019050919050565b5f6020820190508181035f8301526147fb816147c2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61488e81613972565b82525050565b5f61489f8383614885565b60208301905092915050565b5f602082019050919050565b5f6148c18261485c565b6148cb8185614866565b93506148d683614876565b805f5b838110156149065781516148ed8882614894565b97506148f8836148ab565b9250506001810190506148d9565b5085935050505092915050565b5f60a0820190506149265f830188613ac5565b6149336020830187614320565b818103604083015261494581866148b7565b90506149546060830185613b3d565b6149616080830184613ac5565b969550505050505056fea2646970667358221220969d6de110a9347b2404a863fac2cbf7f791a5add7879fd8120b55c4907e9a3664736f6c63430008160033
Verified Source Code Partial Match
Compiler: v0.8.22+commit.4fc1097e
EVM: shanghai
Optimization: No
ENRON.sol 1160 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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);
}
}
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
// pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender)
external
view
returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
// pragma solidity ^0.8.0;
// import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
/**
* @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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* 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}.
*
* 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));
require(to != address(0));
uint256 fromBalance = _balances[from];
require(fromBalance >= amount);
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
}
function _mint(address to, uint256 amount) internal virtual {
_totalSupply += amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
_balances[to] += amount;
}
emit Transfer(address(0), to, amount);
}
function _burn(address from, uint256 amount) internal virtual {
_balances[from] -= amount;
// Cannot underflow because a user's balance
// will never be larger than the total supply.
unchecked {
_totalSupply -= amount;
}
emit Transfer(from, 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 {
_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);
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(address token,uint256 amountTokenDesired,uint256 amountTokenMin,uint256 amountETHMin,address to,uint256 deadline) external payable returns (uint256 amountToken,uint256 amountETH,uint256 liquidity);
function removeLiquidityETH(address token,uint liquidity,uint amountTokenMin,uint amountETHMin,address to,uint deadline) external returns (uint amountToken, uint amountETH);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
contract ClaimEnron is Ownable {
address public oldContractAddress;
address public newContractAddress;
bool public claimActive = false;
address public deployerWallet;
constructor(address _oldContractAddress, address _newContractAddress, address _deployerWallet) {
oldContractAddress = _oldContractAddress;
newContractAddress = _newContractAddress;
deployerWallet = _deployerWallet;
}
function activateClaiming() public {
require(msg.sender == deployerWallet, "Only deployer can activate claiming");
claimActive = true;
}
function stopClaimAndBurn() public {
require(msg.sender == deployerWallet, "Only deployer can stop claiming");
claimActive = false;
ENRON(payable(newContractAddress)).burn(IERC20(newContractAddress).balanceOf(address(this)));
}
function claimFromOldContract() public {
require(claimActive, "Claiming is not active");
uint256 amount = IERC20(oldContractAddress).balanceOf(msg.sender);
require(amount > 0, "Must claim at least 1 token");
IERC20(oldContractAddress).transferFrom(msg.sender, deployerWallet, amount);
IERC20(newContractAddress).transfer(msg.sender, amount);
}
}
contract ENRON is ERC20, Ownable {
event AutoBurnLP();
event ManualBurnLP();
ClaimEnron public claimEnronContract;
IUniswapV2Router02 public immutable uniswapV2Router;
address public uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address public liquidityWallet;
address public deployerWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
uint256 public basisPointsForLPBurn = 25; // 25 = .25%
bool public lpBurnEnabled = true;
uint256 public lpBurnFrequency = 3600 seconds;
uint256 public lastLpBurnTime;
uint256 public manualBurnFrequency = 30 minutes;
uint256 public lastManualLpBurnTime;
uint256 public openTradingTime;
uint256 public stuckEthDelay = 7 days;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyLiquidityFee;
uint256 public buyContractFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellLiquidityFee;
uint256 public sellContractFee;
uint256 private tokensForMarketing;
uint256 private tokensForLiquidity;
uint256 private tokensForContract;
uint256 private previousFee;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
constructor(address oldContractAddress) payable ERC20("Enron Creditors Recovery Corp", "ENRON") {
claimEnronContract = new ClaimEnron(oldContractAddress, address(this), _msgSender());
uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
_approve(address(this), address(uniswapV2Router), type(uint256).max);
uint256 totalSupply = 2_000_000_000_000_000 * 10 ** 18;
maxTransactionAmount = (totalSupply * 7) / 1000;
maxWallet = (totalSupply * 7) / 1000;
swapTokensAtAmount = (totalSupply * 1) / 1000;
buyMarketingFee = 10;
buyLiquidityFee = 5;
buyContractFee = 10;
buyTotalFees =
buyMarketingFee +
buyLiquidityFee +
buyContractFee;
sellMarketingFee = 10;
sellLiquidityFee = 5;
sellContractFee = 10;
sellTotalFees =
sellMarketingFee +
sellLiquidityFee +
sellContractFee;
previousFee = sellTotalFees;
marketingWallet = _msgSender();
liquidityWallet = _msgSender();
deployerWallet = _msgSender();
excludeFromFees(_msgSender(), true);
excludeFromFees(address(this), true);
excludeFromFees(deadAddress, true);
excludeFromFees(marketingWallet, true);
excludeFromFees(liquidityWallet, true);
excludeFromFees(address (claimEnronContract), true);
excludeFromMaxTransaction(_msgSender(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(deadAddress, true);
excludeFromMaxTransaction(address(uniswapV2Router), true);
excludeFromMaxTransaction(marketingWallet, true);
excludeFromMaxTransaction(liquidityWallet, true);
_mint(address(this), (totalSupply * 50) / 100);
_mint(address(claimEnronContract), (totalSupply * 50) / 100);
}
receive() external payable {}
function burn(uint256 amount) external {
_burn(msg.sender, amount);
}
function openTrading() external onlyOwner {
require(!tradingActive);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
_approve(address(this), address(uniswapV2Pair), type(uint256).max);
IERC20(uniswapV2Pair).approve(
address(uniswapV2Router),
type(uint256).max
);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
excludeFromMaxTransaction(address(uniswapV2Pair), true);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
liquidityWallet,
block.timestamp
);
tradingActive = true;
swapEnabled = true;
lastLpBurnTime = block.timestamp;
openTradingTime = block.timestamp;
}
function updateSwapTokensAtAmount(uint256 newAmount)
external
onlyOwner
returns (bool)
{
require(newAmount >= (totalSupply() * 1) / 100000);
require(newAmount <= (totalSupply() * 5) / 1000);
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxWalletAndTxnAmount(
uint256 newTxnNum,
uint256 newMaxWalletNum
) external onlyOwner {
require(newTxnNum >= ((totalSupply() * 5) / 1000));
require(newMaxWalletNum >= ((totalSupply() * 5) / 1000));
maxWallet = newMaxWalletNum;
maxTransactionAmount = newTxnNum;
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function updateBuyFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _contractFee
) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLiquidityFee = _liquidityFee;
buyContractFee = _contractFee;
buyTotalFees = buyMarketingFee + buyContractFee + buyLiquidityFee;
require(buyTotalFees <= 25);
}
function updateSellFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _contractFee
) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLiquidityFee = _liquidityFee;
sellContractFee = _contractFee;
sellTotalFees = sellMarketingFee + sellContractFee + sellLiquidityFee;
previousFee = sellTotalFees;
require(sellTotalFees <= 25);
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
}
function withdrawStuckETH() public {
require(msg.sender == deployerWallet);
require(block.timestamp >= openTradingTime + stuckEthDelay, "too soon");
bool success;
(success, ) = address(msg.sender).call{value: address(this).balance}("");
}
function removeStuckToken(address _address) public {
require(msg.sender == deployerWallet);
require(_address != address(this), "Can't withdraw tokens destined for liquidity");
require(IERC20(_address).balanceOf(address(this)) > 0, "Can't withdraw 0");
IERC20(_address).transfer(msg.sender, IERC20(_address).balanceOf(address(this)));
}
function delayStuckEthWithdrawal(uint256 additionalDelay) external onlyOwner {
require(additionalDelay > 0);
stuckEthDelay += additionalDelay;
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[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));
require(to != address(0));
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != deadAddress &&
!swapping
) {
if (!tradingActive) {
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading not open");
}
//when buy
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(amount <= maxTransactionAmount);
require(amount + balanceOf(to) <= maxWallet);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(amount <= maxTransactionAmount);
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(amount + balanceOf(to) <= maxWallet);
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
// log the conditions below
if (
!swapping &&
automatedMarketMakerPairs[to] &&
lpBurnEnabled &&
block.timestamp >= lastLpBurnTime + lpBurnFrequency &&
!_isExcludedFromFees[from]
) {
autoBurnLiquidityPairTokens();
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = amount * sellTotalFees / 100;
tokensForContract += (fees * sellContractFee) / sellTotalFees;
tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount * buyTotalFees / 100;
tokensForContract += (fees * buyContractFee) / buyTotalFees;
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
sellTotalFees = previousFee;
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
liquidityWallet,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForMarketing + tokensForContract;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
totalTokensToSwap /
2;
uint256 amountToSwapForETH = contractBalance - liquidityTokens;
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance - initialETHBalance;
uint256 ethForMarketing = ethBalance * tokensForMarketing / totalTokensToSwap;
uint256 ethForContract = ethBalance * tokensForContract / totalTokensToSwap;
uint256 ethForLiquidity = ethBalance - (ethForMarketing + ethForContract);
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForContract = 0;
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
}
(success, ) = address(marketingWallet).call{
value: ethForMarketing
}("");
}
function setAutoLPBurnSettings(
uint256 _frequencyInSeconds,
uint256 _basisPoints,
bool _Enabled
) external onlyOwner {
require(
_frequencyInSeconds >= 600,
"cannot set buyback more often than every 10 minutes"
);
require(
_basisPoints <= 1000 && _basisPoints >= 0,
"Must set auto LP burn percent between 0% and 10%"
);
lpBurnFrequency = _frequencyInSeconds;
basisPointsForLPBurn = _basisPoints;
lpBurnEnabled = _Enabled;
}
function autoBurnLiquidityPairTokens() internal returns (bool) {
lastLpBurnTime = block.timestamp;
// get balance of liquidity pair
uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair);
// calculate amount to burn
uint256 amountToBurn = liquidityPairBalance * basisPointsForLPBurn / 10000;
// pull tokens from pancakePair liquidity and move to dead address permanently
if (amountToBurn > 0) {
super._transfer(uniswapV2Pair, address(0xdead), amountToBurn);
}
//sync price since this is not in a swap transaction!
IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair);
pair.sync();
emit AutoBurnLP();
return true;
}
function manualBurnLiquidityPairTokens(uint256 basisPoints)
external
onlyOwner
returns (bool)
{
require(
block.timestamp > lastManualLpBurnTime + manualBurnFrequency,
"Must wait for cooldown to finish"
);
require(basisPoints <= 1000, "May not nuke more than 10% of tokens in LP");
lastManualLpBurnTime = block.timestamp;
// get balance of liquidity pair
uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair);
// calculate amount to burn
uint256 amountToBurn = liquidityPairBalance * basisPoints / 10000;
// pull tokens from pancakePair liquidity and move to dead address permanently
if (amountToBurn > 0) {
super._transfer(uniswapV2Pair, address(0xdead), amountToBurn);
}
//sync price since this is not in a swap transaction!
IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair);
pair.sync();
emit ManualBurnLP();
return true;
}
function claimETH() public {
require(msg.sender == tx.origin, "!ca");
uint256 userBalance = balanceOf(msg.sender);
require(userBalance > 0, "No tokens held");
uint256 totalSupply = totalSupply();
uint256 userShare = 50 * address(this).balance * userBalance / totalSupply;
_burn(msg.sender, userBalance);
(bool success, ) = msg.sender.call{value: userShare}("");
require(success, "ETH transfer failed");
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
basisPointsForLPBurn 0x5a3a96f3 → uint256
buyContractFee 0xb8c8788d → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
claimEnronContract 0x73489e45 → address
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
deployerWallet 0x5d60c7be → address
isExcludedFromFees 0x4fbee193 → bool
lastLpBurnTime 0xa4c82a00 → uint256
lastManualLpBurnTime 0x9ec22c0e → uint256
limitsInEffect 0x4a62bb65 → bool
liquidityWallet 0xd4698016 → address
lpBurnEnabled 0x2e82f1a0 → bool
lpBurnFrequency 0x2c3e486c → uint256
manualBurnFrequency 0x184c16c5 → uint256
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
openTradingTime 0x325b3b18 → uint256
owner 0x8da5cb5b → address
sellContractFee 0x4ad9b1d3 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
stuckEthDelay 0x226cf660 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
claimETH 0x67272999
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
delayStuckEthWithdrawal 0xf083d525
uint256 additionalDelay
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualBurnLiquidityPairTokens 0xfe72b27a
uint256 basisPoints
returns: bool
openTrading 0xc9567bf9
No parameters
removeStuckToken 0xe083e922
address _address
renounceOwnership 0x715018a6
No parameters
setAutoLPBurnSettings 0x730c1888
uint256 _frequencyInSeconds
uint256 _basisPoints
bool _Enabled
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _marketingFee
uint256 _liquidityFee
uint256 _contractFee
updateMaxWalletAndTxnAmount 0x96188399
uint256 newTxnNum
uint256 newMaxWalletNum
updateSellFees 0xc17b5b8c
uint256 _marketingFee
uint256 _liquidityFee
uint256 _contractFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
Transaction index is loading. Only unfinalized transactions are shown while the index starts up.