ETH Price: $3,122.11 (+1.79%)

Contract

0x7c0E033B8fEB3D4795f08812aDEd7c0f6C5eE385
 
Transaction Hash
Method
Block
From
To
Transfer Ownersh...130519342021-08-18 22:32:241187 days ago1629325944IN
0x7c0E033B...f6C5eE385
0 ETH0.0010105735.19188058
0x60c06040130519222021-08-18 22:29:421187 days ago1629325782IN
 Create: AaveStrategy
0 ETH0.0514166335.19188058

Latest 8 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
131038662021-08-26 23:00:561179 days ago1630018856
0x7c0E033B...f6C5eE385
0 ETH
131038662021-08-26 23:00:561179 days ago1630018856
0x7c0E033B...f6C5eE385
0 ETH
131038662021-08-26 23:00:561179 days ago1630018856
0x7c0E033B...f6C5eE385
0 ETH
131038662021-08-26 23:00:561179 days ago1630018856
0x7c0E033B...f6C5eE385
0 ETH
131038662021-08-26 23:00:561179 days ago1630018856
0x7c0E033B...f6C5eE385
0 ETH
131038662021-08-26 23:00:561179 days ago1630018856
0x7c0E033B...f6C5eE385
0 ETH
130649152021-08-20 22:33:041185 days ago1629498784
0x7c0E033B...f6C5eE385
0 ETH
130649152021-08-20 22:33:041185 days ago1629498784
0x7c0E033B...f6C5eE385
0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AaveStrategy

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 9 : AaveStrategy.sol
// SPDX-License-Identifier: No License

pragma solidity ^0.8.0;

import "./ERC20/IERC20.sol";
import "./ERC20/SafeERC20.sol";
import "./utils/Ownable.sol";
import "./interfaces/IStrategy.sol";
import "./interfaces/IAaveLendingPool.sol";
import "./interfaces/IAaveIncentivesController.sol";

contract AaveStrategy is Ownable, IStrategy {
    using SafeERC20 for IERC20;

    bool public override paused;
    address public override core;
    address public override treasury;
    IAaveLendingPool public immutable lendingPool;
    IAaveIncentivesController public immutable incentivesController;
    mapping(address => uint256) public override totalDeposits;

    modifier onlyCore() {
        require(msg.sender == core, "Strategy: !core");
        _;
    }

    modifier onlyNotPaused() {
        require(!paused, "Strategy: paused");
        _;
    }

    constructor(address _core, address _treasury, address _lendingPool, address _incentivesController) {
        require(_core != address(0), "Strategy: core cannot be 0");
        require(_treasury != address(0), "Strategy: treasury cannot be 0");
        require(_lendingPool != address(0), "Strategy: lending pool cannot be 0");
        require(_incentivesController != address(0), "Strategy: incentives controller cannot be 0");
        core = _core;
        treasury = _treasury;
        lendingPool = IAaveLendingPool(_lendingPool);
        incentivesController = IAaveIncentivesController(_incentivesController);
        initializeOwner();
    }

    /// @notice only callable by core contract
    function invest(address _token, uint256 _amount) external override onlyCore onlyNotPaused {
        // get funds to invest from core
        IERC20(_token).safeTransferFrom(msg.sender, address(this), _amount);
        _approve(IERC20(_token), address(lendingPool), _amount);
        // deposit funds into Aave, keep aTokens in strategy
        lendingPool.deposit(_token, _amount, address(this), 0);
        // increment total deposits
        totalDeposits[_token] += _amount;
    }

    /// divests _amount of _token from Aave
    /// @notice only callable by core contract
    function divest(address _token, uint256 _amount) external override onlyCore onlyNotPaused{
        if (_amount == type(uint256).max) { 
            // if withdrawing all, withdraw to this contract first to collect interest
            lendingPool.withdraw(_token, _amount, address(this));
            uint256 tokensWithdrawn = IERC20(_token).balanceOf(address(this));
            
            // send original invested amount to core
            IERC20(_token).safeTransfer(msg.sender, totalDeposits[_token]);

            // send accrued interest to treasury
            IERC20(_token).safeTransfer(treasury, tokensWithdrawn - totalDeposits[_token]);

            totalDeposits[_token] = 0;
        } else {
            // withdraw exact amount directly to core
            lendingPool.withdraw(_token, _amount, msg.sender);
            totalDeposits[_token] -= _amount;
        }
    }

    /// claim AAVE rewards
    function claimRewards(address[] calldata assets) external onlyOwner {
        uint256 amountToClaim = incentivesController.getRewardsBalance(assets, address(this));
        incentivesController.claimRewards(assets, amountToClaim, treasury);
    }

    /// contract should not hold ANY funds except aTokens
    /// funds sent here can be retreived
    function collect(address _token) external override onlyOwner {
        uint256 balance = IERC20(_token).balanceOf(address(this));
        require(balance > 0, "Strategy: balance is 0");
        IERC20(_token).safeTransfer(treasury, balance);
    }

    function setCore(address _core) external override onlyOwner {
        require(_core != address(0), "Strategy: core cannot be 0");
        emit AddressUpdated("core", core, _core);
        core = _core;
    }

    function setTreasury(address _treasury) external override onlyOwner {
        require(_treasury != address(0), "Strategy: treasury cannot be 0");
        emit AddressUpdated("treasury", treasury, _treasury);
        treasury = _treasury;
    }

    function setPaused(bool _paused) external override onlyOwner {
        paused = _paused;
    }

    function _approve(IERC20 _token, address _spender, uint256 _amount) private {
        uint256 allowance = _token.allowance(address(this), _spender);
        if (allowance < _amount) {
            if (allowance != 0) {
                _token.safeApprove(_spender, 0);
            }
            _token.safeApprove(_spender, type(uint256).max);
        }
    }
}

File 2 of 9 : IERC20.sol
// SPDX-License-Identifier: No License

pragma solidity ^0.8.0;

/**
 * @title Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function approve(address spender, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    function totalSupply() external view returns (uint256);

    function increaseAllowance(address spender, uint256 addedValue) external returns (bool);
    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool);
}

File 3 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "../utils/Address.sol";

/**
 * @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 IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    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));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    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) + 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) - value;
        _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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "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 4 of 9 : Ownable.sol
// SPDX-License-Identifier: No License

pragma solidity ^0.8.0;

import "./Initializable.sol";

/**
 * @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.
 * @author crypto-pumpkin
 *
 * By initialization, the owner account will be the one that called initializeOwner. 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.
 */
contract Ownable is Initializable {
    address private _owner;

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

    /**
     * @dev Ruler: Initializes the contract setting the deployer as the initial owner.
     */
    function initializeOwner() internal initializer {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }


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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        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 5 of 9 : IStrategy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IStrategy {
    event AddressUpdated(string _type, address old, address _new);
    function paused() external returns (bool);
    function core() external returns (address);
    function treasury() external returns (address);
    function totalDeposits(address _token) external returns (uint256);
    
    // core only
    function invest(address _token, uint256 _amount) external;
    function divest(address _token, uint256 _amount) external;

    // admin only
    function collect(address _token) external;
    function setCore(address _core) external;
    function setTreasury(address _treasury) external;
    function setPaused(bool _paused) external;
}

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

pragma solidity ^0.8.0;

// Address of Mainnet AAVE Lending Pool: 0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9
interface IAaveLendingPool {
    function deposit(
        address asset,
        uint256 amount,
        address onBehalfOf,
        uint16 referralCode
    ) external;

    function withdraw(
        address asset,
        uint256 amount,
        address to
    ) external;
}

File 7 of 9 : IAaveIncentivesController.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IAaveIncentivesController {
    function getRewardsBalance(address[] calldata assets, address user) external returns (uint256);
    function claimRewards(address[] calldata assets, uint256 amount, address to) external;
}

File 8 of 9 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library Address {
    /**
     * @dev Returns true if `account` is 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.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // 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 != accountHash && codehash != 0x0);
    }

    /**
     * @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].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 9 of 9 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;


/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 * 
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 * 
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        // extcodesize checks the size of the code stored in an address, and
        // address returns the current address. Since the code is still not
        // deployed when running a constructor, any checks on its code size will
        // yield zero, making it an effective way to detect if a contract is
        // under construction or not.
        address self = address(this);
        uint256 cs;
        // solhint-disable-next-line no-inline-assembly
        assembly { cs := extcodesize(self) }
        return cs == 0;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_core","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_lendingPool","type":"address"},{"internalType":"address","name":"_incentivesController","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_type","type":"string"},{"indexed":false,"internalType":"address","name":"old","type":"address"},{"indexed":false,"internalType":"address","name":"_new","type":"address"}],"name":"AddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address[]","name":"assets","type":"address[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"core","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"divest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"incentivesController","outputs":[{"internalType":"contract IAaveIncentivesController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"invest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lendingPool","outputs":[{"internalType":"contract IAaveLendingPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_core","type":"address"}],"name":"setCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c06040523480156200001157600080fd5b5060405162001c4e38038062001c4e833981016040819052620000349162000244565b6001600160a01b038416620000665760405162461bcd60e51b81526004016200005d90620002a0565b60405180910390fd5b6001600160a01b0383166200008f5760405162461bcd60e51b81526004016200005d9062000322565b6001600160a01b038216620000b85760405162461bcd60e51b81526004016200005d90620003a7565b6001600160a01b038116620000e15760405162461bcd60e51b81526004016200005d90620002d7565b600180546001600160a01b038087166001600160a01b03199283161790925560028054928616929091169190911790556001600160601b0319606083811b821660805282901b1660a052620001356200013f565b50505050620003e9565b600054610100900460ff16806200015b57506200015b62000221565b806200016a575060005460ff16155b620001895760405162461bcd60e51b81526004016200005d9062000359565b600054610100900460ff16158015620001b5576000805460ff1961ff0019909116610100171660011790555b600080546201000033810262010000600160b01b0319909216919091178083556040519190046001600160a01b031691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a380156200021e576000805461ff00191690555b50565b303b1590565b80516001600160a01b03811681146200023f57600080fd5b919050565b600080600080608085870312156200025a578384fd5b620002658562000227565b9350620002756020860162000227565b9250620002856040860162000227565b9150620002956060860162000227565b905092959194509250565b6020808252601a908201527f53747261746567793a20636f72652063616e6e6f742062652030000000000000604082015260600190565b6020808252602b908201527f53747261746567793a20696e63656e746976657320636f6e74726f6c6c65722060408201526a063616e6e6f7420626520360ac1b606082015260800190565b6020808252601e908201527f53747261746567793a2074726561737572792063616e6e6f7420626520300000604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526022908201527f53747261746567793a206c656e64696e6720706f6f6c2063616e6e6f74206265604082015261020360f41b606082015260800190565b60805160601c60a05160601c61180f6200043f6000396000818161055c01528181610bec0152610cad015260008181610538015281816105ed015281816106420152818161076f0152610929015261180f6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063af1df25511610097578063f0f4426011610066578063f0f44260146101d9578063f2f4eb26146101ec578063f2fde38b146101f4578063f9f031df1461020757610100565b8063af1df2551461018b578063b9b8c24614610193578063bb504317146101a6578063e9403256146101b957610100565b8063715018a6116100d3578063715018a61461016057806380009630146101685780638da5cb5b1461017b578063a59a99731461018357610100565b806306ec16f81461010557806316c38b3c1461011a5780635c975abb1461012d57806361d027b31461014b575b600080fd5b61011861011336600461113e565b61021a565b005b6101186101283660046111f7565b61032b565b610135610394565b60405161014291906113c5565b60405180910390f35b6101536103a4565b60405161014291906112a9565b6101186103b3565b61011861017636600461113e565b61044a565b610153610521565b610153610536565b61015361055a565b6101186101a136600461115f565b61057e565b6101186101b436600461115f565b6106e1565b6101cc6101c736600461113e565b6109bc565b6040516101429190611735565b6101186101e736600461113e565b6109ce565b610153610aa5565b61011861020236600461113e565b610ab4565b610118610215366004611188565b610b89565b6000546201000090046001600160a01b031633146102535760405162461bcd60e51b815260040161024a90611505565b60405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906370a082319061029b9030906004016112a9565b60206040518083038186803b1580156102b357600080fd5b505afa1580156102c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102eb919061122f565b90506000811161030d5760405162461bcd60e51b815260040161024a9061153a565b600254610327906001600160a01b03848116911683610d20565b5050565b6000546201000090046001600160a01b0316331461035b5760405162461bcd60e51b815260040161024a90611505565b60008054911515600160b01b027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b600054600160b01b900460ff1681565b6002546001600160a01b031681565b6000546201000090046001600160a01b031633146103e35760405162461bcd60e51b815260040161024a90611505565b60008054604051620100009091046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffff0000000000000000000000000000000000000000ffff169055565b6000546201000090046001600160a01b0316331461047a5760405162461bcd60e51b815260040161024a90611505565b6001600160a01b0381166104a05760405162461bcd60e51b815260040161024a90611403565b6001546040517f7878dffb4ada647885186a00ea129964d140835f125808ba48b1f3974b5f8189916104df916001600160a01b03909116908490611571565b60405180910390a1600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546201000090046001600160a01b031690565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001546001600160a01b031633146105a85760405162461bcd60e51b815260040161024a906116fe565b600054600160b01b900460ff16156105d25760405162461bcd60e51b815260040161024a90611471565b6105e76001600160a01b038316333084610da8565b610612827f000000000000000000000000000000000000000000000000000000000000000083610dcf565b6040517fe8eda9df0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e8eda9df9061067e90859085903090600090600401611337565b600060405180830381600087803b15801561069857600080fd5b505af11580156106ac573d6000803e3d6000fd5b505050506001600160a01b038216600090815260036020526040812080548392906106d890849061173e565b90915550505050565b6001546001600160a01b0316331461070b5760405162461bcd60e51b815260040161024a906116fe565b600054600160b01b900460ff16156107355760405162461bcd60e51b815260040161024a90611471565b6000198114156108f9576040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906369328dec906107a890859085903090600401611314565b600060405180830381600087803b1580156107c257600080fd5b505af11580156107d6573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152600092506001600160a01b03851691506370a08231906108229030906004016112a9565b60206040518083038186803b15801561083a57600080fd5b505afa15801561084e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610872919061122f565b6001600160a01b038416600081815260036020526040902054919250610899913390610d20565b6002546001600160a01b038481166000908152600360205260409020546108da9291909116906108c99084611756565b6001600160a01b0386169190610d20565b506001600160a01b038216600090815260036020526040812055610327565b6040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906369328dec9061096290859085903390600401611314565b600060405180830381600087803b15801561097c57600080fd5b505af1158015610990573d6000803e3d6000fd5b505050506001600160a01b038216600090815260036020526040812080548392906106d8908490611756565b60036020526000908152604090205481565b6000546201000090046001600160a01b031633146109fe5760405162461bcd60e51b815260040161024a90611505565b6001600160a01b038116610a245760405162461bcd60e51b815260040161024a9061143a565b6002546040517f7878dffb4ada647885186a00ea129964d140835f125808ba48b1f3974b5f818991610a63916001600160a01b039091169084906115bf565b60405180910390a1600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b6000546201000090046001600160a01b03163314610ae45760405162461bcd60e51b815260040161024a90611505565b6001600160a01b038116610b0a5760405162461bcd60e51b815260040161024a906114a8565b600080546040516001600160a01b03808516936201000090930416917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0390921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b6000546201000090046001600160a01b03163314610bb95760405162461bcd60e51b815260040161024a90611505565b6040517f8b599f260000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690638b599f2690610c2590869086903090600401611364565b602060405180830381600087803b158015610c3f57600080fd5b505af1158015610c53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c77919061122f565b6002546040517f3111e7b30000000000000000000000000000000000000000000000000000000081529192506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811692633111e7b392610ce9928892889288921690600401611391565b600060405180830381600087803b158015610d0357600080fd5b505af1158015610d17573d6000803e3d6000fd5b50505050505050565b610da38363a9059cbb60e01b8484604051602401610d3f9291906112fb565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610ea4565b505050565b610dc9846323b872dd60e01b858585604051602401610d3f939291906112d7565b50505050565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063dd62ed3e90610e1990309087906004016112bd565b60206040518083038186803b158015610e3157600080fd5b505afa158015610e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e69919061122f565b905081811015610dc9578015610e8e57610e8e6001600160a01b038516846000610f33565b610dc96001600160a01b03851684600019610f33565b6000610ef9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661100f9092919063ffffffff16565b805190915015610da35780806020019051810190610f179190611213565b610da35760405162461bcd60e51b815260040161024a90611644565b801580610fd457506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e90610f8290309086906004016112bd565b60206040518083038186803b158015610f9a57600080fd5b505afa158015610fae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd2919061122f565b155b610ff05760405162461bcd60e51b815260040161024a906116a1565b610da38363095ea7b360e01b8484604051602401610d3f9291906112fb565b606061101e8484600085611026565b949350505050565b6060611031856110e9565b61104d5760405162461bcd60e51b815260040161024a9061160d565b600080866001600160a01b03168587604051611069919061128d565b60006040518083038185875af1925050503d80600081146110a6576040519150601f19603f3d011682016040523d82523d6000602084013e6110ab565b606091505b509150915081156110bf57915061101e9050565b8051156110cf5780518082602001fd5b8360405162461bcd60e51b815260040161024a91906113d0565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061111d57508115155b925050505b919050565b80356001600160a01b038116811461112257600080fd5b60006020828403121561114f578081fd5b61115882611127565b9392505050565b60008060408385031215611171578081fd5b61117a83611127565b946020939093013593505050565b6000806020838503121561119a578182fd5b823567ffffffffffffffff808211156111b1578384fd5b818501915085601f8301126111c4578384fd5b8135818111156111d2578485fd5b86602080830285010111156111e5578485fd5b60209290920196919550909350505050565b600060208284031215611208578081fd5b8135611158816117c8565b600060208284031215611224578081fd5b8151611158816117c8565b600060208284031215611240578081fd5b5051919050565b60008284526020808501945082825b85811015611282576001600160a01b0361126f83611127565b1687529582019590820190600101611256565b509495945050505050565b6000825161129f81846020870161176d565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6001600160a01b03948516815260208101939093529216604082015261ffff909116606082015260800190565b600060408252611378604083018587611247565b90506001600160a01b0383166020830152949350505050565b6000606082526113a5606083018688611247565b90508360208301526001600160a01b038316604083015295945050505050565b901515815260200190565b60006020825282518060208401526113ef81604085016020870161176d565b601f01601f19169190910160400192915050565b6020808252601a908201527f53747261746567793a20636f72652063616e6e6f742062652030000000000000604082015260600190565b6020808252601e908201527f53747261746567793a2074726561737572792063616e6e6f7420626520300000604082015260600190565b60208082526010908201527f53747261746567793a2070617573656400000000000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527f53747261746567793a2062616c616e6365206973203000000000000000000000604082015260600190565b60608082526004908201527f636f72650000000000000000000000000000000000000000000000000000000060808201526001600160a01b0392831660208201529116604082015260a00190565b60608082526008908201527f747265617375727900000000000000000000000000000000000000000000000060808201526001600160a01b0392831660208201529116604082015260a00190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b6020808252600f908201527f53747261746567793a2021636f72650000000000000000000000000000000000604082015260600190565b90815260200190565b6000821982111561175157611751611799565b500190565b60008282101561176857611768611799565b500390565b60005b83811015611788578181015183820152602001611770565b83811115610dc95750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80151581146117d657600080fd5b5056fea2646970667358221220ab8328f6de248d49eca028099eef35569e8081b2f06ba928f4bb9f09ec4abc6c64736f6c63430008000033000000000000000000000000d3e42e568520ca2f09bfbd8d2d2312a0e111ce990000000000000000000000006bef09f99bf6d92d6486889bdd8a374af151461d0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a9000000000000000000000000d784927ff2f95ba542bfc824c8a8a98f3495f6b5

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063af1df25511610097578063f0f4426011610066578063f0f44260146101d9578063f2f4eb26146101ec578063f2fde38b146101f4578063f9f031df1461020757610100565b8063af1df2551461018b578063b9b8c24614610193578063bb504317146101a6578063e9403256146101b957610100565b8063715018a6116100d3578063715018a61461016057806380009630146101685780638da5cb5b1461017b578063a59a99731461018357610100565b806306ec16f81461010557806316c38b3c1461011a5780635c975abb1461012d57806361d027b31461014b575b600080fd5b61011861011336600461113e565b61021a565b005b6101186101283660046111f7565b61032b565b610135610394565b60405161014291906113c5565b60405180910390f35b6101536103a4565b60405161014291906112a9565b6101186103b3565b61011861017636600461113e565b61044a565b610153610521565b610153610536565b61015361055a565b6101186101a136600461115f565b61057e565b6101186101b436600461115f565b6106e1565b6101cc6101c736600461113e565b6109bc565b6040516101429190611735565b6101186101e736600461113e565b6109ce565b610153610aa5565b61011861020236600461113e565b610ab4565b610118610215366004611188565b610b89565b6000546201000090046001600160a01b031633146102535760405162461bcd60e51b815260040161024a90611505565b60405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906370a082319061029b9030906004016112a9565b60206040518083038186803b1580156102b357600080fd5b505afa1580156102c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102eb919061122f565b90506000811161030d5760405162461bcd60e51b815260040161024a9061153a565b600254610327906001600160a01b03848116911683610d20565b5050565b6000546201000090046001600160a01b0316331461035b5760405162461bcd60e51b815260040161024a90611505565b60008054911515600160b01b027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b600054600160b01b900460ff1681565b6002546001600160a01b031681565b6000546201000090046001600160a01b031633146103e35760405162461bcd60e51b815260040161024a90611505565b60008054604051620100009091046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffff0000000000000000000000000000000000000000ffff169055565b6000546201000090046001600160a01b0316331461047a5760405162461bcd60e51b815260040161024a90611505565b6001600160a01b0381166104a05760405162461bcd60e51b815260040161024a90611403565b6001546040517f7878dffb4ada647885186a00ea129964d140835f125808ba48b1f3974b5f8189916104df916001600160a01b03909116908490611571565b60405180910390a1600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546201000090046001600160a01b031690565b7f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a981565b7f000000000000000000000000d784927ff2f95ba542bfc824c8a8a98f3495f6b581565b6001546001600160a01b031633146105a85760405162461bcd60e51b815260040161024a906116fe565b600054600160b01b900460ff16156105d25760405162461bcd60e51b815260040161024a90611471565b6105e76001600160a01b038316333084610da8565b610612827f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a983610dcf565b6040517fe8eda9df0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a9169063e8eda9df9061067e90859085903090600090600401611337565b600060405180830381600087803b15801561069857600080fd5b505af11580156106ac573d6000803e3d6000fd5b505050506001600160a01b038216600090815260036020526040812080548392906106d890849061173e565b90915550505050565b6001546001600160a01b0316331461070b5760405162461bcd60e51b815260040161024a906116fe565b600054600160b01b900460ff16156107355760405162461bcd60e51b815260040161024a90611471565b6000198114156108f9576040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a916906369328dec906107a890859085903090600401611314565b600060405180830381600087803b1580156107c257600080fd5b505af11580156107d6573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152600092506001600160a01b03851691506370a08231906108229030906004016112a9565b60206040518083038186803b15801561083a57600080fd5b505afa15801561084e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610872919061122f565b6001600160a01b038416600081815260036020526040902054919250610899913390610d20565b6002546001600160a01b038481166000908152600360205260409020546108da9291909116906108c99084611756565b6001600160a01b0386169190610d20565b506001600160a01b038216600090815260036020526040812055610327565b6040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a916906369328dec9061096290859085903390600401611314565b600060405180830381600087803b15801561097c57600080fd5b505af1158015610990573d6000803e3d6000fd5b505050506001600160a01b038216600090815260036020526040812080548392906106d8908490611756565b60036020526000908152604090205481565b6000546201000090046001600160a01b031633146109fe5760405162461bcd60e51b815260040161024a90611505565b6001600160a01b038116610a245760405162461bcd60e51b815260040161024a9061143a565b6002546040517f7878dffb4ada647885186a00ea129964d140835f125808ba48b1f3974b5f818991610a63916001600160a01b039091169084906115bf565b60405180910390a1600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b6000546201000090046001600160a01b03163314610ae45760405162461bcd60e51b815260040161024a90611505565b6001600160a01b038116610b0a5760405162461bcd60e51b815260040161024a906114a8565b600080546040516001600160a01b03808516936201000090930416917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0390921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b6000546201000090046001600160a01b03163314610bb95760405162461bcd60e51b815260040161024a90611505565b6040517f8b599f260000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f000000000000000000000000d784927ff2f95ba542bfc824c8a8a98f3495f6b51690638b599f2690610c2590869086903090600401611364565b602060405180830381600087803b158015610c3f57600080fd5b505af1158015610c53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c77919061122f565b6002546040517f3111e7b30000000000000000000000000000000000000000000000000000000081529192506001600160a01b037f000000000000000000000000d784927ff2f95ba542bfc824c8a8a98f3495f6b5811692633111e7b392610ce9928892889288921690600401611391565b600060405180830381600087803b158015610d0357600080fd5b505af1158015610d17573d6000803e3d6000fd5b50505050505050565b610da38363a9059cbb60e01b8484604051602401610d3f9291906112fb565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610ea4565b505050565b610dc9846323b872dd60e01b858585604051602401610d3f939291906112d7565b50505050565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063dd62ed3e90610e1990309087906004016112bd565b60206040518083038186803b158015610e3157600080fd5b505afa158015610e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e69919061122f565b905081811015610dc9578015610e8e57610e8e6001600160a01b038516846000610f33565b610dc96001600160a01b03851684600019610f33565b6000610ef9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661100f9092919063ffffffff16565b805190915015610da35780806020019051810190610f179190611213565b610da35760405162461bcd60e51b815260040161024a90611644565b801580610fd457506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e90610f8290309086906004016112bd565b60206040518083038186803b158015610f9a57600080fd5b505afa158015610fae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd2919061122f565b155b610ff05760405162461bcd60e51b815260040161024a906116a1565b610da38363095ea7b360e01b8484604051602401610d3f9291906112fb565b606061101e8484600085611026565b949350505050565b6060611031856110e9565b61104d5760405162461bcd60e51b815260040161024a9061160d565b600080866001600160a01b03168587604051611069919061128d565b60006040518083038185875af1925050503d80600081146110a6576040519150601f19603f3d011682016040523d82523d6000602084013e6110ab565b606091505b509150915081156110bf57915061101e9050565b8051156110cf5780518082602001fd5b8360405162461bcd60e51b815260040161024a91906113d0565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061111d57508115155b925050505b919050565b80356001600160a01b038116811461112257600080fd5b60006020828403121561114f578081fd5b61115882611127565b9392505050565b60008060408385031215611171578081fd5b61117a83611127565b946020939093013593505050565b6000806020838503121561119a578182fd5b823567ffffffffffffffff808211156111b1578384fd5b818501915085601f8301126111c4578384fd5b8135818111156111d2578485fd5b86602080830285010111156111e5578485fd5b60209290920196919550909350505050565b600060208284031215611208578081fd5b8135611158816117c8565b600060208284031215611224578081fd5b8151611158816117c8565b600060208284031215611240578081fd5b5051919050565b60008284526020808501945082825b85811015611282576001600160a01b0361126f83611127565b1687529582019590820190600101611256565b509495945050505050565b6000825161129f81846020870161176d565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6001600160a01b03948516815260208101939093529216604082015261ffff909116606082015260800190565b600060408252611378604083018587611247565b90506001600160a01b0383166020830152949350505050565b6000606082526113a5606083018688611247565b90508360208301526001600160a01b038316604083015295945050505050565b901515815260200190565b60006020825282518060208401526113ef81604085016020870161176d565b601f01601f19169190910160400192915050565b6020808252601a908201527f53747261746567793a20636f72652063616e6e6f742062652030000000000000604082015260600190565b6020808252601e908201527f53747261746567793a2074726561737572792063616e6e6f7420626520300000604082015260600190565b60208082526010908201527f53747261746567793a2070617573656400000000000000000000000000000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527f53747261746567793a2062616c616e6365206973203000000000000000000000604082015260600190565b60608082526004908201527f636f72650000000000000000000000000000000000000000000000000000000060808201526001600160a01b0392831660208201529116604082015260a00190565b60608082526008908201527f747265617375727900000000000000000000000000000000000000000000000060808201526001600160a01b0392831660208201529116604082015260a00190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b6020808252600f908201527f53747261746567793a2021636f72650000000000000000000000000000000000604082015260600190565b90815260200190565b6000821982111561175157611751611799565b500190565b60008282101561176857611768611799565b500390565b60005b83811015611788578181015183820152602001611770565b83811115610dc95750506000910152565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80151581146117d657600080fd5b5056fea2646970667358221220ab8328f6de248d49eca028099eef35569e8081b2f06ba928f4bb9f09ec4abc6c64736f6c63430008000033

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

000000000000000000000000d3e42e568520ca2f09bfbd8d2d2312a0e111ce990000000000000000000000006bef09f99bf6d92d6486889bdd8a374af151461d0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a9000000000000000000000000d784927ff2f95ba542bfc824c8a8a98f3495f6b5

-----Decoded View---------------
Arg [0] : _core (address): 0xd3e42E568520ca2f09BFBD8d2D2312a0E111CE99
Arg [1] : _treasury (address): 0x6BeF09F99Bf6d92d6486889Bdd8A374af151461D
Arg [2] : _lendingPool (address): 0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9
Arg [3] : _incentivesController (address): 0xd784927Ff2f95ba542BfC824c8a8a98F3495f6b5

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000d3e42e568520ca2f09bfbd8d2d2312a0e111ce99
Arg [1] : 0000000000000000000000006bef09f99bf6d92d6486889bdd8a374af151461d
Arg [2] : 0000000000000000000000007d2768de32b0b80b7a3454c06bdac94a69ddc7a9
Arg [3] : 000000000000000000000000d784927ff2f95ba542bfc824c8a8a98f3495f6b5


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.