ETH Price: $2,551.70 (-4.87%)

Token

YAMv2 (YAMv2)
 

Overview

Max Total Supply

3,726,411.616545120934755180424489 YAMv2

Holders

3,342 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 24 Decimals)

Balance
0.342433736712186385145804 YAMv2

Value
$0.00
0x42de60a6ef338658a40525a3a5b5a2b97410c7c5
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

YAM token contract has migrated to 0x0AaCfbeC6a24756c20D41914F2caba817C0d8521.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
YAMv2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 50000 runs

Other Settings:
default evmVersion, None license, Audited

Contract Source Code (Solidity)Audit Report

/**
 *Submitted for verification at Etherscan.io on 2020-08-19
*/

pragma solidity 0.6.12;

// YAMv2: a temporary token in the evolution of the YAM protocol that allows the holder to vote for the future of the protocol in v3

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


/*
 * @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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }

    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}



/**
  * @title YAMv2 Token
  * @dev YAMv2 Mintable Token with migration from legacy contract. Used to signal
  *      for protocol changes in v3.
  */
contract YAMv2 is Context, IERC20 {
    using SafeMath for uint256;

    address public minter;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    modifier onlyMinter() {
        require(_msgSender() == minter, "!minter");
        _;
    }

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a value of 24.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, address minter_) public {
        _name = name;
        _symbol = symbol;
        _setupDecimals(24); // match internalDecimals of YAMv1

        minter = minter_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }


    /** @dev Used by the migration contract
     *
     */
    function mint(address account, uint256 amount) public virtual onlyMinter {
        _mint(account, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"minter_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","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":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200112a3803806200112a833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b506040526020908101518551909350620001b992506004918601906200021b565b508151620001cf9060059060208501906200021b565b50620001dc601862000205565b600080546001600160a01b0319166001600160a01b039290921691909117905550620002b79050565b6006805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025e57805160ff19168380011785556200028e565b828001600101855582156200028e579182015b828111156200028e57825182559160200191906001019062000271565b506200029c929150620002a0565b5090565b5b808211156200029c5760008155600101620002a1565b610e6380620002c76000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b4114610301578063a457c2d714610309578063a9059cbb14610342578063dd62ed3e1461037b576100df565b8063395093511461025a57806340c10f191461029357806370a08231146102ce576100df565b806318160ddd116100bd57806318160ddd146101df57806323b872dd146101f9578063313ce5671461023c576100df565b806306fdde03146100e45780630754617214610161578063095ea7b314610192575b600080fd5b6100ec6103b6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61016961046a565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101cb600480360360408110156101a857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610486565b604080519115158252519081900360200190f35b6101e76104a3565b60408051918252519081900360200190f35b6101cb6004803603606081101561020f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356104a9565b61024461054a565b6040805160ff9092168252519081900360200190f35b6101cb6004803603604081101561027057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610553565b6102cc600480360360408110156102a957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356105ae565b005b6101e7600480360360208110156102e457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661065f565b6100ec610687565b6101cb6004803603604081101561031f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610706565b6101cb6004803603604081101561035857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561077b565b6101e76004803603604081101561039157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661078f565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104605780601f1061043557610100808354040283529160200191610460565b820191906000526020600020905b81548152906001019060200180831161044357829003601f168201915b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600061049a6104936107c7565b84846107cb565b50600192915050565b60035490565b60006104b6848484610912565b610540846104c26107c7565b61053b85604051806060016040528060288152602001610d986028913973ffffffffffffffffffffffffffffffffffffffff8a1660009081526002602052604081209061050d6107c7565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190610ad9565b6107cb565b5060019392505050565b60065460ff1690565b600061049a6105606107c7565b8461053b85600260006105716107c7565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c168152925290205490610b8a565b60005473ffffffffffffffffffffffffffffffffffffffff166105cf6107c7565b73ffffffffffffffffffffffffffffffffffffffff161461065157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f216d696e74657200000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b61065b8282610c05565b5050565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b60058054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104605780601f1061043557610100808354040283529160200191610460565b600061049a6107136107c7565b8461053b85604051806060016040528060258152602001610e09602591396002600061073d6107c7565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d16815292529020549190610ad9565b600061049a6107886107c7565b8484610912565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316610837576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610de56024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166108a3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180610d506022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff831661097e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610dc06025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166109ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180610d2d6023913960400191505060405180910390fd5b610a3481604051806060016040528060268152602001610d726026913973ffffffffffffffffffffffffffffffffffffffff86166000908152600160205260409020549190610ad9565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160205260408082209390935590841681522054610a709082610b8a565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610b82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b47578181015183820152602001610b2f565b50505050905090810190601f168015610b745780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610bfe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8216610c8757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600354610c949082610b8a565b60035573ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902054610cc79082610b8a565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203dd8721c007f94ea976126d7416a1969afaa7d21600c9b42d8d1a4e00c29b6c364736f6c634300060c0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f1d7c9e4c57a5c1902f4a4ae2630d2da78ffb1c1000000000000000000000000000000000000000000000000000000000000000559414d7632000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000559414d7632000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100df5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b4114610301578063a457c2d714610309578063a9059cbb14610342578063dd62ed3e1461037b576100df565b8063395093511461025a57806340c10f191461029357806370a08231146102ce576100df565b806318160ddd116100bd57806318160ddd146101df57806323b872dd146101f9578063313ce5671461023c576100df565b806306fdde03146100e45780630754617214610161578063095ea7b314610192575b600080fd5b6100ec6103b6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61016961046a565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101cb600480360360408110156101a857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610486565b604080519115158252519081900360200190f35b6101e76104a3565b60408051918252519081900360200190f35b6101cb6004803603606081101561020f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356104a9565b61024461054a565b6040805160ff9092168252519081900360200190f35b6101cb6004803603604081101561027057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610553565b6102cc600480360360408110156102a957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356105ae565b005b6101e7600480360360208110156102e457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661065f565b6100ec610687565b6101cb6004803603604081101561031f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610706565b6101cb6004803603604081101561035857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561077b565b6101e76004803603604081101561039157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661078f565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104605780601f1061043557610100808354040283529160200191610460565b820191906000526020600020905b81548152906001019060200180831161044357829003601f168201915b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600061049a6104936107c7565b84846107cb565b50600192915050565b60035490565b60006104b6848484610912565b610540846104c26107c7565b61053b85604051806060016040528060288152602001610d986028913973ffffffffffffffffffffffffffffffffffffffff8a1660009081526002602052604081209061050d6107c7565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190610ad9565b6107cb565b5060019392505050565b60065460ff1690565b600061049a6105606107c7565b8461053b85600260006105716107c7565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c168152925290205490610b8a565b60005473ffffffffffffffffffffffffffffffffffffffff166105cf6107c7565b73ffffffffffffffffffffffffffffffffffffffff161461065157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f216d696e74657200000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b61065b8282610c05565b5050565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b60058054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104605780601f1061043557610100808354040283529160200191610460565b600061049a6107136107c7565b8461053b85604051806060016040528060258152602001610e09602591396002600061073d6107c7565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d16815292529020549190610ad9565b600061049a6107886107c7565b8484610912565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316610837576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610de56024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166108a3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180610d506022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff831661097e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610dc06025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166109ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180610d2d6023913960400191505060405180910390fd5b610a3481604051806060016040528060268152602001610d726026913973ffffffffffffffffffffffffffffffffffffffff86166000908152600160205260409020549190610ad9565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160205260408082209390935590841681522054610a709082610b8a565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610b82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b47578181015183820152602001610b2f565b50505050905090810190601f168015610b745780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610bfe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8216610c8757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600354610c949082610b8a565b60035573ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902054610cc79082610b8a565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203dd8721c007f94ea976126d7416a1969afaa7d21600c9b42d8d1a4e00c29b6c364736f6c634300060c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f1d7c9e4c57a5c1902f4a4ae2630d2da78ffb1c1000000000000000000000000000000000000000000000000000000000000000559414d7632000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000559414d7632000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): YAMv2
Arg [1] : symbol (string): YAMv2
Arg [2] : minter_ (address): 0xf1d7c9E4c57a5C1902f4A4aE2630d2Da78Ffb1c1

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000f1d7c9e4c57a5c1902f4a4ae2630d2da78ffb1c1
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 59414d7632000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 59414d7632000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

9420:8434:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10422:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9496:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;12528:169;;;;;;;;;;;;;;;;-1:-1:-1;12528:169:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;11497:100;;;:::i;:::-;;;;;;;;;;;;;;;;13171:321;;;;;;;;;;;;;;;;-1:-1:-1;13171:321:0;;;;;;;;;;;;;;;;;;:::i;11349:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13901:218;;;;;;;;;;;;;;;;-1:-1:-1;13901:218:0;;;;;;;;;:::i;15932:114::-;;;;;;;;;;;;;;;;-1:-1:-1;15932:114:0;;;;;;;;;:::i;:::-;;11660:119;;;;;;;;;;;;;;;;-1:-1:-1;11660:119:0;;;;:::i;10624:87::-;;;:::i;14622:269::-;;;;;;;;;;;;;;;;-1:-1:-1;14622:269:0;;;;;;;;;:::i;11992:175::-;;;;;;;;;;;;;;;;-1:-1:-1;11992:175:0;;;;;;;;;:::i;12230:151::-;;;;;;;;;;;;;;;;-1:-1:-1;12230:151:0;;;;;;;;;;;:::i;10422:83::-;10492:5;10485:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10459:13;;10485:12;;10492:5;;10485:12;;10492:5;10485:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10422:83;:::o;9496:21::-;;;;;;:::o;12528:169::-;12611:4;12628:39;12637:12;:10;:12::i;:::-;12651:7;12660:6;12628:8;:39::i;:::-;-1:-1:-1;12685:4:0;12528:169;;;;:::o;11497:100::-;11577:12;;11497:100;:::o;13171:321::-;13277:4;13294:36;13304:6;13312:9;13323:6;13294:9;:36::i;:::-;13341:121;13350:6;13358:12;:10;:12::i;:::-;13372:89;13410:6;13372:89;;;;;;;;;;;;;;;;;:19;;;;;;;:11;:19;;;;;;13392:12;:10;:12::i;:::-;13372:33;;;;;;;;;;;;;-1:-1:-1;13372:33:0;;;:89;:37;:89::i;:::-;13341:8;:121::i;:::-;-1:-1:-1;13480:4:0;13171:321;;;;;:::o;11349:83::-;11415:9;;;;11349:83;:::o;13901:218::-;13989:4;14006:83;14015:12;:10;:12::i;:::-;14029:7;14038:50;14077:10;14038:11;:25;14050:12;:10;:12::i;:::-;14038:25;;;;;;;;;;;;;;;;;;-1:-1:-1;14038:25:0;;;:34;;;;;;;;;;;:38;:50::i;15932:114::-;9841:6;;;;9825:12;:10;:12::i;:::-;:22;;;9817:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16016:22:::1;16022:7;16031:6;16016:5;:22::i;:::-;15932:114:::0;;:::o;11660:119::-;11753:18;;11726:7;11753:18;;;:9;:18;;;;;;;11660:119::o;10624:87::-;10696:7;10689:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10663:13;;10689:14;;10696:7;;10689:14;;10696:7;10689:14;;;;;;;;;;;;;;;;;;;;;;;;14622:269;14715:4;14732:129;14741:12;:10;:12::i;:::-;14755:7;14764:96;14803:15;14764:96;;;;;;;;;;;;;;;;;:11;:25;14776:12;:10;:12::i;:::-;14764:25;;;;;;;;;;;;;;;;;;-1:-1:-1;14764:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;11992:175::-;12078:4;12095:42;12105:12;:10;:12::i;:::-;12119:9;12130:6;12095:9;:42::i;12230:151::-;12346:18;;;;12319:7;12346:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;12230:151::o;8906:106::-;8994:10;8906:106;:::o;17083:346::-;17185:19;;;17177:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17264:21;;;17256:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17337:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;17389:32;;;;;;;;;;;;;;;;;17083:346;;;:::o;15381:479::-;15487:20;;;15479:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15568:23;;;15560:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15664;15686:6;15664:71;;;;;;;;;;;;;;;;;:17;;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;15644:17;;;;;;;;:9;:17;;;;;;:91;;;;15769:20;;;;;;;:32;;15794:6;15769:24;:32::i;:::-;15746:20;;;;;;;;:9;:20;;;;;;;;;:55;;;;15817:35;;;;;;;15746:20;;15817:35;;;;;;;;;;;;;15381:479;;;:::o;1882:192::-;1968:7;2004:12;1996:6;;;;1988:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2040:5:0;;;1882:192::o;995:181::-;1053:7;1085:5;;;1109:6;;;;1101:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1167:1;995:181;-1:-1:-1;;;995:181:0:o;16327:316::-;16411:21;;;16403:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16496:12;;:24;;16513:6;16496:16;:24::i;:::-;16481:12;:39;16552:18;;;;;;;:9;:18;;;;;;:30;;16575:6;16552:22;:30::i;:::-;16531:18;;;;;;;:9;:18;;;;;;;;:51;;;;16598:37;;;;;;;16531:18;;;;16598:37;;;;;;;;;;16327:316;;:::o

Swarm Source

ipfs://3dd8721c007f94ea976126d7416a1969afaa7d21600c9b42d8d1a4e00c29b6c3
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.