Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000 RPG
Holders
56
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
RPG
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.24; /* RRRRRRRRRRRRRRRRR PPPPPPPPPPPPPPPPP GGGGGGGGGGGGG R::::::::::::::::R P::::::::::::::::P GGG::::::::::::G R::::::RRRRRR:::::R P::::::PPPPPP:::::P GG:::::::::::::::G RR:::::R R:::::R PP:::::P P:::::P G:::::GGGGGGGG::::G R::::R R:::::R P::::P P:::::P G:::::G GGGGGG R::::R R:::::R P::::P P:::::P G:::::G R::::RRRRRR:::::R P::::PPPPPP:::::P G:::::G R:::::::::::::RR P:::::::::::::PP G:::::G GGGGGGGGGG R::::RRRRRR:::::R P::::PPPPPPPPP G:::::G G::::::::G R::::R R:::::R P::::P G:::::G GGGGG::::G R::::R R:::::R P::::P G:::::G G::::G R::::R R:::::R P::::P G:::::G G::::G RR:::::R R:::::R PP::::::PP G:::::GGGGGGGG::::G R::::::R R:::::R P::::::::P GG:::::::::::::::G R::::::R R:::::R P::::::::P GGG::::::GGG:::G RRRRRRRR RRRRRRR PPPPPPPPPP GGGGGG GGGG */ /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } } interface IUniswapV2Factory { function createPair(address tokenA, address tokenB) external returns (address pair); } interface IUniswapV2Router { function WETH() external pure returns (address); function factory() external pure returns (address); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } interface IUniswapV2Pair { function sync() external; } interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; function balanceOf(address) external returns (uint); } contract RPG is ERC20 { address payable public operations; address public uniswapV2WETHPair; uint public liquidityAdded; bool antisnipe = true; bool depth = false; uint supplyDivisor = 1000; bool sellSwap = true; uint sellFee = 3; bool buySwap = true; uint buyFee = 3; mapping(address => bool) public isUniswapPair; address payable public feeReceiver = payable(0x0eC0c436640b698652dBF2ceaE0ffE9529B87Bd6); mapping(address => bool) public isExcludedFromFee; IWETH weth; IUniswapV2Router uniswapV2Router; error OnlyOps(); error AntiSnipe(); error NoBalance(); error NotZero(); error NotGreaterThanFive(); receive() external payable {} constructor() ERC20("RPG", "RPG", 18) { operations = payable(msg.sender); uniswapV2Router = IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapV2WETHPair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH()); isUniswapPair[uniswapV2WETHPair] = true; isExcludedFromFee[address(this)] = true; isExcludedFromFee[operations] = true; isExcludedFromFee[feeReceiver] = true; weth = IWETH(uniswapV2Router.WETH()); _mint(feeReceiver, 1_000_000_000 * 10 ** 18); } function addUniswapPair(address pair) external { if(msg.sender != operations) revert OnlyOps(); isUniswapPair[pair] = true; } function forceSwap() external { if(msg.sender != operations) revert OnlyOps(); if(balanceOf[address(this)] == 0) revert NoBalance(); swapTokens(balanceOf[address(this)]); IUniswapV2Pair(uniswapV2WETHPair).sync(); } function changeOperations(address payable operations_) external { if(msg.sender != operations) revert OnlyOps(); if(operations_ == address(0)) revert NotZero(); operations = operations_; } function changeSupplyDivisor(uint supplyDivisor_) external { if(msg.sender != operations) revert OnlyOps(); if(supplyDivisor_ == 0) revert NotZero(); supplyDivisor = supplyDivisor_; } function changeFee(uint buyFee_, uint sellFee_) external { if(msg.sender != operations) revert OnlyOps(); if(buyFee_ > 30 || sellFee_ > 30) revert NotGreaterThanFive(); buyFee = buyFee_; sellFee = sellFee_; } function changeFeeReceiver(address payable feeReceiver_) external { if(msg.sender != operations) revert OnlyOps(); if(feeReceiver_ == address(0)) revert NotZero(); feeReceiver = feeReceiver_; } function toggleBuySwap() external { if(msg.sender != operations) revert OnlyOps(); buySwap = !buySwap; } function toggleSellSwap() external { if(msg.sender != operations) revert OnlyOps(); sellSwap = !sellSwap; } function transfer(address to, uint256 amount) public virtual override returns (bool){ if(!isExcludedFromFee[msg.sender] && !isExcludedFromFee[to]){ if(isUniswapPair[msg.sender]) { uint256 fee = (amount * buyFee) / 100; super.transfer(address(this), fee); if(antisnipe && liquidityAdded != 0) { if(block.number - liquidityAdded < 352) { if(amount > (totalSupply / 176) * ((block.number - liquidityAdded)/2)) revert AntiSnipe(); } else { antisnipe = false; } } uint256 balance = balanceOf[address(this)]; if(sellSwap && balance > totalSupply / supplyDivisor && !depth) { depth = true; swapTokens(balance); depth = false; } return super.transfer(to, amount - fee); } } return super.transfer(to, amount); } function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { if(isUniswapPair[to] ) { if(liquidityAdded == 0) liquidityAdded = block.number; if(!isExcludedFromFee[from] && !isExcludedFromFee[to]){ uint256 fee = (amount * sellFee) / 100; super.transferFrom(from, address(this), fee); uint256 balance = balanceOf[address(this)]; if(buySwap && balance > totalSupply / supplyDivisor && !depth) { depth = true; swapTokens(balance); depth = false; } return super.transferFrom(from, to, amount - fee); } } return super.transferFrom(from, to, amount); } function swapTokens(uint256 tokenAmount) private returns (bool) { address[] memory path = new address[](2); path[0] = address(this); path[1] = address(weth); ERC20(address(this)).approve(address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); weth.deposit{value: address(this).balance/2}(); weth.transfer(uniswapV2WETHPair, weth.balanceOf(address(this))); (bool success,) = feeReceiver.call{value: address(this).balance}(""); return success; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AntiSnipe","type":"error"},{"inputs":[],"name":"NoBalance","type":"error"},{"inputs":[],"name":"NotGreaterThanFive","type":"error"},{"inputs":[],"name":"NotZero","type":"error"},{"inputs":[],"name":"OnlyOps","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"addUniswapPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"buyFee_","type":"uint256"},{"internalType":"uint256","name":"sellFee_","type":"uint256"}],"name":"changeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"feeReceiver_","type":"address"}],"name":"changeFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"operations_","type":"address"}],"name":"changeOperations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supplyDivisor_","type":"uint256"}],"name":"changeSupplyDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forceSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isUniswapPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityAdded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operations","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleBuySwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSellSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2WETHPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040526009805461ffff191660019081179091556103e8600a55600b805460ff1990811683179091556003600c819055600d80549092169092179055600e55601080546001600160a01b031916730ec0c436640b698652dbf2ceae0ffe9529b87bd617905534801562000072575f80fd5b5060408051808201825260038082526252504760e81b60208084018290528451808601909552918452908301529060125f620000af84826200051e565b506001620000be83826200051e565b5060ff81166080524660a052620000d46200037b565b60c052505060068054336001600160a01b03199182161790915560138054737a250d5630b4cf539739df2c5dacb4c659f2488d9216821790556040805163c45a015560e01b8152905191925063c45a01559160048083019260209291908290030181865afa15801562000149573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200016f9190620005ea565b6001600160a01b031663c9c653963060135f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001cf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620001f59190620005ea565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af115801562000240573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620002669190620005ea565b600780546001600160a01b0319166001600160a01b039283169081179091555f908152600f60209081526040808320805460ff199081166001908117909255308552601184528285208054821683179055600654861685528285208054821683179055601054861685529382902080549094161790925560135482516315ab88c960e31b8152925193169263ad5c46489260048082019392918290030181865afa15801562000317573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200033d9190620005ea565b601280546001600160a01b0319166001600160a01b039283161790556010546200037591166b033b2e3c9fd0803ce800000062000415565b620006b9565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f5f604051620003ad919062000619565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060025f82825462000428919062000693565b90915550506001600160a01b0382165f818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620004a957607f821691505b602082108103620004c857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200051957805f5260205f20601f840160051c81016020851015620004f55750805b601f840160051c820191505b8181101562000516575f815560010162000501565b50505b505050565b81516001600160401b038111156200053a576200053a62000480565b62000552816200054b845462000494565b84620004ce565b602080601f83116001811462000588575f8415620005705750858301515b5f19600386901b1c1916600185901b178555620005e2565b5f85815260208120601f198616915b82811015620005b85788860151825594840194600190910190840162000597565b5085821015620005d657878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f60208284031215620005fb575f80fd5b81516001600160a01b038116811462000612575f80fd5b9392505050565b5f808354620006288162000494565b60018281168015620006435760018114620006595762000687565b60ff198416875282151583028701945062000687565b875f526020805f205f5b858110156200067e5781548a82015290840190820162000663565b50505082870194505b50929695505050505050565b80820180821115620006b357634e487b7160e01b5f52601160045260245ffd5b92915050565b60805160a05160c051611797620006e45f395f6107f601525f6107c101525f61025601526117975ff3fe60806040526004361061017e575f3560e01c80638b33b4b2116100cd578063d505accf11610087578063da79b0c311610062578063da79b0c31461049d578063dd62ed3e146104b1578063df778d26146104e7578063e3ca2d65146104fb575f80fd5b8063d505accf1461044a578063d7d2265e14610469578063d944392314610488575f80fd5b80638b33b4b21461038c57806395d89b41146103ab5780639cece12e146103bf578063a7f404e2146103ed578063a9059cbb1461040c578063b3f006741461042b575f80fd5b806331ff412e1161013857806370a082311161011357806370a08231146103035780637c08b9641461032e5780637ecebe001461034d5780638737904c14610378575f80fd5b806331ff412e1461028a5780633644e515146102c15780635342acb4146102d5575f80fd5b806306fdde0314610189578063095ea7b3146101b357806318160ddd146101e257806323b872dd14610205578063311bf1e614610224578063313ce56714610245575f80fd5b3661018557005b5f80fd5b348015610194575f80fd5b5061019d61051a565b6040516101aa91906113ae565b60405180910390f35b3480156101be575f80fd5b506101d26101cd366004611411565b6105a5565b60405190151581526020016101aa565b3480156101ed575f80fd5b506101f760025481565b6040519081526020016101aa565b348015610210575f80fd5b506101d261021f36600461143b565b610611565b34801561022f575f80fd5b5061024361023e366004611479565b61074c565b005b348015610250575f80fd5b506102787f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101aa565b348015610295575f80fd5b506007546102a9906001600160a01b031681565b6040516001600160a01b0390911681526020016101aa565b3480156102cc575f80fd5b506101f76107be565b3480156102e0575f80fd5b506101d26102ef366004611479565b60116020525f908152604090205460ff1681565b34801561030e575f80fd5b506101f761031d366004611479565b60036020525f908152604090205481565b348015610339575f80fd5b50610243610348366004611479565b610818565b348015610358575f80fd5b506101f7610367366004611479565b60056020525f908152604090205481565b348015610383575f80fd5b5061024361088a565b348015610397575f80fd5b506006546102a9906001600160a01b031681565b3480156103b6575f80fd5b5061019d6108c8565b3480156103ca575f80fd5b506101d26103d9366004611479565b600f6020525f908152604090205460ff1681565b3480156103f8575f80fd5b50610243610407366004611479565b6108d5565b348015610417575f80fd5b506101d2610426366004611411565b610922565b348015610436575f80fd5b506010546102a9906001600160a01b031681565b348015610455575f80fd5b50610243610464366004611494565b610ac2565b348015610474575f80fd5b50610243610483366004611505565b610d05565b348015610493575f80fd5b506101f760085481565b3480156104a8575f80fd5b50610243610d53565b3480156104bc575f80fd5b506101f76104cb36600461151c565b600460209081525f928352604080842090915290825290205481565b3480156104f2575f80fd5b50610243610d91565b348015610506575f80fd5b50610243610515366004611553565b610e66565b5f805461052690611573565b80601f016020809104026020016040519081016040528092919081815260200182805461055290611573565b801561059d5780601f106105745761010080835404028352916020019161059d565b820191905f5260205f20905b81548152906001019060200180831161058057829003601f168201915b505050505081565b335f8181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105ff9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0382165f908152600f602052604081205460ff1615610737576008545f0361063f57436008555b6001600160a01b0384165f9081526011602052604090205460ff1615801561067f57506001600160a01b0383165f9081526011602052604090205460ff16155b15610737575f6064600c548461069591906115bf565b61069f91906115d6565b90506106ac853083610ec8565b50305f90815260036020526040902054600d5460ff1680156106dc5750600a546002546106d991906115d6565b81115b80156106f05750600954610100900460ff16155b1561071a576009805461ff00191661010017905561070d81610fb5565b506009805461ff00191690555b61072e868661072985886115f5565b610ec8565b92505050610745565b610742848484610ec8565b90505b9392505050565b6006546001600160a01b031633146107765760405162d8c99b60e41b815260040160405180910390fd5b6001600160a01b03811661079c576040516252b55360e31b815260040160405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b5f7f000000000000000000000000000000000000000000000000000000000000000046146107f3576107ee6112a0565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b6006546001600160a01b031633146108425760405162d8c99b60e41b815260040160405180910390fd5b6001600160a01b038116610868576040516252b55360e31b815260040160405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146108b45760405162d8c99b60e41b815260040160405180910390fd5b600d805460ff19811660ff90911615179055565b6001805461052690611573565b6006546001600160a01b031633146108ff5760405162d8c99b60e41b815260040160405180910390fd5b6001600160a01b03165f908152600f60205260409020805460ff19166001179055565b335f9081526011602052604081205460ff1615801561095957506001600160a01b0383165f9081526011602052604090205460ff16155b15610ab857335f908152600f602052604090205460ff1615610ab8575f6064600e548461098691906115bf565b61099091906115d6565b905061099c3082611338565b5060095460ff1680156109b0575060085415155b15610a2f57610160600854436109c691906115f5565b1015610a24576002600854436109dc91906115f5565b6109e691906115d6565b60b06002546109f591906115d6565b6109ff91906115bf565b831115610a1f57604051636faadd2b60e01b815260040160405180910390fd5b610a2f565b6009805460ff191690555b305f90815260036020526040902054600b5460ff168015610a5e5750600a54600254610a5b91906115d6565b81115b8015610a725750600954610100900460ff16155b15610a9c576009805461ff001916610100179055610a8f81610fb5565b506009805461ff00191690555b610aaf85610aaa84876115f5565b611338565b9250505061060b565b6107458383611338565b42841015610b175760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064015b60405180910390fd5b5f6001610b226107be565b6001600160a01b038a81165f8181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610c2a573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590610c605750876001600160a01b0316816001600160a01b0316145b610c9d5760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610b0e565b6001600160a01b039081165f9081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6006546001600160a01b03163314610d2f5760405162d8c99b60e41b815260040160405180910390fd5b805f03610d4e576040516252b55360e31b815260040160405180910390fd5b600a55565b6006546001600160a01b03163314610d7d5760405162d8c99b60e41b815260040160405180910390fd5b600b805460ff19811660ff90911615179055565b6006546001600160a01b03163314610dbb5760405162d8c99b60e41b815260040160405180910390fd5b305f908152600360205260408120549003610de957604051636165515360e11b815260040160405180910390fd5b305f90815260036020526040902054610e0190610fb5565b5060075f9054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b158015610e4e575f80fd5b505af1158015610e60573d5f803e3d5ffd5b50505050565b6006546001600160a01b03163314610e905760405162d8c99b60e41b815260040160405180910390fd5b601e821180610e9f5750601e81115b15610ebd576040516353ac56af60e11b815260040160405180910390fd5b600e91909155600c55565b6001600160a01b0383165f9081526004602090815260408083203384529091528120545f198114610f2157610efd83826115f5565b6001600160a01b0386165f9081526004602090815260408083203384529091529020555b6001600160a01b0385165f9081526003602052604081208054859290610f489084906115f5565b90915550506001600160a01b038085165f81815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610fa29087815260200190565b60405180910390a3506001949350505050565b6040805160028082526060820183525f928392919060208301908036833701905050905030815f81518110610fec57610fec611608565b6001600160a01b03928316602091820292909201015260125482519116908290600190811061101d5761101d611608565b6001600160a01b03928316602091820292909201015260135460405163095ea7b360e01b81529116600482015260248101849052309063095ea7b3906044016020604051808303815f875af1158015611078573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109c919061161c565b5060135460405163791ac94760e01b81526001600160a01b039091169063791ac947906110d59086905f9086903090429060040161163b565b5f604051808303815f87803b1580156110ec575f80fd5b505af11580156110fe573d5f803e3d5ffd5b50506012546001600160a01b0316915063d0e30db090506111206002476115d6565b6040518263ffffffff1660e01b81526004015f604051808303818588803b158015611149575f80fd5b505af115801561115b573d5f803e3d5ffd5b50506012546007546040516370a0823160e01b81523060048201526001600160a01b03928316955063a9059cbb94509116915083906370a08231906024016020604051808303815f875af11580156111b5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111d991906116ac565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015611221573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611245919061161c565b506010546040515f916001600160a01b03169047908381818185875af1925050503d805f8114611290576040519150601f19603f3d011682016040523d82523d5f602084013e611295565b606091505b509095945050505050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f5f6040516112d091906116c3565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b335f908152600360205260408120805483919083906113589084906115f5565b90915550506001600160a01b0383165f81815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906105ff9086815260200190565b5f602080835283518060208501525f5b818110156113da578581018301518582016040015282016113be565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461140e575f80fd5b50565b5f8060408385031215611422575f80fd5b823561142d816113fa565b946020939093013593505050565b5f805f6060848603121561144d575f80fd5b8335611458816113fa565b92506020840135611468816113fa565b929592945050506040919091013590565b5f60208284031215611489575f80fd5b8135610745816113fa565b5f805f805f805f60e0888a0312156114aa575f80fd5b87356114b5816113fa565b965060208801356114c5816113fa565b95506040880135945060608801359350608088013560ff811681146114e8575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f60208284031215611515575f80fd5b5035919050565b5f806040838503121561152d575f80fd5b8235611538816113fa565b91506020830135611548816113fa565b809150509250929050565b5f8060408385031215611564575f80fd5b50508035926020909101359150565b600181811c9082168061158757607f821691505b6020821081036115a557634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761060b5761060b6115ab565b5f826115f057634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561060b5761060b6115ab565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561162c575f80fd5b81518015158114610745575f80fd5b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b8181101561168b5784516001600160a01b031683529383019391830191600101611666565b50506001600160a01b03969096166060850152505050608001529392505050565b5f602082840312156116bc575f80fd5b5051919050565b5f8083545f60018260011c915060018316806116e057607f831692505b602080841082036116ff57634e487b7160e01b5f52602260045260245ffd5b818015611713576001811461172857611753565b60ff1986168952841515850289019650611753565b5f8a8152602090205f5b8681101561174b5781548b820152908501908301611732565b505084890196505b50949897505050505050505056fea26469706673582212204fb8dbaeef765bed153d2c94d3e4f085f2254a9d45b3bb30134bb42c450afa6b64736f6c63430008180033
Deployed Bytecode
0x60806040526004361061017e575f3560e01c80638b33b4b2116100cd578063d505accf11610087578063da79b0c311610062578063da79b0c31461049d578063dd62ed3e146104b1578063df778d26146104e7578063e3ca2d65146104fb575f80fd5b8063d505accf1461044a578063d7d2265e14610469578063d944392314610488575f80fd5b80638b33b4b21461038c57806395d89b41146103ab5780639cece12e146103bf578063a7f404e2146103ed578063a9059cbb1461040c578063b3f006741461042b575f80fd5b806331ff412e1161013857806370a082311161011357806370a08231146103035780637c08b9641461032e5780637ecebe001461034d5780638737904c14610378575f80fd5b806331ff412e1461028a5780633644e515146102c15780635342acb4146102d5575f80fd5b806306fdde0314610189578063095ea7b3146101b357806318160ddd146101e257806323b872dd14610205578063311bf1e614610224578063313ce56714610245575f80fd5b3661018557005b5f80fd5b348015610194575f80fd5b5061019d61051a565b6040516101aa91906113ae565b60405180910390f35b3480156101be575f80fd5b506101d26101cd366004611411565b6105a5565b60405190151581526020016101aa565b3480156101ed575f80fd5b506101f760025481565b6040519081526020016101aa565b348015610210575f80fd5b506101d261021f36600461143b565b610611565b34801561022f575f80fd5b5061024361023e366004611479565b61074c565b005b348015610250575f80fd5b506102787f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff90911681526020016101aa565b348015610295575f80fd5b506007546102a9906001600160a01b031681565b6040516001600160a01b0390911681526020016101aa565b3480156102cc575f80fd5b506101f76107be565b3480156102e0575f80fd5b506101d26102ef366004611479565b60116020525f908152604090205460ff1681565b34801561030e575f80fd5b506101f761031d366004611479565b60036020525f908152604090205481565b348015610339575f80fd5b50610243610348366004611479565b610818565b348015610358575f80fd5b506101f7610367366004611479565b60056020525f908152604090205481565b348015610383575f80fd5b5061024361088a565b348015610397575f80fd5b506006546102a9906001600160a01b031681565b3480156103b6575f80fd5b5061019d6108c8565b3480156103ca575f80fd5b506101d26103d9366004611479565b600f6020525f908152604090205460ff1681565b3480156103f8575f80fd5b50610243610407366004611479565b6108d5565b348015610417575f80fd5b506101d2610426366004611411565b610922565b348015610436575f80fd5b506010546102a9906001600160a01b031681565b348015610455575f80fd5b50610243610464366004611494565b610ac2565b348015610474575f80fd5b50610243610483366004611505565b610d05565b348015610493575f80fd5b506101f760085481565b3480156104a8575f80fd5b50610243610d53565b3480156104bc575f80fd5b506101f76104cb36600461151c565b600460209081525f928352604080842090915290825290205481565b3480156104f2575f80fd5b50610243610d91565b348015610506575f80fd5b50610243610515366004611553565b610e66565b5f805461052690611573565b80601f016020809104026020016040519081016040528092919081815260200182805461055290611573565b801561059d5780601f106105745761010080835404028352916020019161059d565b820191905f5260205f20905b81548152906001019060200180831161058057829003601f168201915b505050505081565b335f8181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105ff9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0382165f908152600f602052604081205460ff1615610737576008545f0361063f57436008555b6001600160a01b0384165f9081526011602052604090205460ff1615801561067f57506001600160a01b0383165f9081526011602052604090205460ff16155b15610737575f6064600c548461069591906115bf565b61069f91906115d6565b90506106ac853083610ec8565b50305f90815260036020526040902054600d5460ff1680156106dc5750600a546002546106d991906115d6565b81115b80156106f05750600954610100900460ff16155b1561071a576009805461ff00191661010017905561070d81610fb5565b506009805461ff00191690555b61072e868661072985886115f5565b610ec8565b92505050610745565b610742848484610ec8565b90505b9392505050565b6006546001600160a01b031633146107765760405162d8c99b60e41b815260040160405180910390fd5b6001600160a01b03811661079c576040516252b55360e31b815260040160405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b5f7f000000000000000000000000000000000000000000000000000000000000000146146107f3576107ee6112a0565b905090565b507fa243d247307e2c6a64024a96f3925874954a80348f9899d8e82f13a99ba8609a90565b6006546001600160a01b031633146108425760405162d8c99b60e41b815260040160405180910390fd5b6001600160a01b038116610868576040516252b55360e31b815260040160405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146108b45760405162d8c99b60e41b815260040160405180910390fd5b600d805460ff19811660ff90911615179055565b6001805461052690611573565b6006546001600160a01b031633146108ff5760405162d8c99b60e41b815260040160405180910390fd5b6001600160a01b03165f908152600f60205260409020805460ff19166001179055565b335f9081526011602052604081205460ff1615801561095957506001600160a01b0383165f9081526011602052604090205460ff16155b15610ab857335f908152600f602052604090205460ff1615610ab8575f6064600e548461098691906115bf565b61099091906115d6565b905061099c3082611338565b5060095460ff1680156109b0575060085415155b15610a2f57610160600854436109c691906115f5565b1015610a24576002600854436109dc91906115f5565b6109e691906115d6565b60b06002546109f591906115d6565b6109ff91906115bf565b831115610a1f57604051636faadd2b60e01b815260040160405180910390fd5b610a2f565b6009805460ff191690555b305f90815260036020526040902054600b5460ff168015610a5e5750600a54600254610a5b91906115d6565b81115b8015610a725750600954610100900460ff16155b15610a9c576009805461ff001916610100179055610a8f81610fb5565b506009805461ff00191690555b610aaf85610aaa84876115f5565b611338565b9250505061060b565b6107458383611338565b42841015610b175760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064015b60405180910390fd5b5f6001610b226107be565b6001600160a01b038a81165f8181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610c2a573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615801590610c605750876001600160a01b0316816001600160a01b0316145b610c9d5760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610b0e565b6001600160a01b039081165f9081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6006546001600160a01b03163314610d2f5760405162d8c99b60e41b815260040160405180910390fd5b805f03610d4e576040516252b55360e31b815260040160405180910390fd5b600a55565b6006546001600160a01b03163314610d7d5760405162d8c99b60e41b815260040160405180910390fd5b600b805460ff19811660ff90911615179055565b6006546001600160a01b03163314610dbb5760405162d8c99b60e41b815260040160405180910390fd5b305f908152600360205260408120549003610de957604051636165515360e11b815260040160405180910390fd5b305f90815260036020526040902054610e0190610fb5565b5060075f9054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b158015610e4e575f80fd5b505af1158015610e60573d5f803e3d5ffd5b50505050565b6006546001600160a01b03163314610e905760405162d8c99b60e41b815260040160405180910390fd5b601e821180610e9f5750601e81115b15610ebd576040516353ac56af60e11b815260040160405180910390fd5b600e91909155600c55565b6001600160a01b0383165f9081526004602090815260408083203384529091528120545f198114610f2157610efd83826115f5565b6001600160a01b0386165f9081526004602090815260408083203384529091529020555b6001600160a01b0385165f9081526003602052604081208054859290610f489084906115f5565b90915550506001600160a01b038085165f81815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610fa29087815260200190565b60405180910390a3506001949350505050565b6040805160028082526060820183525f928392919060208301908036833701905050905030815f81518110610fec57610fec611608565b6001600160a01b03928316602091820292909201015260125482519116908290600190811061101d5761101d611608565b6001600160a01b03928316602091820292909201015260135460405163095ea7b360e01b81529116600482015260248101849052309063095ea7b3906044016020604051808303815f875af1158015611078573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109c919061161c565b5060135460405163791ac94760e01b81526001600160a01b039091169063791ac947906110d59086905f9086903090429060040161163b565b5f604051808303815f87803b1580156110ec575f80fd5b505af11580156110fe573d5f803e3d5ffd5b50506012546001600160a01b0316915063d0e30db090506111206002476115d6565b6040518263ffffffff1660e01b81526004015f604051808303818588803b158015611149575f80fd5b505af115801561115b573d5f803e3d5ffd5b50506012546007546040516370a0823160e01b81523060048201526001600160a01b03928316955063a9059cbb94509116915083906370a08231906024016020604051808303815f875af11580156111b5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111d991906116ac565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015611221573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611245919061161c565b506010546040515f916001600160a01b03169047908381818185875af1925050503d805f8114611290576040519150601f19603f3d011682016040523d82523d5f602084013e611295565b606091505b509095945050505050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f5f6040516112d091906116c3565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b335f908152600360205260408120805483919083906113589084906115f5565b90915550506001600160a01b0383165f81815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906105ff9086815260200190565b5f602080835283518060208501525f5b818110156113da578581018301518582016040015282016113be565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461140e575f80fd5b50565b5f8060408385031215611422575f80fd5b823561142d816113fa565b946020939093013593505050565b5f805f6060848603121561144d575f80fd5b8335611458816113fa565b92506020840135611468816113fa565b929592945050506040919091013590565b5f60208284031215611489575f80fd5b8135610745816113fa565b5f805f805f805f60e0888a0312156114aa575f80fd5b87356114b5816113fa565b965060208801356114c5816113fa565b95506040880135945060608801359350608088013560ff811681146114e8575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f60208284031215611515575f80fd5b5035919050565b5f806040838503121561152d575f80fd5b8235611538816113fa565b91506020830135611548816113fa565b809150509250929050565b5f8060408385031215611564575f80fd5b50508035926020909101359150565b600181811c9082168061158757607f821691505b6020821081036115a557634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761060b5761060b6115ab565b5f826115f057634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561060b5761060b6115ab565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561162c575f80fd5b81518015158114610745575f80fd5b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b8181101561168b5784516001600160a01b031683529383019391830191600101611666565b50506001600160a01b03969096166060850152505050608001529392505050565b5f602082840312156116bc575f80fd5b5051919050565b5f8083545f60018260011c915060018316806116e057607f831692505b602080841082036116ff57634e487b7160e01b5f52602260045260245ffd5b818015611713576001811461172857611753565b60ff1986168952841515850289019650611753565b5f8a8152602090205f5b8681101561174b5781548b820152908501908301611732565b505084890196505b50949897505050505050505056fea26469706673582212204fb8dbaeef765bed153d2c94d3e4f085f2254a9d45b3bb30134bb42c450afa6b64736f6c63430008180033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.