ETH Price: $3,236.79 (+1.60%)
Gas: 19 Gwei

Token

 

Overview

Max Total Supply

0

Holders

0

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
PolyLocker

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license, Audited
/**
 *Submitted for verification at Etherscan.io on 2021-09-23
*/

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

pragma solidity >=0.6.0 <0.8.0;

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

// File: openzeppelin-solidity/contracts/GSN/Context.sol

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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.
 */
abstract contract Context {
    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;
    }
}

// File: openzeppelin-solidity/contracts/access/Ownable.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () 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;
    }
}

// File: contracts/PolyLocker.sol

pragma solidity 0.7.6;

// Requirements

// Any POLY holder can lock POLY (Issuers, Investors, WL, Polymath Founders, etc.)
// The amount of POLY to be locked must be >=1, otherwise, fail with insufficient funds
// There is no max limit on how much POLY can be locked
// POLY will be locked forever, no one can unlock it (ignore the upgradable contract bit)
// Granularity for locked POLY should be restricted to Polymesh granularity (10^6)
// User must provide their Mesh address when locking POLY
// Emit an event for locked POLY including Mesh address & timestamp
// Mesh address must be of valid length




/**
 * @title Contract used to lock POLY corresponds to locked amount user can claim same
 * amount of POLY on Polymesh blockchain
 */
contract PolyLocker is Ownable {
    using SafeMath for uint256;

    // Tracks the total no. of events emitted by the contract.
    uint256 public noOfeventsEmitted;

    // Address of the token that is locked by the contract. i.e. PolyToken contract address.
    IERC20 public immutable polyToken;

    // Controls if locking Poly is frozen.
    bool public frozen;

    // Granularity Polymesh blockchain in 10^6 but it's 10^18 on Ethereum.
    // This is used to truncate 18 decimal places to 6.
    uint256 constant public TRUNCATE_SCALE = 10 ** 12;

    // Valid address length of Polymesh blockchain.
    uint256 constant public VALID_ADDRESS_LENGTH = 48;

    uint256 constant internal E18 = uint256(10) ** 18;

    // Emit an event when the poly gets lock
    event PolyLocked(uint256 indexed _id, address indexed _holder, string _meshAddress, uint256 _polymeshBalance, uint256 _polyTokenBalance);
    // Emitted when locking is frozen
    event Frozen();
    // Emitted when locking is unfrozen
    event Unfrozen();


    constructor(address _polyToken) public {
        require(_polyToken != address(0), "Invalid address");
        polyToken = IERC20(_polyToken);
    }

    /**
     * @notice Used for freezing locking of POLY token
     */
    function freezeLocking() external onlyOwner {
        require(!frozen, "Already frozen");
        frozen = true;
        emit Frozen();
    }

    /**
     * @notice Used for unfreezing locking of POLY token
     */
    function unfreezeLocking() external onlyOwner {
        require(frozen, "Already unfrozen");
        frozen = false;
        emit Unfrozen();
    }

    /**
     * @notice used to set the nonce
     * @param _newNonce New nonce to set with the contract
     */
    function setEventsNonce(uint256 _newNonce) external onlyOwner {
        noOfeventsEmitted = _newNonce;
    }

    /**
     * @notice Used for locking the POLY token
     * @param _meshAddress Address that compatible the Polymesh blockchain
     */
    function lock(string calldata _meshAddress) external {
        _lock(_meshAddress, msg.sender, polyToken.balanceOf(msg.sender));
    }

    /**
     * @notice Used for locking the POLY token
     * @param _meshAddress Address that compatible the Polymesh blockchain
     * @param _lockedValue Amount of tokens need to locked
     */
    function limitLock(string calldata _meshAddress, uint256 _lockedValue) external {
        _lock(_meshAddress, msg.sender, _lockedValue);
    }

    function _lock(string memory _meshAddress, address _holder, uint256 _polyAmount) internal {
        // Make sure locking is not frozen
        require(!frozen, "Locking frozen");
        // Validate the MESH address
        require(bytes(_meshAddress).length == VALID_ADDRESS_LENGTH, "Invalid length of mesh address");

        // Make sure the minimum `_polyAmount` is 1.
        require(_polyAmount >= E18, "Insufficient amount");

        // Polymesh balances have 6 decimal places.
        // 1 POLY on Ethereum has 18 decimal places. 1 POLYX on Polymesh has 6 decimal places.
        // i.e. 10^18 POLY = 10^6 POLYX.
        uint256 polymeshBalance = _polyAmount / TRUNCATE_SCALE;
        _polyAmount = polymeshBalance * TRUNCATE_SCALE;

        // Transfer funds to this contract.
        require(polyToken.transferFrom(_holder, address(this), _polyAmount), "Insufficient allowance");
        uint256 cachedNoOfeventsEmitted = noOfeventsEmitted + 1;  // Caching number of events in memory, saves 1 SLOAD.
        noOfeventsEmitted = cachedNoOfeventsEmitted;              // Increment the event counter in storage.

        // The event does not need to contain both `polymeshBalance` and `_polyAmount` as one can be derived from other.
        // However, we are still keeping them for easier integrations.
        emit PolyLocked(cachedNoOfeventsEmitted, _holder, _meshAddress, polymeshBalance, _polyAmount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_polyToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Frozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":true,"internalType":"address","name":"_holder","type":"address"},{"indexed":false,"internalType":"string","name":"_meshAddress","type":"string"},{"indexed":false,"internalType":"uint256","name":"_polymeshBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_polyTokenBalance","type":"uint256"}],"name":"PolyLocked","type":"event"},{"anonymous":false,"inputs":[],"name":"Unfrozen","type":"event"},{"inputs":[],"name":"TRUNCATE_SCALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VALID_ADDRESS_LENGTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeLocking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_meshAddress","type":"string"},{"internalType":"uint256","name":"_lockedValue","type":"uint256"}],"name":"limitLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_meshAddress","type":"string"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"noOfeventsEmitted","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":"polyToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newNonce","type":"uint256"}],"name":"setEventsNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unfreezeLocking","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b50604051610bed380380610bed8339818101604052602081101561003357600080fd5b5051600061003f6100eb565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0381166100d6576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b60601b6001600160601b0319166080526100ef565b3390565b60805160601c610ad76101166000398061034552806103c952806108cf5250610ad76000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063868071811161008c578063d4a309cc11610066578063d4a309cc146101dd578063dac9594f146101e5578063f2fde38b14610255578063fcb22eb51461027b576100cf565b806386807181146101c55780638748abd8146101cd5780638da5cb5b146101d5576100cf565b8063054f7d9c146100d45780630c4863b5146100f0578063320a98fd1461010f5780636477f91d1461017f5780636faa22a514610199578063715018a6146101bd575b600080fd5b6100dc610283565b604080519115158252519081900360200190f35b61010d6004803603602081101561010657600080fd5b503561028c565b005b61010d6004803603602081101561012557600080fd5b81019060208101813564010000000081111561014057600080fd5b82018360208201111561015257600080fd5b8035906020019184600183028401116401000000008311171561017457600080fd5b5090925090506102e9565b6101876103c1565b60408051918252519081900360200190f35b6101a16103c7565b604080516001600160a01b039092168252519081900360200190f35b61010d6103eb565b61010d61048d565b61010d610566565b6101a161063d565b61018761064c565b61010d600480360360408110156101fb57600080fd5b81019060208101813564010000000081111561021657600080fd5b82018360208201111561022857600080fd5b8035906020019184600183028401116401000000008311171561024a57600080fd5b919350915035610651565b61010d6004803603602081101561026b57600080fd5b50356001600160a01b0316610699565b610187610791565b60025460ff1681565b61029461079a565b6000546001600160a01b039081169116146102e4576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b600155565b6103bd82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516370a0823160e01b8152336004820181905291519193506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506370a08231916024808301926020929190829003018186803b15801561038c57600080fd5b505afa1580156103a0573d6000803e3d6000fd5b505050506040513d60208110156103b657600080fd5b505161079e565b5050565b60015481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6103f361079a565b6000546001600160a01b03908116911614610443576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61049561079a565b6000546001600160a01b039081169116146104e5576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b60025460ff161561052e576040805162461bcd60e51b815260206004820152600e60248201526d20b63932b0b23c90333937bd32b760911b604482015290519081900360640190fd5b6002805460ff191660011790556040517fa8cab3d1893ed53071b052fafa843143492f25d1d6b0170d460789f7ab1954be90600090a1565b61056e61079a565b6000546001600160a01b039081169116146105be576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b60025460ff16610608576040805162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c903ab7333937bd32b760811b604482015290519081900360640190fd5b6002805460ff191690556040517f9858ed79968f3b0489cf214a4be9d13d360f5dbfd60d780b110b4f214d55916c90600090a1565b6000546001600160a01b031690565b603081565b61069483838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525033925085915061079e9050565b505050565b6106a161079a565b6000546001600160a01b039081169116146106f1576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b6001600160a01b0381166107365760405162461bcd60e51b8152600401808060200182810382526026815260200180610a5c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b64e8d4a5100081565b3390565b60025460ff16156107e7576040805162461bcd60e51b815260206004820152600e60248201526d2637b1b5b4b73390333937bd32b760911b604482015290519081900360640190fd5b603083511461083d576040805162461bcd60e51b815260206004820152601e60248201527f496e76616c6964206c656e677468206f66206d65736820616464726573730000604482015290519081900360640190fd5b670de0b6b3a7640000811015610890576040805162461bcd60e51b8152602060048201526013602482015272125b9cdd59999a58da595b9d08185b5bdd5b9d606a1b604482015290519081900360640190fd5b604080516323b872dd60e01b81526001600160a01b03848116600483015230602483015264e8d4a51000938490049384026044830181905292519293927f0000000000000000000000000000000000000000000000000000000000000000909116916323b872dd9160648083019260209291908290030181600087803b15801561091957600080fd5b505af115801561092d573d6000803e3d6000fd5b505050506040513d602081101561094357600080fd5b505161098f576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015290519081900360640190fd5b6000600154600101905080600181905550836001600160a01b0316817fc9367464e6e0a832edf86ad70e9ee878d170bc7d99e9567b5fd3e0194be3175e8785876040518080602001848152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015610a18578181015183820152602001610a00565b50505050905090810190601f168015610a455780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a3505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cc235e82fc7efd9889f6e9406440f71a486851d61976131b335f56abb0f9fb3064736f6c634300070600330000000000000000000000009992ec3cf6a55b00978cddf2b27bc6882d88d1ec

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063868071811161008c578063d4a309cc11610066578063d4a309cc146101dd578063dac9594f146101e5578063f2fde38b14610255578063fcb22eb51461027b576100cf565b806386807181146101c55780638748abd8146101cd5780638da5cb5b146101d5576100cf565b8063054f7d9c146100d45780630c4863b5146100f0578063320a98fd1461010f5780636477f91d1461017f5780636faa22a514610199578063715018a6146101bd575b600080fd5b6100dc610283565b604080519115158252519081900360200190f35b61010d6004803603602081101561010657600080fd5b503561028c565b005b61010d6004803603602081101561012557600080fd5b81019060208101813564010000000081111561014057600080fd5b82018360208201111561015257600080fd5b8035906020019184600183028401116401000000008311171561017457600080fd5b5090925090506102e9565b6101876103c1565b60408051918252519081900360200190f35b6101a16103c7565b604080516001600160a01b039092168252519081900360200190f35b61010d6103eb565b61010d61048d565b61010d610566565b6101a161063d565b61018761064c565b61010d600480360360408110156101fb57600080fd5b81019060208101813564010000000081111561021657600080fd5b82018360208201111561022857600080fd5b8035906020019184600183028401116401000000008311171561024a57600080fd5b919350915035610651565b61010d6004803603602081101561026b57600080fd5b50356001600160a01b0316610699565b610187610791565b60025460ff1681565b61029461079a565b6000546001600160a01b039081169116146102e4576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b600155565b6103bd82828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516370a0823160e01b8152336004820181905291519193506001600160a01b037f0000000000000000000000009992ec3cf6a55b00978cddf2b27bc6882d88d1ec1692506370a08231916024808301926020929190829003018186803b15801561038c57600080fd5b505afa1580156103a0573d6000803e3d6000fd5b505050506040513d60208110156103b657600080fd5b505161079e565b5050565b60015481565b7f0000000000000000000000009992ec3cf6a55b00978cddf2b27bc6882d88d1ec81565b6103f361079a565b6000546001600160a01b03908116911614610443576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61049561079a565b6000546001600160a01b039081169116146104e5576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b60025460ff161561052e576040805162461bcd60e51b815260206004820152600e60248201526d20b63932b0b23c90333937bd32b760911b604482015290519081900360640190fd5b6002805460ff191660011790556040517fa8cab3d1893ed53071b052fafa843143492f25d1d6b0170d460789f7ab1954be90600090a1565b61056e61079a565b6000546001600160a01b039081169116146105be576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b60025460ff16610608576040805162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c903ab7333937bd32b760811b604482015290519081900360640190fd5b6002805460ff191690556040517f9858ed79968f3b0489cf214a4be9d13d360f5dbfd60d780b110b4f214d55916c90600090a1565b6000546001600160a01b031690565b603081565b61069483838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525033925085915061079e9050565b505050565b6106a161079a565b6000546001600160a01b039081169116146106f1576040805162461bcd60e51b81526020600482018190526024820152600080516020610a82833981519152604482015290519081900360640190fd5b6001600160a01b0381166107365760405162461bcd60e51b8152600401808060200182810382526026815260200180610a5c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b64e8d4a5100081565b3390565b60025460ff16156107e7576040805162461bcd60e51b815260206004820152600e60248201526d2637b1b5b4b73390333937bd32b760911b604482015290519081900360640190fd5b603083511461083d576040805162461bcd60e51b815260206004820152601e60248201527f496e76616c6964206c656e677468206f66206d65736820616464726573730000604482015290519081900360640190fd5b670de0b6b3a7640000811015610890576040805162461bcd60e51b8152602060048201526013602482015272125b9cdd59999a58da595b9d08185b5bdd5b9d606a1b604482015290519081900360640190fd5b604080516323b872dd60e01b81526001600160a01b03848116600483015230602483015264e8d4a51000938490049384026044830181905292519293927f0000000000000000000000009992ec3cf6a55b00978cddf2b27bc6882d88d1ec909116916323b872dd9160648083019260209291908290030181600087803b15801561091957600080fd5b505af115801561092d573d6000803e3d6000fd5b505050506040513d602081101561094357600080fd5b505161098f576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015290519081900360640190fd5b6000600154600101905080600181905550836001600160a01b0316817fc9367464e6e0a832edf86ad70e9ee878d170bc7d99e9567b5fd3e0194be3175e8785876040518080602001848152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015610a18578181015183820152602001610a00565b50505050905090810190601f168015610a455780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a3505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cc235e82fc7efd9889f6e9406440f71a486851d61976131b335f56abb0f9fb3064736f6c63430007060033

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

0000000000000000000000009992ec3cf6a55b00978cddf2b27bc6882d88d1ec

-----Decoded View---------------
Arg [0] : _polyToken (address): 0x9992eC3cF6A55b00978cdDF2b27BC6882d88D1eC

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009992ec3cf6a55b00978cddf2b27bc6882d88d1ec


Deployed Bytecode Sourcemap

12353:4004:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12711:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;14152:110;;;;;;;;;;;;;;;;-1:-1:-1;14152:110:0;;:::i;:::-;;14412:136;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14412:136:0;;-1:-1:-1;14412:136:0;-1:-1:-1;14412:136:0;:::i;12490:32::-;;;:::i;:::-;;;;;;;;;;;;;;;;12625:33;;;:::i;:::-;;;;-1:-1:-1;;;;;12625:33:0;;;;;;;;;;;;;;10996:148;;;:::i;13648:145::-;;;:::i;13877:151::-;;;:::i;10354:79::-;;;:::i;12982:49::-;;;:::i;14758:144::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14758:144:0;-1:-1:-1;14758:144:0;;:::i;11299:244::-;;;;;;;;;;;;;;;;-1:-1:-1;11299:244:0;-1:-1:-1;;;;;11299:244:0;;:::i;12871:49::-;;;:::i;12711:18::-;;;;;;:::o;14152:110::-;10576:12;:10;:12::i;:::-;10566:6;;-1:-1:-1;;;;;10566:6:0;;;:22;;;10558:67;;;;;-1:-1:-1;;;10558:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10558:67:0;;;;;;;;;;;;;;;14225:17:::1;:29:::0;14152:110::o;14412:136::-;14476:64;14482:12;;14476:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14508:31:0;;;-1:-1:-1;;;14508:31:0;;14496:10;14508:31;;;;;;;;14496:10;;-1:-1:-1;;;;;;14508:9:0;:19;;-1:-1:-1;14508:19:0;;:31;;;;;;;;;;;;;;:19;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14508:31:0;14476:5;:64::i;:::-;14412:136;;:::o;12490:32::-;;;;:::o;12625:33::-;;;:::o;10996:148::-;10576:12;:10;:12::i;:::-;10566:6;;-1:-1:-1;;;;;10566:6:0;;;:22;;;10558:67;;;;;-1:-1:-1;;;10558:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10558:67:0;;;;;;;;;;;;;;;11103:1:::1;11087:6:::0;;11066:40:::1;::::0;-1:-1:-1;;;;;11087:6:0;;::::1;::::0;11066:40:::1;::::0;11103:1;;11066:40:::1;11134:1;11117:19:::0;;-1:-1:-1;;;;;;11117:19:0::1;::::0;;10996:148::o;13648:145::-;10576:12;:10;:12::i;:::-;10566:6;;-1:-1:-1;;;;;10566:6:0;;;:22;;;10558:67;;;;;-1:-1:-1;;;10558:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10558:67:0;;;;;;;;;;;;;;;13712:6:::1;::::0;::::1;;13711:7;13703:34;;;::::0;;-1:-1:-1;;;13703:34:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;13703:34:0;;;;;;;;;;;;;::::1;;13748:6;:13:::0;;-1:-1:-1;;13748:13:0::1;13757:4;13748:13;::::0;;13777:8:::1;::::0;::::1;::::0;13748:6:::1;::::0;13777:8:::1;13648:145::o:0;13877:151::-;10576:12;:10;:12::i;:::-;10566:6;;-1:-1:-1;;;;;10566:6:0;;;:22;;;10558:67;;;;;-1:-1:-1;;;10558:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10558:67:0;;;;;;;;;;;;;;;13942:6:::1;::::0;::::1;;13934:35;;;::::0;;-1:-1:-1;;;13934:35:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;13934:35:0;;;;;;;;;;;;;::::1;;13980:6;:14:::0;;-1:-1:-1;;13980:14:0::1;::::0;;14010:10:::1;::::0;::::1;::::0;13989:5:::1;::::0;14010:10:::1;13877:151::o:0;10354:79::-;10392:7;10419:6;-1:-1:-1;;;;;10419:6:0;10354:79;:::o;12982:49::-;13029:2;12982:49;:::o;14758:144::-;14849:45;14855:12;;14849:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14869:10:0;;-1:-1:-1;14881:12:0;;-1:-1:-1;14849:5:0;;-1:-1:-1;14849:45:0:i;:::-;14758:144;;;:::o;11299:244::-;10576:12;:10;:12::i;:::-;10566:6;;-1:-1:-1;;;;;10566:6:0;;;:22;;;10558:67;;;;;-1:-1:-1;;;10558:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10558:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;11388:22:0;::::1;11380:73;;;;-1:-1:-1::0;;;11380:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11490:6;::::0;;11469:38:::1;::::0;-1:-1:-1;;;;;11469:38:0;;::::1;::::0;11490:6;::::1;::::0;11469:38:::1;::::0;::::1;11518:6;:17:::0;;-1:-1:-1;;;;;;11518:17:0::1;-1:-1:-1::0;;;;;11518:17:0;;;::::1;::::0;;;::::1;::::0;;11299:244::o;12871:49::-;12912:8;12871:49;:::o;8885:106::-;8973:10;8885:106;:::o;14910:1444::-;15064:6;;;;15063:7;15055:34;;;;;-1:-1:-1;;;15055:34:0;;;;;;;;;;;;-1:-1:-1;;;15055:34:0;;;;;;;;;;;;;;;13029:2;15152:12;15146:26;:50;15138:93;;;;;-1:-1:-1;;;15138:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13072:17;15306:18;;;15298:50;;;;;-1:-1:-1;;;15298:50:0;;;;;;;;;;;;-1:-1:-1;;;15298:50:0;;;;;;;;;;;;;;;15729:59;;;-1:-1:-1;;;15729:59:0;;-1:-1:-1;;;;;15729:59:0;;;;;;;15769:4;15729:59;;;;12912:8;15578:28;;;;15631:32;;;15729:59;;;;;;;;15631:32;;15578:28;15729:9;:22;;;;;;:59;;;;;;;;;;;;;;-1:-1:-1;15729:22:0;:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15729:59:0;15721:94;;;;;-1:-1:-1;;;15721:94:0;;;;;;;;;;;;-1:-1:-1;;;15721:94:0;;;;;;;;;;;;;;;15826:31;15860:17;;15880:1;15860:21;15826:55;;15967:23;15947:17;:43;;;;16294:7;-1:-1:-1;;;;;16258:88:0;16269:23;16258:88;16303:12;16317:15;16334:11;16258:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14910:1444;;;;;:::o

Swarm Source

ipfs://cc235e82fc7efd9889f6e9406440f71a486851d61976131b335f56abb0f9fb30
Loading...
Loading
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.