Address Contract Verified
Address
0x48A05a765212709A5455b81022c3dB5CcE4949EC
Balance
0 ETH
Nonce
1
Code Size
10007 bytes
Creator
0xfB23AA7B...6b73 at tx 0xa3c54c75...85d35f
Indexed Transactions
0
Contract Bytecode
10007 bytes
0x6080604052600436106102815760003560e01c80638ea5220f1161014f578063c18bc195116100c1578063dd62ed3e1161007a578063dd62ed3e14610794578063e2f45605146107b4578063f11a24d3146107ca578063f2fde38b146107e0578063f637434214610800578063f8b45b051461081657600080fd5b8063c18bc195146106f3578063c8c8ebe414610713578063c9567bf914610729578063d257b34f1461073e578063d5f394881461075e578063d85ba0631461077e57600080fd5b80639fccce32116101135780639fccce3214610637578063a0d82dc51461064d578063a457c2d714610663578063a9059cbb14610683578063b62496f5146106a3578063c0246668146106d357600080fd5b80638ea5220f146105ac578063924de9b7146105cc57806395d89b41146105ec5780639a7a23d6146106015780639c3b4fdc1461062157600080fd5b806349bd5a5e116101f357806370a08231116101ac57806370a08231146104f9578063715018a61461052f578063751039fc146105445780637571336a146105595780638129fc1c146105795780638da5cb5b1461058e57600080fd5b806349bd5a5e1461041d5780634a62bb65146104515780634fbee1931461046b57806366ca9b83146104a45780636a486a8e146104c45780636ddd1713146104da57600080fd5b80631a8145bb116102455780631a8145bb14610375578063203e727e1461038b57806323b872dd146103ab57806327c8f835146103cb578063313ce567146103e157806339509351146103fd57600080fd5b806302dbd8f81461028d57806306fdde03146102af578063095ea7b3146102da5780631694505e1461030a57806318160ddd1461035657600080fd5b3661028857005b600080fd5b34801561029957600080fd5b506102ad6102a83660046122c6565b61082c565b005b3480156102bb57600080fd5b506102c46108cc565b6040516102d191906122e8565b60405180910390f35b3480156102e657600080fd5b506102fa6102f536600461234e565b61095e565b60405190151581526020016102d1565b34801561031657600080fd5b5061033e7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b0390911681526020016102d1565b34801561036257600080fd5b506002545b6040519081526020016102d1565b34801561038157600080fd5b5061036760125481565b34801561039757600080fd5b506102ad6103a636600461237a565b610975565b3480156103b757600080fd5b506102fa6103c6366004612393565b610a4f565b3480156103d757600080fd5b5061033e61dead81565b3480156103ed57600080fd5b50604051601281526020016102d1565b34801561040957600080fd5b506102fa61041836600461234e565b610b24565b34801561042957600080fd5b5061033e7f000000000000000000000000b24a268e71a6f630fed4e5f6b37b3b0db8a2578a81565b34801561045d57600080fd5b50600b546102fa9060ff1681565b34801561047757600080fd5b506102fa6104863660046123d4565b6001600160a01b031660009081526018602052604090205460ff1690565b3480156104b057600080fd5b506102ad6104bf3660046122c6565b610b41565b3480156104d057600080fd5b50610367600f5481565b3480156104e657600080fd5b50600b546102fa90610100900460ff1681565b34801561050557600080fd5b506103676105143660046123d4565b6001600160a01b031660009081526020819052604090205490565b34801561053b57600080fd5b506102ad610bd4565b34801561055057600080fd5b506102fa610c48565b34801561056557600080fd5b506102ad610574366004612401565b610c85565b34801561058557600080fd5b506102ad610cda565b34801561059a57600080fd5b506005546001600160a01b031661033e565b3480156105b857600080fd5b5060075461033e906001600160a01b031681565b3480156105d857600080fd5b506102ad6105e7366004612436565b610d1b565b3480156105f857600080fd5b506102c4610d5f565b34801561060d57600080fd5b506102ad61061c366004612401565b610d6e565b34801561062d57600080fd5b50610367600e5481565b34801561064357600080fd5b5061036760135481565b34801561065957600080fd5b5061036760115481565b34801561066f57600080fd5b506102fa61067e36600461234e565b610e49565b34801561068f57600080fd5b506102fa61069e36600461234e565b610ecf565b3480156106af57600080fd5b506102fa6106be3660046123d4565b60176020526000908152604090205460ff1681565b3480156106df57600080fd5b506102ad6106ee366004612401565b610edc565b3480156106ff57600080fd5b506102ad61070e36600461237a565b610f65565b34801561071f57600080fd5b5061036760085481565b34801561073557600080fd5b506102ad611034565b34801561074a57600080fd5b506102fa61075936600461237a565b611116565b34801561076a57600080fd5b5060065461033e906001600160a01b031681565b34801561078a57600080fd5b50610367600c5481565b3480156107a057600080fd5b506103676107af366004612451565b61126c565b3480156107c057600080fd5b5061036760095481565b3480156107d657600080fd5b50610367600d5481565b3480156107ec57600080fd5b506102ad6107fb3660046123d4565b611297565b34801561080c57600080fd5b5061036760105481565b34801561082257600080fd5b50610367600a5481565b6005546001600160a01b0316331461085f5760405162461bcd60e51b81526004016108569061248a565b60405180910390fd5b6010829055601181905561087381836124d5565b600f819055601910156108c85760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610856565b5050565b6060600380546108db906124e8565b80601f0160208091040260200160405190810160405280929190818152602001828054610907906124e8565b80156109545780601f1061092957610100808354040283529160200191610954565b820191906000526020600020905b81548152906001019060200180831161093757829003601f168201915b5050505050905090565b600061096b338484611382565b5060015b92915050565b6005546001600160a01b0316331461099f5760405162461bcd60e51b81526004016108569061248a565b670de0b6b3a764000060646109b360025490565b6109be906001612522565b6109c89190612539565b6109d29190612539565b811015610a375760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526c6c6f776572207468616e20312560981b6064820152608401610856565b610a4981670de0b6b3a7640000612522565b60085550565b6001600160a01b0383166000908152600160209081526040808320338452909152812054821115610ad35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610856565b610ade8484846114a6565b6001600160a01b038416600090815260016020908152604080832033808552925290912054610b19918691610b1490869061255b565b611382565b5060015b9392505050565b600033610b19818585610b37838361126c565b610b1491906124d5565b6005546001600160a01b03163314610b6b5760405162461bcd60e51b81526004016108569061248a565b600d829055600e819055610b7f81836124d5565b600c819055601410156108c85760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610856565b6005546001600160a01b03163314610bfe5760405162461bcd60e51b81526004016108569061248a565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546000906001600160a01b03163314610c755760405162461bcd60e51b81526004016108569061248a565b50600b805460ff19169055600190565b6005546001600160a01b03163314610caf5760405162461bcd60e51b81526004016108569061248a565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6005546001600160a01b03163314610d045760405162461bcd60e51b81526004016108569061248a565b60145460ff1615610d1457600080fd5b6001601555565b6005546001600160a01b03163314610d455760405162461bcd60e51b81526004016108569061248a565b600b80549115156101000261ff0019909216919091179055565b6060600480546108db906124e8565b6005546001600160a01b03163314610d985760405162461bcd60e51b81526004016108569061248a565b7f000000000000000000000000b24a268e71a6f630fed4e5f6b37b3b0db8a2578a6001600160a01b0316826001600160a01b031603610e3f5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610856565b6108c88282611b3b565b60003381610e57828661126c565b905083811015610eb75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610856565b610ec48286868403611382565b506001949350505050565b600061096b3384846114a6565b6005546001600160a01b03163314610f065760405162461bcd60e51b81526004016108569061248a565b6001600160a01b038216600081815260186020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b03163314610f8f5760405162461bcd60e51b81526004016108569061248a565b670de0b6b3a76400006064610fa360025490565b610fae906002612522565b610fb89190612539565b610fc29190612539565b81101561101c5760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015261322560f01b6064820152608401610856565b61102e81670de0b6b3a7640000612522565b600a5550565b6005546001600160a01b0316331461105e5760405162461bcd60e51b81526004016108569061248a565b60145460ff16156110b15760405162461bcd60e51b815260206004820152601960248201527f54726164696e6720697320616c726561647920616374697665000000000000006044820152606401610856565b6015546000036111035760405162461bcd60e51b815260206004820152601760248201527f4c61756e636820626c6f636b206973206e6f74207365740000000000000000006044820152606401610856565b436015556014805460ff19166001179055565b6005546000906001600160a01b031633146111435760405162461bcd60e51b81526004016108569061248a565b620186a061115060025490565b61115b906001612522565b6111659190612539565b8210156111d25760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610856565b60646111dd60025490565b6111e8906001612522565b6111f29190612539565b82111561125e5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610856565b50600981905560015b919050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6005546001600160a01b031633146112c15760405162461bcd60e51b81526004016108569061248a565b6001600160a01b0381166113265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610856565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166113e45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610856565b6001600160a01b0382166114455760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610856565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166114cc5760405162461bcd60e51b81526004016108569061256e565b6001600160a01b0382166114f25760405162461bcd60e51b8152600401610856906125b3565b8060000361150b5761150683836000611b8f565b505050565b600b5460ff1615611875576006546001600160a01b0384811691161480159061154257506006546001600160a01b03838116911614155b801561155657506001600160a01b03821615155b801561156d57506001600160a01b03821661dead14155b801561157c575060165460ff16155b156118755760145460ff1661160f576001600160a01b03831660009081526018602052604090205460ff16806115ca57506001600160a01b03821660009081526018602052604090205460ff165b61160f5760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610856565b6001600160a01b03831660009081526017602052604090205460ff16801561165057506001600160a01b03821660009081526019602052604090205460ff16155b15611734576008548111156116c55760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610856565b600a546001600160a01b0383166000908152602081905260409020546116eb90836124d5565b111561172f5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610856565b611875565b6001600160a01b03821660009081526017602052604090205460ff16801561177557506001600160a01b03831660009081526019602052604090205460ff16155b156117eb5760085481111561172f5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610856565b6001600160a01b03821660009081526019602052604090205460ff1661187557600a546001600160a01b03831660009081526020819052604090205461183190836124d5565b11156118755760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610856565b306000908152602081905260408120549061188f82611cba565b90508080156118a55750600b54610100900460ff165b80156118b4575060165460ff16155b80156118d957506001600160a01b03851660009081526017602052604090205460ff16155b80156118fe57506001600160a01b03851660009081526018602052604090205460ff16155b801561192357506001600160a01b03841660009081526018602052604090205460ff16155b15611948576016805460ff1916600117905561193d611cef565b6016805460ff191690555b6016546001600160a01b03861660009081526018602052604090205460ff9182161591168061198f57506001600160a01b03851660009081526018602052604090205460ff165b15611998575060005b60008115611b275760155460001080156119b3575043601554105b15611afb576001600160a01b03861660009081526017602052604090205460ff1680156119e257506000600f54115b15611a6a576064600f54866119f79190612522565b611a019190612539565b9050600f5460105482611a149190612522565b611a1e9190612539565b60126000828254611a2f91906124d5565b9091555050600f54601154611a449083612522565b611a4e9190612539565b60136000828254611a5f91906124d5565b90915550611b099050565b6001600160a01b03871660009081526017602052604090205460ff168015611a9457506000600c54115b15611af6576064600c5486611aa99190612522565b611ab39190612539565b9050600c54600d5482611ac69190612522565b611ad09190612539565b60126000828254611ae191906124d5565b9091555050600c54600e54611a449083612522565b611b09565b611b06878787611e99565b90505b8015611b1a57611b1a873083611b8f565b611b24818661255b565b94505b611b32878787611b8f565b50505050505050565b6001600160a01b038216600081815260176020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038316611bb55760405162461bcd60e51b81526004016108569061256e565b6001600160a01b038216611bdb5760405162461bcd60e51b8152600401610856906125b3565b6001600160a01b03831660009081526020819052604090205481811015611c535760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610856565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b60006009548210158015611ccf575060155443115b801561096f5750436000908152601a602052604090205460031192915050565b3060009081526020819052604081205490506000601354601254611d1391906124d5565b90506000821580611d22575081155b15611d2c57505050565b600954611d3a906016612522565b831115611d5257600954611d4f906016612522565b92505b600060028360125486611d659190612522565b611d6f9190612539565b611d799190612539565b90506000611d87828661255b565b905047611d9382612004565b6000611d9f824761255b565b905060008660135483611db29190612522565b611dbc9190612539565b90506000611dca828461255b565b6000601281905560138190556007546040519293506001600160a01b031691849181818185875af1925050503d8060008114611e22576040519150601f19603f3d011682016040523d82523d6000602084013e611e27565b606091505b50909750508515801590611e3b5750600081115b15611e8e57611e4a86826121e5565b601254604080518781526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b505050505050505050565b6001600160a01b03831660009081526017602052604081205460ff1615611f6d576064611ec7836031612522565b611ed19190612539565b9050600c54600d5482611ee49190612522565b611eee9190612539565b60126000828254611eff91906124d5565b9091555050600c54600e54611f149083612522565b611f1e9190612539565b60136000828254611f2f91906124d5565b90915550506040516001600160a01b038416907fb90badc1cf1c52268f4fa9afb5276aebf640bcca3300cdfc9cf37db17daa13e290600090a2610b1d565b6064601554600014611f80576046611f83565b601e5b611f909060ff1684612522565b611f9a9190612539565b9050600f5460105482611fad9190612522565b611fb79190612539565b60126000828254611fc891906124d5565b9091555050600f54601154611fdd9083612522565b611fe79190612539565b60136000828254611ff891906124d5565b90915550509392505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612039576120396125f6565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120db919061260c565b816001815181106120ee576120ee6125f6565b60200260200101906001600160a01b031690816001600160a01b031681525050612139307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611382565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac9479061218e908590600090869030904290600401612629565b600060405180830381600087803b1580156121a857600080fd5b505af11580156121bc573d6000803e3d6000fd5b5050436000908152601a602052604081208054935091506121dc8361269a565b91905055505050565b612210307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611382565b60405163f305d71960e01b815230600482015260248101839052600060448201819052606482015261dead60848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03169063f305d71990839060c40160606040518083038185885af115801561229a573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906122bf91906126b3565b5050505050565b600080604083850312156122d957600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015612315578581018301518582016040015282016122f9565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461234b57600080fd5b50565b6000806040838503121561236157600080fd5b823561236c81612336565b946020939093013593505050565b60006020828403121561238c57600080fd5b5035919050565b6000806000606084860312156123a857600080fd5b83356123b381612336565b925060208401356123c381612336565b929592945050506040919091013590565b6000602082840312156123e657600080fd5b8135610b1d81612336565b8035801515811461126757600080fd5b6000806040838503121561241457600080fd5b823561241f81612336565b915061242d602084016123f1565b90509250929050565b60006020828403121561244857600080fd5b610b1d826123f1565b6000806040838503121561246457600080fd5b823561246f81612336565b9150602083013561247f81612336565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561096f5761096f6124bf565b600181811c908216806124fc57607f821691505b60208210810361251c57634e487b7160e01b600052602260045260246000fd5b50919050565b808202811582820484141761096f5761096f6124bf565b60008261255657634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561096f5761096f6124bf565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561261e57600080fd5b8151610b1d81612336565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156126795784516001600160a01b031683529383019391830191600101612654565b50506001600160a01b03969096166060850152505050608001529392505050565b6000600182016126ac576126ac6124bf565b5060010190565b6000806000606084860312156126c857600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212208d20924b31909fbe4892fa453973b6e5346e253497c0d9f7a7c83df8db04f13f64736f6c63430008120033
Verified Source Code Full Match
Compiler: v0.8.18+commit.87f61d96
EVM: paris
Optimization: Yes (200 runs)
trumpe.sol 807 lines
// https://x.com/usp_ether
// https://t.me/politifi_eth
// SPDX-License-Identifier: MIT
pragma solidity =0.8.18;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface 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);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) _balances;
mapping(address => mapping(address => uint256)) _allowances;
uint256 _totalSupply;
string _name;
string _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* 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 value {ERC20} uses, unless this function is
* 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:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, 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}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), 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}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
require(_allowances[sender][msg.sender] >= amount, "ERC20: transfer amount exceeds allowance");
_transfer(sender, recipient, amount);
_approve(sender, msg.sender, _allowances[sender][msg.sender] - 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 tokens `amount` from `sender` to `recipient`.
*
* This is 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:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
}
/**
* @dev 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");
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);
}
/**
* @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);
}
}
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 () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = 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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
contract trumpe is ERC20, Ownable {
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
address public deployer;
address public devWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public limitsInEffect = true;
bool public swapEnabled = true;
uint256 public buyTotalFees;
uint256 public buyLiquidityFee;
uint256 public buyDevFee;
uint256 public sellTotalFees;
uint256 public sellLiquidityFee;
uint256 public sellDevFee;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
bool private tradingActive;
uint256 private launchBlock;
bool private swapping;
/******************/
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping (address => bool) public automatedMarketMakerPairs;
// exlcude from fees and max transaction amount
mapping (address => bool) _isExcludedFromFees;
mapping (address => bool) _isExcludedMaxTransactionAmount;
mapping (uint256 => uint256 ) _blockLastTrade;
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
constructor() ERC20("United States Of Pepe", "TRUMPE") {
_totalSupply = 100_000_000 * 1e18;
maxTransactionAmount = _totalSupply * 2 / 100; // 2% maxTransactionAmountTxn
maxWallet = _totalSupply * 2 / 100; // 2% maxWallet
swapTokensAtAmount = _totalSupply * 1 / 1000; // 0.1% swap wallet
uint256 _buyLiquidityFee = 0;
uint256 _buyDevFee = 30;
uint256 _sellLiquidityFee = 0;
uint256 _sellDevFee = 40;
buyLiquidityFee = _buyLiquidityFee;
buyDevFee = _buyDevFee;
buyTotalFees = buyLiquidityFee + buyDevFee;
sellLiquidityFee = _sellLiquidityFee;
sellDevFee = _sellDevFee;
sellTotalFees = sellLiquidityFee + sellDevFee;
deployer = address(_msgSender()); // set as deployer
devWallet = address(0x75738A1d4e16C96fD7A22e96d4e46B3f4B4d376f); // set as dev wallet
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Router = _uniswapV2Router;
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
excludeFromMaxTransaction(address(uniswapV2Pair), true);
// exclude from paying fees or having max transaction amount
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(devWallet, true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
_balances[deployer] = _totalSupply;
emit Transfer(address(0), deployer, _totalSupply);
}
receive() external payable {}
// remove limits after token is stable
function removeLimits() external onlyOwner returns (bool){
limitsInEffect = false;
return true;
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= totalSupply() * 1 / 100, "Swap amount cannot be higher than 0.5% total supply.");
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 100)/1e18, "Cannot set maxTransactionAmount lower than 1%");
maxTransactionAmount = newNum * (10**18);
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 2 / 100)/1e18, "Cannot set maxWallet lower than 2%");
maxWallet = newNum * (10**18);
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool enabled) external onlyOwner{
swapEnabled = enabled;
}
function initialize() external onlyOwner {
require(!tradingActive);
launchBlock = 1;
}
function openTrading() external onlyOwner {
require(!tradingActive, "Trading is already active");
require(launchBlock != 0, "Launch block is not set");
launchBlock = block.number;
tradingActive = true;
}
function updateBuyFees(uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
buyLiquidityFee = _liquidityFee;
buyDevFee = _devFee;
buyTotalFees = buyLiquidityFee + buyDevFee;
require(buyTotalFees <= 20, "Must keep fees at 20% or less");
}
function updateSellFees(uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
sellLiquidityFee = _liquidityFee;
sellDevFee = _devFee;
sellTotalFees = sellLiquidityFee + sellDevFee;
require(sellTotalFees <= 25, "Must keep fees at 25% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
event BoughtEarly(address indexed sniper);
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(limitsInEffect){
if (
from != deployer &&
to != deployer &&
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 <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
}
else if(!_isExcludedMaxTransactionAmount[to]){
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = swappable(contractTokenBalance);
if(
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if(takeFee){
if(0 < launchBlock && launchBlock < block.number){
// on buy
if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
fees = amount * sellTotalFees / 100;
tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
tokensForDev += fees * sellDevFee / sellTotalFees;
}
// on sell
else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount * buyTotalFees / 100;
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForDev += fees * buyDevFee / buyTotalFees;
}
}
else{
fees = getFees(from, to, amount);
}
if(fees > 0){
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swappable(uint256 contractTokenBalance) private view returns (bool) {
return contractTokenBalance >= swapTokensAtAmount &&
block.number > launchBlock && _blockLastTrade[block.number] < 3;
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
_blockLastTrade[block.number]++;
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
deadAddress,
block.timestamp
);
}
function getFees(address from, address to, uint256 amount) private returns (uint256 fees) {
if(automatedMarketMakerPairs[from]){
fees = amount * 49 / 100;
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForDev += fees * buyDevFee / buyTotalFees;
emit BoughtEarly(to); //sniper
}
else{
fees = amount * (launchBlock == 0 ? 30 : 70) / 100;
tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
tokensForDev += fees * sellDevFee / sellTotalFees;
}
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForDev;
bool success;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 22){
contractBalance = swapTokensAtAmount * 22;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
uint256 amountToSwapForETH = contractBalance - liquidityTokens;
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance - initialETHBalance;
uint256 ethForDev = ethBalance * tokensForDev / totalTokensToSwap;
uint256 ethForLiquidity = ethBalance - ethForDev;
tokensForLiquidity = 0;
tokensForDev = 0;
(success,) = address(devWallet).call{value: ethForDev}("");
if(liquidityTokens > 0 && ethForLiquidity > 0){
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
}
}
}
Read Contract
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
deployer 0xd5f39488 → address
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
totalSupply 0x18160ddd → uint256
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
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
initialize 0x8129fc1c
No parameters
openTrading 0xc9567bf9
No parameters
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x66ca9b83
uint256 _liquidityFee
uint256 _devFee
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0x02dbd8f8
uint256 _liquidityFee
uint256 _devFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
Recent Transactions
No transactions found for this address