ETH Price: $3,547.50 (-0.74%)
Gas: 24 Gwei

Contract

0x8bd75f96EfA089aEcf6Ac4CD0B671e2428f4B2af
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Governor130499642021-08-18 15:11:48953 days ago1629299508IN
Opium.Team: Token Spender V1
0 ETH0.0013667348.81355412
Commit Whitelist120230452021-03-12 10:05:581113 days ago1615543558IN
Opium.Team: Token Spender V1
0 ETH0.00919576129
Propose Whitelis...120186742021-03-11 17:35:151113 days ago1615484115IN
Opium.Team: Token Spender V1
0 ETH0.01084115112
Commit Whitelist119785472021-03-05 13:23:311119 days ago1614950611IN
Opium.Team: Token Spender V1
0 ETH0.00477888113
Propose Whitelis...119778612021-03-05 10:51:341120 days ago1614941494IN
Opium.Team: Token Spender V1
0 ETH0.0058260785.00000145
Commit Whitelist119290152021-02-25 22:25:331127 days ago1614291933IN
Opium.Team: Token Spender V1
0 ETH0.00532822183
Propose Whitelis...119287612021-02-25 21:24:341127 days ago1614288274IN
Opium.Team: Token Spender V1
0 ETH0.00432762125
Commit Whitelist116867322021-01-19 16:05:021164 days ago1611072302IN
Opium.Team: Token Spender V1
0 ETH0.00741364104
Propose Whitelis...116864172021-01-19 14:57:031164 days ago1611068223IN
Opium.Team: Token Spender V1
0 ETH0.0080340683
Commit Whitelist116345082021-01-11 15:43:161172 days ago1610379796IN
Opium.Team: Token Spender V1
0 ETH0.01201064284
Propose Whitelis...116339702021-01-11 13:49:111172 days ago1610372951IN
Opium.Team: Token Spender V1
0 ETH0.00856775125
Commit Whitelist115897042021-01-04 18:45:011179 days ago1609785901IN
Opium.Team: Token Spender V1
0 ETH0.00413457129
Propose Whitelis...115893832021-01-04 17:33:111179 days ago1609781591IN
Opium.Team: Token Spender V1
0 ETH0.0068985101.00000145
Propose Whitelis...93522162020-01-25 17:11:411524 days ago1579972301IN
Opium.Team: Token Spender V1
0 ETH0.000318272.4
0x6080604093275632020-01-21 22:16:231528 days ago1579644983IN
 Create: TokenSpender
0 ETH0.002850913

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenSpender

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-03-24
*/

/**

  Source code of Opium Protocol
  Web https://opium.network
  Telegram https://t.me/opium_network
  Twitter https://twitter.com/opium_network

 */

// File: LICENSE

/**

The software and documentation available in this repository (the "Software") is protected by copyright law and accessible pursuant to the license set forth below. Copyright © 2020 Blockeys BV. All rights reserved.

Permission is hereby granted, free of charge, to any person or organization obtaining the Software (the “Licensee”) to privately study, review, and analyze the Software. Licensee shall not use the Software for any other purpose. Licensee shall not modify, transfer, assign, share, or sub-license the Software or any derivative works of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

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

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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.5.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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: openzeppelin-solidity/contracts/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * IMPORTANT: It is unsafe to assume that an address for which this
     * function returns false is an externally-owned account (EOA) and not a
     * contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

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

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

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

pragma solidity ^0.5.0;




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

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

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

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

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

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

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

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

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

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

// File: erc721o/contracts/Interfaces/IERC721O.sol

pragma solidity ^0.5.4;

contract IERC721O {
  function name() external view returns (string memory);
  function symbol() external view returns (string memory);

  function implementsERC721O() public pure returns (bool);
  function ownerOf(uint256 _tokenId) public view returns (address _owner);
  function balanceOf(address owner) public view returns (uint256);
  function balanceOf(address owner, uint256 tokenId) public view returns (uint256);
  function tokensOwned(address owner) public view returns (uint256[] memory, uint256[] memory);

  function transfer(address to, uint256 tokenId, uint256 quantity) public;
  function transferFrom(address from, address to, uint256 tokenId, uint256 quantity) public;

  // Fungible Safe Transfer From
  function safeTransferFrom(address from, address to, uint256 tokenId, uint256 _amount) public;
  function safeTransferFrom(address from, address to, uint256 tokenId, uint256 _amount, bytes memory data) public;

  // Batch Safe Transfer From
  function safeBatchTransferFrom(address _from, address _to, uint256[] memory tokenIds, uint256[] memory _amounts, bytes memory _data) public;

  // Required Events
  event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
  event TransferWithQuantity(address indexed from, address indexed to, uint256 indexed tokenId, uint256 quantity);
  event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);
  event BatchTransfer(address indexed from, address indexed to, uint256[] tokenTypes, uint256[] amounts);
  event Composition(uint256 portfolioId, uint256[] tokenIds, uint256[] tokenRatio);
}

// File: contracts/Lib/Whitelisted.sol

pragma solidity 0.5.16;

/// @title Opium.Lib.Whitelisted contract implements whitelist with modifier to restrict access to only whitelisted addresses
contract Whitelisted {
    // Whitelist array
    address[] internal whitelist;

    /// @notice This modifier restricts access to functions, which could be called only by whitelisted addresses
    modifier onlyWhitelisted() {
        // Allowance flag
        bool allowed = false;

        // Going through whitelisted addresses array
        uint256 whitelistLength = whitelist.length;
        for (uint256 i = 0; i < whitelistLength; i++) {
            // If `msg.sender` is met within whitelisted addresses, raise the flag and exit the loop
            if (whitelist[i] == msg.sender) {
                allowed = true;
                break;
            }
        }

        // Check if flag was raised
        require(allowed, "Only whitelisted allowed");
        _;
    }

    /// @notice Getter for whitelisted addresses array
    /// @return Array of whitelisted addresses
    function getWhitelist() public view returns (address[] memory) {
        return whitelist;
    }
}

// File: contracts/Lib/WhitelistedWithGovernance.sol

pragma solidity 0.5.16;


/// @title Opium.Lib.WhitelistedWithGovernance contract implements Opium.Lib.Whitelisted and adds governance for whitelist controlling
contract WhitelistedWithGovernance is Whitelisted {
    // Emitted when new governor is set
    event GovernorSet(address governor);

    // Emitted when new whitelist is proposed
    event Proposed(address[] whitelist);
    // Emitted when proposed whitelist is committed (set)
    event Committed(address[] whitelist);

    // Proposal life timelock interval
    uint256 public timeLockInterval;

    // Governor address
    address public governor;

    // Timestamp of last proposal
    uint256 public proposalTime;

    // Proposed whitelist
    address[] public proposedWhitelist;

    /// @notice This modifier restricts access to functions, which could be called only by governor
    modifier onlyGovernor() {
        require(msg.sender == governor, "Only governor allowed");
        _;
    }

    /// @notice Contract constructor
    /// @param _timeLockInterval uint256 Initial value for timelock interval
    /// @param _governor address Initial value for governor
    constructor(uint256 _timeLockInterval, address _governor) public {
        timeLockInterval = _timeLockInterval;
        governor = _governor;
        emit GovernorSet(governor);
    }

    /// @notice Calling this function governor could propose new whitelist addresses array. Also it allows to initialize first whitelist if it was not initialized yet.
    function proposeWhitelist(address[] memory _whitelist) public onlyGovernor {
        // Restrict empty proposals
        require(_whitelist.length != 0, "Can't be empty");

        // Consider empty whitelist as not initialized, as proposing of empty whitelists is not allowed
        // If whitelist has never been initialized, we set whitelist right away without proposal
        if (whitelist.length == 0) {
            whitelist = _whitelist;
            emit Committed(_whitelist);

        // Otherwise save current time as timestamp of proposal, save proposed whitelist and emit event
        } else {
            proposalTime = now;
            proposedWhitelist = _whitelist;
            emit Proposed(_whitelist);
        }
    }

    /// @notice Calling this function governor commits proposed whitelist if timelock interval of proposal was passed
    function commitWhitelist() public onlyGovernor {
        // Check if proposal was made
        require(proposalTime != 0, "Didn't proposed yet");

        // Check if timelock interval was passed
        require((proposalTime + timeLockInterval) < now, "Can't commit yet");

        // Set new whitelist and emit event
        whitelist = proposedWhitelist;
        emit Committed(whitelist);

        // Reset proposal time lock
        proposalTime = 0;
    }

    /// @notice This function allows governor to transfer governance to a new governor and emits event
    /// @param _governor address Address of new governor
    function setGovernor(address _governor) public onlyGovernor {
        require(_governor != address(0), "Can't set zero address");
        governor = _governor;
        emit GovernorSet(governor);
    }
}

// File: contracts/Lib/WhitelistedWithGovernanceAndChangableTimelock.sol

pragma solidity 0.5.16;


/// @notice Opium.Lib.WhitelistedWithGovernanceAndChangableTimelock contract implements Opium.Lib.WhitelistedWithGovernance and adds possibility for governor to change timelock interval within timelock interval
contract WhitelistedWithGovernanceAndChangableTimelock is WhitelistedWithGovernance {
    // Emitted when new timelock is proposed
    event Proposed(uint256 timelock);
    // Emitted when new timelock is committed (set)
    event Committed(uint256 timelock);

    // Timestamp of last timelock proposal
    uint256 public timeLockProposalTime;
    // Proposed timelock
    uint256 public proposedTimeLock;

    /// @notice Calling this function governor could propose new timelock
    /// @param _timelock uint256 New timelock value
    function proposeTimelock(uint256 _timelock) public onlyGovernor {
        timeLockProposalTime = now;
        proposedTimeLock = _timelock;
        emit Proposed(_timelock);
    }

    /// @notice Calling this function governor could commit previously proposed new timelock if timelock interval of proposal was passed
    function commitTimelock() public onlyGovernor {
        // Check if proposal was made
        require(timeLockProposalTime != 0, "Didn't proposed yet");
        // Check if timelock interval was passed
        require((timeLockProposalTime + timeLockInterval) < now, "Can't commit yet");

        // Set new timelock and emit event
        timeLockInterval = proposedTimeLock;
        emit Committed(proposedTimeLock);

        // Reset timelock time lock
        timeLockProposalTime = 0;
    }
}

// File: contracts/TokenSpender.sol

pragma solidity 0.5.16;





/// @title Opium.TokenSpender contract holds users ERC20 approvals and allows whitelisted contracts to use tokens
contract TokenSpender is WhitelistedWithGovernanceAndChangableTimelock {
    using SafeERC20 for IERC20;

    // Initial timelock period
    uint256 public constant WHITELIST_TIMELOCK = 1 hours;

    /// @notice Calls constructors of super-contracts
    /// @param _governor address Address of governor, who is allowed to adjust whitelist
    constructor(address _governor) public WhitelistedWithGovernance(WHITELIST_TIMELOCK, _governor) {}

    /// @notice Using this function whitelisted contracts could call ERC20 transfers
    /// @param token IERC20 Instance of token
    /// @param from address Address from which tokens are transferred
    /// @param to address Address of tokens receiver
    /// @param amount uint256 Amount of tokens to be transferred
    function claimTokens(IERC20 token, address from, address to, uint256 amount) external onlyWhitelisted {
        token.safeTransferFrom(from, to, amount);
    }

    /// @notice Using this function whitelisted contracts could call ERC721O transfers
    /// @param token IERC721O Instance of token
    /// @param from address Address from which tokens are transferred
    /// @param to address Address of tokens receiver
    /// @param tokenId uint256 Token ID to be transferred
    /// @param amount uint256 Amount of tokens to be transferred
    function claimPositions(IERC721O token, address from, address to, uint256 tokenId, uint256 amount) external onlyWhitelisted {
        token.safeTransferFrom(from, to, tokenId, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_governor","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timelock","type":"uint256"}],"name":"Committed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"whitelist","type":"address[]"}],"name":"Committed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"governor","type":"address"}],"name":"GovernorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timelock","type":"uint256"}],"name":"Proposed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"whitelist","type":"address[]"}],"name":"Proposed","type":"event"},{"constant":true,"inputs":[],"name":"WHITELIST_TIMELOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC721O","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimPositions","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"commitTimelock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"commitWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getWhitelist","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proposalTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_timelock","type":"uint256"}],"name":"proposeTimelock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_whitelist","type":"address[]"}],"name":"proposeWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"proposedTimeLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposedWhitelist","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_governor","type":"address"}],"name":"setGovernor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"timeLockInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"timeLockProposalTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516110143803806110148339818101604052602081101561003357600080fd5b5051610e106001819055600280546001600160a01b038085166001600160a01b03199092169190911791829055604080519290911682525183917f1cbb37f5a02c38ab13773cb770fae505cce417a4d81560117389e3a9f7e001f2919081900360200190a1505050610f6a806100aa6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80639109b14611610097578063d497501111610066578063d4975011146102f9578063dde3c14e14610301578063e61abd4a1461031e578063ef7bac3d14610326576100f5565b80639109b146146101d0578063c42cf535146101d8578063c93f70e7146101fe578063d01f63f5146102a1576100f5565b8063184a0ae9116100d3578063184a0ae9146101645780632031f63e1461017e578063289fa9b0146101c05780633e1b2cdd146101c8576100f5565b806304f7c749146100fa5780630a5ea466146101045780630c340a2414610140575b600080fd5b610102610343565b005b6101026004803603608081101561011a57600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135610472565b610148610534565b604080516001600160a01b039092168252519081900360200190f35b61016c610543565b60408051918252519081900360200190f35b610102600480360360a081101561019457600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060800135610549565b61016c61066a565b61016c610670565b610102610676565b610102600480360360208110156101ee57600080fd5b50356001600160a01b03166107fc565b6101026004803603602081101561021457600080fd5b81019060208101813564010000000081111561022f57600080fd5b82018360208201111561024157600080fd5b8035906020019184602083028401116401000000008311171561026357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610901945050505050565b6102a9610ac2565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102e55781810151838201526020016102cd565b505050509050019250505060405180910390f35b61016c610b25565b6101486004803603602081101561031757600080fd5b5035610b2b565b61016c610b52565b6101026004803603602081101561033c57600080fd5b5035610b58565b6002546001600160a01b0316331461039a576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b6005546103e4576040805162461bcd60e51b8152602060048201526013602482015272111a591b89dd081c1c9bdc1bdcd959081e595d606a1b604482015290519081900360640190fd5b426001546005540110610431576040805162461bcd60e51b815260206004820152601060248201526f10d85b89dd0818dbdb5b5a5d081e595d60821b604482015290519081900360640190fd5b600654600181905560408051918252517f023ad9f3cfd45bbf91919354cab651602c11b3d4267df2f095331f1e31c0c4299181900360200190a16000600555565b60008054815b818110156104c357336001600160a01b03166000828154811061049757fe5b6000918252602090912001546001600160a01b031614156104bb57600192506104c3565b600101610478565b5081610511576040805162461bcd60e51b815260206004820152601860248201527713db9b1e481dda1a5d195b1a5cdd195908185b1b1bddd95960421b604482015290519081900360640190fd5b61052c6001600160a01b03871686868663ffffffff610bee16565b505050505050565b6002546001600160a01b031681565b60035481565b60008054815b8181101561059a57336001600160a01b03166000828154811061056e57fe5b6000918252602090912001546001600160a01b03161415610592576001925061059a565b60010161054f565b50816105e8576040805162461bcd60e51b815260206004820152601860248201527713db9b1e481dda1a5d195b1a5cdd195908185b1b1bddd95960421b604482015290519081900360640190fd5b60408051630febdd4960e01b81526001600160a01b03888116600483015287811660248301526044820187905260648201869052915191891691630febdd499160848082019260009290919082900301818387803b15801561064957600080fd5b505af115801561065d573d6000803e3d6000fd5b5050505050505050505050565b610e1081565b60015481565b6002546001600160a01b031633146106cd576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b600354610717576040805162461bcd60e51b8152602060048201526013602482015272111a591b89dd081c1c9bdc1bdcd959081e595d606a1b604482015290519081900360640190fd5b426001546003540110610764576040805162461bcd60e51b815260206004820152601060248201526f10d85b89dd0818dbdb5b5a5d081e595d60821b604482015290519081900360640190fd5b6004805461077491600091610e42565b507fcf5f6182ae6cecd595e884fb28fd9bf02ff7d4800a47ad91888a5d42b9b7c0ee6000604051808060200182810382528381815481526020019150805480156107e757602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107c9575b50509250505060405180910390a16000600355565b6002546001600160a01b03163314610853576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b6001600160a01b0381166108a7576040805162461bcd60e51b815260206004820152601660248201527543616e277420736574207a65726f206164647265737360501b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f1cbb37f5a02c38ab13773cb770fae505cce417a4d81560117389e3a9f7e001f2916020908290030190a150565b6002546001600160a01b03163314610958576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b805161099c576040805162461bcd60e51b815260206004820152600e60248201526d43616e277420626520656d70747960901b604482015290519081900360640190fd5b600054610a315780516109b6906000906020840190610e92565b507fcf5f6182ae6cecd595e884fb28fd9bf02ff7d4800a47ad91888a5d42b9b7c0ee816040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610a19578181015183820152602001610a01565b505050509050019250505060405180910390a1610abf565b426003558051610a48906004906020840190610e92565b507f733d9de768ebc70929dcf63858a484af89d827b792edf6c89b1f6b39e6a190ae816040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610aab578181015183820152602001610a93565b505050509050019250505060405180910390a15b50565b60606000805480602002602001604051908101604052809291908181526020018280548015610b1a57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610afc575b505050505090505b90565b60055481565b60048181548110610b3857fe5b6000918252602090912001546001600160a01b0316905081565b60065481565b6002546001600160a01b03163314610baf576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b4260055560068190556040805182815290517fbce69c9602eb3fe8fb05c3a4be218b5f67aec8aafaf6395d2a88cc817ea97b379181900360200190a150565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c48908590610c4e565b50505050565b610c60826001600160a01b0316610e06565b610cb1576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610cef5780518252601f199092019160209182019101610cd0565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610d51576040519150601f19603f3d011682016040523d82523d6000602084013e610d56565b606091505b509150915081610dad576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610c4857808060200190516020811015610dc957600080fd5b5051610c485760405162461bcd60e51b815260040180806020018281038252602a815260200180610f0c602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590610e3a5750808214155b949350505050565b828054828255906000526020600020908101928215610e825760005260206000209182015b82811115610e82578254825591600101919060010190610e67565b50610e8e929150610ee7565b5090565b828054828255906000526020600020908101928215610e82579160200282015b82811115610e8257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190610eb2565b610b2291905b80821115610e8e5780546001600160a01b0319168155600101610eed56fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820d46569122bfcaf89f5dda5bd33768c20c7f627af517b00e72ae19c4030f01ea964736f6c63430005100032000000000000000000000000f80d12e55f6cda587a26a05f2e6477054e8255e5

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80639109b14611610097578063d497501111610066578063d4975011146102f9578063dde3c14e14610301578063e61abd4a1461031e578063ef7bac3d14610326576100f5565b80639109b146146101d0578063c42cf535146101d8578063c93f70e7146101fe578063d01f63f5146102a1576100f5565b8063184a0ae9116100d3578063184a0ae9146101645780632031f63e1461017e578063289fa9b0146101c05780633e1b2cdd146101c8576100f5565b806304f7c749146100fa5780630a5ea466146101045780630c340a2414610140575b600080fd5b610102610343565b005b6101026004803603608081101561011a57600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135610472565b610148610534565b604080516001600160a01b039092168252519081900360200190f35b61016c610543565b60408051918252519081900360200190f35b610102600480360360a081101561019457600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060800135610549565b61016c61066a565b61016c610670565b610102610676565b610102600480360360208110156101ee57600080fd5b50356001600160a01b03166107fc565b6101026004803603602081101561021457600080fd5b81019060208101813564010000000081111561022f57600080fd5b82018360208201111561024157600080fd5b8035906020019184602083028401116401000000008311171561026357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610901945050505050565b6102a9610ac2565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102e55781810151838201526020016102cd565b505050509050019250505060405180910390f35b61016c610b25565b6101486004803603602081101561031757600080fd5b5035610b2b565b61016c610b52565b6101026004803603602081101561033c57600080fd5b5035610b58565b6002546001600160a01b0316331461039a576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b6005546103e4576040805162461bcd60e51b8152602060048201526013602482015272111a591b89dd081c1c9bdc1bdcd959081e595d606a1b604482015290519081900360640190fd5b426001546005540110610431576040805162461bcd60e51b815260206004820152601060248201526f10d85b89dd0818dbdb5b5a5d081e595d60821b604482015290519081900360640190fd5b600654600181905560408051918252517f023ad9f3cfd45bbf91919354cab651602c11b3d4267df2f095331f1e31c0c4299181900360200190a16000600555565b60008054815b818110156104c357336001600160a01b03166000828154811061049757fe5b6000918252602090912001546001600160a01b031614156104bb57600192506104c3565b600101610478565b5081610511576040805162461bcd60e51b815260206004820152601860248201527713db9b1e481dda1a5d195b1a5cdd195908185b1b1bddd95960421b604482015290519081900360640190fd5b61052c6001600160a01b03871686868663ffffffff610bee16565b505050505050565b6002546001600160a01b031681565b60035481565b60008054815b8181101561059a57336001600160a01b03166000828154811061056e57fe5b6000918252602090912001546001600160a01b03161415610592576001925061059a565b60010161054f565b50816105e8576040805162461bcd60e51b815260206004820152601860248201527713db9b1e481dda1a5d195b1a5cdd195908185b1b1bddd95960421b604482015290519081900360640190fd5b60408051630febdd4960e01b81526001600160a01b03888116600483015287811660248301526044820187905260648201869052915191891691630febdd499160848082019260009290919082900301818387803b15801561064957600080fd5b505af115801561065d573d6000803e3d6000fd5b5050505050505050505050565b610e1081565b60015481565b6002546001600160a01b031633146106cd576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b600354610717576040805162461bcd60e51b8152602060048201526013602482015272111a591b89dd081c1c9bdc1bdcd959081e595d606a1b604482015290519081900360640190fd5b426001546003540110610764576040805162461bcd60e51b815260206004820152601060248201526f10d85b89dd0818dbdb5b5a5d081e595d60821b604482015290519081900360640190fd5b6004805461077491600091610e42565b507fcf5f6182ae6cecd595e884fb28fd9bf02ff7d4800a47ad91888a5d42b9b7c0ee6000604051808060200182810382528381815481526020019150805480156107e757602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107c9575b50509250505060405180910390a16000600355565b6002546001600160a01b03163314610853576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b6001600160a01b0381166108a7576040805162461bcd60e51b815260206004820152601660248201527543616e277420736574207a65726f206164647265737360501b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f1cbb37f5a02c38ab13773cb770fae505cce417a4d81560117389e3a9f7e001f2916020908290030190a150565b6002546001600160a01b03163314610958576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b805161099c576040805162461bcd60e51b815260206004820152600e60248201526d43616e277420626520656d70747960901b604482015290519081900360640190fd5b600054610a315780516109b6906000906020840190610e92565b507fcf5f6182ae6cecd595e884fb28fd9bf02ff7d4800a47ad91888a5d42b9b7c0ee816040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610a19578181015183820152602001610a01565b505050509050019250505060405180910390a1610abf565b426003558051610a48906004906020840190610e92565b507f733d9de768ebc70929dcf63858a484af89d827b792edf6c89b1f6b39e6a190ae816040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610aab578181015183820152602001610a93565b505050509050019250505060405180910390a15b50565b60606000805480602002602001604051908101604052809291908181526020018280548015610b1a57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610afc575b505050505090505b90565b60055481565b60048181548110610b3857fe5b6000918252602090912001546001600160a01b0316905081565b60065481565b6002546001600160a01b03163314610baf576040805162461bcd60e51b815260206004820152601560248201527413db9b1e4819dbdd995c9b9bdc88185b1b1bddd959605a1b604482015290519081900360640190fd5b4260055560068190556040805182815290517fbce69c9602eb3fe8fb05c3a4be218b5f67aec8aafaf6395d2a88cc817ea97b379181900360200190a150565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c48908590610c4e565b50505050565b610c60826001600160a01b0316610e06565b610cb1576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610cef5780518252601f199092019160209182019101610cd0565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610d51576040519150601f19603f3d011682016040523d82523d6000602084013e610d56565b606091505b509150915081610dad576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610c4857808060200190516020811015610dc957600080fd5b5051610c485760405162461bcd60e51b815260040180806020018281038252602a815260200180610f0c602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590610e3a5750808214155b949350505050565b828054828255906000526020600020908101928215610e825760005260206000209182015b82811115610e82578254825591600101919060010190610e67565b50610e8e929150610ee7565b5090565b828054828255906000526020600020908101928215610e82579160200282015b82811115610e8257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190610eb2565b610b2291905b80821115610e8e5780546001600160a01b0319168155600101610eed56fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820d46569122bfcaf89f5dda5bd33768c20c7f627af517b00e72ae19c4030f01ea964736f6c63430005100032

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

000000000000000000000000f80d12e55f6cda587a26a05f2e6477054e8255e5

-----Decoded View---------------
Arg [0] : _governor (address): 0xF80D12E55F6cdA587a26a05f2e6477054e8255e5

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f80d12e55f6cda587a26a05f2e6477054e8255e5


Deployed Bytecode Sourcemap

24772:1531:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24772:1531:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24069:507;;;:::i;:::-;;25552:161;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;25552:161:0;;;;;;;;;;;;;;;;;;;;;;:::i;20199:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;20199:23:0;;;;;;;;;;;;;;20266:27;;;:::i;:::-;;;;;;;;;;;;;;;;26108:192;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;26108:192:0;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;24917:52::-;;;:::i;20134:31::-;;;:::i;22016:474::-;;;:::i;22660:205::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22660:205:0;-1:-1:-1;;;;;22660:205:0;;:::i;21134:755::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21134:755:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;21134:755:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;21134:755:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;21134:755:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;21134:755:0;;-1:-1:-1;21134:755:0;;-1:-1:-1;;;;;21134:755:0:i;19433:98::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;19433:98:0;;;;;;;;;;;;;;;;;23504:35;;;:::i;20329:34::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20329:34:0;;:::i;23572:31::-;;;:::i;23740:183::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23740:183:0;;:::i;24069:507::-;20530:8;;-1:-1:-1;;;;;20530:8:0;20516:10;:22;20508:56;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;;;;24173:20;;24165:57;;;;;-1:-1:-1;;;24165:57:0;;;;;;;;;;;;-1:-1:-1;;;24165:57:0;;;;;;;;;;;;;;;24335:3;24315:16;;24292:20;;:39;24291:47;24283:76;;;;;-1:-1:-1;;;24283:76:0;;;;;;;;;;;;-1:-1:-1;;;24283:76:0;;;;;;;;;;;;;;;24435:16;;24416;:35;;;24467:27;;;;;;;;;;;;;;;;24567:1;24544:20;:24;24069:507::o;25552:161::-;18789:12;18902:16;;18789:12;18929:279;18953:15;18949:1;:19;18929:279;;;19112:10;-1:-1:-1;;;;;19096:26:0;:9;19106:1;19096:12;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19096:12:0;:26;19092:105;;;19153:4;19143:14;;19176:5;;19092:105;18970:3;;18929:279;;;;19265:7;19257:44;;;;;-1:-1:-1;;;19257:44:0;;;;;;;;;;;;-1:-1:-1;;;19257:44:0;;;;;;;;;;;;;;;25665:40;-1:-1:-1;;;;;25665:22:0;;25688:4;25694:2;25698:6;25665:40;:22;:40;:::i;:::-;25552:161;;;;;;:::o;20199:23::-;;;-1:-1:-1;;;;;20199:23:0;;:::o;20266:27::-;;;;:::o;26108:192::-;18789:12;18902:16;;18789:12;18929:279;18953:15;18949:1;:19;18929:279;;;19112:10;-1:-1:-1;;;;;19096:26:0;:9;19106:1;19096:12;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19096:12:0;:26;19092:105;;;19153:4;19143:14;;19176:5;;19092:105;18970:3;;18929:279;;;;19265:7;19257:44;;;;;-1:-1:-1;;;19257:44:0;;;;;;;;;;;;-1:-1:-1;;;19257:44:0;;;;;;;;;;;;;;;26243:49;;;-1:-1:-1;;;26243:49:0;;-1:-1:-1;;;;;26243:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:22;;;;;;:49;;;;;-1:-1:-1;;26243:49:0;;;;;;;;-1:-1:-1;26243:22:0;:49;;;5:2:-1;;;;30:1;27;20:12;5:2;26243:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26243:49:0;;;;26108:192;;;;;;;:::o;24917:52::-;24962:7;24917:52;:::o;20134:31::-;;;;:::o;22016:474::-;20530:8;;-1:-1:-1;;;;;20530:8:0;20516:10;:22;20508:56;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;;;;22121:12;;22113:49;;;;;-1:-1:-1;;;22113:49:0;;;;;;;;;;;;-1:-1:-1;;;22113:49:0;;;;;;;;;;;;;;;22269:3;22249:16;;22234:12;;:31;22233:39;22225:68;;;;;-1:-1:-1;;;22225:68:0;;;;;;;;;;;;-1:-1:-1;;;22225:68:0;;;;;;;;;;;;;;;22363:17;22351:29;;;;:9;;:29;:::i;:::-;;22396:20;22406:9;22396:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22396:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22481:1;22466:12;:16;22016:474::o;22660:205::-;20530:8;;-1:-1:-1;;;;;20530:8:0;20516:10;:22;20508:56;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;22739:23:0;;22731:58;;;;;-1:-1:-1;;;22731:58:0;;;;;;;;;;;;-1:-1:-1;;;22731:58:0;;;;;;;;;;;;;;;22800:8;:20;;-1:-1:-1;;;;;;22800:20:0;-1:-1:-1;;;;;22800:20:0;;;;;;;;;;;22836:21;;;22848:8;;;;22836:21;;;;;;;;;;;;;22660:205;:::o;21134:755::-;20530:8;;-1:-1:-1;;;;;20530:8:0;20516:10;:22;20508:56;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;;;;21265:17;;21257:49;;;;;-1:-1:-1;;;21257:49:0;;;;;;;;;;;;-1:-1:-1;;;21257:49:0;;;;;;;;;;;;;;;21526:9;:16;21522:360;;21564:22;;;;:9;;:22;;;;;:::i;:::-;;21606:21;21616:10;21606:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;21606:21:0;;;;;;;;;;;;;;;;;21522:360;;;21782:3;21767:12;:18;21800:30;;;;:17;;:30;;;;;:::i;:::-;;21850:20;21859:10;21850:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;21850:20:0;;;;;;;;;;;;;;;;;21522:360;21134:755;:::o;19433:98::-;19478:16;19514:9;19507:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19507:16:0;;;;;;;;;;;;;;;;;;;;;;;19433:98;;:::o;23504:35::-;;;;:::o;20329:34::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20329:34:0;;-1:-1:-1;20329:34:0;:::o;23572:31::-;;;;:::o;23740:183::-;20530:8;;-1:-1:-1;;;;;20530:8:0;20516:10;:22;20508:56;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;-1:-1:-1;;;20508:56:0;;;;;;;;;;;;;;;23838:3;23815:20;:26;23852:16;:28;;;23896:19;;;;;;;;;;;;;;;;;23740:183;:::o;13628:204::-;13755:68;;;-1:-1:-1;;;;;13755:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;13755:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;13729:95:0;;13748:5;;13729:18;:95::i;:::-;13628:204;;;;:::o;15483:1114::-;16087:27;16095:5;-1:-1:-1;;;;;16087:25:0;;:27::i;:::-;16079:71;;;;;-1:-1:-1;;;16079:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16224:12;16238:23;16273:5;-1:-1:-1;;;;;16265:19:0;16285:4;16265:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;16265:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;16223:67:0;;;;16309:7;16301:52;;;;;-1:-1:-1;;;16301:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16370:17;;:21;16366:224;;16512:10;16501:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16501:30:0;16493:85;;;;-1:-1:-1;;;16493:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10274:810;10334:4;10993:20;;10836:66;11033:15;;;;;:42;;;11064:11;11052:8;:23;;11033:42;11025:51;10274:810;-1:-1:-1;;;;10274:810:0:o;24772:1531::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24772:1531:0;;;-1:-1:-1;24772:1531:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24772:1531:0;-1:-1:-1;;;;;24772:1531:0;;;;;;;;;;;-1:-1:-1;24772:1531:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24772:1531:0;;;;;;

Swarm Source

bzzr://d46569122bfcaf89f5dda5bd33768c20c7f627af517b00e72ae19c4030f01ea9

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Holds users allowances to Opium Protocol.

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

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