ETH Price: $2,339.64 (+1.86%)

Contract

0x4003f5285e63fF405412434c362a37aD89B84b6A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...123415612021-04-30 11:27:531228 days ago1619782073IN
0x4003f528...D89B84b6A
0 ETH0.000863130.00000112
0x60806040123359082021-04-29 14:28:211229 days ago1619706501IN
 Create: DXdaoLiquidityMiningRelayer
0 ETH0.0508814269

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DXdaoLiquidityMiningRelayer

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-04-29
*/

// Sources flattened with hardhat v2.2.1 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File @openzeppelin/contracts/access/[email protected]



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 is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// File erc20-staking-rewards-distribution-contracts/[email protected]


pragma solidity >=0.8.0;

interface IERC20StakingRewardsDistributionFactory {
    function createDistribution(
        address[] calldata _rewardTokenAddresses,
        address _stakableTokenAddress,
        uint256[] calldata _rewardAmounts,
        uint64 _startingTimestamp,
        uint64 _endingTimestamp,
        bool _locked,
        uint256 _stakingCap
    ) external;

    function getDistributionsAmount() external view returns (uint256);

    function implementation() external view returns (address);

    function upgradeTo(address newImplementation) external;

    function distributions(uint256 _index) external returns (address);
}


// File dxdao-staking-rewards-distribution-contracts/interfaces/[email protected]


pragma solidity >=0.8.0;

interface IDXdaoERC20StakingRewardsDistributionFactory is
    IERC20StakingRewardsDistributionFactory
{
    function setRewardTokensValidator(address _rewardTokensValidatorAddress)
        external;

    function setStakableTokenValidator(address _stakableTokenValidatorAddress)
        external;
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overloaded;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}


// File erc20-staking-rewards-distribution-contracts/[email protected]


pragma solidity >=0.8.0;

interface IERC20StakingRewardsDistribution {
    function getRewardTokens() external view returns (ERC20[] memory);

    function getClaimedRewards(address _claimer)
        external
        view
        returns (uint256[] memory);

    function initialize(
        address[] calldata _rewardTokenAddresses,
        address _stakableTokenAddress,
        uint256[] calldata _rewardAmounts,
        uint64 _startingTimestamp,
        uint64 _endingTimestamp,
        bool _locked,
        uint256 _stakingCap
    ) external;

    function cancel() external;

    function recoverUnassignedRewards() external;

    function stake(uint256 _amount) external;

    function withdraw(uint256 _amount) external;

    function claim(uint256[] memory _amounts, address _recipient) external;

    function claimAll(address _recipient) external;

    function exit(address _recipient) external;

    function consolidateReward() external;

    function claimableRewards(address _staker)
        external
        view
        returns (uint256[] memory);

    function renounceOwnership() external;

    function transferOwnership(address _newOwner) external;
}


// File contracts/DXdaoLiquidityMiningRelayer.sol

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;




contract DXdaoLiquidityMiningRelayer is Ownable {
    function createDistribution(
        address _factoryAddress,
        address[] calldata _rewardTokensAddresses,
        address _stakableTokenAddress,
        uint256[] calldata _rewardAmounts,
        uint64 _startingTimestamp,
        uint64 _endingTimestmp,
        bool _locked,
        uint256 _stakingCap
    ) external onlyOwner {
        require(
            _rewardTokensAddresses.length == _rewardAmounts.length,
            "DXdaoLiquidityMiningRelayer: inconsistent reward addresses and amounts array length"
        );
        for (uint256 _i; _i < _rewardTokensAddresses.length; _i++) {
            IERC20(_rewardTokensAddresses[_i]).approve(
                _factoryAddress,
                _rewardAmounts[_i]
            );
        }
        IDXdaoERC20StakingRewardsDistributionFactory _factory =
            IDXdaoERC20StakingRewardsDistributionFactory(_factoryAddress);
        _factory.createDistribution(
            _rewardTokensAddresses,
            _stakableTokenAddress,
            _rewardAmounts,
            _startingTimestamp,
            _endingTimestmp,
            _locked,
            _stakingCap
        );
        IERC20StakingRewardsDistribution _createdDistribution =
            IERC20StakingRewardsDistribution(
                _factory.distributions(_factory.getDistributionsAmount() - 1)
            );
        _createdDistribution.transferOwnership(msg.sender);
    }

    function recoverFunds(address[] calldata _tokensAddresses) external {
        address _owner = owner();
        for (uint256 _i; _i < _tokensAddresses.length; _i++) {
            IERC20 _token = IERC20(_tokensAddresses[_i]);
            uint256 _relayerBalance = _token.balanceOf(address(this));
            require(
                _token.transfer(_owner, _relayerBalance),
                "DXdaoLiquidityMiningRelayer: could not recover ERC20 tokens"
            );
        }
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_factoryAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokensAddresses","type":"address[]"},{"internalType":"address","name":"_stakableTokenAddress","type":"address"},{"internalType":"uint256[]","name":"_rewardAmounts","type":"uint256[]"},{"internalType":"uint64","name":"_startingTimestamp","type":"uint64"},{"internalType":"uint64","name":"_endingTimestmp","type":"uint64"},{"internalType":"bool","name":"_locked","type":"bool"},{"internalType":"uint256","name":"_stakingCap","type":"uint256"}],"name":"createDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokensAddresses","type":"address[]"}],"name":"recoverFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b610bed8061007d6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063196351f71461005c578063715018a6146100715780638da5cb5b14610079578063903c83df14610097578063f2fde38b146100aa575b600080fd5b61006f61006a366004610781565b6100bd565b005b61006f6103f8565b610081610481565b60405161008e919061091e565b60405180910390f35b61006f6100a5366004610855565b610490565b61006f6100b8366004610742565b610618565b6100c56106d8565b6001600160a01b03166100d6610481565b6001600160a01b0316146101055760405162461bcd60e51b81526004016100fc90610b0b565b60405180910390fd5b8785146101245760405162461bcd60e51b81526004016100fc90610a92565b60005b8881101561021c5789898281811061014f57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906101649190610742565b6001600160a01b031663095ea7b38c89898581811061019357634e487b7160e01b600052603260045260246000fd5b905060200201356040518363ffffffff1660e01b81526004016101b7929190610932565b602060405180830381600087803b1580156101d157600080fd5b505af11580156101e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102099190610895565b508061021481610b60565b915050610127565b50604051632c8908ff60e01b81528a906001600160a01b03821690632c8908ff9061025b908d908d908d908d908d908d908d908d908d9060040161094b565b600060405180830381600087803b15801561027557600080fd5b505af1158015610289573d6000803e3d6000fd5b505050506000816001600160a01b0316634487d3df6001846001600160a01b031663d5eeaef76040518163ffffffff1660e01b815260040160206040518083038186803b1580156102d957600080fd5b505afa1580156102ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031191906108b1565b61031b9190610b49565b6040518263ffffffff1660e01b81526004016103379190610b40565b602060405180830381600087803b15801561035157600080fd5b505af1158015610365573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103899190610765565b60405163f2fde38b60e01b81529091506001600160a01b0382169063f2fde38b906103b890339060040161091e565b600060405180830381600087803b1580156103d257600080fd5b505af11580156103e6573d6000803e3d6000fd5b50505050505050505050505050505050565b6104006106d8565b6001600160a01b0316610411610481565b6001600160a01b0316146104375760405162461bcd60e51b81526004016100fc90610b0b565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600061049a610481565b905060005b828110156106125760008484838181106104c957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906104de9190610742565b90506000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161050e919061091e565b60206040518083038186803b15801561052657600080fd5b505afa15801561053a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055e91906108b1565b60405163a9059cbb60e01b81529091506001600160a01b0383169063a9059cbb9061058f9087908590600401610932565b602060405180830381600087803b1580156105a957600080fd5b505af11580156105bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e19190610895565b6105fd5760405162461bcd60e51b81526004016100fc906109ef565b5050808061060a90610b60565b91505061049f565b50505050565b6106206106d8565b6001600160a01b0316610631610481565b6001600160a01b0316146106575760405162461bcd60e51b81526004016100fc90610b0b565b6001600160a01b03811661067d5760405162461bcd60e51b81526004016100fc90610a4c565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008083601f8401126106ed578182fd5b50813567ffffffffffffffff811115610704578182fd5b602083019150836020808302850101111561071e57600080fd5b9250929050565b803567ffffffffffffffff8116811461073d57600080fd5b919050565b600060208284031215610753578081fd5b813561075e81610b91565b9392505050565b600060208284031215610776578081fd5b815161075e81610b91565b6000806000806000806000806000806101008b8d0312156107a0578586fd5b8a356107ab81610b91565b995060208b013567ffffffffffffffff808211156107c7578788fd5b6107d38e838f016106dc565b909b50995060408d013591506107e882610b91565b90975060608c013590808211156107fd578788fd5b5061080a8d828e016106dc565b909750955061081d905060808c01610725565b935061082b60a08c01610725565b925060c08b013561083b81610ba9565b8092505060e08b013590509295989b9194979a5092959850565b60008060208385031215610867578182fd5b823567ffffffffffffffff81111561087d578283fd5b610889858286016106dc565b90969095509350505050565b6000602082840312156108a6578081fd5b815161075e81610ba9565b6000602082840312156108c2578081fd5b5051919050565b6001600160a01b03169052565b81835260006001600160fb1b038311156108ee578081fd5b6020830280836020870137939093016020019283525090919050565b15159052565b67ffffffffffffffff169052565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60e0808252810189905260008a6101008301825b8c81101561098f57823561097281610b91565b6001600160a01b031682526020928301929091019060010161095f565b5061099d602085018c6108c9565b83810360408501526109b0818a8c6108d6565b925050506109c16060830187610910565b6109ce6080830186610910565b6109db60a083018561090a565b8260c08301529a9950505050505050505050565b6020808252603b908201527f445864616f4c69717569646974794d696e696e6752656c617965723a20636f7560408201527f6c64206e6f74207265636f76657220455243323020746f6b656e730000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526053908201527f445864616f4c69717569646974794d696e696e6752656c617965723a20696e6360408201527f6f6e73697374656e74207265776172642061646472657373657320616e6420616060820152720dadeeadce8e640c2e4e4c2f240d8cadccee8d606b1b608082015260a00190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b90815260200190565b600082821015610b5b57610b5b610b7b565b500390565b6000600019821415610b7457610b74610b7b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610ba657600080fd5b50565b8015158114610ba657600080fdfea26469706673582212204c7fa0c226a14ede00e7842c829a6452983412cf723d0479cb0f3ace35e933db64736f6c63430008000033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063196351f71461005c578063715018a6146100715780638da5cb5b14610079578063903c83df14610097578063f2fde38b146100aa575b600080fd5b61006f61006a366004610781565b6100bd565b005b61006f6103f8565b610081610481565b60405161008e919061091e565b60405180910390f35b61006f6100a5366004610855565b610490565b61006f6100b8366004610742565b610618565b6100c56106d8565b6001600160a01b03166100d6610481565b6001600160a01b0316146101055760405162461bcd60e51b81526004016100fc90610b0b565b60405180910390fd5b8785146101245760405162461bcd60e51b81526004016100fc90610a92565b60005b8881101561021c5789898281811061014f57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906101649190610742565b6001600160a01b031663095ea7b38c89898581811061019357634e487b7160e01b600052603260045260246000fd5b905060200201356040518363ffffffff1660e01b81526004016101b7929190610932565b602060405180830381600087803b1580156101d157600080fd5b505af11580156101e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102099190610895565b508061021481610b60565b915050610127565b50604051632c8908ff60e01b81528a906001600160a01b03821690632c8908ff9061025b908d908d908d908d908d908d908d908d908d9060040161094b565b600060405180830381600087803b15801561027557600080fd5b505af1158015610289573d6000803e3d6000fd5b505050506000816001600160a01b0316634487d3df6001846001600160a01b031663d5eeaef76040518163ffffffff1660e01b815260040160206040518083038186803b1580156102d957600080fd5b505afa1580156102ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031191906108b1565b61031b9190610b49565b6040518263ffffffff1660e01b81526004016103379190610b40565b602060405180830381600087803b15801561035157600080fd5b505af1158015610365573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103899190610765565b60405163f2fde38b60e01b81529091506001600160a01b0382169063f2fde38b906103b890339060040161091e565b600060405180830381600087803b1580156103d257600080fd5b505af11580156103e6573d6000803e3d6000fd5b50505050505050505050505050505050565b6104006106d8565b6001600160a01b0316610411610481565b6001600160a01b0316146104375760405162461bcd60e51b81526004016100fc90610b0b565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600061049a610481565b905060005b828110156106125760008484838181106104c957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906104de9190610742565b90506000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161050e919061091e565b60206040518083038186803b15801561052657600080fd5b505afa15801561053a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055e91906108b1565b60405163a9059cbb60e01b81529091506001600160a01b0383169063a9059cbb9061058f9087908590600401610932565b602060405180830381600087803b1580156105a957600080fd5b505af11580156105bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e19190610895565b6105fd5760405162461bcd60e51b81526004016100fc906109ef565b5050808061060a90610b60565b91505061049f565b50505050565b6106206106d8565b6001600160a01b0316610631610481565b6001600160a01b0316146106575760405162461bcd60e51b81526004016100fc90610b0b565b6001600160a01b03811661067d5760405162461bcd60e51b81526004016100fc90610a4c565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008083601f8401126106ed578182fd5b50813567ffffffffffffffff811115610704578182fd5b602083019150836020808302850101111561071e57600080fd5b9250929050565b803567ffffffffffffffff8116811461073d57600080fd5b919050565b600060208284031215610753578081fd5b813561075e81610b91565b9392505050565b600060208284031215610776578081fd5b815161075e81610b91565b6000806000806000806000806000806101008b8d0312156107a0578586fd5b8a356107ab81610b91565b995060208b013567ffffffffffffffff808211156107c7578788fd5b6107d38e838f016106dc565b909b50995060408d013591506107e882610b91565b90975060608c013590808211156107fd578788fd5b5061080a8d828e016106dc565b909750955061081d905060808c01610725565b935061082b60a08c01610725565b925060c08b013561083b81610ba9565b8092505060e08b013590509295989b9194979a5092959850565b60008060208385031215610867578182fd5b823567ffffffffffffffff81111561087d578283fd5b610889858286016106dc565b90969095509350505050565b6000602082840312156108a6578081fd5b815161075e81610ba9565b6000602082840312156108c2578081fd5b5051919050565b6001600160a01b03169052565b81835260006001600160fb1b038311156108ee578081fd5b6020830280836020870137939093016020019283525090919050565b15159052565b67ffffffffffffffff169052565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60e0808252810189905260008a6101008301825b8c81101561098f57823561097281610b91565b6001600160a01b031682526020928301929091019060010161095f565b5061099d602085018c6108c9565b83810360408501526109b0818a8c6108d6565b925050506109c16060830187610910565b6109ce6080830186610910565b6109db60a083018561090a565b8260c08301529a9950505050505050505050565b6020808252603b908201527f445864616f4c69717569646974794d696e696e6752656c617965723a20636f7560408201527f6c64206e6f74207265636f76657220455243323020746f6b656e730000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526053908201527f445864616f4c69717569646974794d696e696e6752656c617965723a20696e6360408201527f6f6e73697374656e74207265776172642061646472657373657320616e6420616060820152720dadeeadce8e640c2e4e4c2f240d8cadccee8d606b1b608082015260a00190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b90815260200190565b600082821015610b5b57610b5b610b7b565b500390565b6000600019821415610b7457610b74610b7b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610ba657600080fd5b50565b8015158114610ba657600080fdfea26469706673582212204c7fa0c226a14ede00e7842c829a6452983412cf723d0479cb0f3ace35e933db64736f6c63430008000033

Deployed Bytecode Sourcemap

19661:2006:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19716:1447;;;;;;:::i;:::-;;:::i;:::-;;2795:148;;;:::i;2144:87::-;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;21171:493;;;;;;:::i;:::-;;:::i;3098:244::-;;;;;;:::i;:::-;;:::i;19716:1447::-;2375:12;:10;:12::i;:::-;-1:-1:-1;;;;;2364:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2364:23:0;;2356:68;;;;-1:-1:-1;;;2356:68:0;;;;;;;:::i;:::-;;;;;;;;;20095:54;;::::1;20073:187;;;;-1:-1:-1::0;;;20073:187:0::1;;;;;;;:::i;:::-;20276:10;20271:214;20288:34:::0;;::::1;20271:214;;;20352:22;;20375:2;20352:26;;;;;-1:-1:-1::0;;;20352:26:0::1;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;20345:42:0::1;;20406:15;20440:14;;20455:2;20440:18;;;;;-1:-1:-1::0;;;20440:18:0::1;;;;;;;;;;;;;;;20345:128;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;20324:4:0;::::1;::::0;::::1;:::i;:::-;;;;20271:214;;;-1:-1:-1::0;20636:251:0::1;::::0;-1:-1:-1;;;20636:251:0;;20609:15;;-1:-1:-1;;;;;20636:27:0;::::1;::::0;::::1;::::0;:251:::1;::::0;20678:22;;;;20715:21;;20751:14;;;;20780:18;;20813:15;;20843:7;;20865:11;;20636:251:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;20898:53;21018:8;-1:-1:-1::0;;;;;21018:22:0::1;;21077:1;21041:8;-1:-1:-1::0;;;;;21041:31:0::1;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:37;;;;:::i;:::-;21018:61;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;21105:50;::::0;-1:-1:-1;;;21105:50:0;;20898:196;;-1:-1:-1;;;;;;21105:38:0;::::1;::::0;::::1;::::0;:50:::1;::::0;21144:10:::1;::::0;21105:50:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;2435:1;;19716:1447:::0;;;;;;;;;;:::o;2795:148::-;2375:12;:10;:12::i;:::-;-1:-1:-1;;;;;2364:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2364:23:0;;2356:68;;;;-1:-1:-1;;;2356:68:0;;;;;;;:::i;:::-;2902:1:::1;2886:6:::0;;2865:40:::1;::::0;-1:-1:-1;;;;;2886:6:0;;::::1;::::0;2865:40:::1;::::0;2902:1;;2865:40:::1;2933:1;2916:19:::0;;-1:-1:-1;;;;;;2916:19:0::1;::::0;;2795:148::o;2144:87::-;2190:7;2217:6;-1:-1:-1;;;;;2217:6:0;2144:87;:::o;21171:493::-;21250:14;21267:7;:5;:7::i;:::-;21250:24;;21290:10;21285:372;21302:28;;;21285:372;;;21353:13;21376:16;;21393:2;21376:20;;;;;-1:-1:-1;;;21376:20:0;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;21353:44;;21412:23;21438:6;-1:-1:-1;;;;;21438:16:0;;21463:4;21438:31;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;21510:40;;-1:-1:-1;;;21510:40:0;;21412:57;;-1:-1:-1;;;;;;21510:15:0;;;;;:40;;21526:6;;21412:57;;21510:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;21484:161;;;;-1:-1:-1;;;21484:161:0;;;;;;;:::i;:::-;21285:372;;21332:4;;;;;:::i;:::-;;;;21285:372;;;;21171:493;;;:::o;3098:244::-;2375:12;:10;:12::i;:::-;-1:-1:-1;;;;;2364:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2364:23:0;;2356:68;;;;-1:-1:-1;;;2356:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3187:22:0;::::1;3179:73;;;;-1:-1:-1::0;;;3179:73:0::1;;;;;;;:::i;:::-;3289:6;::::0;;3268:38:::1;::::0;-1:-1:-1;;;;;3268:38:0;;::::1;::::0;3289:6;::::1;::::0;3268:38:::1;::::0;::::1;3317:6;:17:::0;;-1:-1:-1;;;;;;3317:17:0::1;-1:-1:-1::0;;;;;3317:17:0;;;::::1;::::0;;;::::1;::::0;;3098:244::o;694:98::-;774:10;694:98;:::o;14:404:1:-;;;147:3;140:4;132:6;128:17;124:27;114:2;;172:8;162;155:26;114:2;-1:-1:-1;202:20:1;;245:18;234:30;;231:2;;;284:8;274;267:26;231:2;328:4;320:6;316:17;304:29;;391:3;384:4;376;368:6;364:17;356:6;352:30;348:41;345:50;342:2;;;408:1;405;398:12;342:2;104:314;;;;;:::o;423:173::-;492:20;;552:18;541:30;;531:41;;521:2;;586:1;583;576:12;521:2;473:123;;;:::o;601:259::-;;713:2;701:9;692:7;688:23;684:32;681:2;;;734:6;726;719:22;681:2;778:9;765:23;797:33;824:5;797:33;:::i;:::-;849:5;671:189;-1:-1:-1;;;671:189:1:o;865:263::-;;988:2;976:9;967:7;963:23;959:32;956:2;;;1009:6;1001;994:22;956:2;1046:9;1040:16;1065:33;1092:5;1065:33;:::i;1133:1453::-;;;;;;;;;;;1429:3;1417:9;1408:7;1404:23;1400:33;1397:2;;;1451:6;1443;1436:22;1397:2;1495:9;1482:23;1514:33;1541:5;1514:33;:::i;:::-;1566:5;-1:-1:-1;1622:2:1;1607:18;;1594:32;1645:18;1675:14;;;1672:2;;;1707:6;1699;1692:22;1672:2;1751:76;1819:7;1810:6;1799:9;1795:22;1751:76;:::i;:::-;1846:8;;-1:-1:-1;1725:102:1;-1:-1:-1;1933:2:1;1918:18;;1905:32;;-1:-1:-1;1946:35:1;1905:32;1946:35;:::i;:::-;2000:7;;-1:-1:-1;2060:2:1;2045:18;;2032:32;;2076:16;;;2073:2;;;2110:6;2102;2095:22;2073:2;;2154:78;2224:7;2213:8;2202:9;2198:24;2154:78;:::i;:::-;2251:8;;-1:-1:-1;2128:104:1;-1:-1:-1;2305:40:1;;-1:-1:-1;2340:3:1;2325:19;;2305:40;:::i;:::-;2295:50;;2364:40;2399:3;2388:9;2384:19;2364:40;:::i;:::-;2354:50;;2456:3;2445:9;2441:19;2428:33;2470:32;2494:7;2470:32;:::i;:::-;2521:7;2511:17;;;2575:3;2564:9;2560:19;2547:33;2537:43;;1387:1199;;;;;;;;;;;;;:::o;2591:463::-;;;2738:2;2726:9;2717:7;2713:23;2709:32;2706:2;;;2759:6;2751;2744:22;2706:2;2804:9;2791:23;2837:18;2829:6;2826:30;2823:2;;;2874:6;2866;2859:22;2823:2;2918:76;2986:7;2977:6;2966:9;2962:22;2918:76;:::i;:::-;3013:8;;2892:102;;-1:-1:-1;2696:358:1;-1:-1:-1;;;;2696:358:1:o;3059:257::-;;3179:2;3167:9;3158:7;3154:23;3150:32;3147:2;;;3200:6;3192;3185:22;3147:2;3237:9;3231:16;3256:30;3280:5;3256:30;:::i;3321:194::-;;3444:2;3432:9;3423:7;3419:23;3415:32;3412:2;;;3465:6;3457;3450:22;3412:2;-1:-1:-1;3493:16:1;;3402:113;-1:-1:-1;3402:113:1:o;3520:106::-;-1:-1:-1;;;;;3588:31:1;3576:44;;3566:60::o;3631:369::-;3725:19;;;3631:369;-1:-1:-1;;;;;3756:31:1;;3753:2;;;3802:3;3797;3790:16;3753:2;3845:4;3837:6;3833:17;3895:8;3888:5;3881:4;3876:3;3872:14;3859:45;3927:18;;;;3947:4;3923:29;3961:15;;;-1:-1:-1;3923:29:1;;3715:285;-1:-1:-1;3715:285:1:o;4005:93::-;4077:13;4070:21;4058:34;;4048:50::o;4103:104::-;4181:18;4170:30;4158:43;;4148:59::o;4212:203::-;-1:-1:-1;;;;;4376:32:1;;;;4358:51;;4346:2;4331:18;;4313:102::o;4420:274::-;-1:-1:-1;;;;;4612:32:1;;;;4594:51;;4676:2;4661:18;;4654:34;4582:2;4567:18;;4549:145::o;4699:1325::-;5117:3;5130:22;;;5102:19;;5187:22;;;4699:1325;5267:6;5240:3;5225:19;;4699:1325;5304:306;5318:6;5315:1;5312:13;5304:306;;;5393:6;5380:20;5413:33;5440:5;5413:33;:::i;:::-;-1:-1:-1;;;;;5471:31:1;5459:44;;5526:4;5585:15;;;;5550:12;;;;5499:1;5333:9;5304:306;;;5308:3;5619:50;5663:4;5652:9;5648:20;5640:6;5619:50;:::i;:::-;5714:9;5709:3;5705:19;5700:2;5689:9;5685:18;5678:47;5742:64;5802:3;5794:6;5786;5742:64;:::i;:::-;5734:72;;;;5815:47;5858:2;5847:9;5843:18;5835:6;5815:47;:::i;:::-;5871:48;5914:3;5903:9;5899:19;5891:6;5871:48;:::i;:::-;5928:46;5969:3;5958:9;5954:19;5946:6;5928:46;:::i;:::-;6011:6;6005:3;5994:9;5990:19;5983:35;5078:946;;;;;;;;;;;;:::o;6029:423::-;6231:2;6213:21;;;6270:2;6250:18;;;6243:30;6309:34;6304:2;6289:18;;6282:62;6380:29;6375:2;6360:18;;6353:57;6442:3;6427:19;;6203:249::o;6457:402::-;6659:2;6641:21;;;6698:2;6678:18;;;6671:30;6737:34;6732:2;6717:18;;6710:62;-1:-1:-1;;;6803:2:1;6788:18;;6781:36;6849:3;6834:19;;6631:228::o;6864:487::-;7066:2;7048:21;;;7105:2;7085:18;;;7078:30;7144:34;7139:2;7124:18;;7117:62;7215:34;7210:2;7195:18;;7188:62;-1:-1:-1;;;7281:3:1;7266:19;;7259:50;7341:3;7326:19;;7038:313::o;7356:356::-;7558:2;7540:21;;;7577:18;;;7570:30;7636:34;7631:2;7616:18;;7609:62;7703:2;7688:18;;7530:182::o;7717:177::-;7863:25;;;7851:2;7836:18;;7818:76::o;7899:125::-;;7967:1;7964;7961:8;7958:2;;;7972:18;;:::i;:::-;-1:-1:-1;8009:9:1;;7948:76::o;8029:135::-;;-1:-1:-1;;8089:17:1;;8086:2;;;8109:18;;:::i;:::-;-1:-1:-1;8156:1:1;8145:13;;8076:88::o;8169:127::-;8230:10;8225:3;8221:20;8218:1;8211:31;8261:4;8258:1;8251:15;8285:4;8282:1;8275:15;8301:133;-1:-1:-1;;;;;8378:31:1;;8368:42;;8358:2;;8424:1;8421;8414:12;8358:2;8348:86;:::o;8439:120::-;8527:5;8520:13;8513:21;8506:5;8503:32;8493:2;;8549:1;8546;8539:12

Swarm Source

ipfs://4c7fa0c226a14ede00e7842c829a6452983412cf723d0479cb0f3ace35e933db

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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