Address Contract Verified
Address
0xaa2ba423875baA1C74aBe77Df0B6aC655CE151e6
Balance
0 ETH
Nonce
1
Code Size
8357 bytes
Creator
0x99C246B8...5E23 at tx 0x2b6b1083...137e52
Indexed Transactions
0
Contract Bytecode
8357 bytes
0x608060405234801561000f575f80fd5b506004361061026b575f3560e01c806375f0a8741161014b578063c6af580b116100bf578063e2f4560511610084578063e2f45605146105b6578063e6c1909b146105bf578063ef998cf0146105d3578063f2fde38b146105e6578063f53bc835146105f9578063f8b45b051461060c575f80fd5b8063c6af580b14610531578063cb96372814610544578063d5759ba314610557578063dcf7aef31461056b578063dd62ed3e1461057e575f80fd5b8063afa4f3b211610110578063afa4f3b2146104c5578063b62496f5146104d8578063b8eb3546146104fa578063bc063e1a14610503578063c02466681461050b578063c0a904a21461051e575f80fd5b806375f0a874146104745780638da5cb5b1461048757806395927c251461049757806395d89b41146104aa578063a9059cbb146104b2575f80fd5b806347062402116101e25780635d0044ca116101a75780635d0044ca146104015780635d098b38146104145780636ca541e51461042757806370a082311461043b57806370db69d614610463578063715018a61461046c575f80fd5b8063470624021461037a57806349bd5a5e146103835780634fbee193146103aa5780635932ead1146103cc5780635cce86cd146103df575f80fd5b806318160ddd1161023357806318160ddd1461031757806323b872dd146103295780632b14ca561461033c5780632d99d32e14610345578063313ce5671461035857806341aea9de14610367575f80fd5b806306fdde031461026f578063095ea7b31461028d5780630cd32dcd146102b0578063155ca7c1146102c55780631694505e146102d8575b5f80fd5b610277610615565b6040516102849190611be9565b60405180910390f35b6102a061029b366004611c32565b6106a5565b6040519015158152602001610284565b6102c36102be366004611c69565b6106be565b005b6102c36102d3366004611c69565b61070e565b6102ff7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610284565b6003545b604051908152602001610284565b6102a0610337366004611ce8565b610758565b61031b600c5481565b6102c3610353366004611d26565b61077b565b60405160128152602001610284565b6102c3610375366004611d5d565b610791565b61031b600b5481565b6102ff7f000000000000000000000000f9e7959cd9fc660063fe6b79b5809a98f362025881565b6102a06103b8366004611d7f565b600d6020525f908152604090205460ff1681565b6102c36103da366004611d5d565b6107b7565b6102a06103ed366004611d7f565b600e6020525f908152604090205460ff1681565b6102c361040f366004611d9a565b6107dd565b6102c3610422366004611d7f565b6108b1565b6006546102a090600160a81b900460ff1681565b61031b610449366004611d7f565b6001600160a01b03165f9081526001602052604090205490565b61031b60075481565b6102c3610951565b6006546102ff906001600160a01b031681565b5f546001600160a01b03166102ff565b6102c36104a5366004611d9a565b610964565b610277610992565b6102a06104c0366004611c32565b6109a1565b6102c36104d3366004611d9a565b6109ae565b6102a06104e6366004611d7f565b600f6020525f908152604090205460ff1681565b61031b60085481565b61031b601981565b6102c3610519366004611d26565b610ae3565b6102c361052c366004611d26565b610af5565b6102c361053f366004611d5d565b610b07565b6102c3610552366004611d7f565b610b2d565b6006546102a090600160a01b900460ff1681565b6102c3610579366004611d9a565b610d57565b61031b61058c366004611db1565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b61031b600a5481565b6006546102a090600160b01b900460ff1681565b6102c36105e1366004611d9a565b610d85565b6102c36105f4366004611d7f565b610e4b565b6102c3610607366004611d9a565b610e88565b61031b60095481565b60606004805461062490611ddd565b80601f016020809104026020016040519081016040528092919081815260200182805461065090611ddd565b801561069b5780601f106106725761010080835404028352916020019161069b565b820191905f5260205f20905b81548152906001019060200180831161067e57829003601f168201915b5050505050905090565b5f336106b2818585610f4d565b60019150505b92915050565b6106c6610f5a565b5f5b82811015610708576107008484838181106106e5576106e5611e15565b90506020020160208101906106fa9190611d7f565b83610f86565b6001016106c8565b50505050565b610716610f5a565b5f5b828110156107085761075084848381811061073557610735611e15565b905060200201602081019061074a9190611d7f565b83610fe9565b600101610718565b5f33610765858285611044565b6107708585856110b9565b506001949350505050565b610783610f5a565b61078d8282611116565b5050565b610799610f5a565b60068054911515600160a01b0260ff60a01b19909216919091179055565b6107bf610f5a565b60068054911515600160a81b0260ff60a81b19909216919091179055565b6107e5610f5a565b6103e86107f160035490565b6107fc906003611e3d565b6108069190611e54565b8110156108755760405162461bcd60e51b815260206004820152603260248201527f43524f573a2043616e6e6f7420736574206d61782077616c6c657420616d6f756044820152716e74206c6f776572207468616e20302e332560701b60648201526084015b60405180910390fd5b60098190556040518181527fa2c87c3e7a3048198ae94e814f6a27e12a4e2a7476e33a0db4d97ffeaf636186906020015b60405180910390a150565b6108b9610f5a565b6001600160a01b0381166109015760405162461bcd60e51b815260206004820152600f60248201526e043524f573a2041646472657373203608c1b604482015260640161086c565b600680546001600160a01b038381166001600160a01b03198316811790935560405191169182917f83e9b0264f846c733d721fc222bd1b60d47f257c00f2c8ee812d03d29fa87a64905f90a35050565b610959610f5a565b6109625f611171565b565b61096c610f5a565b601981111561098d5760405162461bcd60e51b815260040161086c90611e73565b600c55565b60606005805461062490611ddd565b5f336106b28185856110b9565b6109b6610f5a565b5f6109c060035490565b9050620f42406109d1826001611e3d565b6109db9190611e54565b821015610a505760405162461bcd60e51b815260206004820152603c60248201527f43524f573a205377617020616d6f756e742063616e6e6f74206265206c6f776560448201527f72207468616e20302e303030312520746f74616c20737570706c792e00000000606482015260840161086c565b6103e8610a5e826005611e3d565b610a689190611e54565b821115610add5760405162461bcd60e51b815260206004820152603a60248201527f43524f573a205377617020616d6f756e742063616e6e6f74206265206869676860448201527f6572207468616e20302e352520746f74616c20737570706c792e000000000000606482015260840161086c565b50600a55565b610aeb610f5a565b61078d8282610fe9565b610afd610f5a565b61078d8282610f86565b610b0f610f5a565b60068054911515600160b01b0260ff60b01b19909216919091179055565b610b35610f5a565b335f6001600160a01b038316610c3b5750475f81610b8e5760405162461bcd60e51b815260206004820152601660248201527543524f573a204e6f206e617469766520746f6b656e7360501b604482015260640161086c565b6040516001600160a01b0384169083905f81818185875af1925050503d805f8114610bd4576040519150601f19603f3d011682016040523d82523d5f602084013e610bd9565b606091505b505080915050806107085760405162461bcd60e51b815260206004820152602660248201527f43524f573a204661696c656420746f207769746864726177206e617469766520604482015265746f6b656e7360d01b606482015260840161086c565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610c7d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ca19190611ebe565b90505f8111610ce45760405162461bcd60e51b815260206004820152600f60248201526e43524f573a204e6f20746f6b656e7360881b604482015260640161086c565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0384169063a9059cbb906044016020604051808303815f875af1158015610d2e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107089190611ed5565b505050565b610d5f610f5a565b6019811115610d805760405162461bcd60e51b815260040161086c90611e73565b600b55565b610d8d610f5a565b6103e8610d9960035490565b610da4906002611e3d565b610dae9190611e54565b811015610e165760405162461bcd60e51b815260206004820152603060248201527f43524f573a2043616e6e6f7420736574206d61782073656c6c20616d6f756e7460448201526f206c6f776572207468616e20302e322560801b606482015260840161086c565b60088190556040518181527f3c0ac525ebd597ae4e1201e687d8a7424b740a53b775b1527eb1c1936c1bd3b7906020016108a6565b610e53610f5a565b6001600160a01b038116610e7c57604051631e4fbdf760e01b81525f600482015260240161086c565b610e8581611171565b50565b610e90610f5a565b6103e8610e9c60035490565b610ea7906002611e3d565b610eb19190611e54565b811015610f185760405162461bcd60e51b815260206004820152602f60248201527f43524f573a2043616e6e6f7420736574206d61782062757920616d6f756e742060448201526e6c6f776572207468616e20302e322560881b606482015260840161086c565b60078190556040518181527f16fd9174d80e7089ed0c10c47c8079476be2ec28b97c4b40846cffd8a7aa9e9f906020016108a6565b610d5283838360016111b5565b5f546001600160a01b031633146109625760405163118cdaa760e01b815233600482015260240161086c565b6001600160a01b0382165f818152600e6020908152604091829020805460ff19168515159081179091558251938452908301527f4b89c347592b1d537e066cb4ed98d87696ae35164745d7e370e4add16941dc9291015b60405180910390a15050565b6001600160a01b0382165f818152600d6020908152604091829020805460ff19168515159081179091558251938452908301527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79101610fdd565b6001600160a01b038381165f908152600260209081526040808320938616835292905220545f19811461070857818110156110ab57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161086c565b61070884848484035f6111b5565b6001600160a01b0383166110e257604051634b637e8f60e11b81525f600482015260240161086c565b6001600160a01b03821661110b5760405163ec442f0560e01b81525f600482015260240161086c565b610d52838383611287565b6001600160a01b0382165f818152600f6020908152604091829020805460ff19168515159081179091558251938452908301527fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab9101610fdd565b5f546001600160a01b031680156111965761118c815f610fe9565b611196815f610f86565b6111a1826001610fe9565b6111ac826001610f86565b61078d826118a4565b6001600160a01b0384166111de5760405163e602df0560e01b81525f600482015260240161086c565b6001600160a01b03831661120757604051634a1406b160e11b81525f600482015260240161086c565b6001600160a01b038085165f908152600260209081526040808320938716835292905220829055801561070857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161127991815260200190565b60405180910390a350505050565b6006545f90600160a01b900460ff1680156112ac5750600654600160b81b900460ff16155b80156112f257506001600160a01b0384165f908152600e602052604090205460ff16806112f057506001600160a01b0383165f908152600e602052604090205460ff165b155b90508015611713575f546001600160a01b0385811691161480159061132457505f546001600160a01b03848116911614155b801561133857506001600160a01b03831615155b801561134f57506001600160a01b03831661dead14155b1561171357600654600160a81b900460ff16156114ad577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316836001600160a01b0316141580156113da57507f000000000000000000000000f9e7959cd9fc660063fe6b79b5809a98f36202586001600160a01b0316836001600160a01b031614155b156114ad576113ea600343611ef0565b325f90815260106020526040902054108015611426575061140c600343611ef0565b6001600160a01b0384165f90815260106020526040902054105b6114895760405162461bcd60e51b815260206004820152602e60248201527f43524f573a205472616e736665722064656c617920656e61626c65642e20547260448201526d3c9030b3b0b4b7103630ba32b91760911b606482015260840161086c565b325f9081526010602052604080822043908190556001600160a01b03861683529120555b6001600160a01b0384165f908152600f602052604090205460ff1680156114ec57506001600160a01b0383165f908152600e602052604090205460ff16155b156115d25760075482111561155a5760405162461bcd60e51b815260206004820152602e60248201527f43524f573a20427579207472616e7366657220616d6f756e742065786365656460448201526d39903a34329036b0bc10313abc9760911b606482015260840161086c565b6009546001600160a01b0384165f9081526001602052604090205461157f9084611f03565b11156115cd5760405162461bcd60e51b815260206004820152601e60248201527f43524f573a2043616e6e6f7420457863656564206d61782077616c6c65740000604482015260640161086c565b611713565b6001600160a01b0383165f908152600f602052604090205460ff16801561161157506001600160a01b0384165f908152600e602052604090205460ff16155b15611681576008548211156115cd5760405162461bcd60e51b815260206004820152603060248201527f43524f573a2053656c6c207472616e7366657220616d6f756e7420657863656560448201526f3239903a34329036b0bc1039b2b6361760811b606482015260840161086c565b6001600160a01b0383165f908152600e602052604090205460ff16611713576009546001600160a01b0384165f908152600160205260409020546116c59084611f03565b11156117135760405162461bcd60e51b815260206004820152601e60248201527f43524f573a2043616e6e6f7420457863656564206d61782077616c6c65740000604482015260640161086c565b6006545f90600160b01b900460ff1680156117385750600654600160b81b900460ff16155b801561177e57506001600160a01b0385165f908152600d602052604090205460ff168061177c57506001600160a01b0384165f908152600d602052604090205460ff165b155b90508015611823576001600160a01b0384165f908152600f602052604081205460ff16156117c7576064600c54856117b69190611e3d565b6117c09190611e54565b9050611804565b6001600160a01b0386165f908152600f602052604090205460ff1615611804576064600b54856117f79190611e3d565b6118019190611e54565b90505b8015611821576118148185611ef0565b93506118218630836118f3565b505b80801561184857506001600160a01b0385165f908152600f602052604090205460ff16155b80156118645750600a54305f9081526001602052604090205410155b15611892576006805460ff60b81b1916600160b81b179055611884611a19565b6006805460ff60b81b191690555b61189d8585856118f3565b5050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03831661191d578060035f8282546119129190611f03565b9091555061198d9050565b6001600160a01b0383165f908152600160205260409020548181101561196f5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161086c565b6001600160a01b0384165f9081526001602052604090209082900390555b6001600160a01b0382166119a9576003805482900390556119c7565b6001600160a01b0382165f9081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611a0c91815260200190565b60405180910390a3505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611a4c57611a4c611e15565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ac8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611aec9190611f2a565b81600181518110611aff57611aff611e15565b60200260200101906001600160a01b031690816001600160a01b0316815250505f600a546014611b2f9190611e3d565b305f9081526001602052604090205490915081811115611b4c5750805b6006546040516318cbafe560e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8116926318cbafe592611ba79286925f928a9291909116904290600401611f45565b5f604051808303815f875af1158015611bc2573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526107089190810190611fb6565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114610e85575f80fd5b5f8060408385031215611c43575f80fd5b8235611c4e81611c1e565b946020939093013593505050565b8015158114610e85575f80fd5b5f805f60408486031215611c7b575f80fd5b833567ffffffffffffffff80821115611c92575f80fd5b818601915086601f830112611ca5575f80fd5b813581811115611cb3575f80fd5b8760208260051b8501011115611cc7575f80fd5b60209283019550935050840135611cdd81611c5c565b809150509250925092565b5f805f60608486031215611cfa575f80fd5b8335611d0581611c1e565b92506020840135611d1581611c1e565b929592945050506040919091013590565b5f8060408385031215611d37575f80fd5b8235611d4281611c1e565b91506020830135611d5281611c5c565b809150509250929050565b5f60208284031215611d6d575f80fd5b8135611d7881611c5c565b9392505050565b5f60208284031215611d8f575f80fd5b8135611d7881611c1e565b5f60208284031215611daa575f80fd5b5035919050565b5f8060408385031215611dc2575f80fd5b8235611dcd81611c1e565b91506020830135611d5281611c1e565b600181811c90821680611df157607f821691505b602082108103611e0f57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176106b8576106b8611e29565b5f82611e6e57634e487b7160e01b5f52601260045260245ffd5b500490565b6020808252602b908201527f43524f573a204d757374206b65657020666565732062656c6f77206f7220657160408201526a75616c206d61782066656560a81b606082015260800190565b5f60208284031215611ece575f80fd5b5051919050565b5f60208284031215611ee5575f80fd5b8151611d7881611c5c565b818103818111156106b8576106b8611e29565b808201808211156106b8576106b8611e29565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611f3a575f80fd5b8151611d7881611c1e565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b81811015611f955784516001600160a01b031683529383019391830191600101611f70565b50506001600160a01b03969096166060850152505050608001529392505050565b5f6020808385031215611fc7575f80fd5b825167ffffffffffffffff80821115611fde575f80fd5b818501915085601f830112611ff1575f80fd5b81518181111561200357612003611f16565b8060051b604051601f19603f8301168101818110858211171561202857612028611f16565b604052918252848201925083810185019188831115612045575f80fd5b938501935b828510156120635784518452938501939285019261204a565b9897505050505050505056fea2646970667358221220e3e40ba7e095ab6fd939ae9330cb0c7b8395a567ab9473f519dd96911f4b3bb364736f6c63430008190033
Verified Source Code Full Match
Compiler: v0.8.25+commit.b61c2a91
EVM: cancun
Optimization: Yes (200 runs)
CROW.sol 1130 lines
/**
Website: https://crowescrow.io
X: https://x.com/crowescrow
Telegram: https://t.me/crowescrow
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
}
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
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);
}
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(
address sender,
uint256 balance,
uint256 needed
);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(
address spender,
uint256 allowance,
uint256 needed
);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(
address sender,
uint256 balance,
uint256 needed,
uint256 tokenId
);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender)
public
view
virtual
returns (uint256)
{
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value)
public
virtual
returns (bool)
{
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(
address from,
address to,
uint256 value
) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(
address from,
address to,
uint256 value
) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(
address from,
address to,
uint256 value
) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` 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.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(
address owner,
address spender,
uint256 value
) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(
address owner,
address spender,
uint256 value,
bool emitEvent
) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 value
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(
spender,
currentAllowance,
value
);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
interface IUniswapV2Router {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function swapExactTokensForETH(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
}
contract CROW is Ownable, ERC20 {
uint256 public constant MAX_FEE = 25;
IUniswapV2Router public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public marketingWallet;
bool public isLimitsEnabled;
bool public isCooldownEnabled;
bool public isTaxEnabled;
bool private isSwapBack;
uint256 public maxBuy;
uint256 public maxSell;
uint256 public maxWallet;
uint256 public swapTokensAtAmount;
uint256 public buyFee;
uint256 public sellFee;
mapping(address => bool) public isExcludedFromFees;
mapping(address => bool) public isExcludedFromLimits;
mapping(address => bool) public automatedMarketMakerPairs;
mapping(address => uint256) private _holderLastTransferTimestamp;
event SetMarketingWallet(
address indexed newWallet,
address indexed oldWallet
);
event SetMaxBuy(uint256 amount);
event SetMaxSell(uint256 amount);
event SetMaxWallet(uint256 amount);
event ExcludeFromFees(address account, bool isExcluded);
event ExcludeFromLimits(address account, bool isExcluded);
event SetAutomatedMarketMakerPair(address pair, bool value);
constructor() Ownable(msg.sender) ERC20("Crow", "CROW") {
address sender = msg.sender;
_mint(sender, 1_000_000_000 ether);
uint256 totalSupply = totalSupply();
marketingWallet = 0x6027812098E0Bf4D82c61Ce31B127dD6AD16a40f;
maxBuy = (totalSupply * 1) / 100;
maxSell = (totalSupply * 1) / 100;
maxWallet = (totalSupply * 1) / 100;
swapTokensAtAmount = (totalSupply * 5) / 10000;
isLimitsEnabled = true;
isCooldownEnabled = true;
isTaxEnabled = true;
buyFee = 10;
sellFee = 25;
uniswapV2Router = IUniswapV2Router(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
_setAMMPair(uniswapV2Pair, true);
_approve(address(this), address(uniswapV2Router), type(uint256).max);
_excludeFromFees(address(this), true);
_excludeFromFees(address(0xdead), true);
_excludeFromFees(sender, true);
_excludeFromFees(marketingWallet, true);
_excludeFromLimits(address(this), true);
_excludeFromLimits(address(0xdead), true);
_excludeFromLimits(sender, true);
_excludeFromLimits(marketingWallet, true);
}
function _transferOwnership(address newOwner) internal override {
address oldOwner = owner();
if (oldOwner != address(0)) {
_excludeFromFees(oldOwner, false);
_excludeFromLimits(oldOwner, false);
}
_excludeFromFees(newOwner, true);
_excludeFromLimits(newOwner, true);
super._transferOwnership(newOwner);
}
function setMarketingWallet(address _marketingWallet) public onlyOwner {
require(_marketingWallet != address(0), "CROW: Address 0");
address oldWallet = marketingWallet;
marketingWallet = _marketingWallet;
emit SetMarketingWallet(marketingWallet, oldWallet);
}
function setLimitsEnabled(bool value) external onlyOwner {
isLimitsEnabled = value;
}
function setCooldownEnabled(bool value) external onlyOwner {
isCooldownEnabled = value;
}
function setTaxEnabled(bool value) external onlyOwner {
isTaxEnabled = value;
}
function setMaxBuy(uint256 amount) external onlyOwner {
require(
amount >= ((totalSupply() * 2) / 1000),
"CROW: Cannot set max buy amount lower than 0.2%"
);
maxBuy = amount;
emit SetMaxBuy(maxBuy);
}
function setMaxSell(uint256 amount) external onlyOwner {
require(
amount >= ((totalSupply() * 2) / 1000),
"CROW: Cannot set max sell amount lower than 0.2%"
);
maxSell = amount;
emit SetMaxSell(maxSell);
}
function setMaxWallet(uint256 amount) external onlyOwner {
require(
amount >= ((totalSupply() * 3) / 1000),
"CROW: Cannot set max wallet amount lower than 0.3%"
);
maxWallet = amount;
emit SetMaxWallet(maxWallet);
}
function setSwapTokensAtAmount(uint256 amount) external onlyOwner {
uint256 _totalSupply = totalSupply();
require(
amount >= (_totalSupply * 1) / 1000000,
"CROW: Swap amount cannot be lower than 0.0001% total supply."
);
require(
amount <= (_totalSupply * 5) / 1000,
"CROW: Swap amount cannot be higher than 0.5% total supply."
);
swapTokensAtAmount = amount;
}
function setBuyFees(uint256 _buyFee) external onlyOwner {
require(
_buyFee <= MAX_FEE,
"CROW: Must keep fees below or equal max fee"
);
buyFee = _buyFee;
}
function setSellFees(uint256 _sellFee) external onlyOwner {
require(
_sellFee <= MAX_FEE,
"CROW: Must keep fees below or equal max fee"
);
sellFee = _sellFee;
}
function _excludeFromFees(address account, bool value) internal {
isExcludedFromFees[account] = value;
emit ExcludeFromFees(account, value);
}
function excludeFromFees(address account, bool value) external onlyOwner {
_excludeFromFees(account, value);
}
function bulkExcludeFromFees(address[] calldata accounts, bool value)
external
onlyOwner
{
for (uint256 i = 0; i < accounts.length; i++) {
_excludeFromFees(accounts[i], value);
}
}
function _excludeFromLimits(address account, bool value) internal {
isExcludedFromLimits[account] = value;
emit ExcludeFromLimits(account, value);
}
function excludeFromLimits(address account, bool value) external onlyOwner {
_excludeFromLimits(account, value);
}
function bulkExcludeFromLimits(address[] calldata accounts, bool value)
external
onlyOwner
{
for (uint256 i = 0; i < accounts.length; i++) {
_excludeFromLimits(accounts[i], value);
}
}
function _setAMMPair(address pair, bool value) internal {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function setAMMPair(address pair, bool value) external onlyOwner {
_setAMMPair(pair, value);
}
function _update(
address from,
address to,
uint256 amount
) internal override {
bool limits = isLimitsEnabled &&
!isSwapBack &&
!(isExcludedFromLimits[from] || isExcludedFromLimits[to]);
if (limits) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead)
) {
if (isCooldownEnabled) {
if (to != address(uniswapV2Router) && to != uniswapV2Pair) {
require(
_holderLastTransferTimestamp[tx.origin] <
block.number - 3 &&
_holderLastTransferTimestamp[to] <
block.number - 3,
"CROW: Transfer delay enabled. Try again later."
);
_holderLastTransferTimestamp[tx.origin] = block.number;
_holderLastTransferTimestamp[to] = block.number;
}
}
if (
automatedMarketMakerPairs[from] && !isExcludedFromLimits[to]
) {
require(
amount <= maxBuy,
"CROW: Buy transfer amount exceeds the max buy."
);
require(
amount + balanceOf(to) <= maxWallet,
"CROW: Cannot Exceed max wallet"
);
} else if (
automatedMarketMakerPairs[to] && !isExcludedFromLimits[from]
) {
require(
amount <= maxSell,
"CROW: Sell transfer amount exceeds the max sell."
);
} else if (!isExcludedFromLimits[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"CROW: Cannot Exceed max wallet"
);
}
}
}
bool takeFee = isTaxEnabled &&
!isSwapBack &&
!(isExcludedFromFees[from] || isExcludedFromFees[to]);
if (takeFee) {
uint256 fees = 0;
// on sell
if (automatedMarketMakerPairs[to]) {
fees = (amount * sellFee) / 100;
}
// on buy
else if (automatedMarketMakerPairs[from]) {
fees = (amount * buyFee) / 100;
}
if (fees > 0) {
amount -= fees;
super._update(from, address(this), fees);
}
}
if (
takeFee &&
!automatedMarketMakerPairs[from] &&
balanceOf(address(this)) >= swapTokensAtAmount
) {
isSwapBack = true;
_swapBack();
isSwapBack = false;
}
super._update(from, to, amount);
}
function _swapBack() internal {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
uint256 maxSwapAmount = swapTokensAtAmount * 20;
uint256 swapAmount = balanceOf(address(this));
if (swapAmount > maxSwapAmount) {
swapAmount = maxSwapAmount;
}
uniswapV2Router.swapExactTokensForETH(
swapAmount,
0,
path,
marketingWallet,
block.timestamp
);
}
function withdrawStuckTokens(address tkn) external onlyOwner {
address sender = msg.sender;
uint256 amount;
if (tkn == address(0)) {
bool success;
amount = address(this).balance;
require(amount > 0, "CROW: No native tokens");
(success, ) = address(sender).call{value: amount}("");
require(success, "CROW: Failed to withdraw native tokens");
} else {
amount = IERC20(tkn).balanceOf(address(this));
require(amount > 0, "CROW: No tokens");
IERC20(tkn).transfer(msg.sender, amount);
}
}
}
Read Contract
MAX_FEE 0xbc063e1a → uint256
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
isCooldownEnabled 0x6ca541e5 → bool
isExcludedFromFees 0x4fbee193 → bool
isExcludedFromLimits 0x5cce86cd → bool
isLimitsEnabled 0xd5759ba3 → bool
isTaxEnabled 0xe6c1909b → bool
marketingWallet 0x75f0a874 → address
maxBuy 0x70db69d6 → uint256
maxSell 0xb8eb3546 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 value
returns: bool
bulkExcludeFromFees 0x155ca7c1
address[] accounts
bool value
bulkExcludeFromLimits 0x0cd32dcd
address[] accounts
bool value
excludeFromFees 0xc0246668
address account
bool value
excludeFromLimits 0xc0a904a2
address account
bool value
renounceOwnership 0x715018a6
No parameters
setAMMPair 0x2d99d32e
address pair
bool value
setBuyFees 0xdcf7aef3
uint256 _buyFee
setCooldownEnabled 0x5932ead1
bool value
setLimitsEnabled 0x41aea9de
bool value
setMarketingWallet 0x5d098b38
address _marketingWallet
setMaxBuy 0xf53bc835
uint256 amount
setMaxSell 0xef998cf0
uint256 amount
setMaxWallet 0x5d0044ca
uint256 amount
setSellFees 0x95927c25
uint256 _sellFee
setSwapTokensAtAmount 0xafa4f3b2
uint256 amount
setTaxEnabled 0xc6af580b
bool value
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawStuckTokens 0xcb963728
address tkn
Recent Transactions
No transactions found for this address