Address Contract Partially Verified
Address
0xa1ECD506d5B178D7220fe175013FFa43cCaD9610
Balance
0 ETH
Nonce
1
Code Size
10708 bytes
Creator
0x6A3d637a...67B9 at tx 0x07ceec9a...0543ee
Indexed Transactions
0
Contract Bytecode
10708 bytes
0x608060405260043610610236575f3560e01c8063751039fc11610129578063c8c8ebe4116100a8578063dd62ed3e1161006d578063dd62ed3e146106fc578063e2f4560514610740578063e710794714610755578063f8b45b0514610774578063fb201b1d14610789575f80fd5b8063c8c8ebe414610668578063cc32d1761461067d578063d201b01e1461069d578063d7c94efd146106bc578063d85ba063146106dc575f80fd5b806395d89b41116100ee57806395d89b41146105c15780639a7a23d6146105ec578063a9059cbb1461060b578063adfa29e51461062a578063bc205ad314610649575f80fd5b8063751039fc1461051c5780637cb332bb14610530578063809d458d1461054f57806385ecafd71461056e5780638da5cb5b146105a5575f80fd5b806349bd5a5e116101b557806366650dae1161017a57806366650dae146104765780636a486a8e1461049557806370a08231146104b5578063715018a6146104e957806374010ece146104fd575f80fd5b806349bd5a5e146103c65780634a62bb65146103f95780634fcd244614610419578063590ffdce146104385780636402511e14610457575f80fd5b806321d37e39116101fb57806321d37e391461032457806323b872dd1461035657806327a14fc214610375578063313ce567146103945780633c090c46146103a7575f80fd5b806306fdde0314610241578063095ea7b3146102855780631694505e146102b457806318160ddd146102f35780631e0f77871461031a575f80fd5b3661023d57005b5f80fd5b34801561024c575f80fd5b5060408051808201909152600a81526908ac6d0de9acae8e4d2f60b31b60208201525b60405161027c91906123d0565b60405180910390f35b348015610290575f80fd5b506102a461029f36600461241d565b61079d565b604051901515815260200161027c565b3480156102bf575f80fd5b506102db737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161027c565b3480156102fe575f80fd5b506a52b7d2dcc80cd2e40000005b60405190815260200161027c565b6103226107b3565b005b34801561032f575f80fd5b5060065461034490600160b01b900460ff1681565b60405160ff909116815260200161027c565b348015610361575f80fd5b506102a4610370366004612445565b6108d4565b348015610380575f80fd5b5061032261038f36600461247e565b610983565b34801561039f575f80fd5b506012610344565b3480156103b2575f80fd5b506103226103c13660046124a5565b610a66565b3480156103d1575f80fd5b506102db7f0000000000000000000000003a3c6de76608d9c7a10e33190e8f6d07e75458c781565b348015610404575f80fd5b506006546102a490600160d01b900460ff1681565b348015610424575f80fd5b506103226104333660046124e5565b610b69565b348015610443575f80fd5b50610322610452366004612526565b610ca2565b348015610462575f80fd5b5061032261047136600461247e565b610d04565b348015610481575f80fd5b50610322610490366004612526565b610e61565b3480156104a0575f80fd5b5060065461034490600160a81b900460ff1681565b3480156104c0575f80fd5b5061030c6104cf36600461255b565b6001600160a01b03165f9081526007602052604090205490565b3480156104f4575f80fd5b50610322610ec3565b348015610508575f80fd5b5061032261051736600461247e565b610f0c565b348015610527575f80fd5b50610322610ff4565b34801561053b575f80fd5b5061032261054a36600461255b565b61103b565b34801561055a575f80fd5b5061032261056936600461255b565b6110bb565b348015610579575f80fd5b506102a461058836600461255b565b6001600160a01b03165f9081526009602052604090205460ff1690565b3480156105b0575f80fd5b505f546001600160a01b03166102db565b3480156105cc575f80fd5b5060408051808201909152600381526209aa8b60eb1b602082015261026f565b3480156105f7575f80fd5b50610322610606366004612526565b61113b565b348015610616575f80fd5b506102a461062536600461241d565b61121e565b348015610635575f80fd5b5061032261064436600461255b565b61122a565b348015610654575f80fd5b5061032261066336600461257b565b6112aa565b348015610673575f80fd5b5061030c60015481565b348015610688575f80fd5b5060065461034490600160b81b900460ff1681565b3480156106a8575f80fd5b506103226106b736600461255b565b611357565b3480156106c7575f80fd5b5060065461034490600160c01b900460ff1681565b3480156106e7575f80fd5b5060065461034490600160a01b900460ff1681565b348015610707575f80fd5b5061030c61071636600461257b565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205490565b34801561074b575f80fd5b5061030c60035481565b348015610760575f80fd5b5061032261076f366004612673565b61146e565b34801561077f575f80fd5b5061030c60025481565b348015610794575f80fd5b50610322611685565b5f6107a93384846116fc565b5060015b92915050565b336107c55f546001600160a01b031690565b6001600160a01b0316146107f45760405162461bcd60e51b81526004016107eb9061272d565b60405180910390fd5b600654600160d81b900460ff161561081e5760405162461bcd60e51b81526004016107eb90612762565b305f8181526007602052604080822054600654915163f305d71960e01b8152600481019490945260248401526044830182905260648301919091526001600160a01b031660848201524260a4820152737a250d5630b4cf539739df2c5dacb4c659f2488d9063f305d71990349060c40160606040518083038185885af11580156108aa573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906108cf919061278c565b505050565b6001600160a01b0383165f9081526008602090815260408083203384529091528120545f19811461096d57828110156109605760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016107eb565b61096d85338584036116fc565b61097885858561181f565b506001949350505050565b336109955f546001600160a01b031690565b6001600160a01b0316146109bb5760405162461bcd60e51b81526004016107eb9061272d565b670de0b6b3a76400006103e86109dd6a52b7d2dcc80cd2e400000060016127cb565b6109e791906127e2565b6109f191906127e2565b811015610a4e5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f7420736574206d61782077616c6c6574206c6f776572207468616e60448201526420302e312560d81b60648201526084016107eb565b610a6081670de0b6b3a76400006127cb565b60025550565b33610a785f546001600160a01b031690565b6001600160a01b031614610a9e5760405162461bcd60e51b81526004016107eb9061272d565b6006805461ffff60b01b1916600160b01b60ff868116820260ff60b81b191692909217600160b81b86841681029190911760ff60c01b1916600160c01b868516810291909117948590558404831693610aff93918104821692900416612801565b610b099190612801565b60ff166064146108cf5760405162461bcd60e51b815260206004820152602560248201527f446973747269627574696f6e206861766520746f20626520657175616c20746f604482015264203130302560d81b60648201526084016107eb565b33610b7b5f546001600160a01b031690565b6001600160a01b031614610ba15760405162461bcd60e51b81526004016107eb9061272d565b603c8260ff161115610c075760405162461bcd60e51b815260206004820152602960248201527f4275792066656573206d757374206265206c657373207468616e206f7220657160448201526875616c20746f20362560b81b60648201526084016107eb565b603c8160ff161115610c6e5760405162461bcd60e51b815260206004820152602a60248201527f53656c6c2066656573206d757374206265206c657373207468616e206f7220656044820152697175616c20746f20362560b01b60648201526084016107eb565b6006805461ffff60a01b1916600160a01b60ff9485160260ff60a81b191617600160a81b9290931691909102919091179055565b33610cb45f546001600160a01b031690565b6001600160a01b031614610cda5760405162461bcd60e51b81526004016107eb9061272d565b6001600160a01b03919091165f908152600960205260409020805460ff1916911515919091179055565b33610d165f546001600160a01b031690565b6001600160a01b031614610d3c5760405162461bcd60e51b81526004016107eb9061272d565b620186a0610d566a52b7d2dcc80cd2e400000060016127cb565b610d6091906127e2565b811015610dcd5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527420302e30303125206f662074686520737570706c7960581b60648201526084016107eb565b6103e8610de66a52b7d2dcc80cd2e400000060056127cb565b610df091906127e2565b811115610e5c5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f7420626520686967686572207468616044820152736e20302e3525206f662074686520737570706c7960601b60648201526084016107eb565b600355565b33610e735f546001600160a01b031690565b6001600160a01b031614610e995760405162461bcd60e51b81526004016107eb9061272d565b6001600160a01b03919091165f908152600a60205260409020805460ff1916911515919091179055565b33610ed55f546001600160a01b031690565b6001600160a01b031614610efb5760405162461bcd60e51b81526004016107eb9061272d565b5f80546001600160a01b0319169055565b33610f1e5f546001600160a01b031690565b6001600160a01b031614610f445760405162461bcd60e51b81526004016107eb9061272d565b670de0b6b3a76400006103e8610f666a52b7d2dcc80cd2e400000060016127cb565b610f7091906127e2565b610f7a91906127e2565b811015610fdc5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d6178207472616e73616374696f6e206c6f776572604482015269207468616e20302e312560b01b60648201526084016107eb565b610fee81670de0b6b3a76400006127cb565b60015550565b336110065f546001600160a01b031690565b6001600160a01b03161461102c5760405162461bcd60e51b81526004016107eb9061272d565b6006805460ff60d01b19169055565b3361104d5f546001600160a01b031690565b6001600160a01b0316146110735760405162461bcd60e51b81526004016107eb9061272d565b6001600160a01b0381166110995760405162461bcd60e51b81526004016107eb9061281a565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b336110cd5f546001600160a01b031690565b6001600160a01b0316146110f35760405162461bcd60e51b81526004016107eb9061272d565b6001600160a01b0381166111195760405162461bcd60e51b81526004016107eb9061281a565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b3361114d5f546001600160a01b031690565b6001600160a01b0316146111735760405162461bcd60e51b81526004016107eb9061272d565b7f0000000000000000000000003a3c6de76608d9c7a10e33190e8f6d07e75458c76001600160a01b0316826001600160a01b0316036111f45760405162461bcd60e51b815260206004820152601a60248201527f54686520706169722063616e6e6f742062652072656d6f76656400000000000060448201526064016107eb565b6001600160a01b03919091165f908152600b60205260409020805460ff1916911515919091179055565b5f6107a933848461181f565b3361123c5f546001600160a01b031690565b6001600160a01b0316146112625760405162461bcd60e51b81526004016107eb9061272d565b6001600160a01b0381166112885760405162461bcd60e51b81526004016107eb9061281a565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b336112bc5f546001600160a01b031690565b6001600160a01b0316146112e25760405162461bcd60e51b81526004016107eb9061272d565b6040516370a0823160e01b81523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa158015611326573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061134a919061284a565b90506108cf838383611f98565b336113695f546001600160a01b031690565b6001600160a01b03161461138f5760405162461bcd60e51b81526004016107eb9061272d565b6001600160a01b0381166113d75760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016107eb565b5f816001600160a01b0316476040515f6040518083038185875af1925050503d805f8114611420576040519150601f19603f3d011682016040523d82523d5f602084013e611425565b606091505b505090508061146a5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b60448201526064016107eb565b5050565b336114805f546001600160a01b031690565b6001600160a01b0316146114a65760405162461bcd60e51b81526004016107eb9061272d565b600654600160d81b900460ff16156114d05760405162461bcd60e51b81526004016107eb90612762565b5f5b82518110156108cf578181815181106114ed576114ed612861565b602002602001015160075f336001600160a01b03166001600160a01b031681526020019081526020015f205410156115375760405162461bcd60e51b81526004016107eb90612875565b81818151811061154957611549612861565b602002602001015160075f85848151811061156657611566612861565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f82825461159b91906128bb565b925050819055508181815181106115b4576115b4612861565b602002602001015160075f336001600160a01b03166001600160a01b031681526020019081526020015f205f8282546115ed91906128ce565b9250508190555082818151811061160657611606612861565b60200260200101516001600160a01b0316336001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84848151811061165457611654612861565b602002602001015160405161166b91815260200190565b60405180910390a38061167d816128e1565b9150506114d2565b336116975f546001600160a01b031690565b6001600160a01b0316146116bd5760405162461bcd60e51b81526004016107eb9061272d565b600654600160d81b900460ff16156116e75760405162461bcd60e51b81526004016107eb90612762565b6006805460ff60d81b1916600160d81b179055565b6001600160a01b03831661175e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107eb565b6001600160a01b0382166117bf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107eb565b6001600160a01b038381165f8181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166118835760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107eb565b6001600160a01b0382166118e55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107eb565b5f81116119465760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016107eb565b600654600160d81b900460ff1615801561199a57505f546001600160a01b0384811691161480159061198157506001600160a01b0383163014155b801561199a57505f546001600160a01b03838116911614155b156119dd5760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81b9bdd08195b98589b1959606a1b60448201526064016107eb565b600654600160d01b900460ff1615611c9e575f546001600160a01b03848116911614801590611a1957505f546001600160a01b03838116911614155b8015611a2d57506001600160a01b03821615155b8015611a4457506001600160a01b03821661dead14155b8015611a5a5750600654600160c81b900460ff16155b15611c9e576001600160a01b0383165f908152600b602052604090205460ff168015611a9e57506001600160a01b0382165f908152600a602052604090205460ff16155b15611b7157600154811115611b035760405162461bcd60e51b815260206004820152602560248201527f427579207472616e7366657220616d6f756e74206578636565647320746865206044820152640dac2f0a8f60db1b60648201526084016107eb565b6002546001600160a01b0383165f90815260076020526040902054611b2890836128bb565b1115611b6c5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b60448201526064016107eb565b611c9e565b6001600160a01b0382165f908152600b602052604090205460ff168015611bb057506001600160a01b0383165f908152600a602052604090205460ff16155b15611c1657600154811115611b6c5760405162461bcd60e51b815260206004820152602660248201527f53656c6c207472616e7366657220616d6f756e74206578636565647320746865604482015265040dac2f0a8f60d31b60648201526084016107eb565b6001600160a01b0382165f908152600a602052604090205460ff16611c9e576002546001600160a01b0383165f90815260076020526040902054611c5a90836128bb565b1115611c9e5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b60448201526064016107eb565b600354305f90815260076020526040902054108015908190611cca5750600654600160c81b900460ff16155b8015611cee57506001600160a01b0384165f908152600b602052604090205460ff16155b8015611d1257506001600160a01b0384165f9081526009602052604090205460ff16155b8015611d3657506001600160a01b0383165f9081526009602052604090205460ff16155b15611d64576006805460ff60c81b1916600160c81b179055611d566120bf565b6006805460ff60c81b191690555b6006546001600160a01b0385165f9081526009602052604090205460ff600160c81b909204821615911680611db057506001600160a01b0384165f9081526009602052604090205460ff165b15611db857505f5b6001600160a01b0385165f9081526007602052604090205483811015611df05760405162461bcd60e51b81526004016107eb90612875565b5f8215611f26576001600160a01b0386165f908152600b602052604090205460ff168015611e295750600654600160a81b900460ff1615155b15611e5a576006546103e890611e4990600160a81b900460ff16876127cb565b611e5391906127e2565b9050611eb9565b6001600160a01b0387165f908152600b602052604090205460ff168015611e8c5750600654600160a01b900460ff1615155b15611eb9576006546103e890611eac90600160a01b900460ff16876127cb565b611eb691906127e2565b90505b8015611f26576001600160a01b0387165f8181526007602090815260408083208054869003905530808452928190208054860190555184815297849003979192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b6001600160a01b038088165f8181526007602052604080822080548a900390559289168082529083902080548901905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611f879089815260200190565b60405180910390a350505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291515f92839290871691611ff391906128f9565b5f604051808303815f865af19150503d805f811461202c576040519150601f19603f3d011682016040523d82523d5f602084013e612031565b606091505b509150915081801561205b57508051158061205b57508080602001905181019061205b9190612914565b6120b85760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657248656c7065723a20494e5445524e414c205452414e5346456044820152671497d1905253115160c21b60648201526084016107eb565b5050505050565b6003545f6120ce8260146127cb565b305f9081526007602052604090205411156120f4576003546120f19060146127cb565b91505b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061212757612127612861565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061216f5761216f612861565b6001600160a01b039092166020928302919091019091015260405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac947906121c69086905f9086903090429060040161292f565b5f604051808303815f87803b1580156121dd575f80fd5b505af11580156121ef573d5f803e3d5ffd5b5047925050811590506123a8576006545f9060649061221890600160b01b900460ff16846127cb565b61222291906127e2565b6006549091505f9060649061224190600160c01b900460ff16856127cb565b61224b91906127e2565b90505f8161225984866128ce565b61226391906128ce565b6006546040519192506001600160a01b03169083905f81818185875af1925050503d805f81146122ae576040519150601f19603f3d011682016040523d82523d5f602084013e6122b3565b606091505b50506005546040519197506001600160a01b03169082905f81818185875af1925050503d805f8114612300576040519150601f19603f3d011682016040523d82523d5f602084013e612305565b606091505b50506004546040519197506001600160a01b03169084905f81818185875af1925050503d805f8114612352576040519150601f19603f3d011682016040523d82523d5f602084013e612357565b606091505b50506040805189815260208101859052908101859052606081018390529096507f93efcf28fbf701a930e0ad258987a2e4f08eb3aa99f9c02029e7ba049f69405f9060800160405180910390a15050505b50505050565b5f5b838110156123c85781810151838201526020016123b0565b50505f910152565b602081525f82518060208401526123ee8160408501602087016123ae565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114612418575f80fd5b919050565b5f806040838503121561242e575f80fd5b61243783612402565b946020939093013593505050565b5f805f60608486031215612457575f80fd5b61246084612402565b925061246e60208501612402565b9150604084013590509250925092565b5f6020828403121561248e575f80fd5b5035919050565b803560ff81168114612418575f80fd5b5f805f606084860312156124b7575f80fd5b6124c084612495565b92506124ce60208501612495565b91506124dc60408501612495565b90509250925092565b5f80604083850312156124f6575f80fd5b6124ff83612495565b915061250d60208401612495565b90509250929050565b8015158114612523575f80fd5b50565b5f8060408385031215612537575f80fd5b61254083612402565b9150602083013561255081612516565b809150509250929050565b5f6020828403121561256b575f80fd5b61257482612402565b9392505050565b5f806040838503121561258c575f80fd5b61259583612402565b915061250d60208401612402565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156125e0576125e06125a3565b604052919050565b5f67ffffffffffffffff821115612601576126016125a3565b5060051b60200190565b5f82601f83011261261a575f80fd5b8135602061262f61262a836125e8565b6125b7565b82815260059290921b8401810191818101908684111561264d575f80fd5b8286015b848110156126685780358352918301918301612651565b509695505050505050565b5f8060408385031215612684575f80fd5b823567ffffffffffffffff8082111561269b575f80fd5b818501915085601f8301126126ae575f80fd5b813560206126be61262a836125e8565b82815260059290921b840181019181810190898411156126dc575f80fd5b948201945b83861015612701576126f286612402565b825294820194908201906126e1565b96505086013592505080821115612716575f80fd5b506127238582860161260b565b9150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f105b1c9958591e481b185d5b98da195960821b604082015260600190565b5f805f6060848603121561279e575f80fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176107ad576107ad6127b7565b5f826127fc57634e487b7160e01b5f52601260045260245ffd5b500490565b60ff81811683821601908111156107ad576107ad6127b7565b602080825260169082015275416464726573732063616e6e6f74206265207a65726f60501b604082015260600190565b5f6020828403121561285a575f80fd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b808201808211156107ad576107ad6127b7565b818103818111156107ad576107ad6127b7565b5f600182016128f2576128f26127b7565b5060010190565b5f825161290a8184602087016123ae565b9190910192915050565b5f60208284031215612924575f80fd5b815161257481612516565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b8181101561297d5784516001600160a01b031683529383019391830191600101612958565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220178eaf2cc771ce39c41795d78522427af42d56bf7f74583545feceadaccf3d8264736f6c63430008150033
Verified Source Code Partial Match
Compiler: v0.8.21+commit.d9974bed
EVM: shanghai
Optimization: Yes (200 runs)
EchoMetrix.sol 387 lines
/**
Website: https://echometrixapp.com
Whitepaper: https://docs.echometrixapp.com
Twitter: https://x.com/EchoMetrixApp
Telegram: https://t.me/EchoMetrix
**/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
pragma experimental ABIEncoderV2;
abstract contract Ownable {
address private _owner;
constructor() {
_owner = msg.sender;
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == msg.sender, "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
_owner = address(0);
}
}
library SafeERC20 {
function safeTransfer(address token, address to, uint256 value) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: INTERNAL TRANSFER_FAILED');
}
}
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external;
}
interface IUniswapV2Factory {
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 swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) external;
function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
}
contract EchoMetrix is Ownable {
string private constant _name = unicode"EchoMetrix";
string private constant _symbol = unicode"MTX";
uint256 private constant _totalSupply = 100_000_000 * 1e18;
uint256 public maxTransactionAmount = 2_000_000 * 1e18;
uint256 public maxWallet = 2_000_000 * 1e18;
uint256 public swapTokensAtAmount = (_totalSupply * 2) / 10000;
address private revWallet = 0x245Ca59de50aBe0b15bd1d88FaBDbd6AbDF40110;
address private treasuryWallet = 0xD411097Af512Dd1Ca90964a10B173cb7bA6c1d64;
address private teamWallet = 0xE18439135EF03389B4eFEef8970DE2e840A24beE;
address private constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
//address private constant WETH = 0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9;
uint8 public buyTotalFees = 35;
uint8 public sellTotalFees = 35;
uint8 public revFee = 50;
uint8 public treasuryFee = 25;
uint8 public teamFee = 25;
bool private swapping;
bool public limitsInEffect = true;
bool private launched;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
event SwapAndLiquify(uint256 tokensSwapped, uint256 teamETH, uint256 revETH, uint256 TreasuryETH);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
IUniswapV2Router02 public constant uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
//IUniswapV2Router02 public constant uniswapV2Router = IUniswapV2Router02(0xC532a74256D3Db42D0Bf7a0400fEFDbad7694008);
address public immutable uniswapV2Pair;
constructor() {
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), WETH);
automatedMarketMakerPairs[uniswapV2Pair] = true;
address airdropWallet = 0xe6b3Cccfa922880364C0F33935e042b115812b7E;
setExcludedFromFees(owner(), true);
setExcludedFromFees(address(this), true);
setExcludedFromFees(address(0xdead), true);
setExcludedFromFees(teamWallet, true);
setExcludedFromFees(revWallet, true);
setExcludedFromFees(treasuryWallet, true);
setExcludedFromMaxTransaction(owner(), true);
setExcludedFromMaxTransaction(address(uniswapV2Router), true);
setExcludedFromMaxTransaction(address(this), true);
setExcludedFromMaxTransaction(address(0xdead), true);
setExcludedFromMaxTransaction(address(uniswapV2Pair), true);
setExcludedFromMaxTransaction(teamWallet, true);
setExcludedFromMaxTransaction(revWallet, true);
setExcludedFromMaxTransaction(treasuryWallet, true);
_balances[msg.sender] = 60_000_000 * 1e18;
emit Transfer(address(0), msg.sender, _balances[msg.sender]);
_balances[treasuryWallet] = 20_000_000 * 1e18;
emit Transfer(address(0), treasuryWallet, _balances[treasuryWallet]);
_balances[airdropWallet] = 15_000_000 * 1e18;
emit Transfer(address(0), airdropWallet, _balances[airdropWallet]);
_balances[teamWallet] = 5_000_000 * 1e18;
emit Transfer(address(0), teamWallet, _balances[teamWallet]);
_approve(address(this), address(uniswapV2Router), type(uint256).max);
}
receive() external payable {}
function name() public pure returns (string memory) {
return _name;
}
function symbol() public pure returns (string memory) {
return _symbol;
}
function decimals() public pure returns (uint8) {
return 18;
}
function totalSupply() public pure returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
function allowance(address owner, address spender) public view returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) external returns (bool) {
_approve(msg.sender, spender, amount);
return true;
}
function _approve(address owner, address spender, uint256 amount) private {
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 transfer(address recipient, uint256 amount) external returns (bool) {
_transfer(msg.sender, recipient, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
uint256 currentAllowance = _allowances[sender][msg.sender];
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, msg.sender, currentAllowance - amount);
}
}
_transfer(sender, recipient, amount);
return true;
}
function _transfer(address from, address to, uint256 amount) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
if (!launched && (from != owner() && from != address(this) && to != owner())) {
revert("Trading not enabled");
}
if (limitsInEffect) {
if (from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !swapping) {
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTx");
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
} else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxTransactionAmount,"Sell transfer amount exceeds the maxTx");
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
}
}
bool canSwap = balanceOf(address(this)) >= swapTokensAtAmount;
if (canSwap && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 senderBalance = _balances[from];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
uint256 fees = 0;
if (takeFee) {
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = (amount * sellTotalFees) / 1000;
} else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = (amount * buyTotalFees) / 1000;
}
if (fees > 0) {
unchecked {
amount = amount - fees;
_balances[from] -= fees;
_balances[address(this)] += fees;
}
emit Transfer(from, address(this), fees);
}
}
unchecked {
_balances[from] -= amount;
_balances[to] += amount;
}
emit Transfer(from, to, amount);
}
function removeLimits() external onlyOwner {
limitsInEffect = false;
}
function setDistributionFees(uint8 _RevFee, uint8 _TreasuryFee, uint8 _teamFee) external onlyOwner {
revFee = _RevFee;
treasuryFee = _TreasuryFee;
teamFee = _teamFee;
require((revFee + treasuryFee + teamFee) == 100, "Distribution have to be equal to 100%");
}
function setFees(uint8 _buyTotalFees, uint8 _sellTotalFees) external onlyOwner {
require(_buyTotalFees <= 60, "Buy fees must be less than or equal to 6%");
require(_sellTotalFees <= 60, "Sell fees must be less than or equal to 6%");
buyTotalFees = _buyTotalFees;
sellTotalFees = _sellTotalFees;
}
function setExcludedFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
}
function setExcludedFromMaxTransaction(address account, bool excluded) public onlyOwner {
_isExcludedMaxTransactionAmount[account] = excluded;
}
function airdropWallets(address[] memory addresses, uint256[] memory amounts) external onlyOwner {
require(!launched, "Already launched");
for (uint256 i = 0; i < addresses.length; i++) {
require(_balances[msg.sender] >= amounts[i], "ERC20: transfer amount exceeds balance");
_balances[addresses[i]] += amounts[i];
_balances[msg.sender] -= amounts[i];
emit Transfer(msg.sender, addresses[i], amounts[i]);
}
}
function openTrade() external onlyOwner {
require(!launched, "Already launched");
launched = true;
}
function unleashTheMTX() external payable onlyOwner {
require(!launched, "Already launched");
uniswapV2Router.addLiquidityETH{value: msg.value}(
address(this),
_balances[address(this)],
0,
0,
teamWallet,
block.timestamp
);
}
function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner {
require(pair != uniswapV2Pair, "The pair cannot be removed");
automatedMarketMakerPairs[pair] = value;
}
function setSwapAtAmount(uint256 newSwapAmount) external onlyOwner {
require(newSwapAmount >= (totalSupply() * 1) / 100000, "Swap amount cannot be lower than 0.001% of the supply");
require(newSwapAmount <= (totalSupply() * 5) / 1000, "Swap amount cannot be higher than 0.5% of the supply");
swapTokensAtAmount = newSwapAmount;
}
function setMaxTxnAmount(uint256 newMaxTx) external onlyOwner {
require(newMaxTx >= ((totalSupply() * 1) / 1000) / 1e18, "Cannot set max transaction lower than 0.1%");
maxTransactionAmount = newMaxTx * (10**18);
}
function setMaxWalletAmount(uint256 newMaxWallet) external onlyOwner {
require(newMaxWallet >= ((totalSupply() * 1) / 1000) / 1e18, "Cannot set max wallet lower than 0.1%");
maxWallet = newMaxWallet * (10**18);
}
function updateRevWallet(address newAddress) external onlyOwner {
require(newAddress != address(0), "Address cannot be zero");
revWallet = newAddress;
}
function updateTreasuryWallet(address newAddress) external onlyOwner {
require(newAddress != address(0), "Address cannot be zero");
treasuryWallet = newAddress;
}
function updateTeamWallet(address newAddress) external onlyOwner {
require(newAddress != address(0), "Address cannot be zero");
teamWallet = newAddress;
}
function excludedFromFee(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function withdrawStuckToken(address token, address to) external onlyOwner {
uint256 _contractBalance = IERC20(token).balanceOf(address(this));
SafeERC20.safeTransfer(token, to, _contractBalance); // Use safeTransfer
}
function withdrawStuckETH(address addr) external onlyOwner {
require(addr != address(0), "Invalid address");
(bool success, ) = addr.call{value: address(this).balance}("");
require(success, "Withdrawal failed");
}
function swapBack() private {
uint256 swapThreshold = swapTokensAtAmount;
bool success;
if (balanceOf(address(this)) > swapTokensAtAmount * 20) {
swapThreshold = swapTokensAtAmount * 20;
}
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = WETH;
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold, 0, path, address(this), block.timestamp);
uint256 ethBalance = address(this).balance;
if (ethBalance > 0) {
uint256 ethForRev = (ethBalance * revFee) / 100;
uint256 ethForTeam = (ethBalance * teamFee) / 100;
uint256 ethForTreasury = ethBalance - ethForRev - ethForTeam;
(success, ) = address(teamWallet).call{value: ethForTeam}("");
(success, ) = address(treasuryWallet).call{value: ethForTreasury}("");
(success, ) = address(revWallet).call{value: ethForRev}("");
emit SwapAndLiquify(swapThreshold, ethForTeam, ethForRev, ethForTreasury);
}
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTotalFees 0xd85ba063 → uint8
decimals 0x313ce567 → uint8
excludedFromFee 0x85ecafd7 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
revFee 0x21d37e39 → uint8
sellTotalFees 0x6a486a8e → uint8
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamFee 0xd7c94efd → uint8
totalSupply 0x18160ddd → uint256
treasuryFee 0xcc32d176 → uint8
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
airdropWallets 0xe7107947
address[] addresses
uint256[] amounts
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
openTrade 0xfb201b1d
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setDistributionFees 0x3c090c46
uint8 _RevFee
uint8 _TreasuryFee
uint8 _teamFee
setExcludedFromFees 0x590ffdce
address account
bool excluded
setExcludedFromMaxTransaction 0x66650dae
address account
bool excluded
setFees 0x4fcd2446
uint8 _buyTotalFees
uint8 _sellTotalFees
setMaxTxnAmount 0x74010ece
uint256 newMaxTx
setMaxWalletAmount 0x27a14fc2
uint256 newMaxWallet
setSwapAtAmount 0x6402511e
uint256 newSwapAmount
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
unleashTheMTX 0x1e0f7787
No parameters
updateRevWallet 0xadfa29e5
address newAddress
updateTeamWallet 0x7cb332bb
address newAddress
updateTreasuryWallet 0x809d458d
address newAddress
withdrawStuckETH 0xd201b01e
address addr
withdrawStuckToken 0xbc205ad3
address token
address to
Recent Transactions
No transactions found for this address