Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x84792Ca6685617f20D39d49130dC35C5DaD08A25
Balance 0 ETH
Nonce 1
Code Size 9527 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

9527 bytes
0x6080604052600436106103015760003560e01c8063860aefcf1161018f578063bbc0c742116100e1578063dd62ed3e1161008a578063eba4c33311610064578063eba4c333146108f8578063f2b0fd4814610918578063f2fde38b1461092e57600080fd5b8063dd62ed3e14610888578063df507fa3146108ce578063e2f45605146108e357600080fd5b8063d5f39488116100bb578063d5f3948814610829578063d85ba0631461085d578063d9ff478f1461087357600080fd5b8063bbc0c742146107c8578063bc205ad3146107e9578063c02466681461080957600080fd5b80639a7a23d611610143578063ad5c46481161011d578063ad5c464814610744578063b62496f514610778578063ba22abc3146107a857600080fd5b80639a7a23d6146106e4578063a457c2d714610704578063a9059cbb1461072457600080fd5b80638da5cb5b116101745780638da5cb5b14610691578063924de9b7146106af57806395d89b41146106cf57600080fd5b8063860aefcf1461064a5780638a8c523c1461067c57600080fd5b80634fbee1931161025357806370a08231116101fc5780637571336a116101d65780637571336a146105ea5780637ca8448a1461060a5780637cb332bb1461062a57600080fd5b806370a082311461057f578063715018a6146105b557806371fc4688146105ca57600080fd5b80636a486a8e1161022d5780636a486a8e146105315780636ddd1713146105475780636fe028551461056857600080fd5b80634fbee193146104c257806359927044146104fb5780635e3699021461051b57600080fd5b806318160ddd116102b5578063395093511161028f578063395093511461045857806349bd5a5e146104785780634ac1126a146104ac57600080fd5b806318160ddd1461040757806323b872dd1461041c578063313ce5671461043c57600080fd5b806310d5de53116102e657806310d5de53146103685780631694505e14610398578063180d3387146103e457600080fd5b806306fdde031461030d578063095ea7b31461033857600080fd5b3661030857005b600080fd5b34801561031957600080fd5b5061032261094e565b60405161032f91906121aa565b60405180910390f35b34801561034457600080fd5b5061035861035336600461220d565b6109e0565b604051901515815260200161032f565b34801561037457600080fd5b50610358610383366004612239565b600d6020526000908152604090205460ff1681565b3480156103a457600080fd5b506103cc7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161032f565b3480156103f057600080fd5b506103f9605081565b60405190815260200161032f565b34801561041357600080fd5b506002546103f9565b34801561042857600080fd5b5061035861043736600461225d565b6109fa565b34801561044857600080fd5b506040516012815260200161032f565b34801561046457600080fd5b5061035861047336600461220d565b610a1e565b34801561048457600080fd5b506103cc7f00000000000000000000000040a60f5e8300a6802b8be2f94ebaf0f7e504724181565b3480156104b857600080fd5b506103f960075481565b3480156104ce57600080fd5b506103586104dd366004612239565b6001600160a01b03166000908152600c602052604090205460ff1690565b34801561050757600080fd5b506006546103cc906001600160a01b031681565b34801561052757600080fd5b506103f9600a5481565b34801561053d57600080fd5b506103f960095481565b34801561055357600080fd5b5060065461035890600160b01b900460ff1681565b34801561057457600080fd5b5061057d610a5d565b005b34801561058b57600080fd5b506103f961059a366004612239565b6001600160a01b031660009081526020819052604090205490565b3480156105c157600080fd5b5061057d610a8c565b3480156105d657600080fd5b5061057d6105e536600461229e565b610a9e565b3480156105f657600080fd5b5061057d6106053660046122c5565b610b05565b34801561061657600080fd5b5061057d610625366004612239565b610b38565b34801561063657600080fd5b5061057d610645366004612239565b610ba4565b34801561065657600080fd5b5061065f610c25565b60408051931515845260208401929092529082015260600161032f565b34801561068857600080fd5b5061057d610cd2565b34801561069d57600080fd5b506005546001600160a01b03166103cc565b3480156106bb57600080fd5b5061057d6106ca3660046122fe565b610df9565b3480156106db57600080fd5b50610322610e3a565b3480156106f057600080fd5b5061057d6106ff3660046122c5565b610e49565b34801561071057600080fd5b5061035861071f36600461220d565b610f02565b34801561073057600080fd5b5061035861073f36600461220d565b610fac565b34801561075057600080fd5b506103cc7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561078457600080fd5b50610358610793366004612239565b600e6020526000908152604090205460ff1681565b3480156107b457600080fd5b506103586107c336600461229e565b610fba565b3480156107d457600080fd5b5060065461035890600160a81b900460ff1681565b3480156107f557600080fd5b5061057d61080436600461231b565b6110bc565b34801561081557600080fd5b5061057d6108243660046122c5565b611234565b34801561083557600080fd5b506103cc7f000000000000000000000000d57e577f6f3c3f48a67544dc65fd5da4060985c181565b34801561086957600080fd5b506103f960085481565b34801561087f57600080fd5b506103f9600c81565b34801561089457600080fd5b506103f96108a336600461231b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156108da57600080fd5b506103f9600b81565b3480156108ef57600080fd5b506103f961129b565b34801561090457600080fd5b5061057d61091336600461229e565b6112c6565b34801561092457600080fd5b506103f9600b5481565b34801561093a57600080fd5b5061057d610949366004612239565b611325565b60606003805461095d90612349565b80601f016020809104026020016040519081016040528092919081815260200182805461098990612349565b80156109d65780601f106109ab576101008083540402835291602001916109d6565b820191906000526020600020905b8154815290600101906020018083116109b957829003601f168201915b5050505050905090565b6000336109ee8185856113b2565b60019150505b92915050565b600033610a0885828561150a565b610a13858585611596565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906109ee9082908690610a58908790612399565b6113b2565b610a8a307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6000196113b2565b565b610a94611c08565b610a8a6000611c62565b610aa6611c08565b6008819055611388811115610b025760405162461bcd60e51b815260206004820152601660248201527f4275792066656573206d757374206265203c3d2035250000000000000000000060448201526064015b60405180910390fd5b50565b610b0d611c08565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b610b40611c08565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610b8d576040519150601f19603f3d011682016040523d82523d6000602084013e610b92565b606091505b5050905080610ba057600080fd5b5050565b610bac611c08565b6006546040516001600160a01b03918216918316907f8aa0f85050aca99be43beb823e0457e77966b3baf697a289b03681978f96166890600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038316179055610c1a816001611234565b610b02816001610b05565b6000808080610c366050600b6123ac565b905080600a54610c469190612399565b42118015610c5657506000600a54115b15610c6957506000938493508392509050565b6000600a5442610c7991906123c3565b90506000610c88600b836123d6565b9050600195506103e8610c9a60025490565b610ca59060146123ac565b610caf91906123d6565b9450610cbc8160fa6123ac565b610cc8906161a86123c3565b9350505050909192565b336001600160a01b037f000000000000000000000000d57e577f6f3c3f48a67544dc65fd5da4060985c11614610d4a5760405162461bcd60e51b815260206004820152600c60248201527f4e6f74204465706c6f79657200000000000000000000000000000000000000006044820152606401610af9565b600a5415610d9a5760405162461bcd60e51b815260206004820152600c60248201527f416c7265616479206c69766500000000000000000000000000000000000000006044820152606401610af9565b600680547fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff1676010100000000000000000000000000000000000000000017905542600a5530600090815260208190526040902054610a8a9047611cc1565b610e01611c08565b60068054911515600160b01b027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60606004805461095d90612349565b610e51611c08565b7f00000000000000000000000040a60f5e8300a6802b8be2f94ebaf0f7e50472416001600160a01b0316826001600160a01b031603610ef85760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610af9565b610ba08282611d95565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610f9f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610af9565b610a1382868684036113b2565b6000336109ee818585611596565b6000610fc4611c08565b600182101561103b5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527f20302e3030312520746f74616c20737570706c792e00000000000000000000006064820152608401610af9565b6101f48211156110b35760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160448201527f6e20302e35302520746f74616c20737570706c792e00000000000000000000006064820152608401610af9565b50600755600190565b6110c4611c08565b6001600160a01b03821661111a5760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610af9565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa15801561117a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119e91906123f8565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af115801561120a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122e9190612411565b50505050565b61123c611c08565b6001600160a01b0382166000818152600c6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6000620186a06007546112ad60025490565b6112b791906123ac565b6112c191906123d6565b905090565b6112ce611c08565b6009819055611388811115610b025760405162461bcd60e51b815260206004820152601660248201527f53656c6c2066656573206d757374206265203c3d2035000000000000000000006044820152606401610af9565b61132d611c08565b6001600160a01b0381166113a95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610af9565b610b0281611c62565b6001600160a01b03831661142d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610af9565b6001600160a01b0382166114a95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610af9565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461122e57818110156115895760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610af9565b61122e84848484036113b2565b6001600160a01b0383166115fa5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610af9565b6001600160a01b03821661165c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610af9565b806000036116755761167083836000611de9565b505050565b6000806000611682610c25565b9250925092508215611991576005546001600160a01b038781169116148015906116ba57506005546001600160a01b03868116911614155b80156116ce57506001600160a01b03851615155b80156116e557506001600160a01b03851661dead14155b80156116fb5750600654600160a01b900460ff16155b1561199157600654600160a81b900460ff1661179c576001600160a01b0386166000908152600c602052604090205460ff168061175057506001600160a01b0385166000908152600c602052604090205460ff165b61179c5760405162461bcd60e51b815260206004820152601660248201527f54726164696e67206973206e6f74206163746976652e000000000000000000006044820152606401610af9565b6001600160a01b0386166000908152600e602052604090205460ff1680156117dd57506001600160a01b0385166000908152600d602052604090205460ff16155b156118d557818411156118585760405162461bcd60e51b815260206004820152602b60248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527f6d617820616d6f756e742e0000000000000000000000000000000000000000006064820152608401610af9565b81611878866001600160a01b031660009081526020819052604090205490565b6118829086612399565b11156118d05760405162461bcd60e51b815260206004820152601360248201527f4d61782077616c6c6574206578636565646564000000000000000000000000006044820152606401610af9565b611991565b6001600160a01b0385166000908152600e602052604090205460ff16801561191657506001600160a01b0386166000908152600d602052604090205460ff16155b1561199157818411156119915760405162461bcd60e51b815260206004820152602c60248201527f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560448201527f206d617820616d6f756e742e00000000000000000000000000000000000000006064820152608401610af9565b600061199b61129b565b30600090815260208190526040902054101590508080156119c55750600654600160b01b900460ff165b80156119db5750600654600160a01b900460ff16155b8015611a0057506001600160a01b0387166000908152600e602052604090205460ff16155b8015611a2557506001600160a01b0387166000908152600c602052604090205460ff16155b8015611a4a57506001600160a01b0386166000908152600c602052604090205460ff16155b8015611a585750600b544210155b15611a94576006805460ff60a01b1916600160a01b179055611a7b600c42612399565b600b55611a86611fa4565b6006805460ff60a01b191690555b6006546001600160a01b0388166000908152600c602052604090205460ff600160a01b909204821615911680611ae257506001600160a01b0387166000908152600c602052604090205460ff165b15611aeb575060005b60008115611bf2576001600160a01b0388166000908152600e602052604090205460ff168015611b1d57506000600954115b15611b6657620186a060095488611b3491906123ac565b611b3e91906123d6565b90508515611b6157620186a0611b5485896123ac565b611b5e91906123d6565b90505b611bd4565b6001600160a01b0389166000908152600e602052604090205460ff168015611b9057506000600854115b15611bd457620186a060085488611ba791906123ac565b611bb191906123d6565b90508515611bd457620186a0611bc785896123ac565b611bd191906123d6565b90505b8015611be557611be5893083611de9565b611bef81886123c3565b96505b611bfd898989611de9565b505050505050505050565b6005546001600160a01b03163314610a8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610af9565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546040517ff305d7190000000000000000000000000000000000000000000000000000000081523060048201526024810184905260006044820181905260648201526001600160a01b0391821660848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9091169063f305d71990839060c40160606040518083038185885af1158015611d69573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611d8e919061242e565b5050505050565b6001600160a01b0382166000818152600e6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038316611e4d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610af9565b6001600160a01b038216611eaf5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610af9565b6001600160a01b03831660009081526020819052604090205481811015611f3e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610af9565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361122e565b3060009081526020819052604081205490819003611fbf5750565b611fc761129b565b611fd29060056123ac565b811115611fef57611fe161129b565b611fec9060056123ac565b90505b604080516002808252606082018352610b029284926000929091602083019080368337019050509050308160008151811061202c5761202c61245c565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ce9190612472565b816001815181106120e1576120e161245c565b6001600160a01b03909216602092830291909101909101528115610ba0576006546040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81169263791ac9479261217492879260009288929190911690429060040161248f565b600060405180830381600087803b15801561218e57600080fd5b505af11580156121a2573d6000803e3d6000fd5b505050505050565b602081526000825180602084015260005b818110156121d857602081860181015160408684010152016121bb565b506000604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114610b0257600080fd5b6000806040838503121561222057600080fd5b823561222b816121f8565b946020939093013593505050565b60006020828403121561224b57600080fd5b8135612256816121f8565b9392505050565b60008060006060848603121561227257600080fd5b833561227d816121f8565b9250602084013561228d816121f8565b929592945050506040919091013590565b6000602082840312156122b057600080fd5b5035919050565b8015158114610b0257600080fd5b600080604083850312156122d857600080fd5b82356122e3816121f8565b915060208301356122f3816122b7565b809150509250929050565b60006020828403121561231057600080fd5b8135612256816122b7565b6000806040838503121561232e57600080fd5b8235612339816121f8565b915060208301356122f3816121f8565b600181811c9082168061235d57607f821691505b60208210810361237d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109f4576109f4612383565b80820281158282048414176109f4576109f4612383565b818103818111156109f4576109f4612383565b6000826123f357634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561240a57600080fd5b5051919050565b60006020828403121561242357600080fd5b8151612256816122b7565b60008060006060848603121561244357600080fd5b5050815160208301516040909301519094929350919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561248457600080fd5b8151612256816121f8565b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b818110156124e15783516001600160a01b03168352602093840193909201916001016124ba565b50506001600160a01b03959095166060840152505060800152939250505056fea2646970667358221220132254c360a2248b6d70cfd2cb23ea47fada8ce040428a3ef93bbd26034a849c64736f6c634300081e0033

Verified Source Code Full Match

Compiler: v0.8.30+commit.73712a01 EVM: paris Optimization: Yes (1000 runs)
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
ERC20.sol 365 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

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

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

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

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

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

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

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

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

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

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
Context.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
Aethera.sol 376 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

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

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

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

    function WETH() external pure returns (address);

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

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

contract Aethera is ERC20, Ownable {
    /// STATE VARIABLES ///

    /// @notice Address of UniswapV2Router
    IUniswapV2Router02 public immutable uniswapV2Router;
    /// @notice Address of ATH/ETH LP
    address public immutable uniswapV2Pair;
    /// @notice WETH address
    address public immutable WETH;
    /// @notice Address of deployer
    address public immutable deployer;
    /// @notice Team wallet address
    address public teamWallet;

    bool private swapping;

    /// @notice Bool if trading is active
    bool public tradingActive = false;
    /// @notice Bool if swap is enabled
    bool public swapEnabled = false;

    /// @notice Current percent of supply to swap tokens at (i.e. 50 = 0.05%)
    uint256 public swapPercent;

    /// @notice Current buy side total fees
    uint256 public buyTotalFees;

    /// @notice Current sell side total fees
    uint256 public sellTotalFees;
    /// @notice Timestamp trading went live
    uint256 public timestampTradingLive;

    
    uint256 public canSwapAt;
    uint256 public constant swapBuffer = 12 seconds;
    uint256 public constant taxWalkDown = 11 seconds;
    uint256 public constant taxWalkDownSteps = 80;

    /// MAPPINGS ///

    /// @dev Bool if address is excluded from fees
    mapping(address => bool) private _isExcludedFromFees;

    /// @notice Bool if address is excluded from max transaction amount
    mapping(address => bool) public _isExcludedMaxTransactionAmount;

    /// @notice Bool if address is AMM pair
    mapping(address => bool) public automatedMarketMakerPairs;

    /// EVENTS ///

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

    /// CONSTRUCTOR ///

    constructor() ERC20("Aethera", "ATH") Ownable() {
        WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

        uniswapV2Router = _uniswapV2Router;

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        // 100% To Starting LP
        uint256 lpSupply_ = 100_000_000 ether;

        _approve(address(this), address(_uniswapV2Router), type(uint256).max);

        swapPercent = 50; // 0.05%

        buyTotalFees = 5000;
        sellTotalFees = 5000;

        deployer = msg.sender;
        teamWallet = 0x6422169A4E345bD6e01Fd7a277096850e8a6Ce66;

        excludeFromFees(msg.sender, true);
        excludeFromFees(address(this), true);

        excludeFromMaxTransaction(msg.sender, true);
        excludeFromMaxTransaction(address(this), true);

        _mint(address(this), lpSupply_);
    }

    /// RECEIVE ///

    receive() external payable {}

    /// AMM PAIR ///

    /// @notice       Sets if address is AMM pair
    /// @param pair   Address of pair
    /// @param value  Bool if AMM pair
    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");

        _setAutomatedMarketMakerPair(pair, value);
    }

    /// @dev Internal function to set `value` of `pair`
    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    /// INTERNAL TRANSFER ///

    /// @dev Internal function to transfer - handles fee logic
    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;
        }

        (bool _limits, uint256 _maxWallet, uint256 _tax) = limits();

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

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

        bool canSwap = balanceOf(address(this)) >= swapTokensAtAmount();

        if (
            canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from]
                && !_isExcludedFromFees[to] && block.timestamp >= canSwapAt
        ) {
            swapping = true;
            canSwapAt = block.timestamp + swapBuffer;

            swapBack();

            swapping = false;
        }

        bool takeFee = !swapping;

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

        uint256 fees;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
                fees = (amount * sellTotalFees) / 100000;
                if (_limits) fees = (amount * _tax) / 100000;
            }
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = (amount * buyTotalFees) / 100000;
                if (_limits) fees = (amount * _tax) / 100000;
            }

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

            amount -= fees;
        }

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

    /// INTERNAL FUNCTION ///

    /// @dev INTERNAL function to swap `tokenAmount` for ETH
    /// @dev Invoked in `swapBack()`
    function swapTokensForEth(uint256 tokenAmount) internal {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        if (tokenAmount > 0) {
            // make the swap
            uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
                tokenAmount,
                0, // accept any amount of ETH
                path,
                teamWallet,
                block.timestamp
            );
        }
    }

    /// @dev INTERNAL function to add `tokenAmount` and `ethAmount` to LP
    /// @dev Invoked in `swapBack()`
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) internal {
        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            teamWallet,
            block.timestamp
        );
    }

    /// @dev INTERNAL function to transfer fees properly
    /// @dev Invoked in `_transfer()`
    function swapBack() internal {
        uint256 contractBalance = balanceOf(address(this));

        if (contractBalance == 0) {
            return;
        }

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

        swapTokensForEth(contractBalance);
    }

    /// VIEW FUNCTION ///

    /// @notice Returns if address is excluded from fees
    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    /// @notice Returns at what percent of supply to swap tokens at
    function swapTokensAtAmount() public view returns (uint256 amount_) {
        amount_ = (totalSupply() * swapPercent) / 100000;
    }

    /// @dev Returns limits if limit in effect
    function limits() public view returns (bool limits_, uint256 maxAmount_, uint256 tax_) {
        uint256 timeForLimits = taxWalkDown * taxWalkDownSteps;
        if (block.timestamp > timestampTradingLive + timeForLimits && timestampTradingLive > 0) return (false, 0, 0);
        uint256 timeLive = block.timestamp - timestampTradingLive;
        uint256 stepsWalkedDown = timeLive / taxWalkDown;
        limits_ = true;
        maxAmount_ = (totalSupply() * 20) / 1000;
        tax_ = 25000 - (stepsWalkedDown * 250);
    }

    /// USER FUNCTIONS ///

    /// @notice Function for mass approval
    function massApproval() external {
        _approve(address(this), address(uniswapV2Router), type(uint256).max);
    }

    /// DEPLOYER ///

    /// @notice Enable trading
    function enableTrading() external {
        require(msg.sender == deployer, "Not Deployer");
        require(timestampTradingLive == 0, "Already live");
        tradingActive = true;
        swapEnabled = true;
        timestampTradingLive = block.timestamp;
        addLiquidity(balanceOf(address(this)), address(this).balance);
    }

    /// OWNER FUNCTIONS ///

    /// @notice Update percent of supply to swap tokens at
    function updateSwapTokensAtPercent(uint256 newPercent) external onlyOwner returns (bool) {
        require(newPercent >= 1, "Swap amount cannot be lower than 0.001% total supply.");
        require(newPercent <= 500, "Swap amount cannot be higher than 0.50% total supply.");
        swapPercent = newPercent;
        return true;
    }

    /// @notice Update swap enabled
    /// @dev    Only use to disable contract sales if absolutely necessary (emergency use only)
    function updateSwapEnabled(bool enabled) external onlyOwner {
        swapEnabled = enabled;
    }

    /// @notice Update buy side fees
    function updateBuyFees(uint256 _fee) external onlyOwner {
        buyTotalFees = _fee;
        require(buyTotalFees <= 5000, "Buy fees must be <= 5%");
    }

    /// @notice Update sell side fees
    function updateSellFees(uint256 _fee) external onlyOwner {
        sellTotalFees = _fee;
        require(sellTotalFees <= 5000, "Sell fees must be <= 5");
    }

    /// @notice Set if an address is excluded from fees
    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    /// @notice Set if an address is excluded from max transaction
    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    /// @notice Update team wallet
    function updateTeamWallet(address newWallet) external onlyOwner {
        emit teamWalletUpdated(newWallet, teamWallet);
        teamWallet = newWallet;
        excludeFromFees(newWallet, true);
        excludeFromMaxTransaction(newWallet, true);
    }

    /// @notice Withdraw stuck token from contract
    function withdrawStuckToken(address _token, address _to) external onlyOwner {
        require(_token != address(0), "_token address cannot be 0");
        uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
        IERC20(_token).transfer(_to, _contractBalance);
    }

    /// @notice Withdraw stuck ETH from contract
    function withdrawStuckEth(address toAddr) external onlyOwner {
        (bool success,) = toAddr.call{value: address(this).balance}("");
        require(success);
    }
}

Read Contract

WETH 0xad5c4648 → address
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyTotalFees 0xd85ba063 → uint256
canSwapAt 0xf2b0fd48 → uint256
decimals 0x313ce567 → uint8
deployer 0xd5f39488 → address
isExcludedFromFees 0x4fbee193 → bool
limits 0x860aefcf → bool, uint256, uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTotalFees 0x6a486a8e → uint256
swapBuffer 0xd9ff478f → uint256
swapEnabled 0x6ddd1713 → bool
swapPercent 0x4ac1126a → uint256
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
taxWalkDown 0xdf507fa3 → uint256
taxWalkDownSteps 0x180d3387 → uint256
teamWallet 0x59927044 → address
timestampTradingLive 0x5e369902 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 19 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
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
massApproval 0x6fe02855
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x71fc4688
uint256 _fee
updateSellFees 0xeba4c333
uint256 _fee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtPercent 0xba22abc3
uint256 newPercent
returns: bool
updateTeamWallet 0x7cb332bb
address newWallet
withdrawStuckEth 0x7ca8448a
address toAddr
withdrawStuckToken 0xbc205ad3
address _token
address _to

Recent Transactions

No transactions found for this address