ETH Price: $3,407.65 (+3.42%)

Contract

0xf1d7c9E4c57a5C1902f4A4aE2630d2Da78Ffb1c1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate115197602020-12-25 1:08:061429 days ago1608858486IN
Yam.Finance: Migration Contract
0 ETH0.004279200
Migrate109385462020-09-26 13:39:561519 days ago1601127596IN
Yam.Finance: Migration Contract
0 ETH0.0018399786
Migrate109385462020-09-26 13:39:561519 days ago1601127596IN
Yam.Finance: Migration Contract
0 ETH0.0014334667
Migrate109385462020-09-26 13:39:561519 days ago1601127596IN
Yam.Finance: Migration Contract
0 ETH0.0014334667
Migrate109385272020-09-26 13:35:341519 days ago1601127334IN
Yam.Finance: Migration Contract
0 ETH0.001711680
Migrate109385272020-09-26 13:35:341519 days ago1601127334IN
Yam.Finance: Migration Contract
0 ETH0.0046855219
Migrate109345382020-09-25 22:45:351519 days ago1601073935IN
Yam.Finance: Migration Contract
0 ETH0.0046855219
Migrate109345382020-09-25 22:45:351519 days ago1601073935IN
Yam.Finance: Migration Contract
0 ETH0.0046855219
Migrate109345382020-09-25 22:45:351519 days ago1601073935IN
Yam.Finance: Migration Contract
0 ETH0.0018185785
Migrate109345382020-09-25 22:45:351519 days ago1601073935IN
Yam.Finance: Migration Contract
0 ETH0.00293242137.061
Migrate109345382020-09-25 22:45:351519 days ago1601073935IN
Yam.Finance: Migration Contract
0 ETH0.00286693134
Migrate109345382020-09-25 22:45:351519 days ago1601073935IN
Yam.Finance: Migration Contract
0 ETH0.0002781313
Migrate108946012020-09-19 19:31:421526 days ago1600543902IN
Yam.Finance: Migration Contract
0 ETH0.0019683492
Migrate108919802020-09-19 9:59:121526 days ago1600509552IN
Yam.Finance: Migration Contract
0 ETH0.0020753197
Migrate108888082020-09-18 22:14:301526 days ago1600467270IN
Yam.Finance: Migration Contract
0 ETH0.004279200
Migrate108888072020-09-18 22:13:581526 days ago1600467238IN
Yam.Finance: Migration Contract
0 ETH0.004279200
Migrate107900512020-09-03 18:54:091542 days ago1599159249IN
Yam.Finance: Migration Contract
0 ETH0.00922124431
Migrate107567532020-08-29 16:32:511547 days ago1598718771IN
Yam.Finance: Migration Contract
0 ETH0.00288832135
Migrate107562692020-08-29 14:43:241547 days ago1598712204IN
Yam.Finance: Migration Contract
0 ETH0.0020111394
Migrate107562692020-08-29 14:43:241547 days ago1598712204IN
Yam.Finance: Migration Contract
0 ETH0.0019255590
Migrate107557552020-08-29 12:53:491547 days ago1598705629IN
Yam.Finance: Migration Contract
0 ETH0.0021395100
Migrate107487602020-08-28 11:01:381548 days ago1598612498IN
Yam.Finance: Migration Contract
0 ETH0.0006418530
Migrate107487602020-08-28 11:01:381548 days ago1598612498IN
Yam.Finance: Migration Contract
0 ETH0.0006418530
Migrate107359462020-08-26 11:56:291550 days ago1598442989IN
Yam.Finance: Migration Contract
0 ETH0.0019255590
Migrate107359442020-08-26 11:56:221550 days ago1598442982IN
Yam.Finance: Migration Contract
0 ETH0.0019255590
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YAMv2Migration

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 50000 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

pragma solidity 0.6.12;

// YAMv2 migration contract: burns v1 token and mints v2 tokens

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

/**
 * @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 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;
    }
}

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


/*
 * @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;
    }
}


/**
 * @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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

interface YAM {
  function balanceOfUnderlying(address owner) external view returns (uint256);
  function balanceOf(address owner) external view returns (uint256);
  function yamsScalingFactor() external view returns (uint256);
}

interface YAMv2 {
  function mint(address owner, uint256 amount) external;
}

/**
 * @title YAMv2 Token
 * @dev YAMv2 Mintable Token with migration from legacy contract. Used to signal
 *      for protocol changes in v3.
 */
contract YAMv2Migration is Context, Ownable {

    using SafeMath for uint256;

    address public constant yam = address(0x0e2298E3B3390e3b945a5456fBf59eCc3f55DA16);

    address public yamV2;

    bool public token_initialized;

    uint256 public constant migrationDuration = 3 days;

    uint256 public constant startTime = 1597854000; //08/19/2020 @ 4:20pm (UTC)

    uint256 public constant internalDecimals = 10**24;

    constructor () public {
    }

    /**
     * @dev Sets yamV2 token address
     *
     * One way function. Set in deployment scripts
     */
    function setV2Address(address yamV2_) public onlyOwner {
      require(!token_initialized, "already set");
      token_initialized = true;
      yamV2 = yamV2_;
    }


    /**
     * @dev Migrate a users' entire balance
     *
     * One way function. YAMv1 tokens are BURNED. YAMv2 tokens are minted.
     */
    function migrate() public virtual {
        require(block.timestamp >= startTime, "!started");
        require(block.timestamp < startTime + migrationDuration, "migration ended");
        require(token_initialized, "YAMv2 not set yet");

        // current scalingFactor
        uint256 scalingFactor = YAM(yam).yamsScalingFactor();

        // gets the yamValue for a user.
        uint256 yamValue = YAM(yam).balanceOfUnderlying(_msgSender());

        // gets transferFrom amount by multiplying by scaling factor / 10**24
        // equivalent to balanceOf, but we need underlyingAmount later
        uint256 transferAmount = yamValue.mul(scalingFactor).div(internalDecimals);

        // since balanceOfUnderlying has more decimals than balanceOf,
        // we cant transfer the entirety of balanceOfUnderlying.
        // we have no method of decrementing balanceOfUnderlying directly,
        // as this is not intended use.
        // remainder is guaranteed to be less than 10^-18
        // not a perfect solution, but is not profitable to do in almost any
        // gas environment
        // requires migrating 10000000000000000000 times to mint an additional
        // underlying yam
        require(transferAmount > 0, "No yams");


        // BURN YAM - UNRECOVERABLE.
        SafeERC20.safeTransferFrom(
            IERC20(yam),
            _msgSender(),
            address(0x000000000000000000000000000000000000dEaD),
            transferAmount
        );

        // mint new YAMv2, using yamValue (1e24 decimal token, to match internalDecimals)
        YAMv2(yamV2).mint(_msgSender(), yamValue);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"internalDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrationDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"yamV2_","type":"address"}],"name":"setV2Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token_initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yam","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yamV2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b610fa18061007d6000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c80638da5cb5b11610081578063b5e6cb821161005b578063b5e6cb821461018a578063e0705b8b14610192578063f2fde38b1461019a576100c9565b80638da5cb5b146101475780638fd3ab801461014f578063ab3cc9c014610157576100c9565b806364dd48f5116100b257806364dd48f51461011b578063715018a61461013557806378e979251461013f576100c9565b8063071c0332146100ce578063637b1c4f146100ff575b600080fd5b6100d66101cd565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101076101e5565b604080519115158252519081900360200190f35b610123610206565b60408051918252519081900360200190f35b61013d610214565b005b610123610314565b6100d661031c565b61013d610338565b61013d6004803603602081101561016d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661071d565b6100d66108ba565b6101236108d6565b61013d600480360360208110156101b057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108dd565b730e2298e3b3390e3b945a5456fbf59ecc3f55da1681565b60015474010000000000000000000000000000000000000000900460ff1681565b69d3c21bcecceda100000081565b61021c610a67565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146102a557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b635f3d513081565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b635f3d51304210156103ab57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f2173746172746564000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b635f4145b0421061041d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6d6967726174696f6e20656e6465640000000000000000000000000000000000604482015290519081900360640190fd5b60015474010000000000000000000000000000000000000000900460ff166104a657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f59414d7632206e6f742073657420796574000000000000000000000000000000604482015290519081900360640190fd5b6000730e2298e3b3390e3b945a5456fbf59ecc3f55da1673ffffffffffffffffffffffffffffffffffffffff1663b6fa85766040518163ffffffff1660e01b815260040160206040518083038186803b15801561050257600080fd5b505afa158015610516573d6000803e3d6000fd5b505050506040513d602081101561052c57600080fd5b505190506000730e2298e3b3390e3b945a5456fbf59ecc3f55da16633af9e669610554610a67565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561059e57600080fd5b505afa1580156105b2573d6000803e3d6000fd5b505050506040513d60208110156105c857600080fd5b5051905060006105ec69d3c21bcecceda10000006105e68486610a6b565b90610ae7565b90506000811161065d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f4e6f2079616d7300000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b610686730e2298e3b3390e3b945a5456fbf59ecc3f55da1661067d610a67565b61dead84610b29565b60015473ffffffffffffffffffffffffffffffffffffffff166340c10f196106ac610a67565b846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561070057600080fd5b505af1158015610714573d6000803e3d6000fd5b50505050505050565b610725610a67565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146107ae57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60015474010000000000000000000000000000000000000000900460ff161561083857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f616c726561647920736574000000000000000000000000000000000000000000604482015290519081900360640190fd5b60018054740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909116177fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6203f48081565b6108e5610a67565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461096e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166109da576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180610efb6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b600082610a7a57506000610ae1565b82820282848281610a8757fe5b0414610ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610f216021913960400191505060405180910390fd5b90505b92915050565b6000610ade83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610bc4565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610bbe908590610c80565b50505050565b60008183610c6a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c2f578181015183820152602001610c17565b50505050905090810190601f168015610c5c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610c7657fe5b0495945050505050565b610c9f8273ffffffffffffffffffffffffffffffffffffffff16610ebe565b610d0a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310610d7357805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610d36565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610dd5576040519150601f19603f3d011682016040523d82523d6000602084013e610dda565b606091505b509150915081610e4b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610bbe57808060200190516020811015610e6757600080fd5b5051610bbe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180610f42602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610ef257508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220da6625eb5d07c24ff164957ab4e8499cd18649d6dc7af4b10e99a41f7504c7b164736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100c95760003560e01c80638da5cb5b11610081578063b5e6cb821161005b578063b5e6cb821461018a578063e0705b8b14610192578063f2fde38b1461019a576100c9565b80638da5cb5b146101475780638fd3ab801461014f578063ab3cc9c014610157576100c9565b806364dd48f5116100b257806364dd48f51461011b578063715018a61461013557806378e979251461013f576100c9565b8063071c0332146100ce578063637b1c4f146100ff575b600080fd5b6100d66101cd565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101076101e5565b604080519115158252519081900360200190f35b610123610206565b60408051918252519081900360200190f35b61013d610214565b005b610123610314565b6100d661031c565b61013d610338565b61013d6004803603602081101561016d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661071d565b6100d66108ba565b6101236108d6565b61013d600480360360208110156101b057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108dd565b730e2298e3b3390e3b945a5456fbf59ecc3f55da1681565b60015474010000000000000000000000000000000000000000900460ff1681565b69d3c21bcecceda100000081565b61021c610a67565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146102a557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b635f3d513081565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b635f3d51304210156103ab57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f2173746172746564000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b635f4145b0421061041d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6d6967726174696f6e20656e6465640000000000000000000000000000000000604482015290519081900360640190fd5b60015474010000000000000000000000000000000000000000900460ff166104a657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f59414d7632206e6f742073657420796574000000000000000000000000000000604482015290519081900360640190fd5b6000730e2298e3b3390e3b945a5456fbf59ecc3f55da1673ffffffffffffffffffffffffffffffffffffffff1663b6fa85766040518163ffffffff1660e01b815260040160206040518083038186803b15801561050257600080fd5b505afa158015610516573d6000803e3d6000fd5b505050506040513d602081101561052c57600080fd5b505190506000730e2298e3b3390e3b945a5456fbf59ecc3f55da16633af9e669610554610a67565b6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561059e57600080fd5b505afa1580156105b2573d6000803e3d6000fd5b505050506040513d60208110156105c857600080fd5b5051905060006105ec69d3c21bcecceda10000006105e68486610a6b565b90610ae7565b90506000811161065d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f4e6f2079616d7300000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b610686730e2298e3b3390e3b945a5456fbf59ecc3f55da1661067d610a67565b61dead84610b29565b60015473ffffffffffffffffffffffffffffffffffffffff166340c10f196106ac610a67565b846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561070057600080fd5b505af1158015610714573d6000803e3d6000fd5b50505050505050565b610725610a67565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146107ae57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60015474010000000000000000000000000000000000000000900460ff161561083857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f616c726561647920736574000000000000000000000000000000000000000000604482015290519081900360640190fd5b60018054740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909116177fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6203f48081565b6108e5610a67565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461096e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166109da576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180610efb6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b600082610a7a57506000610ae1565b82820282848281610a8757fe5b0414610ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610f216021913960400191505060405180910390fd5b90505b92915050565b6000610ade83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610bc4565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610bbe908590610c80565b50505050565b60008183610c6a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c2f578181015183820152602001610c17565b50505050905090810190601f168015610c5c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610c7657fe5b0495945050505050565b610c9f8273ffffffffffffffffffffffffffffffffffffffff16610ebe565b610d0a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310610d7357805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610d36565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610dd5576040519150601f19603f3d011682016040523d82523d6000602084013e610dda565b606091505b509150915081610e4b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610bbe57808060200190516020811015610e6757600080fd5b5051610bbe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180610f42602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610ef257508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220da6625eb5d07c24ff164957ab4e8499cd18649d6dc7af4b10e99a41f7504c7b164736f6c634300060c0033

Deployed Bytecode Sourcemap

18231:2589:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18319:81;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18438:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;18618:49;;;:::i;:::-;;;;;;;;;;;;;;;;17206:148;;;:::i;:::-;;18535:46;;;:::i;16564:79::-;;;:::i;19157:1660::-;;;:::i;18830:170::-;;;;;;;;;;;;;;;;-1:-1:-1;18830:170:0;;;;:::i;18409:20::-;;;:::i;18476:50::-;;;:::i;17509:244::-;;;;;;;;;;;;;;;;-1:-1:-1;17509:244:0;;;;:::i;18319:81::-;18357:42;18319:81;:::o;18438:29::-;;;;;;;;;:::o;18618:49::-;18661:6;18618:49;:::o;17206:148::-;16786:12;:10;:12::i;:::-;16776:6;;:22;:6;;;:22;;;16768:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17313:1:::1;17297:6:::0;;17276:40:::1;::::0;::::1;17297:6:::0;;::::1;::::0;17276:40:::1;::::0;17313:1;;17276:40:::1;17344:1;17327:19:::0;;;::::1;::::0;;17206:148::o;18535:46::-;18571:10;18535:46;:::o;16564:79::-;16602:7;16629:6;;;16564:79;:::o;19157:1660::-;18571:10;19210:15;:28;;19202:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19288:29;19270:15;:47;19262:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19356:17;;;;;;;19348:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19442:21;18357:42;19466:26;;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19466:28:0;;-1:-1:-1;19549:16:0;18357:42;19568:28;19597:12;:10;:12::i;:::-;19568:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19568:42:0;;-1:-1:-1;19774:22:0;19799:49;18661:6;19799:27;19568:42;19812:13;19799:12;:27::i;:::-;:31;;:49::i;:::-;19774:74;;20413:1;20396:14;:18;20388:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20479:185;18357:42;20546:12;:10;:12::i;:::-;20581:42;20639:14;20479:26;:185::i;:::-;20774:5;;;;20768:17;20786:12;:10;:12::i;:::-;20800:8;20768:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19157:1660;;;:::o;18830:170::-;16786:12;:10;:12::i;:::-;16776:6;;:22;:6;;;:22;;;16768:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18903:17:::1;::::0;;;::::1;;;18902:18;18894:42;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;18965:4;18945:24:::0;;;;;;::::1;;18978:14:::0;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;18830:170::o;18409:20::-;;;;;;:::o;18476:50::-;18520:6;18476:50;:::o;17509:244::-;16786:12;:10;:12::i;:::-;16776:6;;:22;:6;;;:22;;;16768:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17598:22:::1;::::0;::::1;17590:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17700:6;::::0;;17679:38:::1;::::0;::::1;::::0;;::::1;::::0;17700:6;::::1;::::0;17679:38:::1;::::0;::::1;17728:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;17509:244::o;15200:106::-;15288:10;15200:106;:::o;7608:471::-;7666:7;7911:6;7907:47;;-1:-1:-1;7941:1:0;7934:8;;7907:47;7978:5;;;7982:1;7978;:5;:1;8002:5;;;;;:10;7994:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8070:1;-1:-1:-1;7608:471:0;;;;;:::o;8547:132::-;8605:7;8632:39;8636:1;8639;8632:39;;;;;;;;;;;;;;;;;:3;:39::i;11492:205::-;11620:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11643:27;11620:68;;;11593:96;;11613:5;;11593:19;:96::i;:::-;11492:205;;;;:::o;9167:345::-;9253:7;9355:12;9348:5;9340:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9379:9;9395:1;9391;:5;;;;;;;9167:345;-1:-1:-1;;;;;9167:345:0:o;13351:1115::-;13956:27;13964:5;13956:25;;;:27::i;:::-;13948:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14093:12;14107:23;14142:5;14134:19;;14154:4;14134:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14092:67;;;;14178:7;14170:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14239:17;;:21;14235:224;;14381:10;14370:30;;;;;;;;;;;;;;;-1:-1:-1;14370:30:0;14362:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:619;835:4;1303:20;;1146:66;1343:23;;;;;;:42;;-1:-1:-1;1370:15:0;;;1343:42;1335:51;775:619;-1:-1:-1;;;;775:619:0:o

Swarm Source

ipfs://da6625eb5d07c24ff164957ab4e8499cd18649d6dc7af4b10e99a41f7504c7b1

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Migrate Yam from V1 to V2.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.