Token SOLIDsex: Tokenized veSOLID

 

Overview ERC-20

Price
$0.00 @ 0.000000 FTM
Fully Diluted Market Cap
Total Supply:
17,675,156.49816 SOLIDsex

Holders:
3,159 addresses

Transfers:
-

Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

A yield optimizer for Solidly built on Fantom.


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

Contract Source Code Verified (Exact Match)

Contract Name:
VeDepositor

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : VeDepositor.sol
pragma solidity 0.8.11;

import "Ownable.sol";
import "IERC20.sol";
import "IVotingEscrow.sol";
import "IVeDist.sol";
import "ILpDepositor.sol";
import "IFeeDistributor.sol";
import "ISolidexVoter.sol";


contract VeDepositor is IERC20, Ownable {

    string public constant name = "SOLIDsex: Tokenized veSOLID";
    string public constant symbol = "SOLIDsex";
    uint8 public constant decimals = 18;
    uint256 public override totalSupply;

    mapping(address => uint256) public override balanceOf;
    mapping(address => mapping(address => uint256)) public override allowance;

    // Solidly contracts
    IERC20 public immutable token;
    IVotingEscrow public immutable votingEscrow;
    IVeDist public immutable veDistributor;

    // Solidex contracts
    ILpDepositor public lpDepositor;
    ISolidexVoter public solidexVoter;
    IFeeDistributor public feeDistributor;

    uint256 public tokenID;
    uint256 public unlockTime;

    uint256 constant MAX_LOCK_TIME = 86400 * 365 * 4;
    uint256 constant WEEK = 86400 * 7;

    event ClaimedFromVeDistributor(address indexed user, uint256 amount);
    event Merged(address indexed user, uint256 tokenID, uint256 amount);
    event UnlockTimeUpdated(uint256 unlockTime);

    constructor(
        IERC20 _token,
        IVotingEscrow _votingEscrow,
        IVeDist _veDist
    ) {
        token = _token;
        votingEscrow = _votingEscrow;
        veDistributor = _veDist;

        // approve vesting escrow to transfer SOLID (for adding to lock)
        _token.approve(address(_votingEscrow), type(uint256).max);
        emit Transfer(address(0), msg.sender, 0);
    }

    function setAddresses(
        ILpDepositor _lpDepositor,
        ISolidexVoter _solidexVoter,
        IFeeDistributor _feeDistributor
    ) external onlyOwner {
        lpDepositor = _lpDepositor;
        solidexVoter = _solidexVoter;
        feeDistributor = _feeDistributor;

        // approve fee distributor to transfer this token (for distributing SOLIDsex)
        allowance[address(this)][address(_feeDistributor)] = type(uint256).max;
        renounceOwnership();
    }


    function approve(address _spender, uint256 _value)
        external
        override
        returns (bool)
    {
        allowance[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    /** shared logic for transfer and transferFrom */
    function _transfer(
        address _from,
        address _to,
        uint256 _value
    ) internal {
        require(balanceOf[_from] >= _value, "Insufficient balance");
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        emit Transfer(_from, _to, _value);
    }

    /**
        @notice Transfer tokens to a specified address
        @param _to The address to transfer to
        @param _value The amount to be transferred
        @return Success boolean
     */
    function transfer(address _to, uint256 _value)
        public
        override
        returns (bool)
    {
        _transfer(msg.sender, _to, _value);
        return true;
    }

    /**
        @notice Transfer tokens from one address to another
        @param _from The address which you want to send tokens from
        @param _to The address which you want to transfer to
        @param _value The amount of tokens to be transferred
        @return Success boolean
     */
    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    ) public override returns (bool) {
        require(allowance[_from][msg.sender] >= _value, "Insufficient allowance");
        if (allowance[_from][msg.sender] != type(uint256).max) {
            allowance[_from][msg.sender] -= _value;
        }
        _transfer(_from, _to, _value);
        return true;
    }

    function onERC721Received(
        address _operator,
        address _from,
        uint256 _tokenID,
        bytes calldata
    ) external returns (bytes4) {
        require(msg.sender == address(votingEscrow), "Can only receive veSOLID NFTs");
        (uint256 amount, uint256 end) = votingEscrow.locked(_tokenID);

        if (tokenID == 0) {
            tokenID = _tokenID;
            unlockTime = end;
            solidexVoter.setTokenID(tokenID);
            votingEscrow.safeTransferFrom(address(this), address(lpDepositor), _tokenID);
        } else {
            votingEscrow.merge(_tokenID, tokenID);
            if (end > unlockTime) unlockTime = end;
            emit Merged(_operator, _tokenID, amount);
        }

        _mint(_operator, amount);
        extendLockTime();

        return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"));
    }

    /**
        @notice Merge a veSOLID NFT previously sent to this contract
                with the main Solidex NFT
        @dev This is primarily meant to allow claiming balances from NFTs
             incorrectly sent using `transferFrom`. To deposit an NFT
             you should always use `safeTransferFrom`.
        @param _tokenID ID of the NFT to merge
        @return bool success
     */
    function merge(uint256 _tokenID) external returns (bool) {
        require(tokenID != _tokenID);
        (uint256 amount, uint256 end) = votingEscrow.locked(_tokenID);
        require(amount > 0);

        votingEscrow.merge(_tokenID, tokenID);
        if (end > unlockTime) unlockTime = end;
        emit Merged(msg.sender, _tokenID, amount);

        _mint(msg.sender, amount);
        extendLockTime();

        return true;
    }

    /**
        @notice Deposit SOLID tokens and mint SOLIDsex
        @param _amount Amount of SOLID to deposit
        @return bool success
     */
    function depositTokens(uint256 _amount) external returns (bool) {
        require(tokenID != 0, "First deposit must be NFT");

        token.transferFrom(msg.sender, address(this), _amount);
        votingEscrow.increase_amount(tokenID, _amount);
        _mint(msg.sender, _amount);
        extendLockTime();

        return true;
    }

    /**
        @notice Extend the lock time of the protocol's veSOLID NFT
        @dev Lock times are also extended each time new SOLIDsex is minted.
             If the lock time is already at the maximum duration, calling
             this function does nothing.
     */
    function extendLockTime() public {
        uint256 maxUnlock = ((block.timestamp + MAX_LOCK_TIME) / WEEK) * WEEK;
        if (maxUnlock > unlockTime) {
            votingEscrow.increase_unlock_time(tokenID, MAX_LOCK_TIME);
            unlockTime = maxUnlock;
            emit UnlockTimeUpdated(unlockTime);
        }
    }

    /**
        @notice Claim veSOLID received via ve(3,3)
        @dev This function is unguarded, anyone can call to claim at any time.
             The new veSOLID is represented by newly minted SOLIDsex, which is
             then sent to `FeeDistributor` and streamed to SEX lockers starting
             at the beginning of the following epoch week.
     */
    function claimFromVeDistributor() external returns (bool) {
        veDistributor.claim(tokenID);

        // calculate the amount by comparing the change in the locked balance
        // to the known total supply, this is necessary because anyone can call
        // `veDistributor.claim` for any NFT
        (uint256 amount,) = votingEscrow.locked(tokenID);
        amount -= totalSupply;

        if (amount > 0) {
            _mint(address(this), amount);
            feeDistributor.depositFee(address(this), balanceOf[address(this)]);
            emit ClaimedFromVeDistributor(address(this), amount);
        }

        return true;
    }

    function _mint(address _user, uint256 _amount) internal {
        balanceOf[_user] += _amount;
        totalSupply += _amount;
        emit Transfer(address(0), _user, _amount);
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^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 {
    address public owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(msg.sender);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner == msg.sender, "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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = owner;
        owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.11;

/**
 * Based on the OpenZeppelin IER20 interface:
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol
 *
 * @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);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);

    /**
     * @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 8 : IVotingEscrow.sol
pragma solidity 0.8.11;

interface IVotingEscrow {
    function increase_amount(uint256 tokenID, uint256 value) external;
    function increase_unlock_time(uint256 tokenID, uint256 duration) external;
    function merge(uint256 fromID, uint256 toID) external;
    function locked(uint256 tokenID) external view returns (uint256 amount, uint256 unlockTime);
    function setApprovalForAll(address operator, bool approved) external;
    function transferFrom(address from, address to, uint256 tokenID) external;
    function safeTransferFrom(address from, address to, uint tokenId) external;
    function ownerOf(uint tokenId) external view returns (address);
    function balanceOfNFT(uint tokenId) external view returns (uint);
    function isApprovedOrOwner(address, uint) external view returns (bool);
}

File 5 of 8 : IVeDist.sol
pragma solidity 0.8.11;

interface IVeDist {
    function claim(uint _tokenId) external returns (uint);
}

File 6 of 8 : ILpDepositor.sol
pragma solidity 0.8.11;

interface ILpDepositor {
    function setTokenID(uint256 tokenID) external returns (bool);
    function userBalances(address user, address pool) external view returns (uint256);
    function totalBalances(address pool) external view returns (uint256);
    function transferDeposit(address pool, address from, address to, uint256 amount) external returns (bool);
    function whitelist(address token) external returns (bool);
}

File 7 of 8 : IFeeDistributor.sol
pragma solidity 0.8.11;

interface IFeeDistributor {
    function depositFee(address _token, uint256 _amount) external returns (bool);
}

File 8 of 8 : ISolidexVoter.sol
pragma solidity 0.8.11;

interface ISolidexVoter {
    function setTokenID(uint256 tokenID) external returns (bool);
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "VeDepositor.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"contract IVotingEscrow","name":"_votingEscrow","type":"address"},{"internalType":"contract IVeDist","name":"_veDist","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedFromVeDistributor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Merged","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":"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":"uint256","name":"unlockTime","type":"uint256"}],"name":"UnlockTimeUpdated","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":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFromVeDistributor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"extendLockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDistributor","outputs":[{"internalType":"contract IFeeDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpDepositor","outputs":[{"internalType":"contract ILpDepositor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"merge","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ILpDepositor","name":"_lpDepositor","type":"address"},{"internalType":"contract ISolidexVoter","name":"_solidexVoter","type":"address"},{"internalType":"contract IFeeDistributor","name":"_feeDistributor","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"solidexVoter","outputs":[{"internalType":"contract ISolidexVoter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veDistributor","outputs":[{"internalType":"contract IVeDist","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingEscrow","outputs":[{"internalType":"contract IVotingEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e06040523480156200001157600080fd5b506040516200186438038062001864833981016040819052620000349162000174565b6200003f336200010b565b6001600160a01b03838116608081905283821660a081905291831660c05260405163095ea7b360e01b8152600481019290925260001960248301529063095ea7b3906044016020604051808303816000875af1158015620000a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ca9190620001c8565b50604051600080825233917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050620001f3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200017157600080fd5b50565b6000806000606084860312156200018a57600080fd5b835162000197816200015b565b6020850151909350620001aa816200015b565b6040850151909250620001bd816200015b565b809150509250925092565b600060208284031215620001db57600080fd5b81518015158114620001ec57600080fd5b9392505050565b60805160a05160c0516115f462000270600039600081816102f00152610c6a0152600081816103170152818161050f015281816105bc0152818161065101528181610776015281816107f101528181610a0f01528181610aa401528181610d020152610f6f0152600081816104280152610ed801526115f46000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80634f2bfe5b116100de578063a5c42ef111610097578063dd49756e11610071578063dd49756e146103d2578063dd62ed3e146103e5578063f2fde38b14610410578063fc0c546a1461042357600080fd5b8063a5c42ef1146103ae578063a9059cbb146103b7578063d9046ace146103ca57600080fd5b80634f2bfe5b1461031257806370a0823114610339578063715018a6146103595780638be5d2bd146103615780638da5cb5b1461037457806395d89b411461038757600080fd5b806318160ddd1161014b578063251c1aa311610125578063251c1aa3146102b5578063313ce567146102be578063363bf964146102d85780634ce15483146102eb57600080fd5b806318160ddd1461027857806323b872dd1461028f57806324a47aeb146102a257600080fd5b806302f283be1461019357806306fdde03146101c3578063095ea7b31461020c5780630d43e8ad1461022f57806311b0ba9f14610242578063150b7a021461024c575b600080fd5b6004546101a6906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101ff6040518060400160405280601b81526020017f534f4c49447365783a20546f6b656e697a6564207665534f4c4944000000000081525081565b6040516101ba919061126d565b61021f61021a3660046112d7565b61044a565b60405190151581526020016101ba565b6006546101a6906001600160a01b031681565b61024a6104b6565b005b61025f61025a366004611303565b6105af565b6040516001600160e01b031990911681526020016101ba565b61028160015481565b6040519081526020016101ba565b61021f61029d3660046113a2565b6108f5565b61021f6102b03660046113e3565b6109db565b61028160085481565b6102c6601281565b60405160ff90911681526020016101ba565b61024a6102e63660046113fc565b610b71565b6101a67f000000000000000000000000000000000000000000000000000000000000000081565b6101a67f000000000000000000000000000000000000000000000000000000000000000081565b610281610347366004611447565b60026020526000908152604090205481565b61024a610c01565b6005546101a6906001600160a01b031681565b6000546101a6906001600160a01b031681565b6101ff604051806040016040528060088152602001670a69e989288e6caf60c31b81525081565b61028160075481565b61021f6103c53660046112d7565b610c37565b61021f610c4d565b61021f6103e03660046113e3565b610e61565b6102816103f336600461146b565b600360209081526000928352604080842090915290825290205481565b61024a61041e366004611447565b610fed565b6101a67f000000000000000000000000000000000000000000000000000000000000000081565b3360008181526003602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906104a59086815260200190565b60405180910390a350600192915050565b600062093a80806104cb630784ce00426114ba565b6104d591906114d2565b6104df91906114f4565b90506008548111156105ac5760075460405163a4d855df60e01b81526004810191909152630784ce0060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a4d855df90604401600060405180830381600087803b15801561055b57600080fd5b505af115801561056f573d6000803e3d6000fd5b5050506008829055506040518181527f6669a6c779a56629103733bcba993d66b30b061559b41f3c64bd2661cd9ea3c19060200160405180910390a15b50565b6000336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461062e5760405162461bcd60e51b815260206004820152601d60248201527f43616e206f6e6c792072656365697665207665534f4c4944204e46547300000060448201526064015b60405180910390fd5b604051635a2d1e0760e11b81526004810185905260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b45a3c0e906024016040805180830381865afa158015610697573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bb9190611513565b91509150600754600014156107d75760078690556008819055600554604051638ee2526760e01b8152600481018890526001600160a01b0390911690638ee25267906024016020604051808303816000875af115801561071f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107439190611537565b5060048054604051632142170760e11b815230928101929092526001600160a01b039081166024830152604482018890527f000000000000000000000000000000000000000000000000000000000000000016906342842e0e90606401600060405180830381600087803b1580156107ba57600080fd5b505af11580156107ce573d6000803e3d6000fd5b505050506108b6565b60075460405163d1c2babb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163d1c2babb9161082f918a91600401918252602082015260400190565b600060405180830381600087803b15801561084957600080fd5b505af115801561085d573d6000803e3d6000fd5b505050506008548111156108715760088190555b60408051878152602081018490526001600160a01b038a16917ff09b8580f0dd326f61a39ad067bd70a1d6915c9c938abcbff08d6c5f844cb310910160405180910390a25b6108c08883611085565b6108c86104b6565b507f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f979650505050505050565b6001600160a01b03831660009081526003602090815260408083203384529091528120548211156109615760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b6044820152606401610625565b6001600160a01b0384166000908152600360209081526040808320338452909152902054600019146109c6576001600160a01b0384166000908152600360209081526040808320338452909152812080548492906109c0908490611559565b90915550505b6109d1848484611110565b5060019392505050565b60008160075414156109ec57600080fd5b604051635a2d1e0760e11b81526004810183905260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b45a3c0e906024016040805180830381865afa158015610a55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a799190611513565b9150915060008211610a8a57600080fd5b60075460405163d1c2babb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163d1c2babb91610ae2918891600401918252602082015260400190565b600060405180830381600087803b158015610afc57600080fd5b505af1158015610b10573d6000803e3d6000fd5b50505050600854811115610b245760088190555b604080518581526020810184905233917ff09b8580f0dd326f61a39ad067bd70a1d6915c9c938abcbff08d6c5f844cb310910160405180910390a2610b693383611085565b6109d16104b6565b6000546001600160a01b03163314610b9b5760405162461bcd60e51b815260040161062590611570565b600480546001600160a01b038086166001600160a01b03199283161790925560058054858416908316179055600680549284169290911682179055306000908152600360209081526040808320938352929052206000199055610bfc610c01565b505050565b6000546001600160a01b03163314610c2b5760405162461bcd60e51b815260040161062590611570565b610c35600061121d565b565b6000610c44338484611110565b50600192915050565b60075460405163379607f560e01b81526000916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163379607f591610ca19160040190815260200190565b6020604051808303816000875af1158015610cc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce491906115a5565b50600754604051635a2d1e0760e11b81526000916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163b45a3c0e91610d399160040190815260200190565b6040805180830381865afa158015610d55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d799190611513565b50905060015481610d8a9190611559565b90508015610e5957610d9c3082611085565b6006543060008181526002602052604090819020549051631dc1a8e960e11b8152600481019290925260248201526001600160a01b0390911690633b8351d2906044016020604051808303816000875af1158015610dfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e229190611537565b5060405181815230907ff5eb62d2f7d5816be1afcec9ded7d4e418f25ace200a65715cf5bd1890c252239060200160405180910390a25b600191505090565b600060075460001415610eb65760405162461bcd60e51b815260206004820152601960248201527f4669727374206465706f736974206d757374206265204e4654000000000000006044820152606401610625565b6040516323b872dd60e01b8152336004820152306024820152604481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610f29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4d9190611537565b506007546040516350c1d7a960e11b81526004810191909152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a183af5290604401600060405180830381600087803b158015610fbb57600080fd5b505af1158015610fcf573d6000803e3d6000fd5b50505050610fdd3383611085565b610fe56104b6565b506001919050565b6000546001600160a01b031633146110175760405162461bcd60e51b815260040161062590611570565b6001600160a01b03811661107c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610625565b6105ac8161121d565b6001600160a01b038216600090815260026020526040812080548392906110ad9084906114ba565b9250508190555080600160008282546110c691906114ba565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03831660009081526002602052604090205481111561116f5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610625565b6001600160a01b03831660009081526002602052604081208054839290611197908490611559565b90915550506001600160a01b038216600090815260026020526040812080548392906111c49084906114ba565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161121091815260200190565b60405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208083528351808285015260005b8181101561129a5785810183015185820160400152820161127e565b818111156112ac576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146105ac57600080fd5b600080604083850312156112ea57600080fd5b82356112f5816112c2565b946020939093013593505050565b60008060008060006080868803121561131b57600080fd5b8535611326816112c2565b94506020860135611336816112c2565b935060408601359250606086013567ffffffffffffffff8082111561135a57600080fd5b818801915088601f83011261136e57600080fd5b81358181111561137d57600080fd5b89602082850101111561138f57600080fd5b9699959850939650602001949392505050565b6000806000606084860312156113b757600080fd5b83356113c2816112c2565b925060208401356113d2816112c2565b929592945050506040919091013590565b6000602082840312156113f557600080fd5b5035919050565b60008060006060848603121561141157600080fd5b833561141c816112c2565b9250602084013561142c816112c2565b9150604084013561143c816112c2565b809150509250925092565b60006020828403121561145957600080fd5b8135611464816112c2565b9392505050565b6000806040838503121561147e57600080fd5b8235611489816112c2565b91506020830135611499816112c2565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b600082198211156114cd576114cd6114a4565b500190565b6000826114ef57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561150e5761150e6114a4565b500290565b6000806040838503121561152657600080fd5b505080516020909101519092909150565b60006020828403121561154957600080fd5b8151801515811461146457600080fd5b60008282101561156b5761156b6114a4565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156115b757600080fd5b505191905056fea2646970667358221220e3c41b7f9b66d30009f3f856a5221309b2cf4f973c28933ed7c6f8e6aba1c2af64736f6c634300080b0033000000000000000000000000888ef71766ca594ded1f0fa3ae64ed2941740a20000000000000000000000000cbd8fea77c2452255f59743f55a3ea9d83b3c72b000000000000000000000000a5cefac8966452a78d6692837b2ba83d19b57d07

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

000000000000000000000000888ef71766ca594ded1f0fa3ae64ed2941740a20000000000000000000000000cbd8fea77c2452255f59743f55a3ea9d83b3c72b000000000000000000000000a5cefac8966452a78d6692837b2ba83d19b57d07

-----Decoded View---------------
Arg [0] : _token (address): 0x888ef71766ca594ded1f0fa3ae64ed2941740a20
Arg [1] : _votingEscrow (address): 0xcbd8fea77c2452255f59743f55a3ea9d83b3c72b
Arg [2] : _veDist (address): 0xa5cefac8966452a78d6692837b2ba83d19b57d07

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000888ef71766ca594ded1f0fa3ae64ed2941740a20
Arg [1] : 000000000000000000000000cbd8fea77c2452255f59743f55a3ea9d83b3c72b
Arg [2] : 000000000000000000000000a5cefac8966452a78d6692837b2ba83d19b57d07


Loading