Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xEF3FE2311581fF42A7682269748140D6588cEc01
Balance 0 ETH
Nonce 1
Code Size 17998 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

17998 bytes
0x60806040526004361061026a575f3560e01c8063751039fc11610143578063b0249cc6116100b5578063d65e6fb611610079578063d65e6fb614610909578063dd62ed3e14610931578063e2f456051461096d578063f2fde38b14610997578063f8686f07146109bf578063f8b45b05146109d557610271565b8063b0249cc614610829578063bedafd0114610865578063c1f87afc1461088d578063c876d0b9146108b5578063cc1776d3146108df57610271565b806395d89b411161010757806395d89b411461070b5780639e93ad8e14610735578063a13d1a2b1461075f578063a457c2d714610787578063a9059cbb146107c3578063ad5c4648146107ff57610271565b8063751039fc1461064f578063860a32ec146106655780638a8c523c1461068f5780638d3e6e40146106a55780638da5cb5b146106e157610271565b806339509351116101dc57806353371be0116101a057806353371be0146105455780635a90a49e1461056f578063638cb6af146105ab57806365cf7c9b146105d357806370a08231146105fd578063715018a61461063957610271565b80633950935114610463578063432e95a51461049f578063452ed4f1146104c95780634b356f47146104f35780634f7041a51461051b57610271565b8063196101781161022e57806319610178146103575780631cdce2001461037f5780632272f879146103a957806323b872dd146103d35780632594b3431461040f578063313ce5671461043957610271565b806306fdde03146102755780630758d9241461029f578063076dc80c146102c9578063095ea7b3146102f157806318160ddd1461032d57610271565b3661027157005b5f5ffd5b348015610280575f5ffd5b506102896109ff565b60405161029691906131a9565b60405180910390f35b3480156102aa575f5ffd5b506102b3610a8f565b6040516102c09190613243565b60405180910390f35b3480156102d4575f5ffd5b506102ef60048036038101906102ea919061329b565b610ab3565b005b3480156102fc575f5ffd5b50610317600480360381019061031291906132f9565b610bfa565b6040516103249190613351565b60405180910390f35b348015610338575f5ffd5b50610341610c1c565b60405161034e9190613379565b60405180910390f35b348015610362575f5ffd5b5061037d6004803603810190610378919061329b565b610c25565b005b34801561038a575f5ffd5b50610393610d6c565b6040516103a091906133a1565b60405180910390f35b3480156103b4575f5ffd5b506103bd610d91565b6040516103ca91906133a1565b60405180910390f35b3480156103de575f5ffd5b506103f960048036038101906103f491906133ba565b610db6565b6040516104069190613351565b60405180910390f35b34801561041a575f5ffd5b50610423610de4565b60405161043091906133a1565b60405180910390f35b348015610444575f5ffd5b5061044d610e09565b60405161045a9190613425565b60405180910390f35b34801561046e575f5ffd5b50610489600480360381019061048491906132f9565b610e11565b6040516104969190613351565b60405180910390f35b3480156104aa575f5ffd5b506104b3610e47565b6040516104c09190613379565b60405180910390f35b3480156104d4575f5ffd5b506104dd610e4d565b6040516104ea91906133a1565b60405180910390f35b3480156104fe575f5ffd5b5061051960048036038101906105149190613476565b610e71565b005b348015610526575f5ffd5b5061052f611060565b60405161053c91906134c3565b60405180910390f35b348015610550575f5ffd5b50610559611075565b6040516105669190613351565b60405180910390f35b34801561057a575f5ffd5b506105956004803603810190610590919061329b565b611087565b6040516105a29190613351565b60405180910390f35b3480156105b6575f5ffd5b506105d160048036038101906105cc9190613521565b6110a4565b005b3480156105de575f5ffd5b506105e7611234565b6040516105f49190613379565b60405180910390f35b348015610608575f5ffd5b50610623600480360381019061061e919061329b565b61123a565b6040516106309190613379565b60405180910390f35b348015610644575f5ffd5b5061064d61127f565b005b34801561065a575f5ffd5b506106636113d2565b005b348015610670575f5ffd5b506106796114fd565b6040516106869190613351565b60405180910390f35b34801561069a575f5ffd5b506106a361150f565b005b3480156106b0575f5ffd5b506106cb60048036038101906106c6919061329b565b611631565b6040516106d89190613351565b60405180910390f35b3480156106ec575f5ffd5b506106f561164e565b60405161070291906133a1565b60405180910390f35b348015610716575f5ffd5b5061071f611676565b60405161072c91906131a9565b60405180910390f35b348015610740575f5ffd5b50610749611706565b604051610756919061356e565b60405180910390f35b34801561076a575f5ffd5b50610785600480360381019061078091906135b1565b61170c565b005b348015610792575f5ffd5b506107ad60048036038101906107a891906132f9565b611935565b6040516107ba9190613351565b60405180910390f35b3480156107ce575f5ffd5b506107e960048036038101906107e491906132f9565b6119aa565b6040516107f69190613351565b60405180910390f35b34801561080a575f5ffd5b506108136119cc565b60405161082091906133a1565b60405180910390f35b348015610834575f5ffd5b5061084f600480360381019061084a919061329b565b6119f0565b60405161085c9190613351565b60405180910390f35b348015610870575f5ffd5b5061088b600480360381019061088691906135b1565b611a0d565b005b348015610898575f5ffd5b506108b360048036038101906108ae91906135ef565b611c10565b005b3480156108c0575f5ffd5b506108c9611d26565b6040516108d69190613351565b60405180910390f35b3480156108ea575f5ffd5b506108f3611d38565b60405161090091906134c3565b60405180910390f35b348015610914575f5ffd5b5061092f600480360381019061092a919061329b565b611d4d565b005b34801561093c575f5ffd5b506109576004803603810190610952919061361a565b611e94565b6040516109649190613379565b60405180910390f35b348015610978575f5ffd5b50610981611f16565b60405161098e9190613379565b60405180910390f35b3480156109a2575f5ffd5b506109bd60048036038101906109b8919061329b565b611f3a565b005b3480156109ca575f5ffd5b506109d36120fc565b005b3480156109e0575f5ffd5b506109e96121ad565b6040516109f69190613379565b60405180910390f35b606060038054610a0e90613685565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3a90613685565b8015610a855780601f10610a5c57610100808354040283529160200191610a85565b820191905f5260205f20905b815481529060010190602001808311610a6857829003601f168201915b5050505050905090565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b610abb6121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b40906136ff565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bae90613767565b60405180910390fd5b80600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f5f610c046121b3565b9050610c118185856121ba565b600191505092915050565b5f600254905090565b610c2d6121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb2906136ff565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2090613767565b60405180910390fd5b80600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f610dc06121b3565b9050610dcd85828561237d565b610dd8858585612408565b60019150509392505050565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6012905090565b5f5f610e1b6121b3565b9050610e3c818585610e2d8589611e94565b610e3791906137b2565b6121ba565b600191505092915050565b600d5481565b7f000000000000000000000000e83d9c1250b00b384eb6d06a5b94670bc1ca2c2b81565b610e796121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610efe906136ff565b60405180910390fd5b600c60149054906101000a900462ffffff1662ffffff168262ffffff161080610f3757506101f48262ffffff1611155b610f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6d9061382f565b60405180910390fd5b600c60179054906101000a900462ffffff1662ffffff168162ffffff161080610fa657506101f48162ffffff1611155b610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90613897565b60405180910390fd5b81600c60146101000a81548162ffffff021916908362ffffff16021790555080600c60176101000a81548162ffffff021916908362ffffff1602179055507f365d5f75a9bc29d89636efe82a2f86cfd2837de54d93735f78ea4a60fd84879d82826040516110549291906138b5565b60405180910390a15050565b600c60149054906101000a900462ffffff1681565b60085f9054906101000a900460ff1681565b6006602052805f5260405f205f915054906101000a900460ff1681565b6110ac6121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461113a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611131906136ff565b60405180910390fd5b601054611145610e09565b600a6111519190613a0b565b826fffffffffffffffffffffffffffffffff1661116e9190613a55565b10156111af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a690613ae0565b60405180910390fd5b6111b7610e09565b600a6111c39190613a0b565b816fffffffffffffffffffffffffffffffff166111e09190613a55565b6fffffffffffffffffffffffffffffffff166010819055507fde064515fae8f8bb6d8ff19d2c6ba704322def7494147d8a971266430ade07886010546040516112299190613379565b60405180910390a150565b60115481565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6112876121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130c906136ff565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6113da6121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145f906136ff565b60405180910390fd5b600f5f9054906101000a900460ff166114b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ad90613b48565b60405180910390fd5b5f600f5f6101000a81548160ff0219169083151502179055507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c60405160405180910390a1565b600f5f9054906101000a900460ff1681565b6115176121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146115a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159c906136ff565b60405180910390fd5b60085f9054906101000a900460ff16156115f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115eb90613bb0565b60405180910390fd5b600160085f6101000a81548160ff02191690831515021790555042601181905550600160125f6101000a81548160ff021916908315150217905550565b6007602052805f5260405f205f915054906101000a900460ff1681565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461168590613685565b80601f01602080910402602001604051908101604052809291908181526020018280546116b190613685565b80156116fc5780601f106116d3576101008083540402835291602001916116fc565b820191905f5260205f20905b8154815290600101906020018083116116df57829003601f168201915b5050505050905090565b61271081565b6117146121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611799906136ff565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180790613c18565b60405180910390fd5b806118a4577f000000000000000000000000e83d9c1250b00b384eb6d06a5b94670bc1ca2c2b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189a90613c80565b60405180910390fd5b5b8060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f0712a8411c7892e205c3d35c5d2beabe76bb0b484bec43945f2024cd28eaae8d8282604051611929929190613c9e565b60405180910390a15050565b5f5f61193f6121b3565b90505f61194c8286611e94565b905083811015611991576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198890613d35565b60405180910390fd5b61199e82868684036121ba565b60019250505092915050565b5f5f6119b46121b3565b90506119c1818585612408565b600191505092915050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6009602052805f5260405f205f915054906101000a900460ff1681565b611a156121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9a906136ff565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0890613c18565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7690613d9d565b60405180910390fd5b8060065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507fc4eea32423e96d678d53f47ddd9b7a5103eea02606d7daa81c77038c54dc8edb8282604051611c04929190613c9e565b60405180910390a15050565b611c186121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9d906136ff565b60405180910390fd5b612710811115611ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce290613e05565b60405180910390fd5b5f611cf53061123a565b9050611d2261271067ffffffffffffffff168383611d139190613a55565b611d1d9190613e50565b61252d565b5050565b60125f9054906101000a900460ff1681565b600c60179054906101000a900462ffffff1681565b611d556121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611de3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dda906136ff565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4890613767565b60405180910390fd5b80600c5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b7f0000000000000000000000000000000000000000000000878678326eac90000081565b611f426121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611fd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc7906136ff565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361203e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203590613ef0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6121046121b3565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612192576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612189906136ff565b60405180910390fd5b5f60125f6101000a81548160ff021916908315150217905550565b60105481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221f90613f7e565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228d9061400c565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516123709190613379565b60405180910390a3505050565b5f6123888484611e94565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461240257818110156123f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123eb90614074565b60405180910390fd5b61240184848484036121ba565b5b50505050565b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161580156124a6575060065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561251d5760085f9054906101000a900460ff166124f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f0906140dc565b60405180910390fd5b612504838383612712565b8161250f91906140fa565b905061251c838383612945565b5b612528838383612d47565b505050565b5f8190505f820361253e575061270f565b43600d819055505f81111561270d5761255681612f9d565b5f4790505f5f6003836125699190613e50565b9050600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516125b09061415a565b5f6040518083038185875af1925050503d805f81146125ea576040519150601f19603f3d011682016040523d82523d5f602084013e6125ef565b606091505b505080925050600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161263a9061415a565b5f6040518083038185875af1925050503d805f8114612674576040519150601f19603f3d011682016040523d82523d5f602084013e612679565b606091505b505080925050600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516126c49061415a565b5f6040518083038185875af1925050503d805f81146126fe576040519150601f19603f3d011682016040523d82523d5f602084013e612703565b606091505b5050809250505050505b505b50565b5f5f61271d3061123a565b90507f0000000000000000000000000000000000000000000000878678326eac9000008110158015612796575060095f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156127b05750436001600d546127ad91906137b2565b11155b156128235760147f0000000000000000000000000000000000000000000000878678326eac9000006127e29190613a55565b8111156128195760147f0000000000000000000000000000000000000000000000878678326eac9000006128169190613a55565b90505b6128228161252d565b5b5f5f90505f60095f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561289057600c60179054906101000a900462ffffff1690506128f5565b60095f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156128f457600c60149054906101000a900462ffffff1690505b5b5f8162ffffff1611156129385761271067ffffffffffffffff168162ffffff16866129209190613a55565b61292a9190613e50565b9150612937873084612d47565b5b8193505050509392505050565b600f5f9054906101000a900460ff1615612d42575f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1690505f6129b08461123a565b905060095f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612a06575081155b15612a60576010548184612a1a91906137b2565b1115612a5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a52906141b8565b60405180910390fd5b612ab7565b81612ab6576010548184612a7491906137b2565b1115612ab5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aac906141b8565b60405180910390fd5b5b5b60125f9054906101000a900460ff1615612d3f577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015612b7357507f000000000000000000000000e83d9c1250b00b384eb6d06a5b94670bc1ca2c2b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b15612d3e5743600e5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410612bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bee90614220565b60405180910390fd5b7f000000000000000000000000e83d9c1250b00b384eb6d06a5b94670bc1ca2c2b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612cb9578373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612cb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612caf906142ae565b60405180910390fd5b5b43600e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555043600e5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b50505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dac9061433c565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1a906143ca565b60405180910390fd5b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612ea6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9d90614458565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612f8f9190613379565b60405180910390a350505050565b5f600267ffffffffffffffff811115612fb957612fb8614476565b5b604051908082528060200260200182016040528015612fe75781602001602082028036833780820191505090505b50905030815f81518110612ffe57612ffd6144a3565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061306d5761306c6144a3565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b81526004016131089594939291906145c0565b5f604051808303815f87803b15801561311f575f5ffd5b505af1158015613131573d5f5f3e3d5ffd5b505050505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61317b82613139565b6131858185613143565b9350613195818560208601613153565b61319e81613161565b840191505092915050565b5f6020820190508181035f8301526131c18184613171565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61320b613206613201846131c9565b6131e8565b6131c9565b9050919050565b5f61321c826131f1565b9050919050565b5f61322d82613212565b9050919050565b61323d81613223565b82525050565b5f6020820190506132565f830184613234565b92915050565b5f5ffd5b5f61326a826131c9565b9050919050565b61327a81613260565b8114613284575f5ffd5b50565b5f8135905061329581613271565b92915050565b5f602082840312156132b0576132af61325c565b5b5f6132bd84828501613287565b91505092915050565b5f819050919050565b6132d8816132c6565b81146132e2575f5ffd5b50565b5f813590506132f3816132cf565b92915050565b5f5f6040838503121561330f5761330e61325c565b5b5f61331c85828601613287565b925050602061332d858286016132e5565b9150509250929050565b5f8115159050919050565b61334b81613337565b82525050565b5f6020820190506133645f830184613342565b92915050565b613373816132c6565b82525050565b5f60208201905061338c5f83018461336a565b92915050565b61339b81613260565b82525050565b5f6020820190506133b45f830184613392565b92915050565b5f5f5f606084860312156133d1576133d061325c565b5b5f6133de86828701613287565b93505060206133ef86828701613287565b9250506040613400868287016132e5565b9150509250925092565b5f60ff82169050919050565b61341f8161340a565b82525050565b5f6020820190506134385f830184613416565b92915050565b5f62ffffff82169050919050565b6134558161343e565b811461345f575f5ffd5b50565b5f813590506134708161344c565b92915050565b5f5f6040838503121561348c5761348b61325c565b5b5f61349985828601613462565b92505060206134aa85828601613462565b9150509250929050565b6134bd8161343e565b82525050565b5f6020820190506134d65f8301846134b4565b92915050565b5f6fffffffffffffffffffffffffffffffff82169050919050565b613500816134dc565b811461350a575f5ffd5b50565b5f8135905061351b816134f7565b92915050565b5f602082840312156135365761353561325c565b5b5f6135438482850161350d565b91505092915050565b5f67ffffffffffffffff82169050919050565b6135688161354c565b82525050565b5f6020820190506135815f83018461355f565b92915050565b61359081613337565b811461359a575f5ffd5b50565b5f813590506135ab81613587565b92915050565b5f5f604083850312156135c7576135c661325c565b5b5f6135d485828601613287565b92505060206135e58582860161359d565b9150509250929050565b5f602082840312156136045761360361325c565b5b5f613611848285016132e5565b91505092915050565b5f5f604083850312156136305761362f61325c565b5b5f61363d85828601613287565b925050602061364e85828601613287565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061369c57607f821691505b6020821081036136af576136ae613658565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6136e9602083613143565b91506136f4826136b5565b602082019050919050565b5f6020820190508181035f830152613716816136dd565b9050919050565b7f7a65726f206164647265737300000000000000000000000000000000000000005f82015250565b5f613751600c83613143565b915061375c8261371d565b602082019050919050565b5f6020820190508181035f83015261377e81613745565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6137bc826132c6565b91506137c7836132c6565b92508282019050808211156137df576137de613785565b5b92915050565b7f43616e6e6f742072616973652062757920746178206f766572203525000000005f82015250565b5f613819601c83613143565b9150613824826137e5565b602082019050919050565b5f6020820190508181035f8301526138468161380d565b9050919050565b7f43616e6e6f742072616973652073656c6c20746178206f7665722035250000005f82015250565b5f613881601d83613143565b915061388c8261384d565b602082019050919050565b5f6020820190508181035f8301526138ae81613875565b9050919050565b5f6040820190506138c85f8301856134b4565b6138d560208301846134b4565b9392505050565b5f8160011c9050919050565b5f5f8291508390505b60018511156139315780860481111561390d5761390c613785565b5b600185161561391c5780820291505b808102905061392a856138dc565b94506138f1565b94509492505050565b5f826139495760019050613a04565b81613956575f9050613a04565b816001811461396c5760028114613976576139a5565b6001915050613a04565b60ff84111561398857613987613785565b5b8360020a91508482111561399f5761399e613785565b5b50613a04565b5060208310610133831016604e8410600b84101617156139da5782820a9050838111156139d5576139d4613785565b5b613a04565b6139e784848460016138e8565b925090508184048111156139fe576139fd613785565b5b81810290505b9392505050565b5f613a15826132c6565b9150613a208361340a565b9250613a4d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461393a565b905092915050565b5f613a5f826132c6565b9150613a6a836132c6565b9250828202613a78816132c6565b91508282048414831517613a8f57613a8e613785565b5b5092915050565b7f546f6f206c6f77000000000000000000000000000000000000000000000000005f82015250565b5f613aca600783613143565b9150613ad582613a96565b602082019050919050565b5f6020820190508181035f830152613af781613abe565b9050919050565b7f4c696d69747320616c72656164792072656d6f766564000000000000000000005f82015250565b5f613b32601683613143565b9150613b3d82613afe565b602082019050919050565b5f6020820190508181035f830152613b5f81613b26565b9050919050565b7f54726164696e6720616c726561647920656e61626c65640000000000000000005f82015250565b5f613b9a601783613143565b9150613ba582613b66565b602082019050919050565b5f6020820190508181035f830152613bc781613b8e565b9050919050565b7f5a65726f204164647265737300000000000000000000000000000000000000005f82015250565b5f613c02600c83613143565b9150613c0d82613bce565b602082019050919050565b5f6020820190508181035f830152613c2f81613bf6565b9050919050565b7f43616e6e6f742072656d6f7665207061697200000000000000000000000000005f82015250565b5f613c6a601283613143565b9150613c7582613c36565b602082019050919050565b5f6020820190508181035f830152613c9781613c5e565b9050919050565b5f604082019050613cb15f830185613392565b613cbe6020830184613342565b9392505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f613d1f602583613143565b9150613d2a82613cc5565b604082019050919050565b5f6020820190508181035f830152613d4c81613d13565b9050919050565b7f43616e6e6f7420756e6578636c75646520636f6e7472616374000000000000005f82015250565b5f613d87601983613143565b9150613d9282613d53565b602082019050919050565b5f6020820190508181035f830152613db481613d7b565b9050919050565b7f43616e6e6f7420636f6e76657274206d6f7265207468616e20313030250000005f82015250565b5f613def601d83613143565b9150613dfa82613dbb565b602082019050919050565b5f6020820190508181035f830152613e1c81613de3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613e5a826132c6565b9150613e65836132c6565b925082613e7557613e74613e23565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f613eda602683613143565b9150613ee582613e80565b604082019050919050565b5f6020820190508181035f830152613f0781613ece565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613f68602483613143565b9150613f7382613f0e565b604082019050919050565b5f6020820190508181035f830152613f9581613f5c565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f613ff6602283613143565b915061400182613f9c565b604082019050919050565b5f6020820190508181035f83015261402381613fea565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f61405e601d83613143565b91506140698261402a565b602082019050919050565b5f6020820190508181035f83015261408b81614052565b9050919050565b7f54726164696e67206e6f742061637469766500000000000000000000000000005f82015250565b5f6140c6601283613143565b91506140d182614092565b602082019050919050565b5f6020820190508181035f8301526140f3816140ba565b9050919050565b5f614104826132c6565b915061410f836132c6565b925082820390508181111561412757614126613785565b5b92915050565b5f81905092915050565b50565b5f6141455f8361412d565b915061415082614137565b5f82019050919050565b5f6141648261413a565b9150819050919050565b7f4d61782057616c6c6574000000000000000000000000000000000000000000005f82015250565b5f6141a2600a83613143565b91506141ad8261416e565b602082019050919050565b5f6020820190508181035f8301526141cf81614196565b9050919050565b7f5472616e736665722044656c61790000000000000000000000000000000000005f82015250565b5f61420a600e83613143565b9150614215826141d6565b602082019050919050565b5f6020820190508181035f830152614237816141fe565b9050919050565b7f6e6f20627579696e6720746f2065787465726e616c2077616c6c6574732079655f8201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b5f614298602183613143565b91506142a38261423e565b604082019050919050565b5f6020820190508181035f8301526142c58161428c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f614326602583613143565b9150614331826142cc565b604082019050919050565b5f6020820190508181035f8301526143538161431a565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6143b4602383613143565b91506143bf8261435a565b604082019050919050565b5f6020820190508181035f8301526143e1816143a8565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f614442602683613143565b915061444d826143e8565b604082019050919050565b5f6020820190508181035f83015261446f81614436565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f6144f36144ee6144e9846144d0565b6131e8565b6132c6565b9050919050565b614503816144d9565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61453b81613260565b82525050565b5f61454c8383614532565b60208301905092915050565b5f602082019050919050565b5f61456e82614509565b6145788185614513565b935061458383614523565b805f5b838110156145b357815161459a8882614541565b97506145a583614558565b925050600181019050614586565b5085935050505092915050565b5f60a0820190506145d35f83018861336a565b6145e060208301876144fa565b81810360408301526145f28186614564565b90506146016060830185613392565b61460e608083018461336a565b969550505050505056fea2646970667358221220a13037efee60e42eb3cefa19d3c74299ee01782db0f01b825c10ece624dfe16c64736f6c634300081b0033

Verified Source Code Partial Match

Compiler: v0.8.27+commit.40a35a09 EVM: cancun Optimization: No
EdgeOracle.sol 953 lines
/*

X:      https://x.com/edgeoracletoken
Web:    https://edgeoracle.tech/
TG:     https://t.me/Edgeoracleportal
Dash:   https://dashboard.edgeoracle.tech/

*/

pragma solidity 0.8.27;

// SPDX-License-Identifier: MIT

// Context provides information about the current execution context, including the sender of the transaction.
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
        return msg.data;
    }
}

// Interface for ERC20 standard functions and events
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

// Interface for ERC20 metadata functions
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);
}

// Implementation of the ERC20 standard with additional features
contract ERC20 is Context, IERC20, IERC20Metadata {
    // Mapping to store balances of each address
    mapping(address => uint256) private _balances;

    // Mapping to store allowances
    mapping(address => mapping(address => uint256)) private _allowances;

    // Total supply of the token
    uint256 private _totalSupply;

    // Token name and symbol
    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

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

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);
    }

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);
    }

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }
}

// Ownable contract to manage ownership and transfer of ownership
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);
    }

    // Returns the address of the current owner
    function owner() public view returns (address) {
        return _owner;
    }

    // Modifier to restrict access to only the owner
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    // Allows the owner to renounce ownership
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    // Allows the owner to transfer ownership to a new address
    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 for address-related functions
library Address {
    // Checks if an address is a contract
    function isContract(address account) internal view returns (bool) {
        return account.code.length > 0;
    }

    // Sends ETH to a recipient address
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    // Performs a low-level function call
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    // Performs a low-level function call with a custom error message
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// Library for safe ERC20 operations
library SafeERC20 {
    using Address for address;

    // Safely transfers tokens
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    // Safely transfers tokens from one address to another
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    // Internal function to call a function and check the return value
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }

    // Safely approves a spender
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }
}

// Interface for a decentralized exchange router
interface IDexRouter {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function swapExactTokensForETHSupportingFeeOnTransferTokens(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);
}

// Interface for a decentralized exchange factory
interface IDexFactory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

// Main token contract with additional features
contract EdgeOracle is ERC20, Ownable {

    // Mappings to store fee and limit exemptions
    mapping (address => bool) public exemptFromFees;
    mapping (address => bool) public exemptFromLimits;

    // Flag to indicate if trading is allowed
    bool public tradingAllowed;

    // Mapping to store AMM pairs
    mapping (address => bool) public isAMMPair;

    // Addresses for tax distribution
    address public walletOne;
    address public walletTwo;
    address public walletThree;

    // Tax rates for buying and selling
    uint24 public buyTax;
    uint24 public sellTax;  

    // Last block when swap back occurred
    uint256 public lastSwapBackBlock;
    mapping(address => uint256) private holderLastTransferBlock;

    // Flag and limit for wallet restrictions
    bool public limited = true;
    uint256 public maxWallet;
    
    // Minimum amount of tokens to trigger a swap
    uint256 public immutable swapTokensAtAmount;

    // Address of the liquidity pair and router
    address public immutable lpPair;
    IDexRouter public immutable dexRouter;
    address public immutable WETH;

    // Constant for fee divisor
    uint64 public constant FEE_DIVISOR = 10000;

    // Timestamp for contract launch
    uint256 public launchTimestamp;

    // Flag for transfer delay
    bool public transferDelayEnabled = false;

    // Events for various actions
    event UpdatedWalletLimit(uint newMax);
    event SetExcludedFromFees(address _address, bool _isExcluded);
    event SetExcludedFromLimits(address _address, bool _isExcluded);
    event RemovedLimits();
    event TaxUpdated(uint24 buyTax_, uint24 sellTax_);

    // Constructor to initialize the token and set up the router and pair
    constructor()
        ERC20("EdgeOracle AI", "EO")
    {   
        uint256 totalSupply_ = 10_000_000 * 1e18;
       
        walletOne = 0xd4Ee194E6D5004278EC585871489dCdDf8445Ec7; 
        walletTwo = 0x7C958A8a346eA55B325E0a3F186cA7342538ee62;
        walletThree = 0x15120D6a88A848D56fdd3E67576dE55631E00116;

        address v2Router;

        // Set the router address based on the chain ID
        if(block.chainid == 1){
            v2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
        } else if(block.chainid == 8453){ // BASE
            v2Router = 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24;
        } else if(block.chainid == 56){ // BNB CHAIN
            v2Router = 0x10ED43C718714eb63d5aA57B78B54704E256024E;
        } else {
            revert("Chain not configured");
        }

        dexRouter = IDexRouter(v2Router);

        _mint(address(msg.sender), totalSupply_);
        swapTokensAtAmount = totalSupply() * 25 / 100000;

        buyTax = 3000;
        sellTax = 3000;
        maxWallet = uint128(totalSupply() * 5 / 1000);

        WETH = dexRouter.WETH();
        lpPair = IDexFactory(dexRouter.factory()).createPair(address(this), WETH);

        isAMMPair[lpPair] = true;

        exemptFromLimits[lpPair] = true;
        exemptFromLimits[msg.sender] = true;
        exemptFromLimits[address(this)] = true;
        exemptFromLimits[address(0xdead)] = true;

        exemptFromFees[msg.sender] = true;
        exemptFromFees[address(this)] = true;
        exemptFromFees[address(dexRouter)] = true;
        exemptFromFees[address(0xdead)] = true;
 
        _approve(address(this), address(dexRouter), type(uint256).max);
        _approve(address(msg.sender), address(dexRouter), totalSupply());
    }

    // Internal transfer function with tax and limit checks
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        
        if(!exemptFromFees[from] && !exemptFromFees[to]){
            require(tradingAllowed, "Trading not active");
            amount -= handleTax(from, to, amount);
            checkLimits(from, to, amount);
        }

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

    // Checks and enforces wallet limits
    function checkLimits(address from, address to, uint256 amount) internal {
        if(limited){
            
            bool exFromLimitsTo = exemptFromLimits[to];
            uint256 balanceOfTo = balanceOf(to);

            // Enforce max wallet limit on buys
            if (isAMMPair[from] && !exFromLimitsTo) {
                require(amount + balanceOfTo <= maxWallet, "Max Wallet");
            }
            else if(!exFromLimitsTo) {
                require(amount + balanceOfTo <= maxWallet, "Max Wallet");
            }

            // Enforce transfer delay if enabled
            if(transferDelayEnabled){
                if (to != address(dexRouter) && to != address(lpPair)){
                    require(holderLastTransferBlock[tx.origin] < block.number, "Transfer Delay");
                    if(from == address(lpPair)){
                        require(tx.origin == to, "no buying to external wallets yet");
                    }
                    holderLastTransferBlock[to] = block.number;
                    holderLastTransferBlock[tx.origin] = block.number;
                }
            }
        }
    }

    // Handles tax deduction and conversion
    function handleTax(address from, address to, uint256 amount) internal returns (uint256){

        uint256 contractBalance = balanceOf(address(this));
        if(contractBalance >= swapTokensAtAmount && !isAMMPair[from] && lastSwapBackBlock + 1 <= block.number) {
            if(contractBalance > swapTokensAtAmount * 20){
                contractBalance = swapTokensAtAmount * 20;
            }
            convertTaxes(contractBalance);
        }
        
        uint256 tax = 0;

        uint24 taxes;

        // Determine tax rate based on transaction type
        if (isAMMPair[to]){
            taxes = sellTax;
        } else if(isAMMPair[from]){
            taxes = buyTax;
        }

        // Calculate and transfer tax
        if(taxes > 0){
            tax = amount * taxes / FEE_DIVISOR;
            super._transfer(from, address(this), tax);
        }
        
        return tax;
    }

    // Swaps tokens for ETH
    function swapTokensForETH(uint256 tokenAmt) private {

        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = WETH;

        dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmt,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    // Converts collected taxes to ETH and distributes to wallets
    function convertTaxes(uint256 amount) private {

        uint256 contractBalance = amount;
        
        if(amount == 0) {return;}

        lastSwapBackBlock = block.number;

        if(contractBalance > 0){

            swapTokensForETH(contractBalance);
            
            uint256 ethBalance = address(this).balance;

            bool success;

            // Distribute ETH to wallets
            uint256 amountForWallet = ethBalance / 3;
            
            (success,) = walletOne.call{value: amountForWallet}("");
            (success,) = walletTwo.call{value: amountForWallet}("");
            (success,) = walletThree.call{value: address(this).balance}("");
        }
    }

    // Owner functions

    // Sets fee exemption for an address
    function setExemptFromFee(address _address, bool _isExcluded) external onlyOwner {
        require(_address != address(0), "Zero Address");
        require(_address != address(this), "Cannot unexclude contract");
        exemptFromFees[_address] = _isExcluded;
        emit SetExcludedFromFees(_address, _isExcluded);
    }

    // Sets limit exemption for an address
    function setExemptFromLimits(address _address, bool _isExcluded) external onlyOwner {
        require(_address != address(0), "Zero Address");
        if(!_isExcluded){
            require(_address != lpPair, "Cannot remove pair");
        }
        exemptFromLimits[_address] = _isExcluded;
        emit SetExcludedFromLimits(_address, _isExcluded);
    }

    // Enables trading
    function enableTrading() external onlyOwner {
        require(!tradingAllowed, "Trading already enabled");
        tradingAllowed = true;
        launchTimestamp = block.timestamp;
        transferDelayEnabled = true;
    }

    // Updates the maximum wallet limit
    function updateMaxWallet(uint128 newNumInTokens) external onlyOwner {
        require(newNumInTokens * (10**decimals()) >= maxWallet, "Too low");
        maxWallet = uint128(newNumInTokens * (10**decimals()));
        emit UpdatedWalletLimit(maxWallet);
    }

    // Updates the buy and sell tax rates
    function updateTax(uint24 _buyTax, uint24 _sellTax) external onlyOwner {
        require(_buyTax < buyTax || _buyTax <= 500, "Cannot raise buy tax over 5%");
        require(_sellTax < sellTax || _sellTax <= 500, "Cannot raise sell tax over 5%");
        buyTax = _buyTax;
        sellTax = _sellTax;
        emit TaxUpdated(_buyTax, _sellTax);
    }

    // Removes wallet limits
    function removeLimits() external onlyOwner {
        require(limited, "Limits already removed");
        limited = false;
        emit RemovedLimits();
    }

    // Disables transfer delay
    function removeTransferDelay() external onlyOwner {
        transferDelayEnabled = false;
    }

    // Updates the address for wallet one
    function updateWalletOne(address _address) external onlyOwner {
        require(_address != address(0), "zero address");
        walletOne = _address;
    }

    // Updates the address for wallet two
    function updateWalletTwo(address _address) external onlyOwner {
        require(_address != address(0), "zero address");
        walletTwo = _address;
    }

    // Updates the address for wallet three
    function updateWalletThree(address _address) external onlyOwner {
        require(_address != address(0), "zero address");
        walletThree = _address;
    }

    // Manually converts a percentage of the contract's token balance to ETH
    function manualConvert(uint256 percentToConvert) external onlyOwner {
        require(percentToConvert <= 10000, "Cannot convert more than 100%");
        uint256 contractBalance = balanceOf(address(this));
        convertTaxes(contractBalance * percentToConvert / FEE_DIVISOR);
    }

    // Fallback function to receive ETH
    receive() payable external {}
}

Read Contract

FEE_DIVISOR 0x9e93ad8e → uint64
WETH 0xad5c4648 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTax 0x4f7041a5 → uint24
decimals 0x313ce567 → uint8
dexRouter 0x0758d924 → address
exemptFromFees 0x5a90a49e → bool
exemptFromLimits 0x8d3e6e40 → bool
isAMMPair 0xb0249cc6 → bool
lastSwapBackBlock 0x432e95a5 → uint256
launchTimestamp 0x65cf7c9b → uint256
limited 0x860a32ec → bool
lpPair 0x452ed4f1 → address
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTax 0xcc1776d3 → uint24
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingAllowed 0x53371be0 → bool
transferDelayEnabled 0xc876d0b9 → bool
walletOne 0x1cdce200 → address
walletThree 0x2272f879 → address
walletTwo 0x2594b343 → address

Write Contract 18 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
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualConvert 0xc1f87afc
uint256 percentToConvert
removeLimits 0x751039fc
No parameters
removeTransferDelay 0xf8686f07
No parameters
renounceOwnership 0x715018a6
No parameters
setExemptFromFee 0xbedafd01
address _address
bool _isExcluded
setExemptFromLimits 0xa13d1a2b
address _address
bool _isExcluded
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateMaxWallet 0x638cb6af
uint128 newNumInTokens
updateTax 0x4b356f47
uint24 _buyTax
uint24 _sellTax
updateWalletOne 0x076dc80c
address _address
updateWalletThree 0xd65e6fb6
address _address
updateWalletTwo 0x19610178
address _address

Recent Transactions

No transactions found for this address