Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x99C6E32362e556dcE52c708BD380c855F8ff220e
Balance 0 ETH
Nonce 1
Code Size 16413 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

16413 bytes
0x60806040526004361061025f575f3560e01c806371f5f01a11610143578063a457c2d7116100b5578063c9567bf911610079578063c9567bf914610870578063dd62ed3e14610886578063e2f45605146108c2578063f2fde38b146108ec578063f8b45b0514610914578063ffb54a991461093e57610266565b8063a457c2d71461077c578063a9059cbb146107b8578063c0246668146107f4578063c876d0b91461081c578063c8c8ebe41461084657610266565b806390d49b9d1161010757806390d49b9d146106ae57806395d89b41146106d657806398a5c315146107005780639a7a23d6146107285780639b63654514610750578063a0ef91df1461076657610266565b806371f5f01a146105e05780637571336a1461060857806375f0a874146106305780638da5cb5b1461065a5780638ea5220f1461068457610266565b80633edab509116101dc57806352f7c988116101a057806352f7c988146104ea578063583e0568146105125780636d8aa8f81461053c5780636ddd17131461056457806370a082311461058e578063715018a6146105ca57610266565b80633edab5091461041c57806342966c6814610432578063470624021461045a57806349bd5a5e146104845780634fbee193146104ae57610266565b80632b14ca56116102235780632b14ca561461034c5780632cb743f714610376578063311028af1461038c578063313ce567146103b657806339509351146103e057610266565b806306fdde031461026a578063095ea7b314610294578063139864a8146102d057806318160ddd146102e657806323b872dd1461031057610266565b3661026657005b5f80fd5b348015610275575f80fd5b5061027e610968565b60405161028b9190612d72565b60405180910390f35b34801561029f575f80fd5b506102ba60048036038101906102b59190612e23565b6109f8565b6040516102c79190612e7b565b60405180910390f35b3480156102db575f80fd5b506102e4610a1a565b005b3480156102f1575f80fd5b506102fa610a36565b6040516103079190612ea3565b60405180910390f35b34801561031b575f80fd5b5061033660048036038101906103319190612ebc565b610a3f565b6040516103439190612e7b565b60405180910390f35b348015610357575f80fd5b50610360610a6d565b60405161036d9190612ea3565b60405180910390f35b348015610381575f80fd5b5061038a610a73565b005b348015610397575f80fd5b506103a0610b0d565b6040516103ad9190612ea3565b60405180910390f35b3480156103c1575f80fd5b506103ca610b13565b6040516103d79190612f27565b60405180910390f35b3480156103eb575f80fd5b5061040660048036038101906104019190612e23565b610b1b565b6040516104139190612e7b565b60405180910390f35b348015610427575f80fd5b50610430610b51565b005b34801561043d575f80fd5b5061045860048036038101906104539190612f40565b610d78565b005b348015610465575f80fd5b5061046e610d8c565b60405161047b9190612ea3565b60405180910390f35b34801561048f575f80fd5b50610498610d92565b6040516104a59190612f7a565b60405180910390f35b3480156104b9575f80fd5b506104d460048036038101906104cf9190612f93565b610db7565b6040516104e19190612e7b565b60405180910390f35b3480156104f5575f80fd5b50610510600480360381019061050b9190612fbe565b610e09565b005b34801561051d575f80fd5b50610526610e23565b6040516105339190613057565b60405180910390f35b348015610547575f80fd5b50610562600480360381019061055d919061309a565b610e47565b005b34801561056f575f80fd5b50610578610e6c565b6040516105859190612e7b565b60405180910390f35b348015610599575f80fd5b506105b460048036038101906105af9190612f93565b610e7f565b6040516105c19190612ea3565b60405180910390f35b3480156105d5575f80fd5b506105de610ec4565b005b3480156105eb575f80fd5b5061060660048036038101906106019190612f40565b610ed7565b005b348015610613575f80fd5b5061062e600480360381019061062991906130c5565b610f6b565b005b34801561063b575f80fd5b50610644610fcb565b6040516106519190612f7a565b60405180910390f35b348015610665575f80fd5b5061066e610ff0565b60405161067b9190612f7a565b60405180910390f35b34801561068f575f80fd5b50610698611018565b6040516106a59190612f7a565b60405180910390f35b3480156106b9575f80fd5b506106d460048036038101906106cf9190612f93565b61103d565b005b3480156106e1575f80fd5b506106ea611088565b6040516106f79190612d72565b60405180910390f35b34801561070b575f80fd5b5061072660048036038101906107219190612f40565b611118565b005b348015610733575f80fd5b5061074e600480360381019061074991906130c5565b61112a565b005b34801561075b575f80fd5b506107646111cf565b005b348015610771575f80fd5b5061077a611242565b005b348015610787575f80fd5b506107a2600480360381019061079d9190612e23565b611329565b6040516107af9190612e7b565b60405180910390f35b3480156107c3575f80fd5b506107de60048036038101906107d99190612e23565b61139e565b6040516107eb9190612e7b565b60405180910390f35b3480156107ff575f80fd5b5061081a600480360381019061081591906130c5565b6113c0565b005b348015610827575f80fd5b5061083061146e565b60405161083d9190612e7b565b60405180910390f35b348015610851575f80fd5b5061085a611481565b6040516108679190612ea3565b60405180910390f35b34801561087b575f80fd5b50610884611487565b005b348015610891575f80fd5b506108ac60048036038101906108a79190613103565b6114c6565b6040516108b99190612ea3565b60405180910390f35b3480156108cd575f80fd5b506108d6611548565b6040516108e39190612ea3565b60405180910390f35b3480156108f7575f80fd5b50610912600480360381019061090d9190612f93565b61154e565b005b34801561091f575f80fd5b506109286115d0565b6040516109359190612ea3565b60405180910390f35b348015610949575f80fd5b506109526115d6565b60405161095f9190612e7b565b60405180910390f35b6060600380546109779061316e565b80601f01602080910402602001604051908101604052809291908181526020018280546109a39061316e565b80156109ee5780601f106109c5576101008083540402835291602001916109ee565b820191905f5260205f20905b8154815290600101906020018083116109d157829003601f168201915b5050505050905090565b5f80610a026115e8565b9050610a0f8185856115ef565b600191505092915050565b610a226117b2565b600954600d81905550600954600c81905550565b5f600254905090565b5f80610a496115e8565b9050610a56858285611830565b610a618585856118bb565b60019150509392505050565b600b5481565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610ab36115e8565b73ffffffffffffffffffffffffffffffffffffffff1614610ad2575f80fd5b5f610adc30610e7f565b9050610b0a3060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836118bb565b50565b60095481565b5f6009905090565b5f80610b256115e8565b9050610b46818585610b3785896114c6565b610b4191906131cb565b6115ef565b600191505092915050565b610b596117b2565b60115f9054906101000a900460ff1615610ba8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9f90613248565b60405180910390fd5b610bd5307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6009546115ef565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7194730610c1c30610e7f565b5f8073fabc65f4cac10848cf1d62fcf2c68544f0da1a09426040518863ffffffff1660e01b8152600401610c559695949392919061329f565b60606040518083038185885af1158015610c71573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610c969190613312565b50505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610d35929190613362565b6020604051808303815f875af1158015610d51573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d75919061339d565b50565b610d89610d836115e8565b826124a3565b50565b600a5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b610e116117b2565b80600b8190555081600a819055505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b610e4f6117b2565b80601160016101000a81548160ff02191690831515021790555050565b601160019054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610ecc6117b2565b610ed55f612666565b565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610f176115e8565b73ffffffffffffffffffffffffffffffffffffffff1614610f36575f80fd5b5f610f4030610e7f565b90505f60648383610f5191906133c8565b610f5b9190613436565b9050610f6681612729565b505050565b610f736117b2565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6110456117b2565b8060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600480546110979061316e565b80601f01602080910402602001604051908101604052809291908181526020018280546110c39061316e565b801561110e5780601f106110e55761010080835404028352916020019161110e565b820191905f5260205f20905b8154815290600101906020018083116110f157829003601f168201915b5050505050905090565b6111206117b2565b8060108190555050565b6111326117b2565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b8906134d6565b60405180910390fd5b6111cb828261297d565b5050565b6111d76117b2565b600e60019054906101000a900460ff16611226576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121d9061353e565b60405180910390fd5b5f600e60016101000a81548160ff021916908315150217905550565b5f4711611284576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127b906135a6565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112c46115e8565b73ffffffffffffffffffffffffffffffffffffffff16146112e3575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611326573d5f803e3d5ffd5b50565b5f806113336115e8565b90505f61134082866114c6565b905083811015611385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c90613634565b60405180910390fd5b61139282868684036115ef565b60019250505092915050565b5f806113a86115e8565b90506113b58185856118bb565b600191505092915050565b6113c86117b2565b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516114629190612e7b565b60405180910390a25050565b600e60019054906101000a900460ff1681565b600d5481565b61148f6117b2565b6001601160016101000a81548160ff021916908315150217905550600160115f6101000a81548160ff021916908315150217905550565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60105481565b6115566117b2565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bb906136c2565b60405180910390fd5b6115cd81612666565b50565b600c5481565b60115f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361165d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165490613750565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c2906137de565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516117a59190612ea3565b60405180910390a3505050565b6117ba6115e8565b73ffffffffffffffffffffffffffffffffffffffff166117d8610ff0565b73ffffffffffffffffffffffffffffffffffffffff161461182e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182590613846565b60405180910390fd5b565b5f61183b84846114c6565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146118b557818110156118a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189e906138ae565b60405180910390fd5b6118b484848484036115ef565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611929576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119209061393c565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611997576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198e906139ca565b60405180910390fd5b5f81036119ae576119a983835f612a1b565b61249e565b6119b6610ff0565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611a2457506119f4610ff0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611a5c57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611a96575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611aae5750600e5f9054906101000a900460ff16155b156121315760115f9054906101000a900460ff16611ba15760125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611b61575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b611ba0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9790613a32565b60405180910390fd5b5b600e60019054906101000a900460ff168015611c04575060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611c57575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611e57577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015611d05575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611e565743600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054108015611d92575043600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054105b611dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc890613ac0565b60405180910390fd5b43600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555043600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611ef4575060135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611f9b57600d54811115611f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3590613b4e565b60405180910390fd5b600c54611f4a83610e7f565b82611f5591906131cb565b1115611f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8d90613bb6565b60405180910390fd5b612130565b60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612038575060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561208757600d54811115612082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207990613c44565b60405180910390fd5b61212f565b60135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661212e57600c546120e183610e7f565b826120ec91906131cb565b111561212d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212490613bb6565b60405180910390fd5b5b5b5b5b5f61213b30610e7f565b90505f601054821015905080801561215f5750601160019054906101000a900460ff165b80156121775750600e5f9054906101000a900460ff16155b80156121ca575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561221d575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612270575060125f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156122b2576001600e5f6101000a81548160ff02191690831515021790555061229883612c87565b5f600e5f6101000a81548160ff0219169083151502179055505b5f600e5f9054906101000a900460ff16158015612316575060125f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612369575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b90505f811561248e5760145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156123f0576123e960646123db600b5488612cce90919063ffffffff16565b612ce390919063ffffffff16565b905061246b565b60145f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561246a576124676064612459600a5488612cce90919063ffffffff16565b612ce390919063ffffffff16565b90505b5b5f81111561247f5761247e873083612a1b565b5b808561248b9190613c62565b94505b612499878787612a1b565b505050505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250890613d05565b60405180910390fd5b61251c825f83612cf8565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561259f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259690613d93565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161264e9190612ea3565b60405180910390a3612661835f84612cfd565b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f600267ffffffffffffffff81111561274557612744613db1565b5b6040519080825280602002602001820160405280156127735781602001602082028036833780820191505090505b50905030815f8151811061278a57612789613dde565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561282d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128519190613e1f565b8160018151811061286557612864613dde565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506128ca307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846115ef565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8460085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b815260040161294c959493929190613f01565b5f604051808303815f87803b158015612963575f80fd5b505af1158015612975573d5f803e3d5ffd5b505050505050565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a809061393c565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aee906139ca565b60405180910390fd5b612b02838383612cf8565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7c90613fc9565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612c6e9190612ea3565b60405180910390a3612c81848484612cfd565b50505050565b5f612c9130610e7f565b90505f8103612ca05750612ccb565b5f819050600d548110612cb357600d5490505b82811115612cbf578290505b612cc881612729565b50505b50565b5f8183612cdb91906133c8565b905092915050565b5f8183612cf09190613436565b905092915050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612d4482612d02565b612d4e8185612d0c565b9350612d5e818560208601612d1c565b612d6781612d2a565b840191505092915050565b5f6020820190508181035f830152612d8a8184612d3a565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612dbf82612d96565b9050919050565b612dcf81612db5565b8114612dd9575f80fd5b50565b5f81359050612dea81612dc6565b92915050565b5f819050919050565b612e0281612df0565b8114612e0c575f80fd5b50565b5f81359050612e1d81612df9565b92915050565b5f8060408385031215612e3957612e38612d92565b5b5f612e4685828601612ddc565b9250506020612e5785828601612e0f565b9150509250929050565b5f8115159050919050565b612e7581612e61565b82525050565b5f602082019050612e8e5f830184612e6c565b92915050565b612e9d81612df0565b82525050565b5f602082019050612eb65f830184612e94565b92915050565b5f805f60608486031215612ed357612ed2612d92565b5b5f612ee086828701612ddc565b9350506020612ef186828701612ddc565b9250506040612f0286828701612e0f565b9150509250925092565b5f60ff82169050919050565b612f2181612f0c565b82525050565b5f602082019050612f3a5f830184612f18565b92915050565b5f60208284031215612f5557612f54612d92565b5b5f612f6284828501612e0f565b91505092915050565b612f7481612db5565b82525050565b5f602082019050612f8d5f830184612f6b565b92915050565b5f60208284031215612fa857612fa7612d92565b5b5f612fb584828501612ddc565b91505092915050565b5f8060408385031215612fd457612fd3612d92565b5b5f612fe185828601612e0f565b9250506020612ff285828601612e0f565b9150509250929050565b5f819050919050565b5f61301f61301a61301584612d96565b612ffc565b612d96565b9050919050565b5f61303082613005565b9050919050565b5f61304182613026565b9050919050565b61305181613037565b82525050565b5f60208201905061306a5f830184613048565b92915050565b61307981612e61565b8114613083575f80fd5b50565b5f8135905061309481613070565b92915050565b5f602082840312156130af576130ae612d92565b5b5f6130bc84828501613086565b91505092915050565b5f80604083850312156130db576130da612d92565b5b5f6130e885828601612ddc565b92505060206130f985828601613086565b9150509250929050565b5f806040838503121561311957613118612d92565b5b5f61312685828601612ddc565b925050602061313785828601612ddc565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061318557607f821691505b60208210810361319857613197613141565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6131d582612df0565b91506131e083612df0565b92508282019050808211156131f8576131f761319e565b5b92915050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f613232601783612d0c565b915061323d826131fe565b602082019050919050565b5f6020820190508181035f83015261325f81613226565b9050919050565b5f819050919050565b5f61328961328461327f84613266565b612ffc565b612df0565b9050919050565b6132998161326f565b82525050565b5f60c0820190506132b25f830189612f6b565b6132bf6020830188612e94565b6132cc6040830187613290565b6132d96060830186613290565b6132e66080830185612f6b565b6132f360a0830184612e94565b979650505050505050565b5f8151905061330c81612df9565b92915050565b5f805f6060848603121561332957613328612d92565b5b5f613336868287016132fe565b9350506020613347868287016132fe565b9250506040613358868287016132fe565b9150509250925092565b5f6040820190506133755f830185612f6b565b6133826020830184612e94565b9392505050565b5f8151905061339781613070565b92915050565b5f602082840312156133b2576133b1612d92565b5b5f6133bf84828501613389565b91505092915050565b5f6133d282612df0565b91506133dd83612df0565b92508282026133eb81612df0565b915082820484148315176134025761340161319e565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61344082612df0565b915061344b83612df0565b92508261345b5761345a613409565b5b828204905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f6134c0603983612d0c565b91506134cb82613466565b604082019050919050565b5f6020820190508181035f8301526134ed816134b4565b9050919050565b7f416c72656164792064697361626c6564210000000000000000000000000000005f82015250565b5f613528601183612d0c565b9150613533826134f4565b602082019050919050565b5f6020820190508181035f8301526135558161351c565b9050919050565b7f546f6b656e3a206e6f2045544820696e2074686520636f6e74726163740000005f82015250565b5f613590601d83612d0c565b915061359b8261355c565b602082019050919050565b5f6020820190508181035f8301526135bd81613584565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f61361e602583612d0c565b9150613629826135c4565b604082019050919050565b5f6020820190508181035f83015261364b81613612565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6136ac602683612d0c565b91506136b782613652565b604082019050919050565b5f6020820190508181035f8301526136d9816136a0565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61373a602483612d0c565b9150613745826136e0565b604082019050919050565b5f6020820190508181035f8301526137678161372e565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6137c8602283612d0c565b91506137d38261376e565b604082019050919050565b5f6020820190508181035f8301526137f5816137bc565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613830602083612d0c565b915061383b826137fc565b602082019050919050565b5f6020820190508181035f83015261385d81613824565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f613898601d83612d0c565b91506138a382613864565b602082019050919050565b5f6020820190508181035f8301526138c58161388c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613926602583612d0c565b9150613931826138cc565b604082019050919050565b5f6020820190508181035f8301526139538161391a565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6139b4602383612d0c565b91506139bf8261395a565b604082019050919050565b5f6020820190508181035f8301526139e1816139a8565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f613a1c601683612d0c565b9150613a27826139e8565b602082019050919050565b5f6020820190508181035f830152613a4981613a10565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e202054727920616761696e206c617465722e0000000000000000000000602082015250565b5f613aaa603583612d0c565b9150613ab582613a50565b604082019050919050565b5f6020820190508181035f830152613ad781613a9e565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f613b38603583612d0c565b9150613b4382613ade565b604082019050919050565b5f6020820190508181035f830152613b6581613b2c565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f613ba0601383612d0c565b9150613bab82613b6c565b602082019050919050565b5f6020820190508181035f830152613bcd81613b94565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f613c2e603683612d0c565b9150613c3982613bd4565b604082019050919050565b5f6020820190508181035f830152613c5b81613c22565b9050919050565b5f613c6c82612df0565b9150613c7783612df0565b9250828203905081811115613c8f57613c8e61319e565b5b92915050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f613cef602183612d0c565b9150613cfa82613c95565b604082019050919050565b5f6020820190508181035f830152613d1c81613ce3565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f613d7d602283612d0c565b9150613d8882613d23565b604082019050919050565b5f6020820190508181035f830152613daa81613d71565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050613e1981612dc6565b92915050565b5f60208284031215613e3457613e33612d92565b5b5f613e4184828501613e0b565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613e7c81612db5565b82525050565b5f613e8d8383613e73565b60208301905092915050565b5f602082019050919050565b5f613eaf82613e4a565b613eb98185613e54565b9350613ec483613e64565b805f5b83811015613ef4578151613edb8882613e82565b9750613ee683613e99565b925050600181019050613ec7565b5085935050505092915050565b5f60a082019050613f145f830188612e94565b613f216020830187613290565b8181036040830152613f338186613ea5565b9050613f426060830185612f6b565b613f4f6080830184612e94565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f613fb3602683612d0c565b9150613fbe82613f59565b604082019050919050565b5f6020820190508181035f830152613fe081613fa7565b905091905056fea264697066735822122029d1143c509db9d99b889232a03f6c8c03a8316e1d784ec0efb4fd61e3d20d9564736f6c63430008190033

Verified Source Code Full Match

Compiler: v0.8.25+commit.b61c2a91 EVM: cancun Optimization: No
dlink.sol 750 lines
/**
 *Submitted for verification at Etherscan.io on 2025-05-21
*/

// SPDX-License-Identifier: MIT


pragma solidity ^0.8.25;
pragma experimental ABIEncoderV2;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

abstract contract Ownable is Context {
    address private _owner;

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

    constructor() {
        _transferOwnership(_msgSender());
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

interface IERC20 {

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address to, 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 from, address to, uint256 amount) external returns (bool);
}

interface IERC20Metadata is IERC20 {

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);
}

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB)
    external
    view
    returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

    function createPair(address tokenA, address tokenB)
    external
    returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
    external
    view
    returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);

    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
    external
    view
    returns (
        uint112 reserve0,
        uint112 reserve1,
        uint32 blockTimestampLast
    );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

interface IUniswapV2Router02 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
    external
    returns (
        uint256 amountA,
        uint256 amountB,
        uint256 liquidity
    );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
    external
    payable
    returns (
        uint256 amountToken,
        uint256 amountETH,
        uint256 liquidity
    );

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

library SafeMath {

    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    function per(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= 100, "Percentage must be between 0 and 100");
        return a * b / 100;
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    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 9;
    }

    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 to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    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;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    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;
    }

    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");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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 += amount;
        unchecked {
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            _totalSupply -= amount;
        }

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

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

    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 _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);
            }
        }
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

contract DLINK is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable _uniswapV2Router;
    address public uniswapV2Pair;
    address public devWallet;
    address public marketingWallet;
    address private constant deadAddress = address(0xdead);

    uint8 private constant _decimals = 9;
    uint256 public initialTotalSupply = 10000000 * 10**_decimals;

    uint256 public buyFee = 4;
    uint256 public sellFee = 4;

    // 1% is max wallet
    uint256 public maxWallet = (initialTotalSupply * 12)/1000;
    uint256 public maxTransactionAmount = maxWallet;

    bool private swapping;

    bool public transferDelayEnabled = true;
    mapping(address => uint256) private _holderLastTransferTimestamp;
    
    //swap for 0.1%
    uint256 public swapTokensAtAmount = (initialTotalSupply * 1)/1000;

    bool public tradingOpen = false;
    bool public swapEnabled = false;

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

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    constructor() ERC20("DeepLink", "DLINK"){
        _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        marketingWallet = payable(0xacaf8929DB95335A7a84B8F9Ee0AB92a93f4F783);
        devWallet = payable(_msgSender());

        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        excludeFromMaxTransaction(address(_msgSender()), true);
        excludeFromMaxTransaction(marketingWallet, true);
        excludeFromMaxTransaction(devWallet, true);
        excludeFromFees(address(_msgSender()), true);
        excludeFromFees(marketingWallet, true);
        excludeFromFees(devWallet, true);

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
        // mint
        _mint(devWallet, initialTotalSupply);
    }

    receive() external payable {}

    function addLPToUniswap() external onlyOwner() {
        require(!tradingOpen,"Trading is already open");
        _approve(address(this), address(_uniswapV2Router), initialTotalSupply);
        _uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            0xFAbC65f4cAC10848Cf1d62FCf2C68544f0dA1A09,
            block.timestamp
        );
        IERC20(uniswapV2Pair).approve(address(_uniswapV2Router), type(uint).max);
    }

    function burn(uint256 amount) external {
        _burn(_msgSender(), amount);
    }

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


    function openTrading() external onlyOwner() {
        swapEnabled = true;
        tradingOpen = true;
    }

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

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

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

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

    function setFeeWallet(address newmarketingWallet) external onlyOwner {
        marketingWallet = payable(newmarketingWallet);
    }

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

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

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

            if (transferDelayEnabled && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
                    if (to != address(_uniswapV2Router) && to != address(uniswapV2Pair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number && _holderLastTransferTimestamp[to] < block.number, "_transfer:: Transfer Delay enabled.  Try again later.");
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                        _holderLastTransferTimestamp[to] = block.number;
                    }
            }

            if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
            }
            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(amount);
            swapping = false;
        }

        bool takeFee = !swapping && !_isExcludedFromFees[from] && !_isExcludedFromFees[to];

        uint256 fees = 0;
        if (takeFee) {
            if (automatedMarketMakerPairs[to]) {
                fees = amount.mul(sellFee).div(100);
            }
            else if(automatedMarketMakerPairs[from]) {
                fees = amount.mul(buyFee).div(100);
            }
            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }
            amount -= fees;
        }
        super._transfer(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = _uniswapV2Router.WETH();
        _approve(address(this), address(_uniswapV2Router), tokenAmount);
        _uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            marketingWallet,
            block.timestamp
        );
    }

    function setFee(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
        sellFee = _sellFee;
        buyFee = _buyFee;
    }

    function stopTransferDelay() external onlyOwner {
        require(transferDelayEnabled, "Already disabled!");
        transferDelayEnabled = false;
    }


    function removeTheLimits() external onlyOwner {
        maxTransactionAmount = initialTotalSupply;
        maxWallet = initialTotalSupply;
    }

    function manualSwapToken(uint256 percent) external {
        require(_msgSender() == marketingWallet);
        uint256 contractBalance = balanceOf(address(this));
        uint256 swapAmount = contractBalance * percent / 100;
        swapTokensForEth(swapAmount);
    }

    function withdrawEth() external {
        require(address(this).balance > 0, "Token: no ETH in the contract");
        require(_msgSender() == devWallet);
        payable(msg.sender).transfer(address(this).balance);
    }

    function tokensWithdraw() external {
        require(_msgSender() == devWallet);
        uint256 amount = balanceOf(address(this));
        _transfer(address(this), devWallet, amount);
    }

       //Set minimum tokens required to swap.
    function setMinSwapTokensThreshold(uint256 _swapTokensAtAmount) public onlyOwner {
        swapTokensAtAmount = _swapTokensAtAmount;
    }

    //Set minimum tokens required to swap.
    function toggleSwap(bool _swapEnabled) public onlyOwner {
        swapEnabled = _swapEnabled;
    }

    function swapBack(uint256 tokenAmount) private {
        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance == 0) {
            return;
        }
        uint256 tokensToSwap = contractBalance;

        if (tokensToSwap >= maxTransactionAmount) {
            tokensToSwap = maxTransactionAmount;
        }

        if(tokensToSwap > tokenAmount) {
            tokensToSwap = tokenAmount;
        }

        swapTokensForEth(tokensToSwap);
    }
}

Read Contract

_uniswapV2Router 0x583e0568 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
initialTotalSupply 0x311028af → uint256
isExcludedFromFees 0x4fbee193 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address

Write Contract 22 functions

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

addLPToUniswap 0x3edab509
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwapToken 0x71f5f01a
uint256 percent
openTrading 0xc9567bf9
No parameters
removeTheLimits 0x139864a8
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setFee 0x52f7c988
uint256 _buyFee
uint256 _sellFee
setFeeWallet 0x90d49b9d
address newmarketingWallet
setMinSwapTokensThreshold 0x98a5c315
uint256 _swapTokensAtAmount
stopTransferDelay 0x9b636545
No parameters
toggleSwap 0x6d8aa8f8
bool _swapEnabled
tokensWithdraw 0x2cb743f7
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawEth 0xa0ef91df
No parameters

Recent Transactions

No transactions found for this address