162 txs
1.6k calls
constructor
constructor(string name, string symbol, uint256 initialSupply, address _treasuryWallet, uint256 _sellThreshold, address _uniswapV2Router)
functions
allowance
viewfunction allowance(address owner, address spender) view returns (uint256)
balanceOf
viewfunction balanceOf(address account) view returns (uint256)
collectedTokens
viewfunction collectedTokens() view returns (uint256)
decimals
viewfunction decimals() view returns (uint8)
liquidityPair
viewfunction liquidityPair() view returns (address)
name
viewfunction name() view returns (string)
owner
viewfunction owner() view returns (address)
SELL_TAX_RATE
viewfunction SELL_TAX_RATE() view returns (uint256)
sellThreshold
viewfunction sellThreshold() view returns (uint256)
symbol
viewfunction symbol() view returns (string)
taxEnabled
viewfunction taxEnabled() view returns (bool)
totalSupply
viewfunction totalSupply() view returns (uint256)
treasuryWallet
viewfunction treasuryWallet() view returns (address)
uniswapV2Factory
viewfunction uniswapV2Factory() view returns (address)
uniswapV2Router
viewfunction uniswapV2Router() view returns (address)
weth
viewfunction weth() view returns (address)
approve
nonpayablefunction approve(address spender, uint256 value) returns (bool)
disableTax
nonpayablefunction disableTax()
manualSellCollectedTokens
nonpayablefunction manualSellCollectedTokens()
renounceOwnership
nonpayablefunction renounceOwnership()
setSellThreshold
nonpayablefunction setSellThreshold(uint256 _sellThreshold)
setTreasuryWallet
nonpayablefunction setTreasuryWallet(address _treasuryWallet)
transfer
nonpayablefunction transfer(address to, uint256 value) returns (bool)
transferFrom
nonpayablefunction transferFrom(address sender, address recipient, uint256 amount) returns (bool)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
Approval
event Approval(address indexed owner, address indexed spender, uint256 value)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Transfer
event Transfer(address indexed from, address indexed to, uint256 value)
errors
ERC20InsufficientAllowance
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed)
ERC20InsufficientBalance
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed)
ERC20InvalidApprover
error ERC20InvalidApprover(address approver)
ERC20InvalidReceiver
error ERC20InvalidReceiver(address receiver)
ERC20InvalidSender
error ERC20InvalidSender(address sender)
ERC20InvalidSpender
error ERC20InvalidSpender(address spender)
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
creation bytecode
0x60e06040526005805460ff60a01b1916600160a01b179055348015610022575f5ffd5b50604051611559380380611559833981016040819052610041916105c1565b338686600361005083826106dd565b50600461005d82826106dd565b5050506001600160a01b03811661008e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61009781610275565b506001600160a01b03811660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa1580156100e0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101049190610797565b6001600160a01b031660a0816001600160a01b031681525050806001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610159573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061017d9190610797565b6001600160a01b0390811660c052600780546001600160a01b03191691851691909117905560098290556101c2336101bd86670de0b6b3a76400006107cb565b6102c6565b60a05160c0516040516364e329cb60e11b81523060048201526001600160a01b0391821660248201525f92919091169063c9c65396906044016020604051808303815f875af1158015610217573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061023b9190610797565b600680546001600160a01b0319166001600160a01b0383161790556080519091506102699030905f196102fe565b505050505050506107fb565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166102ef5760405163ec442f0560e01b81525f6004820152602401610085565b6102fa5f8383610310565b5050565b61030b8383836001610436565b505050565b6001600160a01b03831661033a578060025f82825461032f91906107e8565b909155506103aa9050565b6001600160a01b0383165f908152602081905260409020548181101561038c5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610085565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166103c6576002805482900390556103e4565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161042991815260200190565b60405180910390a3505050565b6001600160a01b03841661045f5760405163e602df0560e01b81525f6004820152602401610085565b6001600160a01b03831661048857604051634a1406b160e11b81525f6004820152602401610085565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561050357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104fa91815260200190565b60405180910390a35b50505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261052c575f5ffd5b81516001600160401b0381111561054557610545610509565b604051601f8201601f19908116603f011681016001600160401b038111828210171561057357610573610509565b60405281815283820160200185101561058a575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80516001600160a01b03811681146105bc575f5ffd5b919050565b5f5f5f5f5f5f60c087890312156105d6575f5ffd5b86516001600160401b038111156105eb575f5ffd5b6105f789828a0161051d565b602089015190975090506001600160401b03811115610614575f5ffd5b61062089828a0161051d565b604089015190965094506106389050606088016105a6565b6080880151909350915061064e60a088016105a6565b90509295509295509295565b600181811c9082168061066e57607f821691505b60208210810361068c57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561030b57805f5260205f20601f840160051c810160208510156106b75750805b601f840160051c820191505b818110156106d6575f81556001016106c3565b5050505050565b81516001600160401b038111156106f6576106f6610509565b61070a81610704845461065a565b84610692565b6020601f82116001811461073c575f83156107255750848201515b5f19600385901b1c1916600184901b1784556106d6565b5f84815260208120601f198516915b8281101561076b578785015182556020948501946001909201910161074b565b508482101561078857868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f602082840312156107a7575f5ffd5b6107b0826105a6565b9392505050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176107e2576107e26107b7565b92915050565b808201808211156107e2576107e26107b7565b60805160a05160c051610d266108335f395f818161023d015261069901525f61027f01525f81816101b701526106e60152610d265ff3fe608060405234801561000f575f5ffd5b506004361061016d575f3560e01c806370a08231116100d957806395d89b4111610093578063a9059cbb1161006e578063a9059cbb14610340578063ced695a414610353578063dd62ed3e1461035b578063f2fde38b14610393575f5ffd5b806395d89b41146103125780639c01bc331461031a578063a8602fea1461032d575f5ffd5b806370a08231146102a1578063715018a6146102c9578063787e9137146102d1578063808a5457146102da578063870bd30b146102ed5780638da5cb5b14610301575f5ffd5b80632d4310c01161012a5780632d4310c014610220578063313ce567146102295780633fc8cef3146102385780634626402b1461025f578063504deacd1461027257806359d0f7131461027a575f5ffd5b806306fdde0314610171578063095ea7b31461018f5780631694505e146101b257806318160ddd146101f15780631aed2caa1461020357806323b872dd1461020d575b5f5ffd5b6101796103a6565b6040516101869190610ab1565b60405180910390f35b6101a261019d366004610b01565b610436565b6040519015158152602001610186565b6101d97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610186565b6002545b604051908152602001610186565b61020b61044f565b005b6101a261021b366004610b29565b610461565b6101f560095481565b60405160128152602001610186565b6101d97f000000000000000000000000000000000000000000000000000000000000000081565b6007546101d9906001600160a01b031681565b6101f560c881565b6101d97f000000000000000000000000000000000000000000000000000000000000000081565b6101f56102af366004610b63565b6001600160a01b03165f9081526020819052604090205490565b61020b610531565b6101f560085481565b6006546101d9906001600160a01b031681565b6005546101a290600160a01b900460ff1681565b6005546001600160a01b03166101d9565b610179610542565b61020b610328366004610b7c565b610551565b61020b61033b366004610b63565b61055e565b6101a261034e366004610b01565b610588565b61020b610595565b6101f5610369366004610b93565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61020b6103a1366004610b63565b6105ac565b6060600380546103b590610bc4565b80601f01602080910402602001604051908101604052809291908181526020018280546103e190610bc4565b801561042c5780601f106104035761010080835404028352916020019161042c565b820191905f5260205f20905b81548152906001019060200180831161040f57829003601f168201915b5050505050905090565b5f336104438185856105ee565b60019150505b92915050565b610457610600565b61045f61062d565b565b6005545f90600160a01b900460ff16158061048957506005546001600160a01b038581169116145b156104a057610499848484610772565b905061052a565b6006546001600160a01b039081169084160361051c575f6127106104c560c885610c10565b6104cf9190610c27565b9050801561051a57600954600854106104ea576104ea61062d565b8060085f8282546104fb9190610c46565b9091555061050b90508184610c59565b9250610518853083610772565b505b505b610527848484610772565b90505b9392505050565b610539610600565b61045f5f610795565b6060600480546103b590610bc4565b610559610600565b600955565b610566610600565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b5f336104438185856107e6565b61059d610600565b6005805460ff60a01b19169055565b6105b4610600565b6001600160a01b0381166105e257604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6105eb81610795565b50565b6105fb8383836001610843565b505050565b6005546001600160a01b0316331461045f5760405163118cdaa760e01b81523360048201526024016105d9565b6008545f0361063857565b600880545f91829055604080516002808252606082018352929392909160208301908036833701905050905030815f8151811061067757610677610c6c565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106106cb576106cb610c6c565b6001600160a01b0392831660209182029290920101526007547f000000000000000000000000000000000000000000000000000000000000000082169163791ac9479185915f918691166107214261012c610c46565b6040518663ffffffff1660e01b8152600401610741959493929190610c80565b5f604051808303815f87803b158015610758575f5ffd5b505af115801561076a573d5f5f3e3d5ffd5b505050505050565b5f3361077f858285610916565b61078a8585856107e6565b506001949350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03831661080f57604051634b637e8f60e11b81525f60048201526024016105d9565b6001600160a01b0382166108385760405163ec442f0560e01b81525f60048201526024016105d9565b6105fb83838361098b565b6001600160a01b03841661086c5760405163e602df0560e01b81525f60048201526024016105d9565b6001600160a01b03831661089557604051634a1406b160e11b81525f60048201526024016105d9565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561091057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161090791815260200190565b60405180910390a35b50505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610910578181101561097d57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105d9565b61091084848484035f610843565b6001600160a01b0383166109b5578060025f8282546109aa9190610c46565b90915550610a259050565b6001600160a01b0383165f9081526020819052604090205481811015610a075760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105d9565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610a4157600280548290039055610a5f565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610aa491815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610afc575f5ffd5b919050565b5f5f60408385031215610b12575f5ffd5b610b1b83610ae6565b946020939093013593505050565b5f5f5f60608486031215610b3b575f5ffd5b610b4484610ae6565b9250610b5260208501610ae6565b929592945050506040919091013590565b5f60208284031215610b73575f5ffd5b61052a82610ae6565b5f60208284031215610b8c575f5ffd5b5035919050565b5f5f60408385031215610ba4575f5ffd5b610bad83610ae6565b9150610bbb60208401610ae6565b90509250929050565b600181811c90821680610bd857607f821691505b602082108103610bf657634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761044957610449610bfc565b5f82610c4157634e487b7160e01b5f52601260045260245ffd5b500490565b8082018082111561044957610449610bfc565b8181038181111561044957610449610bfc565b634e487b7160e01b5f52603260045260245ffd5b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b81811015610cd05783516001600160a01b0316835260209384019390920191600101610ca9565b50506001600160a01b03959095166060840152505060800152939250505056fea2646970667358221220579f8bdf8642fc7566e001f93fe3745e7558c8ed0836a2b0fcea3360035185d164736f6c634300081e003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000096c3307468dbc4ab9cb5e49887f7be20612e5b6800000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000564654f54430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004444f544300000000000000000000000000000000000000000000000000000000