ETH Price: $2,267.64 (+2.29%)

Token

XVIX UNI Farm (UNI:FARM)
 

Overview

Max Total Supply

1,538.260088052832723 UNI:FARM

Holders

24

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
36.9684 UNI:FARM

Value
$0.00
0x8bdbf4b19cb840e9ac9b1effc2bfad47591b5bf2
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:
Farm

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : Farm.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "../libraries/math/SafeMath.sol";
import "../libraries/token/IERC20.sol";
import "../libraries/utils/ReentrancyGuard.sol";
import "../interfaces/IX2Fund.sol";
import "../interfaces/IX2Farm.sol";

contract Farm is ReentrancyGuard, IERC20, IX2Farm {
    using SafeMath for uint256;

    string public constant name = "XVIX UNI Farm";
    string public constant symbol = "UNI:FARM";
    uint8 public constant decimals = 18;

    uint256 constant PRECISION = 1e30;

    address public token;
    address public gov;
    address public distributor;

    uint256 public override totalSupply;

    mapping (address => uint256) public balances;

    uint256 public override cumulativeRewardPerToken;
    mapping (address => uint256) public override claimableReward;
    mapping (address => uint256) public override previousCumulatedRewardPerToken;

    event Deposit(address account, uint256 amount);
    event Withdraw(address account, uint256 amount);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event GovChange(address gov);
    event Claim(address receiver, uint256 amount);

    modifier onlyGov() {
        require(msg.sender == gov, "Farm: forbidden");
        _;
    }

    constructor(address _token) public {
        token = _token;
        gov = msg.sender;
    }

    receive() external payable {}

    function setGov(address _gov) external onlyGov {
        gov = _gov;
        emit GovChange(_gov);
    }

    function setDistributor(address _distributor) external onlyGov {
        distributor = _distributor;
    }

    function deposit(uint256 _amount, address _receiver) external nonReentrant {
        require(_amount > 0, "Farm: insufficient amount");

        _updateRewards(_receiver, true);

        IERC20(token).transferFrom(msg.sender, address(this), _amount);

        balances[_receiver] = balances[_receiver].add(_amount);
        totalSupply = totalSupply.add(_amount);

        emit Deposit(_receiver, _amount);
        emit Transfer(address(0), _receiver, _amount);
    }

    function withdraw(address _receiver, uint256 _amount) external nonReentrant {
        require(_amount > 0, "Farm: insufficient amount");

        address account = msg.sender;
        _updateRewards(account, true);
        _withdraw(account, _receiver, _amount);
    }

    function withdrawWithoutDistribution(address _receiver, uint256 _amount) external nonReentrant {
        require(_amount > 0, "Farm: insufficient amount");

        address account = msg.sender;
        _updateRewards(account, false);
        _withdraw(account, _receiver, _amount);
    }

    function claim(address _receiver) external nonReentrant {
        address _account = msg.sender;
        _updateRewards(_account, true);

        uint256 rewardToClaim = claimableReward[_account];
        claimableReward[_account] = 0;

        (bool success,) = _receiver.call{value: rewardToClaim}("");
        require(success, "Farm: transfer failed");

        emit Claim(_receiver, rewardToClaim);
    }

    function balanceOf(address account) public override view returns (uint256) {
        return balances[account];
    }

    // empty implementation, Farm tokens are non-transferrable
    function transfer(address /* recipient */, uint256 /* amount */) public override returns (bool) {
        revert("Farm: non-transferrable");
    }

    // empty implementation, Farm tokens are non-transferrable
    function allowance(address /* owner */, address /* spender */) public view virtual override returns (uint256) {
        return 0;
    }

    // empty implementation, Farm tokens are non-transferrable
    function approve(address /* spender */, uint256 /* amount */) public virtual override returns (bool) {
        revert("Farm: non-transferrable");
    }

    // empty implementation, Farm tokens are non-transferrable
    function transferFrom(address /* sender */, address /* recipient */, uint256 /* amount */) public virtual override returns (bool) {
        revert("Farm: non-transferrable");
    }

    function _withdraw(address _account, address _receiver, uint256 _amount) private {
        require(balances[_account] >= _amount, "Farm: insufficient balance");

        balances[_account] = balances[_account].sub(_amount);
        totalSupply = totalSupply.sub(_amount);

        IERC20(token).transfer(_receiver, _amount);

        emit Withdraw(_account, _amount);
        emit Transfer(_account, address(0), _amount);
    }

    function _updateRewards(address _account, bool _distribute) private {
        uint256 blockReward;

        if (_distribute && distributor != address(0)) {
            blockReward = IX2Fund(distributor).distribute();
        }

        uint256 _cumulativeRewardPerToken = cumulativeRewardPerToken;
        // only update cumulativeRewardPerToken when there are stakers, i.e. when totalSupply > 0
        // if blockReward == 0, then there will be no change to cumulativeRewardPerToken
        if (totalSupply > 0 && blockReward > 0) {
            _cumulativeRewardPerToken = _cumulativeRewardPerToken.add(blockReward.mul(PRECISION).div(totalSupply));
            cumulativeRewardPerToken = _cumulativeRewardPerToken;
        }

        // cumulativeRewardPerToken can only increase
        // so if cumulativeRewardPerToken is zero, it means there are no rewards yet
        if (_cumulativeRewardPerToken == 0) {
            return;
        }

        uint256 _previousCumulatedReward = previousCumulatedRewardPerToken[_account];
        uint256 _claimableReward = claimableReward[_account].add(
            uint256(balances[_account]).mul(_cumulativeRewardPerToken.sub(_previousCumulatedReward)).div(PRECISION)
        );

        claimableReward[_account] = _claimableReward;
        previousCumulatedRewardPerToken[_account] = _cumulativeRewardPerToken;
    }
}

File 2 of 6 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @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 3 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @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 4 of 6 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 6 : IX2Fund.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IX2Fund {
    function distribute() external returns (uint256);
}

File 6 of 6 : IX2Farm.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IX2Farm {
    function cumulativeRewardPerToken() external view returns (uint256);
    function claimableReward(address account) external view returns (uint256);
    function previousCumulatedRewardPerToken(address account) external view returns (uint256);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"gov","type":"address"}],"name":"GovChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","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":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimableReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cumulativeRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"previousCumulatedRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_distributor","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawWithoutDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b5060405161131b38038061131b8339818101604052602081101561003357600080fd5b50516001600081905580546001600160a01b039092166001600160a01b031992831617905560028054909116331790556112a9806100726000396000f3fe6080604052600436106101395760003560e01c806375619ab5116100ab578063dd62ed3e1161006f578063dd62ed3e14610479578063e9503425146104b4578063f3fef3a3146104e7578063f5fc507614610520578063f9b7a2c014610535578063fc0c546a1461056e57610140565b806375619ab5146103e957806395d89b411461041c578063a9059cbb146101cf578063bfe1092814610431578063cfad57a21461044657610140565b806323b872dd116100fd57806323b872dd146102a957806327e235e3146102ec578063313ce5671461031f57806344a084111461034a5780636e553f651461037d57806370a08231146103b657610140565b806306fdde0314610145578063095ea7b3146101cf57806312d43a511461021c57806318160ddd1461024d5780631e83409a1461027457610140565b3661014057005b600080fd5b34801561015157600080fd5b5061015a610583565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019457818101518382015260200161017c565b50505050905090810190601f1680156101c15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101db57600080fd5b50610208600480360360408110156101f257600080fd5b506001600160a01b0381351690602001356105ac565b604080519115158252519081900360200190f35b34801561022857600080fd5b506102316105fb565b604080516001600160a01b039092168252519081900360200190f35b34801561025957600080fd5b5061026261060a565b60408051918252519081900360200190f35b34801561028057600080fd5b506102a76004803603602081101561029757600080fd5b50356001600160a01b0316610610565b005b3480156102b557600080fd5b50610208600480360360608110156102cc57600080fd5b506001600160a01b038135811691602081013590911690604001356105ac565b3480156102f857600080fd5b506102626004803603602081101561030f57600080fd5b50356001600160a01b031661076a565b34801561032b57600080fd5b5061033461077c565b6040805160ff9092168252519081900360200190f35b34801561035657600080fd5b506102626004803603602081101561036d57600080fd5b50356001600160a01b0316610781565b34801561038957600080fd5b506102a7600480360360408110156103a057600080fd5b50803590602001356001600160a01b0316610793565b3480156103c257600080fd5b50610262600480360360208110156103d957600080fd5b50356001600160a01b0316610997565b3480156103f557600080fd5b506102a76004803603602081101561040c57600080fd5b50356001600160a01b03166109b2565b34801561042857600080fd5b5061015a610a25565b34801561043d57600080fd5b50610231610a49565b34801561045257600080fd5b506102a76004803603602081101561046957600080fd5b50356001600160a01b0316610a58565b34801561048557600080fd5b506102626004803603604081101561049c57600080fd5b506001600160a01b0381358116916020013516610afd565b3480156104c057600080fd5b50610262600480360360208110156104d757600080fd5b50356001600160a01b0316610b06565b3480156104f357600080fd5b506102a76004803603604081101561050a57600080fd5b506001600160a01b038135169060200135610b18565b34801561052c57600080fd5b50610262610bd2565b34801561054157600080fd5b506102a76004803603604081101561055857600080fd5b506001600160a01b038135169060200135610bd8565b34801561057a57600080fd5b50610231610c7d565b6040518060400160405280600d81526020016c5856495820554e49204661726d60981b81525081565b6040805162461bcd60e51b815260206004820152601760248201527f4661726d3a206e6f6e2d7472616e736665727261626c650000000000000000006044820152905160009181900360640190fd5b6002546001600160a01b031681565b60045481565b60026000541415610656576040805162461bcd60e51b815260206004820152601f6024820152600080516020611233833981519152604482015290519081900360640190fd5b600260005533610667816001610c8c565b6001600160a01b038082166000908152600760205260408082208054908390559051909285169083908381818185875af1925050503d80600081146106c8576040519150601f19603f3d011682016040523d82523d6000602084013e6106cd565b606091505b505090508061071b576040805162461bcd60e51b815260206004820152601560248201527411985c9b4e881d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b604080516001600160a01b03861681526020810184905281517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4929181900390910190a1505060016000555050565b60056020526000908152604090205481565b601281565b60086020526000908152604090205481565b600260005414156107d9576040805162461bcd60e51b815260206004820152601f6024820152600080516020611233833981519152604482015290519081900360640190fd5b60026000558161082c576040805162461bcd60e51b815260206004820152601960248201527811985c9b4e881a5b9cdd59999a58da595b9d08185b5bdd5b9d603a1b604482015290519081900360640190fd5b610837816001610c8c565b600154604080516323b872dd60e01b81523360048201523060248201526044810185905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561089157600080fd5b505af11580156108a5573d6000803e3d6000fd5b505050506040513d60208110156108bb57600080fd5b50506001600160a01b0381166000908152600560205260409020546108e09083610e2e565b6001600160a01b0382166000908152600560205260409020556004546109069083610e2e565b600455604080516001600160a01b03831681526020810184905281517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c929181900390910190a16040805183815290516001600160a01b038316916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350506001600055565b6001600160a01b031660009081526005602052604090205490565b6002546001600160a01b03163314610a03576040805162461bcd60e51b815260206004820152600f60248201526e2330b9369d103337b93134b23232b760891b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60405180604001604052806008815260200167554e493a4641524d60c01b81525081565b6003546001600160a01b031681565b6002546001600160a01b03163314610aa9576040805162461bcd60e51b815260206004820152600f60248201526e2330b9369d103337b93134b23232b760891b604482015290519081900360640190fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f2c5d53cd16ceaf62d39256419d59e80a42575bfc21eab954015ca61b42dbe4619181900360200190a150565b60005b92915050565b60076020526000908152604090205481565b60026000541415610b5e576040805162461bcd60e51b815260206004820152601f6024820152600080516020611233833981519152604482015290519081900360640190fd5b600260005580610bb1576040805162461bcd60e51b815260206004820152601960248201527811985c9b4e881a5b9cdd59999a58da595b9d08185b5bdd5b9d603a1b604482015290519081900360640190fd5b33610bbd816001610c8c565b610bc8818484610e8f565b5050600160005550565b60065481565b60026000541415610c1e576040805162461bcd60e51b815260206004820152601f6024820152600080516020611233833981519152604482015290519081900360640190fd5b600260005580610c71576040805162461bcd60e51b815260206004820152601960248201527811985c9b4e881a5b9cdd59999a58da595b9d08185b5bdd5b9d603a1b604482015290519081900360640190fd5b33610bbd816000610c8c565b6001546001600160a01b031681565b6000818015610ca557506003546001600160a01b031615155b15610d2957600360009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610cfa57600080fd5b505af1158015610d0e573d6000803e3d6000fd5b505050506040513d6020811015610d2457600080fd5b505190505b60065460045415801590610d3d5750600082115b15610d7957600454610d7190610d6a90610d64856c0c9f2c9cd04674edea40000000611059565b906110b2565b8290610e2e565b600681905590505b80610d85575050610e2a565b6001600160a01b03841660009081526008602052604081205490610dfe610ddf6c0c9f2c9cd04674edea40000000610d64610dc087876110f4565b6001600160a01b038b1660009081526005602052604090205490611059565b6001600160a01b03881660009081526007602052604090205490610e2e565b6001600160a01b0387166000908152600760209081526040808320939093556008905220929092555050505b5050565b600082820183811015610e88576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038316600090815260056020526040902054811115610efc576040805162461bcd60e51b815260206004820152601a60248201527f4661726d3a20696e73756666696369656e742062616c616e6365000000000000604482015290519081900360640190fd5b6001600160a01b038316600090815260056020526040902054610f1f90826110f4565b6001600160a01b038416600090815260056020526040902055600454610f4590826110f4565b60049081556001546040805163a9059cbb60e01b81526001600160a01b0386811694820194909452602481018590529051929091169163a9059cbb916044808201926020929091908290030181600087803b158015610fa357600080fd5b505af1158015610fb7573d6000803e3d6000fd5b505050506040513d6020811015610fcd57600080fd5b5050604080516001600160a01b03851681526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a16040805182815290516000916001600160a01b038616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505050565b60008261106857506000610b00565b8282028284828161107557fe5b0414610e885760405162461bcd60e51b81526004018080602001828103825260218152602001806112536021913960400191505060405180910390fd5b6000610e8883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611136565b6000610e8883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506111d8565b600081836111c25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561118757818101518382015260200161116f565b50505050905090810190601f1680156111b45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816111ce57fe5b0495945050505050565b6000818484111561122a5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561118757818101518382015260200161116f565b50505090039056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122026b2b5d4e8df60323c701b9bbf5e2ee92df18562538b9b1d6919ad1a1cf1dfe764736f6c634300060c003300000000000000000000000003b8f104a9bcf1ceb1140f20ef0f43ccc787d8b0

Deployed Bytecode

0x6080604052600436106101395760003560e01c806375619ab5116100ab578063dd62ed3e1161006f578063dd62ed3e14610479578063e9503425146104b4578063f3fef3a3146104e7578063f5fc507614610520578063f9b7a2c014610535578063fc0c546a1461056e57610140565b806375619ab5146103e957806395d89b411461041c578063a9059cbb146101cf578063bfe1092814610431578063cfad57a21461044657610140565b806323b872dd116100fd57806323b872dd146102a957806327e235e3146102ec578063313ce5671461031f57806344a084111461034a5780636e553f651461037d57806370a08231146103b657610140565b806306fdde0314610145578063095ea7b3146101cf57806312d43a511461021c57806318160ddd1461024d5780631e83409a1461027457610140565b3661014057005b600080fd5b34801561015157600080fd5b5061015a610583565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019457818101518382015260200161017c565b50505050905090810190601f1680156101c15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101db57600080fd5b50610208600480360360408110156101f257600080fd5b506001600160a01b0381351690602001356105ac565b604080519115158252519081900360200190f35b34801561022857600080fd5b506102316105fb565b604080516001600160a01b039092168252519081900360200190f35b34801561025957600080fd5b5061026261060a565b60408051918252519081900360200190f35b34801561028057600080fd5b506102a76004803603602081101561029757600080fd5b50356001600160a01b0316610610565b005b3480156102b557600080fd5b50610208600480360360608110156102cc57600080fd5b506001600160a01b038135811691602081013590911690604001356105ac565b3480156102f857600080fd5b506102626004803603602081101561030f57600080fd5b50356001600160a01b031661076a565b34801561032b57600080fd5b5061033461077c565b6040805160ff9092168252519081900360200190f35b34801561035657600080fd5b506102626004803603602081101561036d57600080fd5b50356001600160a01b0316610781565b34801561038957600080fd5b506102a7600480360360408110156103a057600080fd5b50803590602001356001600160a01b0316610793565b3480156103c257600080fd5b50610262600480360360208110156103d957600080fd5b50356001600160a01b0316610997565b3480156103f557600080fd5b506102a76004803603602081101561040c57600080fd5b50356001600160a01b03166109b2565b34801561042857600080fd5b5061015a610a25565b34801561043d57600080fd5b50610231610a49565b34801561045257600080fd5b506102a76004803603602081101561046957600080fd5b50356001600160a01b0316610a58565b34801561048557600080fd5b506102626004803603604081101561049c57600080fd5b506001600160a01b0381358116916020013516610afd565b3480156104c057600080fd5b50610262600480360360208110156104d757600080fd5b50356001600160a01b0316610b06565b3480156104f357600080fd5b506102a76004803603604081101561050a57600080fd5b506001600160a01b038135169060200135610b18565b34801561052c57600080fd5b50610262610bd2565b34801561054157600080fd5b506102a76004803603604081101561055857600080fd5b506001600160a01b038135169060200135610bd8565b34801561057a57600080fd5b50610231610c7d565b6040518060400160405280600d81526020016c5856495820554e49204661726d60981b81525081565b6040805162461bcd60e51b815260206004820152601760248201527f4661726d3a206e6f6e2d7472616e736665727261626c650000000000000000006044820152905160009181900360640190fd5b6002546001600160a01b031681565b60045481565b60026000541415610656576040805162461bcd60e51b815260206004820152601f6024820152600080516020611233833981519152604482015290519081900360640190fd5b600260005533610667816001610c8c565b6001600160a01b038082166000908152600760205260408082208054908390559051909285169083908381818185875af1925050503d80600081146106c8576040519150601f19603f3d011682016040523d82523d6000602084013e6106cd565b606091505b505090508061071b576040805162461bcd60e51b815260206004820152601560248201527411985c9b4e881d1c985b9cd9995c8819985a5b1959605a1b604482015290519081900360640190fd5b604080516001600160a01b03861681526020810184905281517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4929181900390910190a1505060016000555050565b60056020526000908152604090205481565b601281565b60086020526000908152604090205481565b600260005414156107d9576040805162461bcd60e51b815260206004820152601f6024820152600080516020611233833981519152604482015290519081900360640190fd5b60026000558161082c576040805162461bcd60e51b815260206004820152601960248201527811985c9b4e881a5b9cdd59999a58da595b9d08185b5bdd5b9d603a1b604482015290519081900360640190fd5b610837816001610c8c565b600154604080516323b872dd60e01b81523360048201523060248201526044810185905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561089157600080fd5b505af11580156108a5573d6000803e3d6000fd5b505050506040513d60208110156108bb57600080fd5b50506001600160a01b0381166000908152600560205260409020546108e09083610e2e565b6001600160a01b0382166000908152600560205260409020556004546109069083610e2e565b600455604080516001600160a01b03831681526020810184905281517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c929181900390910190a16040805183815290516001600160a01b038316916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350506001600055565b6001600160a01b031660009081526005602052604090205490565b6002546001600160a01b03163314610a03576040805162461bcd60e51b815260206004820152600f60248201526e2330b9369d103337b93134b23232b760891b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60405180604001604052806008815260200167554e493a4641524d60c01b81525081565b6003546001600160a01b031681565b6002546001600160a01b03163314610aa9576040805162461bcd60e51b815260206004820152600f60248201526e2330b9369d103337b93134b23232b760891b604482015290519081900360640190fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f2c5d53cd16ceaf62d39256419d59e80a42575bfc21eab954015ca61b42dbe4619181900360200190a150565b60005b92915050565b60076020526000908152604090205481565b60026000541415610b5e576040805162461bcd60e51b815260206004820152601f6024820152600080516020611233833981519152604482015290519081900360640190fd5b600260005580610bb1576040805162461bcd60e51b815260206004820152601960248201527811985c9b4e881a5b9cdd59999a58da595b9d08185b5bdd5b9d603a1b604482015290519081900360640190fd5b33610bbd816001610c8c565b610bc8818484610e8f565b5050600160005550565b60065481565b60026000541415610c1e576040805162461bcd60e51b815260206004820152601f6024820152600080516020611233833981519152604482015290519081900360640190fd5b600260005580610c71576040805162461bcd60e51b815260206004820152601960248201527811985c9b4e881a5b9cdd59999a58da595b9d08185b5bdd5b9d603a1b604482015290519081900360640190fd5b33610bbd816000610c8c565b6001546001600160a01b031681565b6000818015610ca557506003546001600160a01b031615155b15610d2957600360009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610cfa57600080fd5b505af1158015610d0e573d6000803e3d6000fd5b505050506040513d6020811015610d2457600080fd5b505190505b60065460045415801590610d3d5750600082115b15610d7957600454610d7190610d6a90610d64856c0c9f2c9cd04674edea40000000611059565b906110b2565b8290610e2e565b600681905590505b80610d85575050610e2a565b6001600160a01b03841660009081526008602052604081205490610dfe610ddf6c0c9f2c9cd04674edea40000000610d64610dc087876110f4565b6001600160a01b038b1660009081526005602052604090205490611059565b6001600160a01b03881660009081526007602052604090205490610e2e565b6001600160a01b0387166000908152600760209081526040808320939093556008905220929092555050505b5050565b600082820183811015610e88576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038316600090815260056020526040902054811115610efc576040805162461bcd60e51b815260206004820152601a60248201527f4661726d3a20696e73756666696369656e742062616c616e6365000000000000604482015290519081900360640190fd5b6001600160a01b038316600090815260056020526040902054610f1f90826110f4565b6001600160a01b038416600090815260056020526040902055600454610f4590826110f4565b60049081556001546040805163a9059cbb60e01b81526001600160a01b0386811694820194909452602481018590529051929091169163a9059cbb916044808201926020929091908290030181600087803b158015610fa357600080fd5b505af1158015610fb7573d6000803e3d6000fd5b505050506040513d6020811015610fcd57600080fd5b5050604080516001600160a01b03851681526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a16040805182815290516000916001600160a01b038616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505050565b60008261106857506000610b00565b8282028284828161107557fe5b0414610e885760405162461bcd60e51b81526004018080602001828103825260218152602001806112536021913960400191505060405180910390fd5b6000610e8883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611136565b6000610e8883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506111d8565b600081836111c25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561118757818101518382015260200161116f565b50505050905090810190601f1680156111b45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816111ce57fe5b0495945050505050565b6000818484111561122a5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561118757818101518382015260200161116f565b50505090039056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122026b2b5d4e8df60323c701b9bbf5e2ee92df18562538b9b1d6919ad1a1cf1dfe764736f6c634300060c0033

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

00000000000000000000000003b8f104a9bcf1ceb1140f20ef0f43ccc787d8b0

-----Decoded View---------------
Arg [0] : _token (address): 0x03B8F104A9bcf1cEb1140F20ef0f43Ccc787d8b0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000003b8f104a9bcf1ceb1140f20ef0f43ccc787d8b0


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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