Address Contract Partially Verified
Address
0xCefdE37817da4FC51dDc24e3820ad316784Ee04b
Balance
0 ETH
Nonce
1
Code Size
21841 bytes
Creator
0xD00E3719...e615 at tx 0x1eafb6d4...a82bde
Indexed Transactions
0
Contract Bytecode
21841 bytes
0x60806040526004361061036f5760003560e01c80638ea5220f116101c6578063c17b5b8c116100f7578063e2f4560511610095578063f2fde38b1161006f578063f2fde38b14610cbf578063f637434214610ce8578063f8b45b0514610d13578063fe575a8714610d3e57610376565b8063e2f4560514610c3e578063e884f26014610c69578063f11a24d314610c9457610376565b8063c8c8ebe4116100d1578063c8c8ebe414610b6e578063d257b34f14610b99578063d85ba06314610bd6578063dd62ed3e14610c0157610376565b8063c17b5b8c14610af1578063c18bc19514610b1a578063c876d0b914610b4357610376565b8063a0d82dc511610164578063aacebbe31161013e578063aacebbe314610a37578063b62496f514610a60578063bbc0c74214610a9d578063c024666814610ac857610376565b8063a0d82dc514610992578063a457c2d7146109bd578063a9059cbb146109fa57610376565b806395d89b41116101a057806395d89b41146108e85780639a7a23d6146109135780639c3b4fdc1461093c5780639fccce321461096757610376565b80638ea5220f146108695780639213691314610894578063924de9b7146108bf57610376565b80634a62bb65116102a05780637571336a1161023e5780637bce5a04116102185780637bce5a04146107d35780638095d564146107fe5780638a8c523c146108275780638da5cb5b1461083e57610376565b80637571336a1461075657806375f0a8741461077f5780637804389f146107aa57610376565b80636ddd17131161027a5780636ddd1713146106ac57806370a08231146106d7578063715018a614610714578063751039fc1461072b57610376565b80634a62bb65146106195780634fbee193146106445780636a486a8e1461068157610376565b80631f3fed8f1161030d57806327c8f835116102e757806327c8f8351461055b578063313ce5671461058657806339509351146105b157806349bd5a5e146105ee57610376565b80631f3fed8f146104ca578063203e727e146104f557806323b872dd1461051e57610376565b80631694505e116103495780631694505e1461042057806318160ddd1461044b5780631816467f146104765780631a8145bb1461049f57610376565b806306fdde031461037b578063095ea7b3146103a657806310d5de53146103e357610376565b3661037657005b600080fd5b34801561038757600080fd5b50610390610d7b565b60405161039d9190614143565b60405180910390f35b3480156103b257600080fd5b506103cd60048036038101906103c891906141fe565b610e0d565b6040516103da9190614259565b60405180910390f35b3480156103ef57600080fd5b5061040a60048036038101906104059190614274565b610e2b565b6040516104179190614259565b60405180910390f35b34801561042c57600080fd5b50610435610e4b565b6040516104429190614300565b60405180910390f35b34801561045757600080fd5b50610460610e6f565b60405161046d919061432a565b60405180910390f35b34801561048257600080fd5b5061049d60048036038101906104989190614274565b610e79565b005b3480156104ab57600080fd5b506104b4610fd0565b6040516104c1919061432a565b60405180910390f35b3480156104d657600080fd5b506104df610fd6565b6040516104ec919061432a565b60405180910390f35b34801561050157600080fd5b5061051c60048036038101906105179190614345565b610fdc565b005b34801561052a57600080fd5b5061054560048036038101906105409190614372565b611106565b6040516105529190614259565b60405180910390f35b34801561056757600080fd5b506105706111df565b60405161057d91906143d4565b60405180910390f35b34801561059257600080fd5b5061059b6111e5565b6040516105a8919061440b565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d391906141fe565b6111ee565b6040516105e59190614259565b60405180910390f35b3480156105fa57600080fd5b506106036112a1565b60405161061091906143d4565b60405180910390f35b34801561062557600080fd5b5061062e6112c5565b60405161063b9190614259565b60405180910390f35b34801561065057600080fd5b5061066b60048036038101906106669190614274565b6112d8565b6040516106789190614259565b60405180910390f35b34801561068d57600080fd5b5061069661132e565b6040516106a3919061432a565b60405180910390f35b3480156106b857600080fd5b506106c1611334565b6040516106ce9190614259565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f99190614274565b611347565b60405161070b919061432a565b60405180910390f35b34801561072057600080fd5b5061072961138f565b005b34801561073757600080fd5b506107406114e7565b60405161074d9190614259565b60405180910390f35b34801561076257600080fd5b5061077d60048036038101906107789190614452565b6115a2565b005b34801561078b57600080fd5b50610794611694565b6040516107a191906143d4565b60405180910390f35b3480156107b657600080fd5b506107d160048036038101906107cc9190614452565b6116ba565b005b3480156107df57600080fd5b506107e861181b565b6040516107f5919061432a565b60405180910390f35b34801561080a57600080fd5b5061082560048036038101906108209190614492565b611821565b005b34801561083357600080fd5b5061083c61193b565b005b34801561084a57600080fd5b50610853611a0a565b60405161086091906143d4565b60405180910390f35b34801561087557600080fd5b5061087e611a34565b60405161088b91906143d4565b60405180910390f35b3480156108a057600080fd5b506108a9611a5a565b6040516108b6919061432a565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e191906144e5565b611a60565b005b3480156108f457600080fd5b506108fd611b14565b60405161090a9190614143565b60405180910390f35b34801561091f57600080fd5b5061093a60048036038101906109359190614452565b611ba6565b005b34801561094857600080fd5b50610951611cd9565b60405161095e919061432a565b60405180910390f35b34801561097357600080fd5b5061097c611cdf565b604051610989919061432a565b60405180910390f35b34801561099e57600080fd5b506109a7611ce5565b6040516109b4919061432a565b60405180910390f35b3480156109c957600080fd5b506109e460048036038101906109df91906141fe565b611ceb565b6040516109f19190614259565b60405180910390f35b348015610a0657600080fd5b50610a216004803603810190610a1c91906141fe565b611db8565b604051610a2e9190614259565b60405180910390f35b348015610a4357600080fd5b50610a5e6004803603810190610a599190614274565b611dd6565b005b348015610a6c57600080fd5b50610a876004803603810190610a829190614274565b611f2d565b604051610a949190614259565b60405180910390f35b348015610aa957600080fd5b50610ab2611f4d565b604051610abf9190614259565b60405180910390f35b348015610ad457600080fd5b50610aef6004803603810190610aea9190614452565b611f60565b005b348015610afd57600080fd5b50610b186004803603810190610b139190614492565b6120a0565b005b348015610b2657600080fd5b50610b416004803603810190610b3c9190614345565b6121ba565b005b348015610b4f57600080fd5b50610b586122e4565b604051610b659190614259565b60405180910390f35b348015610b7a57600080fd5b50610b836122f7565b604051610b90919061432a565b60405180910390f35b348015610ba557600080fd5b50610bc06004803603810190610bbb9190614345565b6122fd565b604051610bcd9190614259565b60405180910390f35b348015610be257600080fd5b50610beb61246d565b604051610bf8919061432a565b60405180910390f35b348015610c0d57600080fd5b50610c286004803603810190610c239190614512565b612473565b604051610c35919061432a565b60405180910390f35b348015610c4a57600080fd5b50610c536124fa565b604051610c60919061432a565b60405180910390f35b348015610c7557600080fd5b50610c7e612500565b604051610c8b9190614259565b60405180910390f35b348015610ca057600080fd5b50610ca96125bb565b604051610cb6919061432a565b60405180910390f35b348015610ccb57600080fd5b50610ce66004803603810190610ce19190614274565b6125c1565b005b348015610cf457600080fd5b50610cfd612787565b604051610d0a919061432a565b60405180910390f35b348015610d1f57600080fd5b50610d2861278d565b604051610d35919061432a565b60405180910390f35b348015610d4a57600080fd5b50610d656004803603810190610d609190614274565b612793565b604051610d729190614259565b60405180910390f35b606060038054610d8a90614581565b80601f0160208091040260200160405190810160405280929190818152602001828054610db690614581565b8015610e035780601f10610dd857610100808354040283529160200191610e03565b820191906000526020600020905b815481529060010190602001808311610de657829003601f168201915b5050505050905090565b6000610e21610e1a612811565b8484612819565b6001905092915050565b601b6020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b610e81612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f07906145fe565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74360405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60185481565b60175481565b610fe4612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106a906145fe565b60405180910390fd5b670de0b6b3a76400006103e86001611089610e6f565b611093919061464d565b61109d91906146be565b6110a791906146be565b8110156110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e090614761565b60405180910390fd5b670de0b6b3a7640000816110fd919061464d565b60088190555050565b60006111138484846129e2565b6111d48461111f612811565b6111cf856040518060600160405280602881526020016154cf60289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000611185612811565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546137409092919063ffffffff16565b612819565b600190509392505050565b61dead81565b60006012905090565b60006112976111fb612811565b84611292856001600061120c612811565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127b390919063ffffffff16565b612819565b6001905092915050565b7f000000000000000000000000147bead0b921b2a33f34558c5764ec251f36ba6f81565b600b60009054906101000a900460ff1681565b6000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60135481565b600b60029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611397612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611426576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141d906145fe565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60006114f1612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611580576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611577906145fe565b60405180910390fd5b6000600b60006101000a81548160ff0219169083151502179055506001905090565b6115aa612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611639576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611630906145fe565b60405180910390fd5b80601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6116c2612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611751576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611748906145fe565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b7906147cd565b60405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60105481565b611829612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118af906145fe565b60405180910390fd5b8260108190555081601181905550806012819055506012546011546010546118e091906147ed565b6118ea91906147ed565b600f819055506033600f541115611936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192d9061486d565b60405180910390fd5b505050565b611943612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c9906145fe565b60405180910390fd5b6001600b60016101000a81548160ff0219169083151502179055506001600b60026101000a81548160ff021916908315150217905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60145481565b611a68612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aee906145fe565b60405180910390fd5b80600b60026101000a81548160ff02191690831515021790555050565b606060048054611b2390614581565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4f90614581565b8015611b9c5780601f10611b7157610100808354040283529160200191611b9c565b820191906000526020600020905b815481529060010190602001808311611b7f57829003601f168201915b5050505050905090565b611bae612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c34906145fe565b60405180910390fd5b7f000000000000000000000000147bead0b921b2a33f34558c5764ec251f36ba6f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc2906148ff565b60405180910390fd5b611cd582826137a4565b5050565b60125481565b60195481565b60165481565b6000611dae611cf8612811565b84611da9856040518060600160405280602581526020016154f76025913960016000611d22612811565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546137409092919063ffffffff16565b612819565b6001905092915050565b6000611dcc611dc5612811565b84846129e2565b6001905092915050565b611dde612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e64906145fe565b60405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fa751787977eeb3902e30e1d19ca00c6ad274a1f622c31a206e32366700b0567460405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601c6020528060005260406000206000915054906101000a900460ff1681565b600b60019054906101000a900460ff1681565b611f68612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ff7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fee906145fe565b60405180910390fd5b80601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516120949190614259565b60405180910390a25050565b6120a8612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212e906145fe565b60405180910390fd5b82601481905550816015819055508060168190555060165460155460145461215f91906147ed565b61216991906147ed565b601381905550603360135411156121b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ac9061486d565b60405180910390fd5b505050565b6121c2612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612251576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612248906145fe565b60405180910390fd5b670de0b6b3a76400006103e86001612267610e6f565b612271919061464d565b61227b91906146be565b61228591906146be565b8110156122c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122be90614991565b60405180910390fd5b670de0b6b3a7640000816122db919061464d565b600a8190555050565b600e60009054906101000a900460ff1681565b60085481565b6000612307612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238d906145fe565b60405180910390fd5b620186a060016123a4610e6f565b6123ae919061464d565b6123b891906146be565b8210156123fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f190614a23565b60405180910390fd5b6103e86005612407610e6f565b612411919061464d565b61241b91906146be565b82111561245d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245490614ab5565b60405180910390fd5b8160098190555060019050919050565b600f5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60095481565b600061250a612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612599576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612590906145fe565b60405180910390fd5b6000600e60006101000a81548160ff0219169083151502179055506001905090565b60115481565b6125c9612811565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264f906145fe565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036126c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126be90614b47565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60155481565b600a5481565b600d6020528060005260406000206000915054906101000a900460ff1681565b60008082846127c291906147ed565b905083811015612807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fe90614bb3565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287f90614c45565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ee90614cd7565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516129d5919061432a565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4890614d69565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab790614dfb565b60405180910390fd5b600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16158015612b645750600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b612ba3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9a90614e67565b60405180910390fd5b60008103612bbc57612bb783836000613845565b61373b565b600b60009054906101000a900460ff161561327f57612bd9611a0a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612c475750612c17611a0a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612c805750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612cba575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612cd35750600560149054906101000a900460ff16155b1561327e57600b60019054906101000a900460ff16612dcd57601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612d8d5750601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612dcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc390614ed3565b60405180910390fd5b5b600e60009054906101000a900460ff1615612f9557612dea611a0a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015612e7157507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612ec957507f000000000000000000000000147bead0b921b2a33f34558c5764ec251f36ba6f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612f945743600c60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410612f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4690614f8b565b60405180910390fd5b43600c60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5b601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156130385750601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156130df57600854811115613082576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130799061501d565b60405180910390fd5b600a5461308e83611347565b8261309991906147ed565b11156130da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130d190615089565b60405180910390fd5b61327d565b601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156131825750601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156131d1576008548111156131cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131c39061511b565b60405180910390fd5b61327c565b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661327b57600a5461322e83611347565b8261323991906147ed565b111561327a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161327190615089565b60405180910390fd5b5b5b5b5b5b600061328a30611347565b9050600060095482101590508080156132af5750600b60029054906101000a900460ff165b80156132c85750600560149054906101000a900460ff16155b801561331e5750601c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156133745750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156133ca5750601a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561340e576001600560146101000a81548160ff0219169083151502179055506133f2613ad8565b6000600560146101000a81548160ff0219169083151502179055505b6000600560149054906101000a900460ff16159050601a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806134c45750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156134ce57600090505b6000811561372b57601c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561353157506000601354115b156135f057606460135486613546919061464d565b61355091906146be565b905060135460155482613563919061464d565b61356d91906146be565b6018600082825461357e91906147ed565b9250508190555060135460165482613596919061464d565b6135a091906146be565b601960008282546135b191906147ed565b92505081905550601354601454826135c9919061464d565b6135d391906146be565b601760008282546135e491906147ed565b92505081905550613707565b601c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561364b57506000600f54115b15613706576064600f5486613660919061464d565b61366a91906146be565b9050600f546011548261367d919061464d565b61368791906146be565b6018600082825461369891906147ed565b92505081905550600f54601254826136b0919061464d565b6136ba91906146be565b601960008282546136cb91906147ed565b92505081905550600f54601054826136e3919061464d565b6136ed91906146be565b601760008282546136fe91906147ed565b925050819055505b5b600081111561371c5761371b873083613845565b5b8085613728919061513b565b94505b613736878787613845565b505050505b505050565b6000838311158290613788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377f9190614143565b60405180910390fd5b5060008385613797919061513b565b9050809150509392505050565b80601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036138b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ab90614d69565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613923576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161391a90614dfb565b60405180910390fd5b61392e838383613d95565b613999816040518060600160405280602681526020016154a9602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546137409092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613a2c816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127b390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051613acb919061432a565b60405180910390a3505050565b6000613ae330611347565b90506000601954601754601854613afa91906147ed565b613b0491906147ed565b9050600080831480613b165750600082145b15613b2357505050613d93565b6014600954613b32919061464d565b831115613b4b576014600954613b48919061464d565b92505b600060028360185486613b5e919061464d565b613b6891906146be565b613b7291906146be565b905060008185613b82919061513b565b90506000479050613b9282613d9a565b60008147613ba0919061513b565b905060008660175483613bb3919061464d565b613bbd91906146be565b905060008760195484613bd0919061464d565b613bda91906146be565b90506000818385613beb919061513b565b613bf5919061513b565b9050600060188190555060006017819055506000601981905550600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051613c55906151a0565b60006040518083038185875af1925050503d8060008114613c92576040519150601f19603f3d011682016040523d82523d6000602084013e613c97565b606091505b505080985050600087118015613cad5750600081115b15613cfa57613cbc8782613fd7565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618682601854604051613cf1939291906151b5565b60405180910390a15b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051613d40906151a0565b60006040518083038185875af1925050503d8060008114613d7d576040519150601f19603f3d011682016040523d82523d6000602084013e613d82565b606091505b505080985050505050505050505050505b565b505050565b6000600267ffffffffffffffff811115613db757613db66151ec565b5b604051908082528060200260200182016040528015613de55781602001602082028036833780820191505090505b5090503081600081518110613dfd57613dfc61521b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613ea2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ec6919061525f565b81600181518110613eda57613ed961521b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613f3f307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612819565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613fa1959493929190615385565b600060405180830381600087803b158015613fbb57600080fd5b505af1158015613fcf573d6000803e3d6000fd5b505050505050565b614002307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612819565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d71982308560008061dead426040518863ffffffff1660e01b8152600401614069969594939291906153df565b60606040518083038185885af1158015614087573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906140ac9190615455565b5050505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156140ed5780820151818401526020810190506140d2565b60008484015250505050565b6000601f19601f8301169050919050565b6000614115826140b3565b61411f81856140be565b935061412f8185602086016140cf565b614138816140f9565b840191505092915050565b6000602082019050818103600083015261415d818461410a565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006141958261416a565b9050919050565b6141a58161418a565b81146141b057600080fd5b50565b6000813590506141c28161419c565b92915050565b6000819050919050565b6141db816141c8565b81146141e657600080fd5b50565b6000813590506141f8816141d2565b92915050565b6000806040838503121561421557614214614165565b5b6000614223858286016141b3565b9250506020614234858286016141e9565b9150509250929050565b60008115159050919050565b6142538161423e565b82525050565b600060208201905061426e600083018461424a565b92915050565b60006020828403121561428a57614289614165565b5b6000614298848285016141b3565b91505092915050565b6000819050919050565b60006142c66142c16142bc8461416a565b6142a1565b61416a565b9050919050565b60006142d8826142ab565b9050919050565b60006142ea826142cd565b9050919050565b6142fa816142df565b82525050565b600060208201905061431560008301846142f1565b92915050565b614324816141c8565b82525050565b600060208201905061433f600083018461431b565b92915050565b60006020828403121561435b5761435a614165565b5b6000614369848285016141e9565b91505092915050565b60008060006060848603121561438b5761438a614165565b5b6000614399868287016141b3565b93505060206143aa868287016141b3565b92505060406143bb868287016141e9565b9150509250925092565b6143ce8161418a565b82525050565b60006020820190506143e960008301846143c5565b92915050565b600060ff82169050919050565b614405816143ef565b82525050565b600060208201905061442060008301846143fc565b92915050565b61442f8161423e565b811461443a57600080fd5b50565b60008135905061444c81614426565b92915050565b6000806040838503121561446957614468614165565b5b6000614477858286016141b3565b92505060206144888582860161443d565b9150509250929050565b6000806000606084860312156144ab576144aa614165565b5b60006144b9868287016141e9565b93505060206144ca868287016141e9565b92505060406144db868287016141e9565b9150509250925092565b6000602082840312156144fb576144fa614165565b5b60006145098482850161443d565b91505092915050565b6000806040838503121561452957614528614165565b5b6000614537858286016141b3565b9250506020614548858286016141b3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061459957607f821691505b6020821081036145ac576145ab614552565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145e86020836140be565b91506145f3826145b2565b602082019050919050565b60006020820190508181036000830152614617816145db565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614658826141c8565b9150614663836141c8565b9250828202614671816141c8565b915082820484148315176146885761468761461e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006146c9826141c8565b91506146d4836141c8565b9250826146e4576146e361468f565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060008201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b600061474b602f836140be565b9150614756826146ef565b604082019050919050565b6000602082019050818103600083015261477a8161473e565b9050919050565b7f416464726573732073686f756c64206e6f742062652030000000000000000000600082015250565b60006147b76017836140be565b91506147c282614781565b602082019050919050565b600060208201905081810360008301526147e6816147aa565b9050919050565b60006147f8826141c8565b9150614803836141c8565b925082820190508082111561481b5761481a61461e565b5b92915050565b7f4d757374206b656570206665657320617420353125206f72206c657373000000600082015250565b6000614857601d836140be565b915061486282614821565b602082019050919050565b600060208201905081810360008301526148868161484a565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006148e96039836140be565b91506148f48261488d565b604082019050919050565b60006020820190508181036000830152614918816148dc565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f3125000000000000000000000000000000000000000000000000000000000000602082015250565b600061497b6022836140be565b91506149868261491f565b604082019050919050565b600060208201905081810360008301526149aa8161496e565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b6000614a0d6035836140be565b9150614a18826149b1565b604082019050919050565b60006020820190508181036000830152614a3c81614a00565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b6000614a9f6034836140be565b9150614aaa82614a43565b604082019050919050565b60006020820190508181036000830152614ace81614a92565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b316026836140be565b9150614b3c82614ad5565b604082019050919050565b60006020820190508181036000830152614b6081614b24565b9050919050565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b6000614b9d601b836140be565b9150614ba882614b67565b602082019050919050565b60006020820190508181036000830152614bcc81614b90565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614c2f6024836140be565b9150614c3a82614bd3565b604082019050919050565b60006020820190508181036000830152614c5e81614c22565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614cc16022836140be565b9150614ccc82614c65565b604082019050919050565b60006020820190508181036000830152614cf081614cb4565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614d536025836140be565b9150614d5e82614cf7565b604082019050919050565b60006020820190508181036000830152614d8281614d46565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614de56023836140be565b9150614df082614d89565b604082019050919050565b60006020820190508181036000830152614e1481614dd8565b9050919050565b7f426c61636b6c6973746564000000000000000000000000000000000000000000600082015250565b6000614e51600b836140be565b9150614e5c82614e1b565b602082019050919050565b60006020820190508181036000830152614e8081614e44565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b6000614ebd6016836140be565b9150614ec882614e87565b602082019050919050565b60006020820190508181036000830152614eec81614eb0565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60008201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b6000614f756049836140be565b9150614f8082614ef3565b606082019050919050565b60006020820190508181036000830152614fa481614f68565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b60006150076035836140be565b915061501282614fab565b604082019050919050565b6000602082019050818103600083015261503681614ffa565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b60006150736013836140be565b915061507e8261503d565b602082019050919050565b600060208201905081810360008301526150a281615066565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b60006151056036836140be565b9150615110826150a9565b604082019050919050565b60006020820190508181036000830152615134816150f8565b9050919050565b6000615146826141c8565b9150615151836141c8565b92508282039050818111156151695761516861461e565b5b92915050565b600081905092915050565b50565b600061518a60008361516f565b91506151958261517a565b600082019050919050565b60006151ab8261517d565b9150819050919050565b60006060820190506151ca600083018661431b565b6151d7602083018561431b565b6151e4604083018461431b565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506152598161419c565b92915050565b60006020828403121561527557615274614165565b5b60006152838482850161524a565b91505092915050565b6000819050919050565b60006152b16152ac6152a78461528c565b6142a1565b6141c8565b9050919050565b6152c181615296565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6152fc8161418a565b82525050565b600061530e83836152f3565b60208301905092915050565b6000602082019050919050565b6000615332826152c7565b61533c81856152d2565b9350615347836152e3565b8060005b8381101561537857815161535f8882615302565b975061536a8361531a565b92505060018101905061534b565b5085935050505092915050565b600060a08201905061539a600083018861431b565b6153a760208301876152b8565b81810360408301526153b98186615327565b90506153c860608301856143c5565b6153d5608083018461431b565b9695505050505050565b600060c0820190506153f460008301896143c5565b615401602083018861431b565b61540e60408301876152b8565b61541b60608301866152b8565b61542860808301856143c5565b61543560a083018461431b565b979650505050505050565b60008151905061544f816141d2565b92915050565b60008060006060848603121561546e5761546d614165565b5b600061547c86828701615440565b935050602061548d86828701615440565b925050604061549e86828701615440565b915050925092509256fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220bfecafc13fc817fb004c3de5974254f002453cd43d2e8592d341b5c9fb86dd6c64736f6c63430008110033
Verified Source Code Partial Match
Compiler: v0.8.17+commit.8df45f5f
EVM: london
Optimization: No
SONA.sol 648 lines
//SPDX-License-Identifier: MIT
pragma solidity = 0.8.17;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IUniswapV2Pair {
function factory() external view returns (address);
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {return _name;}
function symbol() public view virtual override returns (string memory) {return _symbol;}
function decimals() public view virtual override returns (uint8) {return 18;}
function totalSupply() public view virtual override returns (uint256) {return _totalSupply;}
function balanceOf(address account) public view virtual override returns (uint256) {return _balances[account];}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
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);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {return _owner;}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
function div(int256 a, int256 b) internal pure returns (int256) {
require(b != -1 || a != MIN_INT256);
return a / b;
}
function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
function toUint256Safe(int256 a) internal pure returns (uint256) {
require(a >= 0);
return uint256(a);
}
}
library SafeMathUint {
function toInt256Safe(uint256 a) internal pure returns (int256) {
int256 b = int256(a);
require(b >= 0);
return b;
}
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract SONA is ERC20, Ownable {
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet = 0xf333Ae72f27ADD83fACca68Dba065eC65Ee61B6B;
address public devWallet = 0xD00E37190b860904aC8B1E02517d0af11F53e615;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
mapping (address => bool) public isBlacklisted;
bool public transferDelayEnabled = false;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyLiquidityFee;
uint256 public buyDevFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellLiquidityFee;
uint256 public sellDevFee;
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
/******************/
// exlcude from fees and max transaction amount
mapping (address => bool) private _isExcludedFromFees;
mapping (address => bool) public _isExcludedMaxTransactionAmount;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping (address => bool) public automatedMarketMakerPairs;
event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event marketingWalletUpdated(address indexed newWallet, address indexed oldWallet);
event devWalletUpdated(address indexed newWallet, address indexed oldWallet);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("Sonata Network", "SONA") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 4;
uint256 _buyLiquidityFee = 0;
uint256 _buyDevFee = 1;
uint256 _sellMarketingFee = 4;
uint256 _sellLiquidityFee = 0;
uint256 _sellDevFee = 1;
uint256 totalSupply = 1000000000 * 1e18;
maxTransactionAmount = totalSupply * 30 / 1000; // 3% maxTransactionAmountTxn
maxWallet = totalSupply * 30 / 1000; // 3% maxWallet
swapTokensAtAmount = totalSupply * 5 / 10000; // 0.05% swap wallet
buyMarketingFee = _buyMarketingFee;
buyLiquidityFee = _buyLiquidityFee;
buyDevFee = _buyDevFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
sellMarketingFee = _sellMarketingFee;
sellLiquidityFee = _sellLiquidityFee;
sellDevFee = _sellDevFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
marketingWallet = 0xf333Ae72f27ADD83fACca68Dba065eC65Ee61B6B;
devWallet = 0xD00E37190b860904aC8B1E02517d0af11F53e615;
// exclude from paying fees or having max transaction amount
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
/*
_mint is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(msg.sender, totalSupply);
}
receive() external payable {
}
// once enabled, can never be turned off
function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
}
// remove limits after token is stable
function removeLimits() external onlyOwner returns (bool){
limitsInEffect = false;
return true;
}
// disable Transfer delay - cannot be reenabled
function disableTransferDelay() external onlyOwner returns (bool){
transferDelayEnabled = false;
return true;
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply.");
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set maxTransactionAmount lower than 0.1%");
maxTransactionAmount = newNum * (10**18);
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set maxWallet lower than 1%");
maxWallet = newNum * (10**18);
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool enabled) external onlyOwner(){
swapEnabled = enabled;
}
function updateBuyFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLiquidityFee = _liquidityFee;
buyDevFee = _devFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
require(buyTotalFees <= 51, "Must keep fees at 51% or less");
}
function updateSellFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLiquidityFee = _liquidityFee;
sellDevFee = _devFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
require(sellTotalFees <= 51, "Must keep fees at 51% or less");
}
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 updateMarketingWallet(address newMarketingWallet) external onlyOwner {
emit marketingWalletUpdated(newMarketingWallet, marketingWallet);
marketingWallet = newMarketingWallet;
}
function updateDevWallet(address newWallet) external onlyOwner {
emit devWalletUpdated(newWallet, devWallet);
devWallet = newWallet;
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
function manage_blacklist(address _address, bool status) external onlyOwner {
require(_address != address(0),"Address should not be 0");
isBlacklisted[_address] = status;
}
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");
require(!isBlacklisted[from] && !isBlacklisted[to],"Blacklisted");
if(amount == 0) {
super._transfer(from, to, 0);
return;
}
if(limitsInEffect){
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
){
if(!tradingActive){
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
}
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (transferDelayEnabled){
if (to != owner() && to != address(uniswapV2Router) && to != address(uniswapV2Pair)){
require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled. Only one purchase per block allowed.");
_holderLastTransferTimestamp[tx.origin] = block.number;
}
}
//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 * sellTotalFees/100;
tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
tokensForDev += fees * sellDevFee / sellTotalFees;
tokensForMarketing += fees * sellMarketingFee / sellTotalFees;
}
// on buy
else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount * buyTotalFees/100;
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForDev += fees * buyDevFee / buyTotalFees;
tokensForMarketing += fees * buyMarketingFee / 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] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
deadAddress,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing + tokensForDev;
bool success;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 20){
contractBalance = swapTokensAtAmount * 20;
}
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 ethForDev = ethBalance * tokensForDev/totalTokensToSwap;
uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForDev;
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForDev = 0;
(success,) = address(devWallet).call{value: ethForDev}("");
if(liquidityTokens > 0 && ethForLiquidity > 0){
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
}
(success,) = address(marketingWallet).call{value: address(this).balance}("");
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isBlacklisted 0xfe575a87 → bool
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → 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
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
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
manage_blacklist 0x7804389f
address _address
bool status
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
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 0x8095d564
uint256 _marketingFee
uint256 _liquidityFee
uint256 _devFee
updateDevWallet 0x1816467f
address newWallet
updateMarketingWallet 0xaacebbe3
address newMarketingWallet
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xc17b5b8c
uint256 _marketingFee
uint256 _liquidityFee
uint256 _devFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
Recent Transactions
No transactions found for this address