Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
81,018,654.8187 AMMO
Holders
2,774
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
22,172.47644 AMMOValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AmmoToken
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import {GIGADRIP20} from "./GIGADRIP20.sol"; contract AmmoToken is Ownable, GIGADRIP20 { error NotOwnerOrBanditsContract(); address public onChainBandits; constructor() GIGADRIP20("AMMO", "AMMO", 18, 1670000000000000) {} /*============================================================== == Dripping Functions == ==============================================================*/ /** * @dev only bandits can start dripping tokens (on mint or transfer). * owner can override and start dripping if theres any issue. * will remove ownership when not needed so extra tokens cannot be arbitrarily dripped. */ function startDripping(address addr, uint128 multiplier) external { if (msg.sender != onChainBandits && msg.sender != owner()) revert NotOwnerOrBanditsContract(); _startDripping(addr, multiplier); } /** * @dev only bandits can stop dripping tokens (on burn or transfer). * owner can override and stop dripping if theres any issue. * will remove ownership when not needed so tokens cannot be arbitrarily stopped. */ function stopDripping(address addr, uint128 multiplier) external { if (msg.sender != onChainBandits && msg.sender != owner()) revert NotOwnerOrBanditsContract(); _stopDripping(addr, multiplier); } function burn(address from, uint256 value) external { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - value; _burn(from, value); } /*============================================================== == Only Owner Functions == ==============================================================*/ /** * @dev mint tokens to desired address. * may be used for prize pools, DEX liquidity, etc. * will remove ownership when not needed so extra tokens cannot be minted. */ function mint(address to, uint256 amount) external onlyOwner { _mint(to, amount); } function setOnChainBandits(address onChainBanditsAddress) external onlyOwner { onChainBandits = onChainBanditsAddress; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.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. * * By default, the owner account will be the one that deploys the contract. 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; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; ///@author 0xBeans ///@notice This is a beefed up ERC20 implementation of DRIP20 that supports emission multipliers. ///@notice Multipliers are useful when certain users should accrue larger emissions. For example, ///@notice if an NFT drips 10 tokens per block to a user, and the user has 3 NFTs, then the user ///@notice should accrue 3 times as many tokens per block. This user would have a multiplier of 3. ///@notice shout out to solmate (@t11s) for the slim and efficient ERC20 implementation! ///@notice shout out to superfluid and UBI for the dripping inspiration! abstract contract GIGADRIP20 { /*============================================================== == ERRORS == ==============================================================*/ error UserNotAccruing(); error ERC20_TransferToZeroAddress(); /*============================================================== == 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 == ==============================================================*/ mapping(address => mapping(address => uint256)) public allowance; /*============================================================== == DRIP STORAGE == ==============================================================*/ struct Accruer { uint256 balance; uint128 accrualStartBlock; uint128 multiplier; } // immutable token emission rate per block uint256 public immutable emissionRatePerBlock; // wallets currently getting dripped tokens mapping(address => Accruer) private _accruers; // these are all for calculating totalSupply() uint256 private _currAccrued; uint128 private _currEmissionBlockNum; uint128 private _currEmissionMultiple; constructor( string memory _name, string memory _symbol, uint8 _decimals, uint256 _emissionRatePerBlock ) { name = _name; symbol = _symbol; decimals = _decimals; emissionRatePerBlock = _emissionRatePerBlock; } /*============================================================== == ERC20 IMPL == ==============================================================*/ 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) { _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]; if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; _transfer(from, to, amount); return true; } function balanceOf(address addr) public view returns (uint256) { Accruer memory accruer = _accruers[addr]; if (accruer.accrualStartBlock == 0) { return accruer.balance; } return ((block.number - accruer.accrualStartBlock) * emissionRatePerBlock) * accruer.multiplier + accruer.balance; } function totalSupply() public view returns (uint256) { return _currAccrued + (block.number - _currEmissionBlockNum) * emissionRatePerBlock * _currEmissionMultiple; } function _transfer( address from, address to, uint256 amount ) internal virtual { if (to == address(0)) revert ERC20_TransferToZeroAddress(); Accruer storage fromAccruer = _accruers[from]; Accruer storage toAccruer = _accruers[to]; fromAccruer.balance = balanceOf(from) - amount; unchecked { toAccruer.balance += amount; } if (fromAccruer.accrualStartBlock != 0) { fromAccruer.accrualStartBlock = uint128(block.number); } emit Transfer(from, to, amount); } /*============================================================== == DRIP LOGIC == ==============================================================*/ /** * @dev Add an address to start dripping tokens to. * @dev We need to update _currAccrued whenever we add a new dripper or INCREASE a dripper multiplier to properly update totalSupply() * @dev IMPORTANT: Everytime you call this with an addr already getting dripped to, it will INCREASE the multiplier * @param addr address to drip to * @param multiplier used to increase token drip. ie if 1 NFT drips 10 tokens per block and this address has 3 NFTs, * the user would need to get dripped 30 tokens per block - multipler would multiply emissions by 3 */ function _startDripping(address addr, uint128 multiplier) internal virtual { Accruer storage accruer = _accruers[addr]; // need to update the balance if wallet was already accruing if (accruer.accrualStartBlock != 0) { accruer.balance = balanceOf(addr); } else { // emit Transfer event when new address starts dripping emit Transfer(address(0), addr, 0); } _currAccrued = totalSupply(); _currEmissionBlockNum = uint128(block.number); accruer.accrualStartBlock = uint128(block.number); // should not overflow unless you have >2**256-1 items... unchecked { _currEmissionMultiple += multiplier; accruer.multiplier += multiplier; } } /** * @dev Add an address to stop dripping tokens to. * @dev We need to update _currAccrued whenever we remove a dripper or DECREASE a dripper multiplier to properly update totalSupply() * @dev IMPORTANT: Everytime you call this with an addr already getting dripped to, it will DECREASE the multiplier * @dev IMPORTANT: Decrease the multiplier to 0 to completely stop the address from getting dripped to * @param addr address to stop dripping to * @param multiplier used to decrease token drip. ie if addr has a multiplier of 3 already, passing in a value of 1 would decrease * the multiplier to 2 */ function _stopDripping(address addr, uint128 multiplier) internal virtual { Accruer storage accruer = _accruers[addr]; // should I check for 0 multiplier too if (accruer.accrualStartBlock == 0) revert UserNotAccruing(); accruer.balance = balanceOf(addr); _currAccrued = totalSupply(); _currEmissionBlockNum = uint128(block.number); // will revert if underflow occurs _currEmissionMultiple -= multiplier; accruer.multiplier -= multiplier; if (accruer.multiplier == 0) { accruer.accrualStartBlock = 0; } else { accruer.accrualStartBlock = uint128(block.number); } } /*============================================================== == MINT/BURN == ==============================================================*/ function _mint(address to, uint256 amount) internal virtual { Accruer storage accruer = _accruers[to]; unchecked { _currAccrued += amount; accruer.balance += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { Accruer storage accruer = _accruers[from]; // have to update supply before burning _currAccrued = totalSupply(); _currEmissionBlockNum = uint128(block.number); accruer.balance = balanceOf(from) - amount; // Cannot underflow because amount can // never be greater than the totalSupply() unchecked { _currAccrued -= amount; } // update accruers block number if user was accruing if (accruer.accrualStartBlock != 0) { accruer.accrualStartBlock = uint128(block.number); } emit Transfer(from, address(0), amount); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC20_TransferToZeroAddress","type":"error"},{"inputs":[],"name":"NotOwnerOrBanditsContract","type":"error"},{"inputs":[],"name":"UserNotAccruing","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[{"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":"addr","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onChainBandits","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"onChainBanditsAddress","type":"address"}],"name":"setOnChainBandits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint128","name":"multiplier","type":"uint128"}],"name":"startDripping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint128","name":"multiplier","type":"uint128"}],"name":"stopDripping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060405180604001604052806004815260200163414d4d4f60e01b81525060405180604001604052806004815260200163414d4d4f60e01b81525060126605eedb2cc66000620000706200006a620000a260201b60201c565b620000a6565b60016200007e85826200019b565b5060026200008d84826200019b565b5060ff90911660805260a05250620002679050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200012157607f821691505b6020821081036200014257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019657600081815260208120601f850160051c81016020861015620001715750805b601f850160051c820191505b8181101562000192578281556001016200017d565b5050505b505050565b81516001600160401b03811115620001b757620001b7620000f6565b620001cf81620001c884546200010c565b8462000148565b602080601f831160018114620002075760008415620001ee5750858301515b600019600386901b1c1916600185901b17855562000192565b600085815260208120601f198616915b82811015620002385788860151825594840194600190910190840162000217565b5085821015620002575787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051610ed66200029b6000396000818161024f0152818161041601526105ae015260006101950152610ed66000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad5780639dc29fac116100715780639dc29fac1461028a578063a9059cbb1461029d578063dd62ed3e146102b0578063f2fde38b146102db578063fd285219146102ee57600080fd5b8063715018a61461022f57806380ee2c0f146102375780638b5298391461024a5780638da5cb5b1461027157806395d89b411461028257600080fd5b8063313ce567116100f4578063313ce5671461019057806340c10f19146101c957806342db1046146101de57806346ccecf3146101f157806370a082311461021c57600080fd5b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016757806323b872dd1461017d575b600080fd5b61012e610301565b60405161013b9190610c6b565b60405180910390f35b610157610152366004610cd5565b61038f565b604051901515815260200161013b565b61016f6103fc565b60405190815260200161013b565b61015761018b366004610cff565b610467565b6101b77f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff909116815260200161013b565b6101dc6101d7366004610cd5565b6104d9565b005b6101dc6101ec366004610d3b565b6104ef565b600754610204906001600160a01b031681565b6040516001600160a01b03909116815260200161013b565b61016f61022a366004610d7e565b61053d565b6101dc61060b565b6101dc610245366004610d7e565b61061f565b61016f7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b0316610204565b61012e610649565b6101dc610298366004610cd5565b610656565b6101576102ab366004610cd5565b6106c1565b61016f6102be366004610d99565b600360209081526000928352604080842090915290825290205481565b6101dc6102e9366004610d7e565b6106d7565b6101dc6102fc366004610d3b565b610755565b6001805461030e90610dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461033a90610dcc565b80156103875780601f1061035c57610100808354040283529160200191610387565b820191906000526020600020905b81548152906001019060200180831161036a57829003601f168201915b505050505081565b3360008181526003602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103ea9086815260200190565b60405180910390a35060015b92915050565b6006546000906001600160801b03600160801b82048116917f000000000000000000000000000000000000000000000000000000000000000091610441911643610e1c565b61044b9190610e2f565b6104559190610e2f565b6005546104629190610e46565b905090565b6001600160a01b038316600090815260036020908152604080832033845290915281205460001981146104c35761049e8382610e1c565b6001600160a01b03861660009081526003602090815260408083203384529091529020555b6104ce8585856107a3565b506001949350505050565b6104e1610879565b6104eb82826108d3565b5050565b6007546001600160a01b0316331480159061051557506000546001600160a01b03163314155b156105335760405163be520f7b60e01b815260040160405180910390fd5b6104eb8282610924565b6001600160a01b03811660009081526004602090815260408083208151606081018352815481526001909101546001600160801b03808216948301859052600160801b9091041691810191909152908203610599575192915050565b806000015181604001516001600160801b03167f000000000000000000000000000000000000000000000000000000000000000083602001516001600160801b0316436105e69190610e1c565b6105f09190610e2f565b6105fa9190610e2f565b6106049190610e46565b9392505050565b610613610879565b61061d6000610a88565b565b610627610879565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6002805461030e90610dcc565b6001600160a01b038216600090815260036020908152604080832033845290915290205460001981146106b25761068d8282610e1c565b6001600160a01b03841660009081526003602090815260408083203384529091529020555b6106bc8383610ad8565b505050565b60006106ce3384846107a3565b50600192915050565b6106df610879565b6001600160a01b0381166107495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61075281610a88565b50565b6007546001600160a01b0316331480159061077b57506000546001600160a01b03163314155b156107995760405163be520f7b60e01b815260040160405180910390fd5b6104eb8282610b92565b6001600160a01b0382166107c9576040516261696b60e71b815260040160405180910390fd5b6001600160a01b0380841660009081526004602052604080822092851682529020826107f48661053d565b6107fe9190610e1c565b825580548301815560018201546001600160801b031615610837576001820180546001600160801b031916436001600160801b03161790555b836001600160a01b0316856001600160a01b0316600080516020610e818339815191528560405161086a91815260200190565b60405180910390a35050505050565b6000546001600160a01b0316331461061d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610740565b6001600160a01b03821660008181526004602090815260408083206005805487019055805486018155905185815290939291600080516020610e8183398151915291015b60405180910390a3505050565b6001600160a01b0382166000908152600460205260408120600181015490916001600160801b03909116900361096d57604051630cd684a960e11b815260040160405180910390fd5b6109768361053d565b81556109806103fc565b600555600680546001600160801b031916436001600160801b03908116919091178083558492916010916109bd918591600160801b900416610e59565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550818160010160108282829054906101000a90046001600160801b0316610a079190610e59565b92506101000a8154816001600160801b0302191690836001600160801b031602179055508060010160109054906101000a90046001600160801b03166001600160801b0316600003610a685760010180546001600160801b03191690555050565b60010180546001600160801b031916436001600160801b03161790555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166000908152600460205260409020610af86103fc565b600555600680546001600160801b031916436001600160801b031617905581610b208461053d565b610b2a9190610e1c565b815560058054839003905560018101546001600160801b031615610b66576001810180546001600160801b031916436001600160801b03161790555b6040518281526000906001600160a01b03851690600080516020610e8183398151915290602001610917565b6001600160a01b038216600090815260046020526040902060018101546001600160801b031615610bcd57610bc68361053d565b8155610bfc565b60405160008082526001600160a01b03851691600080516020610e818339815191529060200160405180910390a35b610c046103fc565b600555600680546001600160801b0319908116436001600160801b03908116918217845560019490940180549092161781558154808416600160801b9182900485168601851682021790925580548084169083900484169094019092160291909117905550565b600060208083528351808285015260005b81811015610c9857858101830151858201604001528201610c7c565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610cd057600080fd5b919050565b60008060408385031215610ce857600080fd5b610cf183610cb9565b946020939093013593505050565b600080600060608486031215610d1457600080fd5b610d1d84610cb9565b9250610d2b60208501610cb9565b9150604084013590509250925092565b60008060408385031215610d4e57600080fd5b610d5783610cb9565b915060208301356001600160801b0381168114610d7357600080fd5b809150509250929050565b600060208284031215610d9057600080fd5b61060482610cb9565b60008060408385031215610dac57600080fd5b610db583610cb9565b9150610dc360208401610cb9565b90509250929050565b600181811c90821680610de057607f821691505b602082108103610e0057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156103f6576103f6610e06565b80820281158282048414176103f6576103f6610e06565b808201808211156103f6576103f6610e06565b6001600160801b03828116828216039080821115610e7957610e79610e06565b509291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122053f1f09b938c8c458d472b02ee6d590d31fec07e195e882feafedfc854f05c9064736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad5780639dc29fac116100715780639dc29fac1461028a578063a9059cbb1461029d578063dd62ed3e146102b0578063f2fde38b146102db578063fd285219146102ee57600080fd5b8063715018a61461022f57806380ee2c0f146102375780638b5298391461024a5780638da5cb5b1461027157806395d89b411461028257600080fd5b8063313ce567116100f4578063313ce5671461019057806340c10f19146101c957806342db1046146101de57806346ccecf3146101f157806370a082311461021c57600080fd5b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016757806323b872dd1461017d575b600080fd5b61012e610301565b60405161013b9190610c6b565b60405180910390f35b610157610152366004610cd5565b61038f565b604051901515815260200161013b565b61016f6103fc565b60405190815260200161013b565b61015761018b366004610cff565b610467565b6101b77f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff909116815260200161013b565b6101dc6101d7366004610cd5565b6104d9565b005b6101dc6101ec366004610d3b565b6104ef565b600754610204906001600160a01b031681565b6040516001600160a01b03909116815260200161013b565b61016f61022a366004610d7e565b61053d565b6101dc61060b565b6101dc610245366004610d7e565b61061f565b61016f7f0000000000000000000000000000000000000000000000000005eedb2cc6600081565b6000546001600160a01b0316610204565b61012e610649565b6101dc610298366004610cd5565b610656565b6101576102ab366004610cd5565b6106c1565b61016f6102be366004610d99565b600360209081526000928352604080842090915290825290205481565b6101dc6102e9366004610d7e565b6106d7565b6101dc6102fc366004610d3b565b610755565b6001805461030e90610dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461033a90610dcc565b80156103875780601f1061035c57610100808354040283529160200191610387565b820191906000526020600020905b81548152906001019060200180831161036a57829003601f168201915b505050505081565b3360008181526003602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103ea9086815260200190565b60405180910390a35060015b92915050565b6006546000906001600160801b03600160801b82048116917f0000000000000000000000000000000000000000000000000005eedb2cc6600091610441911643610e1c565b61044b9190610e2f565b6104559190610e2f565b6005546104629190610e46565b905090565b6001600160a01b038316600090815260036020908152604080832033845290915281205460001981146104c35761049e8382610e1c565b6001600160a01b03861660009081526003602090815260408083203384529091529020555b6104ce8585856107a3565b506001949350505050565b6104e1610879565b6104eb82826108d3565b5050565b6007546001600160a01b0316331480159061051557506000546001600160a01b03163314155b156105335760405163be520f7b60e01b815260040160405180910390fd5b6104eb8282610924565b6001600160a01b03811660009081526004602090815260408083208151606081018352815481526001909101546001600160801b03808216948301859052600160801b9091041691810191909152908203610599575192915050565b806000015181604001516001600160801b03167f0000000000000000000000000000000000000000000000000005eedb2cc6600083602001516001600160801b0316436105e69190610e1c565b6105f09190610e2f565b6105fa9190610e2f565b6106049190610e46565b9392505050565b610613610879565b61061d6000610a88565b565b610627610879565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6002805461030e90610dcc565b6001600160a01b038216600090815260036020908152604080832033845290915290205460001981146106b25761068d8282610e1c565b6001600160a01b03841660009081526003602090815260408083203384529091529020555b6106bc8383610ad8565b505050565b60006106ce3384846107a3565b50600192915050565b6106df610879565b6001600160a01b0381166107495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61075281610a88565b50565b6007546001600160a01b0316331480159061077b57506000546001600160a01b03163314155b156107995760405163be520f7b60e01b815260040160405180910390fd5b6104eb8282610b92565b6001600160a01b0382166107c9576040516261696b60e71b815260040160405180910390fd5b6001600160a01b0380841660009081526004602052604080822092851682529020826107f48661053d565b6107fe9190610e1c565b825580548301815560018201546001600160801b031615610837576001820180546001600160801b031916436001600160801b03161790555b836001600160a01b0316856001600160a01b0316600080516020610e818339815191528560405161086a91815260200190565b60405180910390a35050505050565b6000546001600160a01b0316331461061d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610740565b6001600160a01b03821660008181526004602090815260408083206005805487019055805486018155905185815290939291600080516020610e8183398151915291015b60405180910390a3505050565b6001600160a01b0382166000908152600460205260408120600181015490916001600160801b03909116900361096d57604051630cd684a960e11b815260040160405180910390fd5b6109768361053d565b81556109806103fc565b600555600680546001600160801b031916436001600160801b03908116919091178083558492916010916109bd918591600160801b900416610e59565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550818160010160108282829054906101000a90046001600160801b0316610a079190610e59565b92506101000a8154816001600160801b0302191690836001600160801b031602179055508060010160109054906101000a90046001600160801b03166001600160801b0316600003610a685760010180546001600160801b03191690555050565b60010180546001600160801b031916436001600160801b03161790555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166000908152600460205260409020610af86103fc565b600555600680546001600160801b031916436001600160801b031617905581610b208461053d565b610b2a9190610e1c565b815560058054839003905560018101546001600160801b031615610b66576001810180546001600160801b031916436001600160801b03161790555b6040518281526000906001600160a01b03851690600080516020610e8183398151915290602001610917565b6001600160a01b038216600090815260046020526040902060018101546001600160801b031615610bcd57610bc68361053d565b8155610bfc565b60405160008082526001600160a01b03851691600080516020610e818339815191529060200160405180910390a35b610c046103fc565b600555600680546001600160801b0319908116436001600160801b03908116918217845560019490940180549092161781558154808416600160801b9182900485168601851682021790925580548084169083900484169094019092160291909117905550565b600060208083528351808285015260005b81811015610c9857858101830151858201604001528201610c7c565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610cd057600080fd5b919050565b60008060408385031215610ce857600080fd5b610cf183610cb9565b946020939093013593505050565b600080600060608486031215610d1457600080fd5b610d1d84610cb9565b9250610d2b60208501610cb9565b9150604084013590509250925092565b60008060408385031215610d4e57600080fd5b610d5783610cb9565b915060208301356001600160801b0381168114610d7357600080fd5b809150509250929050565b600060208284031215610d9057600080fd5b61060482610cb9565b60008060408385031215610dac57600080fd5b610db583610cb9565b9150610dc360208401610cb9565b90509250929050565b600181811c90821680610de057607f821691505b602082108103610e0057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156103f6576103f6610e06565b80820281158282048414176103f6576103f6610e06565b808201808211156103f6576103f6610e06565b6001600160801b03828116828216039080821115610e7957610e79610e06565b509291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122053f1f09b938c8c458d472b02ee6d590d31fec07e195e882feafedfc854f05c9064736f6c63430008110033
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.