ETH Price: $2,982.03 (+1.26%)
Gas: 6 Gwei

Contract

0x31de2088f38ed7F8a4231dE03973814edA1f8773
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Delegate164148302023-01-15 21:17:59473 days ago1673817479IN
0x31de2088...edA1f8773
0 ETH0.0010763822.25095283
0x60c06040121832332021-04-06 1:43:541123 days ago1617673434IN
 Create: InstaTokenDelegate
0 ETH0.37679955142

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InstaTokenDelegate

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : TokenDelegate.sol
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { TokenDelegateStorageV1, TokenEvents} from "./TokenInterfaces.sol";
import { SafeMath } from "./SafeMath.sol";

contract InstaTokenDelegate is TokenDelegateStorageV1, TokenEvents {
    /// @notice Minimum time between mints
    uint32 public constant minimumTimeBetweenMints = 1 days * 365; // 365 days

    /// @notice Cap on the percentage of totalSupply that can be minted at each mint
    uint8 public constant mintCap = 2; // 2%

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice The EIP-712 typehash for the permit struct used by the contract
    bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");


    /**
      * @notice Used to initialize the contract during delegator constructor
      * @param account The address to recieve initial suppply
      * @param mintingAllowedAfter_ Timestamp of the next allowed minting
      * @param transferPaused_ Flag to make the token non-transferable
      */
    function initialize(address account, uint initialSupply_, uint mintingAllowedAfter_, bool transferPaused_) public {
        require(mintingAllowedAfter == 0, "Token::initialize: can only initialize once");
        require(totalSupply == 0, "Token::initialize: can only initialize once");
        require(mintingAllowedAfter_ >= block.timestamp, "Token::constructor: minting can only begin after deployment");
        require(account != address(0), "Token::initialize: invalid address");
        require(initialSupply_ > 0, "Token::initialize: invalid initial supply");

        totalSupply = initialSupply_;

        balances[account] = uint96(totalSupply);
        emit Transfer(address(0), account, totalSupply);
        mintingAllowedAfter = mintingAllowedAfter_;
        transferPaused = transferPaused_;

        if (transferPaused) {
            emit TransferPaused(msg.sender);
        } else {
            emit TransferUnpaused(msg.sender);
        }
    }

    /**
     * @notice Pause the token transfer
     */
    function pauseTransfer() external isMaster {
        transferPaused = true;
        emit TransferPaused(msg.sender);
    }

    /**
     * @notice Unpause the token transfer
     */
    function unpauseTransfer() external isMaster {
        transferPaused = false;
        emit TransferUnpaused(msg.sender);
    }

    /**
     * @notice Change token name
     * @param name_ New token name
     */
    function changeName(string calldata name_) external isMaster {
        require(bytes(name_).length > 0, "Tkn::changeName: name_ length invaild");

        emit ChangedName(name, name_);

        name = name_;
    }

    /**
     * @notice Change token symbol
     * @param symbol_ New token symbol
     */
    function changeSymbol(string calldata symbol_) external isMaster {
        require(bytes(symbol_).length > 0, "Tkn::changeSymbol: name_name_ length invaild");

        emit ChangedName(symbol, symbol_);

        symbol = symbol_;
    }

    /**
     * @notice Get the number of tokens `spender` is approved to spend on behalf of `account`
     * @param account The address of the account holding the funds
     * @param spender The address of the account spending the funds
     * @return The number of tokens approved
     */
    function allowance(address account, address spender) external view returns (uint) {
        return allowances[account][spender];
    }

    /**
     * @notice Approve `spender` to transfer up to `amount` from `src`
     * @dev This will overwrite the approval amount for `spender`
     *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
     * @param spender The address of the account which may transfer tokens
     * @param rawAmount The number of tokens that are approved (2^256-1 means infinite)
     * @return Whether or not the approval succeeded
     */
    function approve(address spender, uint rawAmount) external returns (bool) {
        uint96 amount;
        if (rawAmount == uint(-1)) {
            amount = uint96(-1);
        } else {
            amount = safe96(rawAmount, "Tkn::approve: amount exceeds 96 bits");
        }

        allowances[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);
        return true;
    }

    /**
     * @notice Triggers an approval from owner to spends
     * @param owner The address to approve from
     * @param spender The address to be approved
     * @param rawAmount The number of tokens that are approved (2^256-1 means infinite)
     * @param deadline The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function permit(address owner, address spender, uint rawAmount, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
        uint96 amount;
        if (rawAmount == uint(-1)) {
            amount = uint96(-1);
        } else {
            amount = safe96(rawAmount, "Tkn::permit: amount exceeds 96 bits");
        }

        bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this)));
        bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, rawAmount, nonces[owner]++, deadline));
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "Tkn::permit: invalid signature");
        require(signatory == owner, "Tkn::permit: unauthorized");
        require(block.timestamp <= deadline, "Tkn::permit: signature expired");

        allowances[owner][spender] = amount;

        emit Approval(owner, spender, amount);
    }

    /**
     * @notice Get the number of tokens held by the `account`
     * @param account The address of the account to get the balance of
     * @return The number of tokens held
     */
    function balanceOf(address account) external view returns (uint) {
        return balances[account];
    }

    /**
     * @notice Transfer `amount` tokens from `msg.sender` to `dst`
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transfer(address dst, uint rawAmount) external returns (bool) {
        uint96 amount = safe96(rawAmount, "Tkn::transfer: amount exceeds 96 bits");
        _transferTokens(msg.sender, dst, amount);
        return true;
    }

    /**
     * @notice Transfer `amount` tokens from `src` to `dst`
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferFrom(address src, address dst, uint rawAmount) external returns (bool) {
        address spender = msg.sender;
        uint96 spenderAllowance = allowances[src][spender];
        uint96 amount = safe96(rawAmount, "Tkn::approve: amount exceeds 96 bits");

        if (spender != src && spenderAllowance != uint96(-1)) {
            uint96 newAllowance = sub96(spenderAllowance, amount, "Tkn::transferFrom: transfer amount exceeds spender allowance");
            allowances[src][spender] = newAllowance;

            emit Approval(src, spender, newAllowance);
        }

        _transferTokens(src, dst, amount);
        return true;
    }

    /**
     * @notice Mint new tokens
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to be minted
     */
    function mint(address dst, uint rawAmount) external isMaster {
        require(block.timestamp >= mintingAllowedAfter, "Uni::mint: minting not allowed yet");
        require(dst != address(0), "Tkn::mint: cannot transfer to the zero address");

        // record the mint
        mintingAllowedAfter = SafeMath.add(block.timestamp, minimumTimeBetweenMints);

        // mint the amount
        uint96 amount = safe96(rawAmount, "Tkn::mint: amount exceeds 96 bits");
        require(amount <= SafeMath.div(SafeMath.mul(totalSupply, mintCap), 100), "Uni::mint: exceeded mint cap");
        totalSupply = safe96(SafeMath.add(totalSupply, amount), "Uni::mint: totalSupply exceeds 96 bits");

        // transfer the amount to the recipient
        balances[dst] = add96(balances[dst], amount, "Tkn::mint: transfer amount overflows");
        emit Transfer(address(0), dst, amount);

        // move delegates
        _moveDelegates(address(0), delegates[dst], amount);
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) public {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) public {
        bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this)));
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "Tkn::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "Tkn::delegateBySig: invalid nonce");
        require(block.timestamp <= expiry, "Tkn::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account) external view returns (uint96) {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber) public view returns (uint96) {
        require(blockNumber < block.number, "Tkn::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }


    function _delegate(address delegator, address delegatee) internal {
        address currentDelegate = delegates[delegator];
        uint96 delegatorBalance = balances[delegator];
        delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _transferTokens(address src, address dst, uint96 amount) internal {
        require(!transferPaused, "Tkn::_transferTokens: transfer paused");
        require(src != address(0), "Tkn::_transferTokens: cannot transfer from the zero address");
        require(dst != address(0), "Tkn::_transferTokens: cannot transfer to the zero address");

        balances[src] = sub96(balances[src], amount, "Tkn::_transferTokens: transfer amount exceeds balance");
        balances[dst] = add96(balances[dst], amount, "Tkn::_transferTokens: transfer amount overflows");
        emit Transfer(src, dst, amount);

        _moveDelegates(delegates[src], delegates[dst], amount);
    }

    function _moveDelegates(address srcRep, address dstRep, uint96 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew = sub96(srcRepOld, amount, "Tkn::_moveVotes: vote amount underflows");
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew = add96(dstRepOld, amount, "Tkn::_moveVotes: vote amount overflows");
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(address delegatee, uint32 nCheckpoints, uint96 oldVotes, uint96 newVotes) internal {
        uint32 blockNumber = safe32(block.number, "Tkn::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }


    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function safe96(uint n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    function add96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

File 3 of 3 : TokenInterfaces.sol
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

interface IndexInterface {
    function master() external view returns (address);
}

contract TokenEvents {
    
    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /// @notice An event thats emitted when the minter changes
    event MinterChanged(address indexed oldMinter, address indexed newMinter);

    /// @notice The standard EIP-20 transfer event
    event Transfer(address indexed from, address indexed to, uint256 amount);

    /// @notice The standard EIP-20 approval event
    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /// @notice Emitted when implementation is changed
    event NewImplementation(address oldImplementation, address newImplementation);

    /// @notice An event thats emitted when the token transfered is paused
    event TransferPaused(address indexed minter);

    /// @notice An event thats emitted when the token transfered is unpaused
    event TransferUnpaused(address indexed minter);

    /// @notice An event thats emitted when the token symbol is changed
    event ChangedSymbol(string oldSybmol, string newSybmol);

    /// @notice An event thats emitted when the token name is changed
    event ChangedName(string oldName, string newName);
}

contract TokenDelegatorStorage {
    /// @notice InstaIndex contract
    IndexInterface constant public instaIndex = IndexInterface(0x2971AdFa57b20E5a416aE5a708A8655A9c74f723);

    /// @notice Active brains of Token
    address public implementation;

    /// @notice EIP-20 token name for this token
    string public name = "Instadapp";

    /// @notice EIP-20 token symbol for this token
    string public symbol = "INST";

    /// @notice Total number of tokens in circulation
    uint public totalSupply;

    /// @notice EIP-20 token decimals for this token
    uint8 public constant decimals = 18;

    modifier isMaster() {
        require(instaIndex.master() == msg.sender, "Tkn::isMaster: msg.sender not master");
        _;
    }
}

/**
 * @title Storage for Token Delegate
 * @notice For future upgrades, do not change TokenDelegateStorageV1. Create a new
 * contract which implements TokenDelegateStorageV1 and following the naming convention
 * TokenDelegateStorageVX.
 */
contract TokenDelegateStorageV1 is TokenDelegatorStorage {
    /// @notice The timestamp after which minting may occur
    uint public mintingAllowedAfter;

    /// @notice token transfer pause state
    bool public transferPaused;

    // Allowance amounts on behalf of others
    mapping (address => mapping (address => uint96)) internal allowances;

    // Official record of token balances for each account
    mapping (address => uint96) internal balances;

    /// @notice A record of each accounts delegate
    mapping (address => address) public delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint96 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;
}

File 4 of 3 : SafeMath.sol
pragma solidity ^0.7.0;

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.

/**
 * @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 addition of two unsigned integers, reverting with custom message on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, errorMessage);

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    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 multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b, string memory errorMessage) 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, errorMessage);

        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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":false,"internalType":"string","name":"oldName","type":"string"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"ChangedName","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldSybmol","type":"string"},{"indexed":false,"internalType":"string","name":"newSybmol","type":"string"}],"name":"ChangedSymbol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldMinter","type":"address"},{"indexed":true,"internalType":"address","name":"newMinter","type":"address"}],"name":"MinterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldImplementation","type":"address"},{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"NewImplementation","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"TransferPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"TransferUnpaused","type":"event"},{"inputs":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","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":"rawAmount","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":[{"internalType":"string","name":"name_","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"symbol_","type":"string"}],"name":"changeSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint96","name":"votes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"initialSupply_","type":"uint256"},{"internalType":"uint256","name":"mintingAllowedAfter_","type":"uint256"},{"internalType":"bool","name":"transferPaused_","type":"bool"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"instaIndex","outputs":[{"internalType":"contract IndexInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumTimeBetweenMints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintCap","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingAllowedAfter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405260096080819052680496e737461646170760bc1b60a09081526200002c91600191906200006f565b5060408051808201909152600480825263125394d560e21b60209092019182526200005a916002916200006f565b503480156200006857600080fd5b506200010b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000b257805160ff1916838001178555620000e2565b82800160010185558215620000e2579182015b82811115620000e2578251825591602001919060010190620000c5565b50620000f0929150620000f4565b5090565b5b80821115620000f05760008155600101620000f5565b612e31806200011b6000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80636fcfff451161011a578063a41098bf116100ad578063d505accf1161007c578063d505accf146103eb578063dd62ed3e146103fe578063e7a324dc14610411578063f1127ed814610419578063fb2cb34e1461043a576101fb565b8063a41098bf146103aa578063a9059cbb146103b2578063b4b5ea57146103c5578063c3cda520146103d8576101fb565b80637ecebe00116100e95780637ecebe001461037457806390a701391461038757806395d89b411461038f578063a3895fff14610397576101fb565b80636fcfff451461032657806370a082311461033957806376c71ca11461034c578063782d6fe114610354576101fb565b8063313ce56711610192578063587cde1e11610161578063587cde1e146102d65780635c11d62f146102f65780635c19a95c1461030b5780635c60da1b1461031e576101fb565b8063313ce5671461028857806334aef8371461029d57806340c10f19146102b05780635353a2d8146102c3576101fb565b806323b872dd116101ce57806323b872dd1461025b5780632bfea0e41461026e57806330adf81f1461027857806330b36cef14610280576101fb565b806306fdde0314610200578063095ea7b31461021e57806318160ddd1461023e57806320606b7014610253575b600080fd5b610208610442565b6040516102159190612489565b60405180910390f35b61023161022c36600461219f565b6104cf565b60405161021591906123db565b61024661058e565b60405161021591906123e6565b610246610594565b6102316102693660046120f2565b6105b8565b6102766106ff565b005b6102466107f4565b610246610818565b61029061081e565b6040516102159190612ba7565b6102766102ab3660046121ca565b610823565b6102766102be36600461219f565b6109ba565b6102766102d13660046122a5565b610c58565b6102e96102e4366004612082565b610d72565b60405161021591906123c7565b6102fe610d8d565b6040516102159190612b77565b610276610319366004612082565b610d95565b6102e9610da2565b6102fe610334366004612082565b610db1565b610246610347366004612082565b610dc9565b610290610df1565b61036761036236600461219f565b610df6565b6040516102159190612bb5565b610246610382366004612082565b611004565b610276611016565b610208611105565b6102766103a53660046122a5565b61115d565b6102e9611277565b6102316103c036600461219f565b61128f565b6103676103d3366004612082565b6112cb565b6102766103e6366004612217565b61133c565b6102766103f9366004612132565b611518565b61024661040c3660046120ba565b6117f0565b610246611824565b61042c610427366004612270565b611848565b604051610215929190612b88565b61023161187d565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104c75780601f1061049c576101008083540402835291602001916104c7565b820191906000526020600020905b8154815290600101906020018083116104aa57829003601f168201915b505050505081565b6000806000198314156104e5575060001961050a565b61050783604051806060016040528060248152602001612c7560249139611886565b90505b3360008181526006602090815260408083206001600160a01b03891680855292529182902080546001600160601b0319166001600160601b03861617905590519091907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061057a908590612bb5565b60405180910390a360019150505b92915050565b60035481565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6001600160a01b03831660009081526006602090815260408083203380855290835281842054825160608101909352602480845291936001600160601b039091169285926106109288929190612c7590830139611886565b9050866001600160a01b0316836001600160a01b03161415801561063d57506001600160601b0382811614155b156106e757600061066783836040518060600160405280603c8152602001612d9b603c91396118b5565b6001600160a01b038981166000818152600660209081526040808320948a16808452949091529081902080546001600160601b0319166001600160601b0386161790555192935090917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906106dd908590612bb5565b60405180910390a3505b6106f28787836118f4565b5060019695505050505050565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561075657600080fd5b505afa15801561076a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078e919061209e565b6001600160a01b0316146107bd5760405162461bcd60e51b81526004016107b4906128b5565b60405180910390fd5b6005805460ff1916905560405133907f27b779563480879c8e2872999840b721537eb09dccf94115a2276ca341cdbb5290600090a2565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60045481565b601281565b600454156108435760405162461bcd60e51b81526004016107b49061278a565b600354156108635760405162461bcd60e51b81526004016107b49061278a565b428210156108835760405162461bcd60e51b81526004016107b49061293e565b6001600160a01b0384166108a95760405162461bcd60e51b81526004016107b4906125fe565b600083116108c95760405162461bcd60e51b81526004016107b4906126f3565b60038381556001600160a01b03851660008181526007602052604080822080546001600160601b0319166001600160601b03891617905592549251919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91610933916123e6565b60405180910390a360048290556005805460ff1916821515179081905560ff16156109885760405133907f483d42b2ec355eefc30508020d123de3c2fca2f0d6f8e751f98449099242b76b90600090a26109b4565b60405133907f27b779563480879c8e2872999840b721537eb09dccf94115a2276ca341cdbb5290600090a25b50505050565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a49919061209e565b6001600160a01b031614610a6f5760405162461bcd60e51b81526004016107b4906128b5565b600454421015610a915760405162461bcd60e51b81526004016107b4906127d5565b6001600160a01b038216610ab75760405162461bcd60e51b81526004016107b49061273c565b610ac5426301e13380611abd565b6004819055506000610aef82604051806060016040528060218152602001612ceb60219139611886565b9050610b0b610b04600354600260ff16611ae2565b6064611b1c565b816001600160601b03161115610b335760405162461bcd60e51b81526004016107b490612a3e565b610b69610b4b600354836001600160601b0316611abd565b604051806060016040528060268152602001612c0560269139611886565b6001600160601b039081166003556001600160a01b038416600090815260076020908152604091829020548251606081019093526024808452610bbc9491909116928592909190612c5190830139611b5e565b6001600160a01b03841660008181526007602052604080822080546001600160601b0319166001600160601b03959095169490941790935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610c26908590612bb5565b60405180910390a36001600160a01b03808416600090815260086020526040812054610c53921683611b9a565b505050565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b158015610caf57600080fd5b505afa158015610cc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce7919061209e565b6001600160a01b031614610d0d5760405162461bcd60e51b81526004016107b4906128b5565b80610d2a5760405162461bcd60e51b81526004016107b4906128f9565b7ffdcc9059d3426f73949b49e5d977553aa298184439da800d66f48959d9cc76b060018383604051610d5e939291906124dc565b60405180910390a1610c5360018383611fc7565b6008602052600090815260409020546001600160a01b031681565b6301e1338081565b610d9f3382611d2c565b50565b6000546001600160a01b031681565b600a6020526000908152604090205463ffffffff1681565b6001600160a01b0381166000908152600760205260409020546001600160601b03165b919050565b600281565b6000438210610e175760405162461bcd60e51b81526004016107b4906129f8565b6001600160a01b0383166000908152600a602052604090205463ffffffff1680610e45576000915050610588565b6001600160a01b038416600090815260096020908152604080832063ffffffff600019860181168552925290912054168310610ec1576001600160a01b03841660009081526009602090815260408083206000199490940163ffffffff1683529290522054600160201b90046001600160601b03169050610588565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff16831015610efc576000915050610588565b600060001982015b8163ffffffff168163ffffffff161115610fbf57600282820363ffffffff16048103610f2e612045565b506001600160a01b038716600090815260096020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b03169181019190915290871415610f9a576020015194506105889350505050565b805163ffffffff16871115610fb157819350610fb8565b6001820392505b5050610f04565b506001600160a01b038516600090815260096020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b600b6020526000908152604090205481565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561106d57600080fd5b505afa158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a5919061209e565b6001600160a01b0316146110cb5760405162461bcd60e51b81526004016107b4906128b5565b6005805460ff1916600117905560405133907f483d42b2ec355eefc30508020d123de3c2fca2f0d6f8e751f98449099242b76b90600090a2565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104c75780601f1061049c576101008083540402835291602001916104c7565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b1580156111b457600080fd5b505afa1580156111c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ec919061209e565b6001600160a01b0316146112125760405162461bcd60e51b81526004016107b4906128b5565b8061122f5760405162461bcd60e51b81526004016107b4906125b2565b7ffdcc9059d3426f73949b49e5d977553aa298184439da800d66f48959d9cc76b060028383604051611263939291906124dc565b60405180910390a1610c5360028383611fc7565b732971adfa57b20e5a416ae5a708a8655a9c74f72381565b6000806112b483604051806060016040528060258152602001612dd760259139611886565b90506112c13385836118f4565b5060019392505050565b6001600160a01b0381166000908152600a602052604081205463ffffffff16806112f6576000611335565b6001600160a01b0383166000908152600960209081526040808320600019850163ffffffff168452909152902054600160201b90046001600160601b03165b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866600160405161136e919061233c565b604051809103902061137e611db0565b306040516020016113929493929190612447565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf8888886040516020016113e39493929190612423565b604051602081830303815290604052805190602001209050600082826040516020016114109291906123ac565b60405160208183030381529060405280519060200120905060006001828888886040516000815260200160405260405161144d949392919061246b565b6020604051602081039080840390855afa15801561146f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166114a25760405162461bcd60e51b81526004016107b490612b32565b6001600160a01b0381166000908152600b6020526040902080546001810190915589146114e15760405162461bcd60e51b81526004016107b490612af1565b874211156115015760405162461bcd60e51b81526004016107b490612a75565b61150b818b611d2c565b505050505b505050505050565b600060001986141561152d5750600019611552565b61154f86604051806060016040528060238152602001612c9960239139611886565b90505b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666001604051611584919061233c565b6040518091039020611594611db0565b306040516020016115a89493929190612447565b60408051601f1981840301815282825280516020918201206001600160a01b038d166000908152600b8352928320805460018101909155909450919261161a927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928e928e928e9290918e91016123ef565b604051602081830303815290604052805190602001209050600082826040516020016116479291906123ac565b604051602081830303815290604052805190602001209050600060018289898960405160008152602001604052604051611684949392919061246b565b6020604051602081039080840390855afa1580156116a6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166116d95760405162461bcd60e51b81526004016107b490612aba565b8b6001600160a01b0316816001600160a01b03161461170a5760405162461bcd60e51b81526004016107b490612677565b8842111561172a5760405162461bcd60e51b81526004016107b49061257b565b84600660008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925876040516117da9190612bb5565b60405180910390a3505050505050505050505050565b6001600160a01b0391821660009081526006602090815260408083209390941682529190915220546001600160601b031690565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b600960209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b60055460ff1681565b600081600160601b84106118ad5760405162461bcd60e51b81526004016107b49190612489565b509192915050565b6000836001600160601b0316836001600160601b0316111582906118ec5760405162461bcd60e51b81526004016107b49190612489565b505050900390565b60055460ff16156119175760405162461bcd60e51b81526004016107b4906126ae565b6001600160a01b03831661193d5760405162461bcd60e51b81526004016107b490612858565b6001600160a01b0382166119635760405162461bcd60e51b81526004016107b49061299b565b6001600160a01b0383166000908152600760209081526040918290205482516060810190935260358084526119ae936001600160601b039092169285929190612d33908301396118b5565b6001600160a01b03848116600090815260076020908152604080832080546001600160601b0319166001600160601b0396871617905592861682529082902054825160608101909352602f808452611a169491909116928592909190612cbc90830139611b5e565b6001600160a01b038381166000818152600760205260409081902080546001600160601b0319166001600160601b0395909516949094179093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611a83908590612bb5565b60405180910390a36001600160a01b03808416600090815260086020526040808220548584168352912054610c5392918216911683611b9a565b6000828201838110156113355760405162461bcd60e51b81526004016107b490612640565b600082611af157506000610588565b82820282848281611afe57fe5b04146113355760405162461bcd60e51b81526004016107b490612817565b600061133583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611db4565b6000838301826001600160601b038087169083161015611b915760405162461bcd60e51b81526004016107b49190612489565b50949350505050565b816001600160a01b0316836001600160a01b031614158015611bc557506000816001600160601b0316115b15610c53576001600160a01b03831615611c7d576001600160a01b0383166000908152600a602052604081205463ffffffff169081611c05576000611c44565b6001600160a01b0385166000908152600960209081526040808320600019860163ffffffff168452909152902054600160201b90046001600160601b03165b90506000611c6b8285604051806060016040528060278152602001612d0c602791396118b5565b9050611c7986848484611deb565b5050505b6001600160a01b03821615610c53576001600160a01b0382166000908152600a602052604081205463ffffffff169081611cb8576000611cf7565b6001600160a01b0384166000908152600960209081526040808320600019860163ffffffff168452909152902054600160201b90046001600160601b03165b90506000611d1e8285604051806060016040528060268152602001612c2b60269139611b5e565b905061151085848484611deb565b6001600160a01b03808316600081815260086020818152604080842080546007845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46109b4828483611b9a565b4690565b60008183611dd55760405162461bcd60e51b81526004016107b49190612489565b506000838581611de157fe5b0495945050505050565b6000611e0f43604051806060016040528060338152602001612d6860339139611fa0565b905060008463ffffffff16118015611e5857506001600160a01b038516600090815260096020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611eb7576001600160a01b0385166000908152600960209081526040808320600019880163ffffffff168452909152902080546fffffffffffffffffffffffff000000001916600160201b6001600160601b03851602179055611f56565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000818152600983528781208c871682528352878120965187549451909516600160201b026fffffffffffffffffffffffff000000001995871663ffffffff19958616179590951694909417909555938252600a90935292909220805460018801909316929091169190911790555b846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248484604051611f91929190612bc9565b60405180910390a25050505050565b600081600160201b84106118ad5760405162461bcd60e51b81526004016107b49190612489565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106120085782800160ff19823516178555612035565b82800160010185558215612035579182015b8281111561203557823582559160200191906001019061201a565b5061204192915061205c565b5090565b604080518082019091526000808252602082015290565b5b80821115612041576000815560010161205d565b803560ff81168114610dec57600080fd5b600060208284031215612093578081fd5b813561133581612bef565b6000602082840312156120af578081fd5b815161133581612bef565b600080604083850312156120cc578081fd5b82356120d781612bef565b915060208301356120e781612bef565b809150509250929050565b600080600060608486031215612106578081fd5b833561211181612bef565b9250602084013561212181612bef565b929592945050506040919091013590565b600080600080600080600060e0888a03121561214c578283fd5b873561215781612bef565b9650602088013561216781612bef565b9550604088013594506060880135935061218360808901612071565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156121b1578182fd5b82356121bc81612bef565b946020939093013593505050565b600080600080608085870312156121df578384fd5b84356121ea81612bef565b935060208501359250604085013591506060850135801515811461220c578182fd5b939692955090935050565b60008060008060008060c0878903121561222f578182fd5b863561223a81612bef565b9550602087013594506040870135935061225660608801612071565b92506080870135915060a087013590509295509295509295565b60008060408385031215612282578182fd5b823561228d81612bef565b9150602083013563ffffffff811681146120e7578182fd5b600080602083850312156122b7578182fd5b823567ffffffffffffffff808211156122ce578384fd5b818501915085601f8301126122e1578384fd5b8135818111156122ef578485fd5b866020828501011115612300578485fd5b60209290920196919550909350505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b600080835460018082166000811461235b5760018114612372576123a1565b60ff198316865260028304607f16860193506123a1565b600283048786526020808720875b838110156123995781548a820152908501908201612380565b505050860193505b509195945050505050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b901515815260200190565b90815260200190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b938452602084019290925260408301526001600160a01b0316606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b818110156124b557858101830151858201604001528201612499565b818111156124c65783604083870101525b50601f01601f1916929092016040019392505050565b6000604082016040835281865460018082166000811461250357600181146125215761255a565b60028304607f16855260ff198316606088015260808701935061255a565b600283048086526125318b612be3565b875b828110156125505781548a82016060015290840190602001612533565b8901606001955050505b5050508381036020850152612570818688612312565b979650505050505050565b6020808252601e908201527f546b6e3a3a7065726d69743a207369676e617475726520657870697265640000604082015260600190565b6020808252602c908201527f546b6e3a3a6368616e676553796d626f6c3a206e616d655f6e616d655f206c6560408201526b1b99dd1a081a5b9d985a5b1960a21b606082015260800190565b60208082526022908201527f546f6b656e3a3a696e697469616c697a653a20696e76616c6964206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526019908201527f546b6e3a3a7065726d69743a20756e617574686f72697a656400000000000000604082015260600190565b60208082526025908201527f546b6e3a3a5f7472616e73666572546f6b656e733a207472616e736665722070604082015264185d5cd95960da1b606082015260800190565b60208082526029908201527f546f6b656e3a3a696e697469616c697a653a20696e76616c696420696e697469604082015268616c20737570706c7960b81b606082015260800190565b6020808252602e908201527f546b6e3a3a6d696e743a2063616e6e6f74207472616e7366657220746f20746860408201526d65207a65726f206164647265737360901b606082015260800190565b6020808252602b908201527f546f6b656e3a3a696e697469616c697a653a2063616e206f6e6c7920696e697460408201526a69616c697a65206f6e636560a81b606082015260800190565b60208082526022908201527f556e693a3a6d696e743a206d696e74696e67206e6f7420616c6c6f7765642079604082015261195d60f21b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252603b908201527f546b6e3a3a5f7472616e73666572546f6b656e733a2063616e6e6f742074726160408201527f6e736665722066726f6d20746865207a65726f20616464726573730000000000606082015260800190565b60208082526024908201527f546b6e3a3a69734d61737465723a206d73672e73656e646572206e6f74206d6160408201526339ba32b960e11b606082015260800190565b60208082526025908201527f546b6e3a3a6368616e67654e616d653a206e616d655f206c656e67746820696e6040820152641d985a5b1960da1b606082015260800190565b6020808252603b908201527f546f6b656e3a3a636f6e7374727563746f723a206d696e74696e672063616e2060408201527f6f6e6c7920626567696e206166746572206465706c6f796d656e740000000000606082015260800190565b60208082526039908201527f546b6e3a3a5f7472616e73666572546f6b656e733a2063616e6e6f742074726160408201527f6e7366657220746f20746865207a65726f206164647265737300000000000000606082015260800190565b60208082526026908201527f546b6e3a3a6765745072696f72566f7465733a206e6f742079657420646574656040820152651c9b5a5b995960d21b606082015260800190565b6020808252601c908201527f556e693a3a6d696e743a206578636565646564206d696e742063617000000000604082015260600190565b60208082526025908201527f546b6e3a3a64656c656761746542795369673a207369676e61747572652065786040820152641c1a5c995960da1b606082015260800190565b6020808252601e908201527f546b6e3a3a7065726d69743a20696e76616c6964207369676e61747572650000604082015260600190565b60208082526021908201527f546b6e3a3a64656c656761746542795369673a20696e76616c6964206e6f6e636040820152606560f81b606082015260800190565b60208082526025908201527f546b6e3a3a64656c656761746542795369673a20696e76616c6964207369676e604082015264617475726560d81b606082015260800190565b63ffffffff91909116815260200190565b63ffffffff9290921682526001600160601b0316602082015260400190565b60ff91909116815260200190565b6001600160601b0391909116815260200190565b6001600160601b0392831681529116602082015260400190565b60009081526020902090565b6001600160a01b0381168114610d9f57600080fdfe556e693a3a6d696e743a20746f74616c537570706c7920657863656564732039362062697473546b6e3a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773546b6e3a3a6d696e743a207472616e7366657220616d6f756e74206f766572666c6f7773546b6e3a3a617070726f76653a20616d6f756e7420657863656564732039362062697473546b6e3a3a7065726d69743a20616d6f756e7420657863656564732039362062697473546b6e3a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f7773546b6e3a3a6d696e743a20616d6f756e7420657863656564732039362062697473546b6e3a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773546b6e3a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e6365546b6e3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473546b6e3a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e6365546b6e3a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473a2646970667358221220c584ec5fce02823f403a6cbf119dd1efecd3838890613541aab2fdce1ce7d85664736f6c63430007030033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c80636fcfff451161011a578063a41098bf116100ad578063d505accf1161007c578063d505accf146103eb578063dd62ed3e146103fe578063e7a324dc14610411578063f1127ed814610419578063fb2cb34e1461043a576101fb565b8063a41098bf146103aa578063a9059cbb146103b2578063b4b5ea57146103c5578063c3cda520146103d8576101fb565b80637ecebe00116100e95780637ecebe001461037457806390a701391461038757806395d89b411461038f578063a3895fff14610397576101fb565b80636fcfff451461032657806370a082311461033957806376c71ca11461034c578063782d6fe114610354576101fb565b8063313ce56711610192578063587cde1e11610161578063587cde1e146102d65780635c11d62f146102f65780635c19a95c1461030b5780635c60da1b1461031e576101fb565b8063313ce5671461028857806334aef8371461029d57806340c10f19146102b05780635353a2d8146102c3576101fb565b806323b872dd116101ce57806323b872dd1461025b5780632bfea0e41461026e57806330adf81f1461027857806330b36cef14610280576101fb565b806306fdde0314610200578063095ea7b31461021e57806318160ddd1461023e57806320606b7014610253575b600080fd5b610208610442565b6040516102159190612489565b60405180910390f35b61023161022c36600461219f565b6104cf565b60405161021591906123db565b61024661058e565b60405161021591906123e6565b610246610594565b6102316102693660046120f2565b6105b8565b6102766106ff565b005b6102466107f4565b610246610818565b61029061081e565b6040516102159190612ba7565b6102766102ab3660046121ca565b610823565b6102766102be36600461219f565b6109ba565b6102766102d13660046122a5565b610c58565b6102e96102e4366004612082565b610d72565b60405161021591906123c7565b6102fe610d8d565b6040516102159190612b77565b610276610319366004612082565b610d95565b6102e9610da2565b6102fe610334366004612082565b610db1565b610246610347366004612082565b610dc9565b610290610df1565b61036761036236600461219f565b610df6565b6040516102159190612bb5565b610246610382366004612082565b611004565b610276611016565b610208611105565b6102766103a53660046122a5565b61115d565b6102e9611277565b6102316103c036600461219f565b61128f565b6103676103d3366004612082565b6112cb565b6102766103e6366004612217565b61133c565b6102766103f9366004612132565b611518565b61024661040c3660046120ba565b6117f0565b610246611824565b61042c610427366004612270565b611848565b604051610215929190612b88565b61023161187d565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104c75780601f1061049c576101008083540402835291602001916104c7565b820191906000526020600020905b8154815290600101906020018083116104aa57829003601f168201915b505050505081565b6000806000198314156104e5575060001961050a565b61050783604051806060016040528060248152602001612c7560249139611886565b90505b3360008181526006602090815260408083206001600160a01b03891680855292529182902080546001600160601b0319166001600160601b03861617905590519091907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061057a908590612bb5565b60405180910390a360019150505b92915050565b60035481565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6001600160a01b03831660009081526006602090815260408083203380855290835281842054825160608101909352602480845291936001600160601b039091169285926106109288929190612c7590830139611886565b9050866001600160a01b0316836001600160a01b03161415801561063d57506001600160601b0382811614155b156106e757600061066783836040518060600160405280603c8152602001612d9b603c91396118b5565b6001600160a01b038981166000818152600660209081526040808320948a16808452949091529081902080546001600160601b0319166001600160601b0386161790555192935090917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906106dd908590612bb5565b60405180910390a3505b6106f28787836118f4565b5060019695505050505050565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561075657600080fd5b505afa15801561076a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078e919061209e565b6001600160a01b0316146107bd5760405162461bcd60e51b81526004016107b4906128b5565b60405180910390fd5b6005805460ff1916905560405133907f27b779563480879c8e2872999840b721537eb09dccf94115a2276ca341cdbb5290600090a2565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60045481565b601281565b600454156108435760405162461bcd60e51b81526004016107b49061278a565b600354156108635760405162461bcd60e51b81526004016107b49061278a565b428210156108835760405162461bcd60e51b81526004016107b49061293e565b6001600160a01b0384166108a95760405162461bcd60e51b81526004016107b4906125fe565b600083116108c95760405162461bcd60e51b81526004016107b4906126f3565b60038381556001600160a01b03851660008181526007602052604080822080546001600160601b0319166001600160601b03891617905592549251919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91610933916123e6565b60405180910390a360048290556005805460ff1916821515179081905560ff16156109885760405133907f483d42b2ec355eefc30508020d123de3c2fca2f0d6f8e751f98449099242b76b90600090a26109b4565b60405133907f27b779563480879c8e2872999840b721537eb09dccf94115a2276ca341cdbb5290600090a25b50505050565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a49919061209e565b6001600160a01b031614610a6f5760405162461bcd60e51b81526004016107b4906128b5565b600454421015610a915760405162461bcd60e51b81526004016107b4906127d5565b6001600160a01b038216610ab75760405162461bcd60e51b81526004016107b49061273c565b610ac5426301e13380611abd565b6004819055506000610aef82604051806060016040528060218152602001612ceb60219139611886565b9050610b0b610b04600354600260ff16611ae2565b6064611b1c565b816001600160601b03161115610b335760405162461bcd60e51b81526004016107b490612a3e565b610b69610b4b600354836001600160601b0316611abd565b604051806060016040528060268152602001612c0560269139611886565b6001600160601b039081166003556001600160a01b038416600090815260076020908152604091829020548251606081019093526024808452610bbc9491909116928592909190612c5190830139611b5e565b6001600160a01b03841660008181526007602052604080822080546001600160601b0319166001600160601b03959095169490941790935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610c26908590612bb5565b60405180910390a36001600160a01b03808416600090815260086020526040812054610c53921683611b9a565b505050565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b158015610caf57600080fd5b505afa158015610cc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce7919061209e565b6001600160a01b031614610d0d5760405162461bcd60e51b81526004016107b4906128b5565b80610d2a5760405162461bcd60e51b81526004016107b4906128f9565b7ffdcc9059d3426f73949b49e5d977553aa298184439da800d66f48959d9cc76b060018383604051610d5e939291906124dc565b60405180910390a1610c5360018383611fc7565b6008602052600090815260409020546001600160a01b031681565b6301e1338081565b610d9f3382611d2c565b50565b6000546001600160a01b031681565b600a6020526000908152604090205463ffffffff1681565b6001600160a01b0381166000908152600760205260409020546001600160601b03165b919050565b600281565b6000438210610e175760405162461bcd60e51b81526004016107b4906129f8565b6001600160a01b0383166000908152600a602052604090205463ffffffff1680610e45576000915050610588565b6001600160a01b038416600090815260096020908152604080832063ffffffff600019860181168552925290912054168310610ec1576001600160a01b03841660009081526009602090815260408083206000199490940163ffffffff1683529290522054600160201b90046001600160601b03169050610588565b6001600160a01b038416600090815260096020908152604080832083805290915290205463ffffffff16831015610efc576000915050610588565b600060001982015b8163ffffffff168163ffffffff161115610fbf57600282820363ffffffff16048103610f2e612045565b506001600160a01b038716600090815260096020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b03169181019190915290871415610f9a576020015194506105889350505050565b805163ffffffff16871115610fb157819350610fb8565b6001820392505b5050610f04565b506001600160a01b038516600090815260096020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b600b6020526000908152604090205481565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561106d57600080fd5b505afa158015611081573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a5919061209e565b6001600160a01b0316146110cb5760405162461bcd60e51b81526004016107b4906128b5565b6005805460ff1916600117905560405133907f483d42b2ec355eefc30508020d123de3c2fca2f0d6f8e751f98449099242b76b90600090a2565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104c75780601f1061049c576101008083540402835291602001916104c7565b336001600160a01b0316732971adfa57b20e5a416ae5a708a8655a9c74f7236001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b1580156111b457600080fd5b505afa1580156111c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ec919061209e565b6001600160a01b0316146112125760405162461bcd60e51b81526004016107b4906128b5565b8061122f5760405162461bcd60e51b81526004016107b4906125b2565b7ffdcc9059d3426f73949b49e5d977553aa298184439da800d66f48959d9cc76b060028383604051611263939291906124dc565b60405180910390a1610c5360028383611fc7565b732971adfa57b20e5a416ae5a708a8655a9c74f72381565b6000806112b483604051806060016040528060258152602001612dd760259139611886565b90506112c13385836118f4565b5060019392505050565b6001600160a01b0381166000908152600a602052604081205463ffffffff16806112f6576000611335565b6001600160a01b0383166000908152600960209081526040808320600019850163ffffffff168452909152902054600160201b90046001600160601b03165b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866600160405161136e919061233c565b604051809103902061137e611db0565b306040516020016113929493929190612447565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf8888886040516020016113e39493929190612423565b604051602081830303815290604052805190602001209050600082826040516020016114109291906123ac565b60405160208183030381529060405280519060200120905060006001828888886040516000815260200160405260405161144d949392919061246b565b6020604051602081039080840390855afa15801561146f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166114a25760405162461bcd60e51b81526004016107b490612b32565b6001600160a01b0381166000908152600b6020526040902080546001810190915589146114e15760405162461bcd60e51b81526004016107b490612af1565b874211156115015760405162461bcd60e51b81526004016107b490612a75565b61150b818b611d2c565b505050505b505050505050565b600060001986141561152d5750600019611552565b61154f86604051806060016040528060238152602001612c9960239139611886565b90505b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8666001604051611584919061233c565b6040518091039020611594611db0565b306040516020016115a89493929190612447565b60408051601f1981840301815282825280516020918201206001600160a01b038d166000908152600b8352928320805460018101909155909450919261161a927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928e928e928e9290918e91016123ef565b604051602081830303815290604052805190602001209050600082826040516020016116479291906123ac565b604051602081830303815290604052805190602001209050600060018289898960405160008152602001604052604051611684949392919061246b565b6020604051602081039080840390855afa1580156116a6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166116d95760405162461bcd60e51b81526004016107b490612aba565b8b6001600160a01b0316816001600160a01b03161461170a5760405162461bcd60e51b81526004016107b490612677565b8842111561172a5760405162461bcd60e51b81526004016107b49061257b565b84600660008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925876040516117da9190612bb5565b60405180910390a3505050505050505050505050565b6001600160a01b0391821660009081526006602090815260408083209390941682529190915220546001600160601b031690565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b600960209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b60055460ff1681565b600081600160601b84106118ad5760405162461bcd60e51b81526004016107b49190612489565b509192915050565b6000836001600160601b0316836001600160601b0316111582906118ec5760405162461bcd60e51b81526004016107b49190612489565b505050900390565b60055460ff16156119175760405162461bcd60e51b81526004016107b4906126ae565b6001600160a01b03831661193d5760405162461bcd60e51b81526004016107b490612858565b6001600160a01b0382166119635760405162461bcd60e51b81526004016107b49061299b565b6001600160a01b0383166000908152600760209081526040918290205482516060810190935260358084526119ae936001600160601b039092169285929190612d33908301396118b5565b6001600160a01b03848116600090815260076020908152604080832080546001600160601b0319166001600160601b0396871617905592861682529082902054825160608101909352602f808452611a169491909116928592909190612cbc90830139611b5e565b6001600160a01b038381166000818152600760205260409081902080546001600160601b0319166001600160601b0395909516949094179093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611a83908590612bb5565b60405180910390a36001600160a01b03808416600090815260086020526040808220548584168352912054610c5392918216911683611b9a565b6000828201838110156113355760405162461bcd60e51b81526004016107b490612640565b600082611af157506000610588565b82820282848281611afe57fe5b04146113355760405162461bcd60e51b81526004016107b490612817565b600061133583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611db4565b6000838301826001600160601b038087169083161015611b915760405162461bcd60e51b81526004016107b49190612489565b50949350505050565b816001600160a01b0316836001600160a01b031614158015611bc557506000816001600160601b0316115b15610c53576001600160a01b03831615611c7d576001600160a01b0383166000908152600a602052604081205463ffffffff169081611c05576000611c44565b6001600160a01b0385166000908152600960209081526040808320600019860163ffffffff168452909152902054600160201b90046001600160601b03165b90506000611c6b8285604051806060016040528060278152602001612d0c602791396118b5565b9050611c7986848484611deb565b5050505b6001600160a01b03821615610c53576001600160a01b0382166000908152600a602052604081205463ffffffff169081611cb8576000611cf7565b6001600160a01b0384166000908152600960209081526040808320600019860163ffffffff168452909152902054600160201b90046001600160601b03165b90506000611d1e8285604051806060016040528060268152602001612c2b60269139611b5e565b905061151085848484611deb565b6001600160a01b03808316600081815260086020818152604080842080546007845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46109b4828483611b9a565b4690565b60008183611dd55760405162461bcd60e51b81526004016107b49190612489565b506000838581611de157fe5b0495945050505050565b6000611e0f43604051806060016040528060338152602001612d6860339139611fa0565b905060008463ffffffff16118015611e5857506001600160a01b038516600090815260096020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611eb7576001600160a01b0385166000908152600960209081526040808320600019880163ffffffff168452909152902080546fffffffffffffffffffffffff000000001916600160201b6001600160601b03851602179055611f56565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000818152600983528781208c871682528352878120965187549451909516600160201b026fffffffffffffffffffffffff000000001995871663ffffffff19958616179590951694909417909555938252600a90935292909220805460018801909316929091169190911790555b846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248484604051611f91929190612bc9565b60405180910390a25050505050565b600081600160201b84106118ad5760405162461bcd60e51b81526004016107b49190612489565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106120085782800160ff19823516178555612035565b82800160010185558215612035579182015b8281111561203557823582559160200191906001019061201a565b5061204192915061205c565b5090565b604080518082019091526000808252602082015290565b5b80821115612041576000815560010161205d565b803560ff81168114610dec57600080fd5b600060208284031215612093578081fd5b813561133581612bef565b6000602082840312156120af578081fd5b815161133581612bef565b600080604083850312156120cc578081fd5b82356120d781612bef565b915060208301356120e781612bef565b809150509250929050565b600080600060608486031215612106578081fd5b833561211181612bef565b9250602084013561212181612bef565b929592945050506040919091013590565b600080600080600080600060e0888a03121561214c578283fd5b873561215781612bef565b9650602088013561216781612bef565b9550604088013594506060880135935061218360808901612071565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156121b1578182fd5b82356121bc81612bef565b946020939093013593505050565b600080600080608085870312156121df578384fd5b84356121ea81612bef565b935060208501359250604085013591506060850135801515811461220c578182fd5b939692955090935050565b60008060008060008060c0878903121561222f578182fd5b863561223a81612bef565b9550602087013594506040870135935061225660608801612071565b92506080870135915060a087013590509295509295509295565b60008060408385031215612282578182fd5b823561228d81612bef565b9150602083013563ffffffff811681146120e7578182fd5b600080602083850312156122b7578182fd5b823567ffffffffffffffff808211156122ce578384fd5b818501915085601f8301126122e1578384fd5b8135818111156122ef578485fd5b866020828501011115612300578485fd5b60209290920196919550909350505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b600080835460018082166000811461235b5760018114612372576123a1565b60ff198316865260028304607f16860193506123a1565b600283048786526020808720875b838110156123995781548a820152908501908201612380565b505050860193505b509195945050505050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b901515815260200190565b90815260200190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9384526001600160a01b039290921660208401526040830152606082015260800190565b938452602084019290925260408301526001600160a01b0316606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b818110156124b557858101830151858201604001528201612499565b818111156124c65783604083870101525b50601f01601f1916929092016040019392505050565b6000604082016040835281865460018082166000811461250357600181146125215761255a565b60028304607f16855260ff198316606088015260808701935061255a565b600283048086526125318b612be3565b875b828110156125505781548a82016060015290840190602001612533565b8901606001955050505b5050508381036020850152612570818688612312565b979650505050505050565b6020808252601e908201527f546b6e3a3a7065726d69743a207369676e617475726520657870697265640000604082015260600190565b6020808252602c908201527f546b6e3a3a6368616e676553796d626f6c3a206e616d655f6e616d655f206c6560408201526b1b99dd1a081a5b9d985a5b1960a21b606082015260800190565b60208082526022908201527f546f6b656e3a3a696e697469616c697a653a20696e76616c6964206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526019908201527f546b6e3a3a7065726d69743a20756e617574686f72697a656400000000000000604082015260600190565b60208082526025908201527f546b6e3a3a5f7472616e73666572546f6b656e733a207472616e736665722070604082015264185d5cd95960da1b606082015260800190565b60208082526029908201527f546f6b656e3a3a696e697469616c697a653a20696e76616c696420696e697469604082015268616c20737570706c7960b81b606082015260800190565b6020808252602e908201527f546b6e3a3a6d696e743a2063616e6e6f74207472616e7366657220746f20746860408201526d65207a65726f206164647265737360901b606082015260800190565b6020808252602b908201527f546f6b656e3a3a696e697469616c697a653a2063616e206f6e6c7920696e697460408201526a69616c697a65206f6e636560a81b606082015260800190565b60208082526022908201527f556e693a3a6d696e743a206d696e74696e67206e6f7420616c6c6f7765642079604082015261195d60f21b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252603b908201527f546b6e3a3a5f7472616e73666572546f6b656e733a2063616e6e6f742074726160408201527f6e736665722066726f6d20746865207a65726f20616464726573730000000000606082015260800190565b60208082526024908201527f546b6e3a3a69734d61737465723a206d73672e73656e646572206e6f74206d6160408201526339ba32b960e11b606082015260800190565b60208082526025908201527f546b6e3a3a6368616e67654e616d653a206e616d655f206c656e67746820696e6040820152641d985a5b1960da1b606082015260800190565b6020808252603b908201527f546f6b656e3a3a636f6e7374727563746f723a206d696e74696e672063616e2060408201527f6f6e6c7920626567696e206166746572206465706c6f796d656e740000000000606082015260800190565b60208082526039908201527f546b6e3a3a5f7472616e73666572546f6b656e733a2063616e6e6f742074726160408201527f6e7366657220746f20746865207a65726f206164647265737300000000000000606082015260800190565b60208082526026908201527f546b6e3a3a6765745072696f72566f7465733a206e6f742079657420646574656040820152651c9b5a5b995960d21b606082015260800190565b6020808252601c908201527f556e693a3a6d696e743a206578636565646564206d696e742063617000000000604082015260600190565b60208082526025908201527f546b6e3a3a64656c656761746542795369673a207369676e61747572652065786040820152641c1a5c995960da1b606082015260800190565b6020808252601e908201527f546b6e3a3a7065726d69743a20696e76616c6964207369676e61747572650000604082015260600190565b60208082526021908201527f546b6e3a3a64656c656761746542795369673a20696e76616c6964206e6f6e636040820152606560f81b606082015260800190565b60208082526025908201527f546b6e3a3a64656c656761746542795369673a20696e76616c6964207369676e604082015264617475726560d81b606082015260800190565b63ffffffff91909116815260200190565b63ffffffff9290921682526001600160601b0316602082015260400190565b60ff91909116815260200190565b6001600160601b0391909116815260200190565b6001600160601b0392831681529116602082015260400190565b60009081526020902090565b6001600160a01b0381168114610d9f57600080fdfe556e693a3a6d696e743a20746f74616c537570706c7920657863656564732039362062697473546b6e3a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773546b6e3a3a6d696e743a207472616e7366657220616d6f756e74206f766572666c6f7773546b6e3a3a617070726f76653a20616d6f756e7420657863656564732039362062697473546b6e3a3a7065726d69743a20616d6f756e7420657863656564732039362062697473546b6e3a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f7773546b6e3a3a6d696e743a20616d6f756e7420657863656564732039362062697473546b6e3a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773546b6e3a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e6365546b6e3a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473546b6e3a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e6365546b6e3a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473a2646970667358221220c584ec5fce02823f403a6cbf119dd1efecd3838890613541aab2fdce1ce7d85664736f6c63430007030033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

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.