Contract 0xe02b1aa2c4be73093be79d763fdffc0e3cf67318

Contract Overview

Wonderland: Time Bond Depository
Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2d6fb7cf80c5ee17d0be932ec1b077d71f680ba45fcd41b404c7516f646b08efRedeem78755302021-12-06 8:47:129 secs ago0x78f0bf4393a45013369366834aa120eee5613f22 IN  Wonderland: Time Bond Depository0 AVAX0.0073124730
0x9038550a62af3865eb12351d9a2d115ac22f60dad615c150a69cf3cf678ab170Redeem78755242021-12-06 8:47:0120 secs ago0x15ead694140eff45400b90c9b1eb9dcd464b060c IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0xbfeda5855a65da1f6df2491765b5c92e88d1270c9fd49b4d6da1a54fa8aea4e4Deposit78755202021-12-06 8:46:5229 secs ago0xea7242a5667d97f928db2d9563a89c011a89c105 IN  Wonderland: Time Bond Depository5.1909674135 AVAX0.0059137530
0x5d3930aa7b346d0d16e4390dca8d75633fe9284e2636dbee116012e4bb08f65eRedeem78754742021-12-06 8:45:182 mins ago0xf849995a8fb20e1014883510e748451203345232 IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0x0e474cf299dde4ceee595430284723c109c3c660b819595916fe654594d2ff0bRedeem78754712021-12-06 8:45:142 mins ago0x446bbb15792c7371a0da5840013a8c7b35268c61 IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0x38caa46be58f6f7265ee703dea81119fd8c2b26276547dbb315c7735f64a700cRedeem78754602021-12-06 8:44:512 mins ago0x75f8d39f41bfe46386ddfcb62ca549ebbfb6850f IN  Wonderland: Time Bond Depository0 AVAX0.0077775930
0xe4510c914de75be09fe6f959464398817791032ab1572cdf598b4d8bd7ecb45bRedeem78754492021-12-06 8:44:262 mins ago0x4b1369c0c5c3dc7029a6d3b8bec07dd3fca7dfcd IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0x16cb5aa626f6df8c6ec340f2802a72432c91f4864886666abb86b5794cd8856dRedeem78754492021-12-06 8:44:262 mins ago0x92930950bf6f30df4c92c87042b3e2508cb76b09 IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0x0a27bd96cf74395ad55b9b160443647f8db6654198a3b8431ddc35badd951f41Redeem78754482021-12-06 8:44:213 mins ago0x098cbec38be2575c0c4ff48dea9dadea3a7021f6 IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0x1421f996bbb6478577cbd5b922d58ad50b0aa89ed94a291e0de6fa02d90facc0Redeem78754432021-12-06 8:44:143 mins ago0x6013fe5de132862c4ec0ccc2e0a023d2ac845c0f IN  Wonderland: Time Bond Depository0 AVAX0.0073124730
0xe8af9a9c85b671eeafe0a56dd1b115de7e7bc3a5d7a45366753fa8e75d0d02e3Redeem78754282021-12-06 8:43:473 mins ago0x993effd43e70c09284de4a702d51959510a41c78 IN  Wonderland: Time Bond Depository0 AVAX0.0021616530
0x52622ef9cd978efc29dd852fd50dd4bbad7b163e69ae666453473d758dbbee7fDeposit78754182021-12-06 8:43:273 mins ago0x6088679c5d5f1aefd65b80291fddb20e2a069c36 IN  Wonderland: Time Bond Depository10 AVAX0.0074523930
0x817e2154ef29897c552317f7d4359afbbdd50f8f1e6358bbe3d08ad63a0efcf0Redeem78753922021-12-06 8:42:354 mins ago0x0bd1f2f6d9347510d57804f9f8b8e65d831d412b IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0x636e887be3578e9c08fbe9a79e1763a940caf2881239ed4c6468161d70bfbe87Redeem78753832021-12-06 8:42:165 mins ago0x7d85163139f19016ef188006e839e51c2dda72cb IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0x60f5109b69af933735d316c935721e0caf4d23a481098806b70d736991c7b372Redeem78753812021-12-06 8:42:125 mins ago0x9c3274da5f37a2668e3a78e6efcf077f152863b3 IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0xcdb73ec0c4f17244fa5f8523a4b0934c1cf12eb223132988f35ab9353414df27Redeem78753652021-12-06 8:41:415 mins ago0xeba0cce437255175acb05994ad1e43ce6ad7de10 IN  Wonderland: Time Bond Depository0 AVAX0.0073124730
0x7655092cba3f4fb5f367757fd5a7c0d9ea2161c9cb5b7f21f32cdd27eb049373Redeem78753332021-12-06 8:40:376 mins ago0x63ae2f97165da3ade7cde4d70a71bb41e22c3835 IN  Wonderland: Time Bond Depository0 AVAX0.0021616530
0x8e44fa1a96189b773bf58e398987c72fc1c35d0e1c5a8e061d4b88e5440d094cRedeem78753232021-12-06 8:40:147 mins ago0xa6c9442776b07447e0e1a000f722f73d4127e588 IN  Wonderland: Time Bond Depository0 AVAX0.0072642330
0x6d2d5fe79f6dfa7fe315bb2a1fca14536746a7f051e0f5b6ce31dd6f2fb7812eRedeem78753172021-12-06 8:40:047 mins ago0x830d4f2849d151ca115b87f5ed1172664571bbd6 IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0xfb01d30fefeb4f6429b64a8ea876f9ae9207b47f0265ea2ceac168cdf8afe668Deposit78753162021-12-06 8:39:587 mins ago0xb945aaf861719cc7386c9e8e6b981d4d5e54815a IN  Wonderland: Time Bond Depository2 AVAX0.0074523930
0x038479e54da5d71a9f22f9ca0f1569d5509e49707dc720d497b2983b8be5968dDeposit78753052021-12-06 8:39:437 mins ago0x4d5a52e8cfbf2d73515f6280042ef7faa2674120 IN  Wonderland: Time Bond Depository6 AVAX0.0074523930
0xa69e97ba33f19676aee35b7d079cdcfe1f49e1f791f83e1408bc7962df391209Deposit78752752021-12-06 8:38:468 mins ago0xdadefebdff854aeb38113fa85cad95624cdd7c13 IN  Wonderland: Time Bond Depository0.7105467557 AVAX0.0074527530
0x0a50fff58311dbd520be829e3e95f79574a9656f08195de3d79b221a44a7c520Redeem78752642021-12-06 8:38:238 mins ago0x59ad5674116e184eb5fefa49d318654e757a59fd IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0xca89486b264deb8188e2603888e33f71c05b31b7c125de2e4b8072ba04e69a1eRedeem78752112021-12-06 8:36:4010 mins ago0xc7cf564c964656c16694e98bae8c9aecb98b0933 IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
0xc56e30501d2c512f363bed79b71198558908fa068ca24e516c969209cb9e27a9Redeem78751962021-12-06 8:36:1611 mins ago0xb69fd81d37997fb79036c45d0fbefc30e0be7e90 IN  Wonderland: Time Bond Depository0 AVAX0.0072645930
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x52622ef9cd978efc29dd852fd50dd4bbad7b163e69ae666453473d758dbbee7f78754182021-12-06 8:43:273 mins ago Wonderland: Time Bond Depository Wrapped AVAX10 AVAX
0xfb01d30fefeb4f6429b64a8ea876f9ae9207b47f0265ea2ceac168cdf8afe66878753162021-12-06 8:39:587 mins ago Wonderland: Time Bond Depository Wrapped AVAX2 AVAX
0x038479e54da5d71a9f22f9ca0f1569d5509e49707dc720d497b2983b8be5968d78753052021-12-06 8:39:437 mins ago Wonderland: Time Bond Depository Wrapped AVAX6 AVAX
0xa69e97ba33f19676aee35b7d079cdcfe1f49e1f791f83e1408bc7962df39120978752752021-12-06 8:38:468 mins ago Wonderland: Time Bond Depository Wrapped AVAX0.7105467557 AVAX
0x73ac8b4530688a8d599d5b7b5844e350140babcefce0d315e5aa9a2c0be6693b78751642021-12-06 8:35:1112 mins ago Wonderland: Time Bond Depository Wrapped AVAX103.175488041 AVAX
0x99a7249c5473dddd2d3b440e91f608a26c7203606e394e3d29675937a9efd41978751242021-12-06 8:33:4713 mins ago Wonderland: Time Bond Depository Wrapped AVAX2.84 AVAX
0xd0e1aff076f2100f936decf84a05bdcdc8ac32f5c7fda830ff74e156011c852d78750482021-12-06 8:31:2615 mins ago Wonderland: Time Bond Depository Wrapped AVAX0.65 AVAX
0x8ac6a97a7edfa36076d37756cc1d2ad9ff901946accecad1bef2576a6bcf4b4778747122021-12-06 8:20:1327 mins ago Wonderland: Time Bond Depository Wrapped AVAX10.7442692809 AVAX
0xb7d1db062e0c2d1c09d6acb2eac2367ec9139760936b653adee6f0416675b21b78745982021-12-06 8:16:2630 mins ago Wonderland: Time Bond Depository Wrapped AVAX5 AVAX
0x432fc20c2fcfafdc378072e8c11c290dae16d54c40614fb51f8ab6f01a9fae8f78745262021-12-06 8:14:0333 mins ago Wonderland: Time Bond Depository Wrapped AVAX360.1935435124 AVAX
0xfaa0e8b980a6039ed826a7391b5e350fc7c3279d63b0581827cf19394a0b2a4578743972021-12-06 8:09:4637 mins ago Wonderland: Time Bond Depository Wrapped AVAX55.8256574438 AVAX
0x2c63f4d3a013c4155f7a90ae47e9a0708f4d077ed8c37f5cbbc9e68da0ea546d78741832021-12-06 8:03:0444 mins ago Wonderland: Time Bond Depository Wrapped AVAX3.3636593677 AVAX
0x9794309a727db74c170f6067f0a3750a9bdc1e4e9b92ace90b0ef1febfa3950f78741232021-12-06 8:01:0446 mins ago Wonderland: Time Bond Depository Wrapped AVAX0.8 AVAX
0x6aaacb175fafc8ee753e68287be001b852de87463f55cbc82c306ee97dca52a578740652021-12-06 7:59:1148 mins ago Wonderland: Time Bond Depository Wrapped AVAX107.184190401 AVAX
0x2104bf4f2bd50de6276f3e104fc9f7ade7c4c51d44628a2c47613b048c8d159878739942021-12-06 7:56:5050 mins ago Wonderland: Time Bond Depository Wrapped AVAX1.4 AVAX
0xa7cf66e63d864f2a366cc6862d55a71f3ce53fc7e30d2b0b640a0bbb1b5a3e7f78739932021-12-06 7:56:4850 mins ago Wonderland: Time Bond Depository Wrapped AVAX6.4 AVAX
0x88f877144bff01dad8c81fb2cd34a5c89c64bc50f69af8b63a53c4af13c1df1978739432021-12-06 7:55:0952 mins ago Wonderland: Time Bond Depository Wrapped AVAX15 AVAX
0x60d90d4bec4f4b6b87c2d3633b56430aee06371d6e941ad5af28b16b7bc8fc2f78739122021-12-06 7:54:0553 mins ago Wonderland: Time Bond Depository Wrapped AVAX2.3 AVAX
0x03f0dce9dbe5c9c3cd96f0384ce5f685e5eae255a3fef94d69c4302155c9daf978736782021-12-06 7:46:061 hr 1 min ago Wonderland: Time Bond Depository Wrapped AVAX6.875647541 AVAX
0xfcda07a7c8a5d0ac7e4b9f5caba40a404d1d334420f8b8fc72252f6b6059bfad78736252021-12-06 7:44:231 hr 2 mins ago Wonderland: Time Bond Depository Wrapped AVAX2.5 AVAX
0xa30eaf0249b58c7c3c713cd20bae0ffb7d200100a0c0a6d2bfafa2d18aadd90178734882021-12-06 7:39:431 hr 7 mins ago Wonderland: Time Bond Depository Wrapped AVAX2 AVAX
0x1cdc804d995fe851dff6d192e9da6f14468f195f26bfb73496e7dd4b2e86fe5378733412021-12-06 7:34:461 hr 12 mins ago Wonderland: Time Bond Depository Wrapped AVAX2.0198966548 AVAX
0xc58ba4d5ede8b5c756043be9fab1fb03de87e1ece5b4cb1c72d2f6d9da162da478733092021-12-06 7:33:361 hr 13 mins ago Wonderland: Time Bond Depository Wrapped AVAX7 AVAX
0x1589e52dcdbfde9a007de2fc7bda6178b0ab63f6afa64ea75d7b66afbc2d564a78733052021-12-06 7:33:251 hr 13 mins ago Wonderland: Time Bond Depository Wrapped AVAX6.5 AVAX
0x250c07da759dca3d56d117dd3f857be2eb618aca47df3d625cfe84bd5d46c8b878732922021-12-06 7:32:571 hr 14 mins ago Wonderland: Time Bond Depository Wrapped AVAX25.7175912886 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TimeBondDepository

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2021-11-06
*/

// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

interface IOwnable {
  function policy() external view returns (address);

  function renounceManagement() external;
  
  function pushManagement( address newOwner_ ) external;
  
  function pullManagement() external;
}

contract Ownable is IOwnable {

    address internal _owner;
    address internal _newOwner;

    event OwnershipPushed(address indexed previousOwner, address indexed newOwner);
    event OwnershipPulled(address indexed previousOwner, address indexed newOwner);

    constructor () {
        _owner = msg.sender;
        emit OwnershipPushed( address(0), _owner );
    }

    function policy() public view override returns (address) {
        return _owner;
    }

    modifier onlyPolicy() {
        require( _owner == msg.sender, "Ownable: caller is not the owner" );
        _;
    }

    function renounceManagement() public virtual override onlyPolicy() {
        emit OwnershipPushed( _owner, address(0) );
        _owner = address(0);
    }

    function pushManagement( address newOwner_ ) public virtual override onlyPolicy() {
        require( newOwner_ != address(0), "Ownable: new owner is the zero address");
        emit OwnershipPushed( _owner, newOwner_ );
        _newOwner = newOwner_;
    }
    
    function pullManagement() public virtual override {
        require( msg.sender == _newOwner, "Ownable: must be new owner to pull");
        emit OwnershipPulled( _owner, _newOwner );
        _owner = _newOwner;
    }
}

library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    function sub32(uint32 a, uint32 b) internal pure returns (uint32) {
        return sub32(a, b, "SafeMath: subtraction overflow");
    }

    function sub32(uint32 a, uint32 b, string memory errorMessage) internal pure returns (uint32) {
        require(b <= a, errorMessage);
        uint32 c = a - b;

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }

    function sqrrt(uint256 a) internal pure returns (uint c) {
        if (a > 3) {
            c = a;
            uint b = add( div( a, 2), 1 );
            while (b < c) {
                c = b;
                b = div( add( div( a, b ), b), 2 );
            }
        } else if (a != 0) {
            c = 1;
        }
    }
}

library Address {

    function isContract(address account) internal view returns (bool) {

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    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");
    }

    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    function functionCall(
        address target, 
        bytes memory data, 
        string memory errorMessage
    ) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    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");
    }

    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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, 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);
            }
        }
    }

    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    function functionStaticCall(
        address target, 
        bytes memory data, 
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    function functionDelegateCall(
        address target, 
        bytes memory data, 
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success, 
        bytes memory returndata, 
        string memory errorMessage
    ) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            if (returndata.length > 0) {

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }

    function addressToString(address _address) internal pure returns(string memory) {
        bytes32 _bytes = bytes32(uint256(_address));
        bytes memory HEX = "0123456789abcdef";
        bytes memory _addr = new bytes(42);

        _addr[0] = '0';
        _addr[1] = 'x';

        for(uint256 i = 0; i < 20; i++) {
            _addr[2+i*2] = HEX[uint8(_bytes[i + 12] >> 4)];
            _addr[3+i*2] = HEX[uint8(_bytes[i + 12] & 0x0f)];
        }

        return string(_addr);

    }
}

interface IERC20 {
    function decimals() external view returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

abstract contract ERC20 is IERC20 {

    using SafeMath for uint256;

    // TODO comment actual hash value.
    bytes32 constant private ERC20TOKEN_ERC1820_INTERFACE_ID = keccak256( "ERC20Token" );
    
    mapping (address => uint256) internal _balances;

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

    uint256 internal _totalSupply;

    string internal _name;
    
    string internal _symbol;
    
    uint8 internal _decimals;

    constructor (string memory name_, string memory symbol_, uint8 decimals_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view override returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

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

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, msg.sender, _allowances[sender][msg.sender]
            .sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender]
            .sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    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);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    function _mint(address account_, uint256 ammount_) internal virtual {
        require(account_ != address(0), "ERC20: mint to the zero address");
        _beforeTokenTransfer(address( this ), account_, ammount_);
        _totalSupply = _totalSupply.add(ammount_);
        _balances[account_] = _balances[account_].add(ammount_);
        emit Transfer(address( this ), account_, ammount_);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    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);
    }

  function _beforeTokenTransfer( address from_, address to_, uint256 amount_ ) internal virtual { }
}

interface IERC2612Permit {

    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    function nonces(address owner) external view returns (uint256);
}

library Counters {
    using SafeMath for uint256;

    struct Counter {

        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

abstract contract ERC20Permit is ERC20, IERC2612Permit {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;

    bytes32 public DOMAIN_SEPARATOR;

    constructor() {
        uint256 chainID;
        assembly {
            chainID := chainid()
        }

        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(name())),
                keccak256(bytes("1")), // Version
                chainID,
                address(this)
            )
        );
    }

    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "Permit: expired deadline");

        bytes32 hashStruct =
            keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, amount, _nonces[owner].current(), deadline));

        bytes32 _hash = keccak256(abi.encodePacked(uint16(0x1901), DOMAIN_SEPARATOR, hashStruct));

        address signer = ecrecover(_hash, v, r, s);
        require(signer != address(0) && signer == owner, "ZeroSwapPermit: Invalid signature");

        _nonces[owner].increment();
        _approve(owner, spender, amount);
    }

    function nonces(address owner) public view override returns (uint256) {
        return _nonces[owner].current();
    }
}

library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

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

    function safeApprove(IERC20 token, address spender, uint256 value) internal {

        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

    function _callOptionalReturn(IERC20 token, bytes memory data) private {

        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");
        }
    }
}

library FullMath {
    function fullMul(uint256 x, uint256 y) private pure returns (uint256 l, uint256 h) {
        uint256 mm = mulmod(x, y, uint256(-1));
        l = x * y;
        h = mm - l;
        if (mm < l) h -= 1;
    }

    function fullDiv(
        uint256 l,
        uint256 h,
        uint256 d
    ) private pure returns (uint256) {
        uint256 pow2 = d & -d;
        d /= pow2;
        l /= pow2;
        l += h * ((-pow2) / pow2 + 1);
        uint256 r = 1;
        r *= 2 - d * r;
        r *= 2 - d * r;
        r *= 2 - d * r;
        r *= 2 - d * r;
        r *= 2 - d * r;
        r *= 2 - d * r;
        r *= 2 - d * r;
        r *= 2 - d * r;
        return l * r;
    }

    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 d
    ) internal pure returns (uint256) {
        (uint256 l, uint256 h) = fullMul(x, y);
        uint256 mm = mulmod(x, y, d);
        if (mm > l) h -= 1;
        l -= mm;
        require(h < d, 'FullMath::mulDiv: overflow');
        return fullDiv(l, h, d);
    }
}

library FixedPoint {

    struct uq112x112 {
        uint224 _x;
    }

    struct uq144x112 {
        uint256 _x;
    }

    uint8 private constant RESOLUTION = 112;
    uint256 private constant Q112 = 0x10000000000000000000000000000;
    uint256 private constant Q224 = 0x100000000000000000000000000000000000000000000000000000000;
    uint256 private constant LOWER_MASK = 0xffffffffffffffffffffffffffff; // decimal of UQ*x112 (lower 112 bits)

    function decode(uq112x112 memory self) internal pure returns (uint112) {
        return uint112(self._x >> RESOLUTION);
    }

    function decode112with18(uq112x112 memory self) internal pure returns (uint) {

        return uint(self._x) / 5192296858534827;
    }

    function fraction(uint256 numerator, uint256 denominator) internal pure returns (uq112x112 memory) {
        require(denominator > 0, 'FixedPoint::fraction: division by zero');
        if (numerator == 0) return FixedPoint.uq112x112(0);

        if (numerator <= uint144(-1)) {
            uint256 result = (numerator << RESOLUTION) / denominator;
            require(result <= uint224(-1), 'FixedPoint::fraction: overflow');
            return uq112x112(uint224(result));
        } else {
            uint256 result = FullMath.mulDiv(numerator, Q112, denominator);
            require(result <= uint224(-1), 'FixedPoint::fraction: overflow');
            return uq112x112(uint224(result));
        }
    }
}

interface AggregatorV3Interface {

  function decimals() external view returns (uint8);
  function description() external view returns (string memory);
  function version() external view returns (uint256);

  // getRoundData and latestRoundData should both raise "No data present"
  // if they do not have data to report, instead of returning unset values
  // which could be misinterpreted as actual reported values.
  function getRoundData(uint80 _roundId)
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );
  function latestRoundData()
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );
}

interface ITreasury {
    function deposit( uint _amount, address _token, uint _profit ) external returns ( bool );
    function valueOf( address _token, uint _amount ) external view returns ( uint value_ );
    function mintRewards( address _recipient, uint _amount ) external;
}

interface IStaking {
    function stake( uint _amount, address _recipient ) external returns ( bool );
}

interface IStakingHelper {
    function stake( uint _amount, address _recipient ) external;
}

interface IWETH9 is IERC20 {
    /// @notice Deposit ether to get wrapped ether
    function deposit() external payable;
}

contract TimeBondDepository is Ownable {

    using FixedPoint for *;
    using SafeERC20 for IERC20;
    using SafeMath for uint;
    using SafeMath for uint32;




    /* ======== EVENTS ======== */

    event BondCreated( uint deposit, uint indexed payout, uint indexed expires, uint indexed priceInUSD );
    event BondRedeemed( address indexed recipient, uint payout, uint remaining );
    event BondPriceChanged( uint indexed priceInUSD, uint indexed internalPrice, uint indexed debtRatio );
    event ControlVariableAdjustment( uint initialBCV, uint newBCV, uint adjustment, bool addition );




    /* ======== STATE VARIABLES ======== */
    address public immutable OHM; // token given as payment for bond
    address public immutable principle; // token used to create bond
    address public immutable treasury; // mints OHM when receives principle
    address public immutable DAO; // receives profit share from bond

    AggregatorV3Interface internal priceFeed;

    address public staking; // to auto-stake payout
    address public stakingHelper; // to stake and claim if no staking warmup
    bool public useHelper;

    Terms public terms; // stores terms for new bonds
    Adjust public adjustment; // stores adjustment to BCV data

    mapping( address => Bond ) public bondInfo; // stores bond information for depositors

    uint public totalDebt; // total value of outstanding bonds; used for pricing
    uint32 public lastDecay; // reference block for debt decay




    /* ======== STRUCTS ======== */

    // Info for creating new bonds
    struct Terms {
        uint controlVariable; // scaling variable for price
        uint minimumPrice; // vs principle value. 4 decimals (1500 = 0.15)
        uint maxPayout; // in thousandths of a %. i.e. 500 = 0.5%
        uint maxDebt; // 9 decimal debt ratio, max % total supply created as debt
        uint32 vestingTerm; // in seconds
    }

    // Info for bond holder
    struct Bond {
        uint payout; // OHM remaining to be paid
        uint pricePaid; // In DAI, for front end viewing
        uint32 vesting; // Seconds left to vest
        uint32 lastTime; // Last interaction
    }

    // Info for incremental adjustments to control variable 
    struct Adjust {
        bool add; // addition or subtraction
        uint rate; // increment
        uint target; // BCV when adjustment finished
        uint32 buffer; // minimum length (in seconds) between adjustments
        uint32 lastTime; // block when last adjustment made
    }




    /* ======== INITIALIZATION ======== */

    constructor ( 
        address _OHM,
        address _principle,
        address _treasury, 
        address _DAO,
        address _feed
    ) {
        require( _OHM != address(0) );
        OHM = _OHM;
        require( _principle != address(0) );
        principle = _principle;
        require( _treasury != address(0) );
        treasury = _treasury;
        require( _DAO != address(0) );
        DAO = _DAO;
        require( _feed != address(0) );
        priceFeed = AggregatorV3Interface( _feed );
    }

    /**
     *  @notice initializes bond parameters
     *  @param _controlVariable uint
     *  @param _vestingTerm uint
     *  @param _minimumPrice uint
     *  @param _maxPayout uint
     *  @param _maxDebt uint
     *  @param _initialDebt uint
     */
    function initializeBondTerms( 
        uint _controlVariable, 
        uint _minimumPrice,
        uint _maxPayout,
        uint _maxDebt,
        uint _initialDebt,
        uint32 _vestingTerm
    ) external onlyPolicy() {
        require( currentDebt() == 0, "Debt must be 0 for initialization" );
        terms = Terms ({
            controlVariable: _controlVariable,
            vestingTerm: _vestingTerm,
            minimumPrice: _minimumPrice,
            maxPayout: _maxPayout,
            maxDebt: _maxDebt
        });
        totalDebt = _initialDebt;
        lastDecay = uint32(block.timestamp);
    }



    
    /* ======== POLICY FUNCTIONS ======== */

    enum PARAMETER { VESTING, PAYOUT, DEBT, MINPRICE }
    /**
     *  @notice set parameters for new bonds
     *  @param _parameter PARAMETER
     *  @param _input uint
     */
    function setBondTerms ( PARAMETER _parameter, uint _input ) external onlyPolicy() {
        if ( _parameter == PARAMETER.VESTING ) { // 0
            require( _input >= 129600, "Vesting must be longer than 36 hours" );
            terms.vestingTerm = uint32(_input);
        } else if ( _parameter == PARAMETER.PAYOUT ) { // 1
            require( _input <= 1000, "Payout cannot be above 1 percent" );
            terms.maxPayout = _input;
        } else if ( _parameter == PARAMETER.DEBT ) { // 2
            terms.maxDebt = _input;
        } else if ( _parameter == PARAMETER.MINPRICE ) { // 3
            terms.minimumPrice = _input;
        }
    }

    /**
     *  @notice set control variable adjustment
     *  @param _addition bool
     *  @param _increment uint
     *  @param _target uint
     *  @param _buffer uint
     */
    function setAdjustment ( 
        bool _addition,
        uint _increment, 
        uint _target,
        uint32 _buffer 
    ) external onlyPolicy() {
        require( _increment <= terms.controlVariable.mul( 25 ).div( 1000 ), "Increment too large" );

        adjustment = Adjust({
            add: _addition,
            rate: _increment,
            target: _target,
            buffer: _buffer,
            lastTime: uint32(block.timestamp)
        });
    }

    /**
     *  @notice set contract for auto stake
     *  @param _staking address
     *  @param _helper bool
     */
    function setStaking( address _staking, bool _helper ) external onlyPolicy() {
        require( _staking != address(0) );
        if ( _helper ) {
            useHelper = true;
            stakingHelper = _staking;
        } else {
            useHelper = false;
            staking = _staking;
        }
    }


    

    /* ======== USER FUNCTIONS ======== */

    /**
     *  @notice deposit bond
     *  @param _amount uint
     *  @param _maxPrice uint
     *  @param _depositor address
     *  @return uint
     */
    function deposit( 
        uint _amount, 
        uint _maxPrice,
        address _depositor
    ) external payable returns ( uint ) {
        require( _depositor != address(0), "Invalid address" );

        decayDebt();
        require( totalDebt <= terms.maxDebt, "Max capacity reached" );
        
        uint priceInUSD = bondPriceInUSD(); // Stored in bond info
        uint nativePrice = _bondPrice();

        require( _maxPrice >= nativePrice, "Slippage limit: more than max price" ); // slippage protection

        uint value = ITreasury( treasury ).valueOf( principle, _amount );
        uint payout = payoutFor( value ); // payout to bonder is computed

        require( payout >= 10000000, "Bond too small" ); // must be > 0.01 OHM ( underflow protection )
        require( payout <= maxPayout(), "Bond too large"); // size protection because there is no slippage

        /**
            asset carries risk and is not minted against
            asset transfered to treasury and rewards minted as payout
         */
        if (address(this).balance >= _amount) {
            // pay with WETH9
            IWETH9(principle).deposit{value: _amount}(); // wrap only what is needed to pay
            IWETH9(principle).transfer(treasury, _amount);
        } else {
            IERC20( principle ).safeTransferFrom( msg.sender, treasury, _amount );
        }
        
        ITreasury( treasury ).mintRewards( address(this), payout );
        
        // total debt is increased
        totalDebt = totalDebt.add( value ); 
                
        // depositor info is stored
        bondInfo[ _depositor ] = Bond({ 
            payout: bondInfo[ _depositor ].payout.add( payout ),
            vesting: terms.vestingTerm,
            lastTime: uint32(block.timestamp),
            pricePaid: priceInUSD
        });

        // indexed events are emitted
        emit BondCreated( _amount, payout, block.timestamp.add( terms.vestingTerm ), priceInUSD );
        emit BondPriceChanged( bondPriceInUSD(), _bondPrice(), debtRatio() );

        adjust(); // control variable is adjusted
        refundETH(); //refund user if needed
        return payout; 
    }

    /** 
     *  @notice redeem bond for user
     *  @param _recipient address
     *  @param _stake bool
     *  @return uint
     */ 
    function redeem( address _recipient, bool _stake ) external returns ( uint ) {        
        Bond memory info = bondInfo[ _recipient ];
        uint percentVested = percentVestedFor( _recipient ); // (blocks since last interaction / vesting term remaining)

        if ( percentVested >= 10000 ) { // if fully vested
            delete bondInfo[ _recipient ]; // delete user info
            emit BondRedeemed( _recipient, info.payout, 0 ); // emit bond data
            return stakeOrSend( _recipient, _stake, info.payout ); // pay user everything due

        } else { // if unfinished
            // calculate payout vested
            uint payout = info.payout.mul( percentVested ).div( 10000 );

            // store updated deposit info
            bondInfo[ _recipient ] = Bond({
                payout: info.payout.sub( payout ),
                vesting: info.vesting.sub32( uint32( block.timestamp ).sub32( info.lastTime ) ),
                lastTime: uint32( block.timestamp ),
                pricePaid: info.pricePaid
            });

            emit BondRedeemed( _recipient, payout, bondInfo[ _recipient ].payout );
            return stakeOrSend( _recipient, _stake, payout );
        }
    }



    
    /* ======== INTERNAL HELPER FUNCTIONS ======== */

    /**
     *  @notice allow user to stake payout automatically
     *  @param _stake bool
     *  @param _amount uint
     *  @return uint
     */
    function stakeOrSend( address _recipient, bool _stake, uint _amount ) internal returns ( uint ) {
        if ( !_stake ) { // if user does not want to stake
            IERC20( OHM ).transfer( _recipient, _amount ); // send payout
        } else { // if user wants to stake
            if ( useHelper ) { // use if staking warmup is 0
                IERC20( OHM ).approve( stakingHelper, _amount );
                IStakingHelper( stakingHelper ).stake( _amount, _recipient );
            } else {
                IERC20( OHM ).approve( staking, _amount );
                IStaking( staking ).stake( _amount, _recipient );
            }
        }
        return _amount;
    }

    /**
     *  @notice makes incremental adjustment to control variable
     */
    function adjust() internal {
         uint timeCanAdjust = adjustment.lastTime.add( adjustment.buffer );
         if( adjustment.rate != 0 && block.timestamp >= timeCanAdjust ) {
            uint initial = terms.controlVariable;
            if ( adjustment.add ) {
                terms.controlVariable = terms.controlVariable.add( adjustment.rate );
                if ( terms.controlVariable >= adjustment.target ) {
                    adjustment.rate = 0;
                }
            } else {
                terms.controlVariable = terms.controlVariable.sub( adjustment.rate );
                if ( terms.controlVariable <= adjustment.target ) {
                    adjustment.rate = 0;
                }
            }
            adjustment.lastTime = uint32(block.timestamp);
            emit ControlVariableAdjustment( initial, terms.controlVariable, adjustment.rate, adjustment.add );
        }
    }

    /**
     *  @notice reduce total debt
     */
    function decayDebt() internal {
        totalDebt = totalDebt.sub( debtDecay() );
        lastDecay = uint32(block.timestamp);
    }




    /* ======== VIEW FUNCTIONS ======== */

    /**
     *  @notice determine maximum bond size
     *  @return uint
     */
    function maxPayout() public view returns ( uint ) {
        return IERC20( OHM ).totalSupply().mul( terms.maxPayout ).div( 100000 );
    }

    /**
     *  @notice calculate interest due for new bond
     *  @param _value uint
     *  @return uint
     */
    function payoutFor( uint _value ) public view returns ( uint ) {
        return FixedPoint.fraction( _value, bondPrice() ).decode112with18().div( 1e14 );
    }


    /**
     *  @notice calculate current bond premium
     *  @return price_ uint
     */
    function bondPrice() public view returns ( uint price_ ) {        
        price_ = terms.controlVariable.mul( debtRatio() ).div( 1e5 );
        if ( price_ < terms.minimumPrice ) {
            price_ = terms.minimumPrice;
        }
    }

    /**
     *  @notice calculate current bond price and remove floor if above
     *  @return price_ uint
     */
    function _bondPrice() internal returns ( uint price_ ) {
        price_ = terms.controlVariable.mul( debtRatio() ).div( 1e5 );
        if ( price_ < terms.minimumPrice ) {
            price_ = terms.minimumPrice;        
        } else if ( terms.minimumPrice != 0 ) {
            terms.minimumPrice = 0;
        }
    }

    /**
     *  @notice get asset price from chainlink
     */
    function assetPrice() public view returns (int) {
        ( , int price, , , ) = priceFeed.latestRoundData();
        return price;
    }

    /**
     *  @notice converts bond price to DAI value
     *  @return price_ uint
     */
    function bondPriceInUSD() public view returns ( uint price_ ) {
        price_ = bondPrice().mul( uint( assetPrice() ) ).mul( 1e6 );
    }


    /**
     *  @notice calculate current ratio of debt to OHM supply
     *  @return debtRatio_ uint
     */
    function debtRatio() public view returns ( uint debtRatio_ ) {   
        uint supply = IERC20( OHM ).totalSupply();
        debtRatio_ = FixedPoint.fraction( 
            currentDebt().mul( 1e9 ), 
            supply
        ).decode112with18().div( 1e18 );
    }

    /**
     *  @notice debt ratio in same terms as reserve bonds
     *  @return uint
     */
    function standardizedDebtRatio() external view returns ( uint ) {
        return debtRatio().mul( uint( assetPrice() ) ).div( 1e8 ); // ETH feed is 8 decimals
    }

    /**
     *  @notice calculate debt factoring in decay
     *  @return uint
     */
    function currentDebt() public view returns ( uint ) {
        return totalDebt.sub( debtDecay() );
    }

    /**
     *  @notice amount to decay total debt by
     *  @return decay_ uint
     */
    function debtDecay() public view returns ( uint decay_ ) {
        uint32 timeSinceLast = uint32(block.timestamp).sub32( lastDecay );
        decay_ = totalDebt.mul( timeSinceLast ).div( terms.vestingTerm );
        if ( decay_ > totalDebt ) {
            decay_ = totalDebt;
        }
    }


    /**
     *  @notice calculate how far into vesting a depositor is
     *  @param _depositor address
     *  @return percentVested_ uint
     */
    function percentVestedFor( address _depositor ) public view returns ( uint percentVested_ ) {
        Bond memory bond = bondInfo[ _depositor ];
        uint secondsSinceLast = uint32(block.timestamp).sub( bond.lastTime );
        uint vesting = bond.vesting;

        if ( vesting > 0 ) {
            percentVested_ = secondsSinceLast.mul( 10000 ).div( vesting );
        } else {
            percentVested_ = 0;
        }
    }

    /**
     *  @notice calculate amount of OHM available for claim by depositor
     *  @param _depositor address
     *  @return pendingPayout_ uint
     */
    function pendingPayoutFor( address _depositor ) external view returns ( uint pendingPayout_ ) {
        uint percentVested = percentVestedFor( _depositor );
        uint payout = bondInfo[ _depositor ].payout;

        if ( percentVested >= 10000 ) {
            pendingPayout_ = payout;
        } else {
            pendingPayout_ = payout.mul( percentVested ).div( 10000 );
        }
    }




    /* ======= AUXILLIARY ======= */

    /**
     *  @notice allow anyone to send lost tokens (excluding principle or OHM) to the DAO
     *  @return bool
     */
    function recoverLostToken( address _token ) external returns ( bool ) {
        require( _token != OHM );
        require( _token != principle );
        IERC20( _token ).safeTransfer( DAO, IERC20( _token ).balanceOf( address(this) ) );
        return true;
    }

    function refundETH() internal {
        if (address(this).balance > 0) safeTransferETH(DAO, address(this).balance);
    }

    /// @notice Transfers ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'STE');
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_OHM","type":"address"},{"internalType":"address","name":"_principle","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_DAO","type":"address"},{"internalType":"address","name":"_feed","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"deposit","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"payout","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"expires","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"priceInUSD","type":"uint256"}],"name":"BondCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"priceInUSD","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"internalPrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"debtRatio","type":"uint256"}],"name":"BondPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"payout","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remaining","type":"uint256"}],"name":"BondRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"initialBCV","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBCV","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"adjustment","type":"uint256"},{"indexed":false,"internalType":"bool","name":"addition","type":"bool"}],"name":"ControlVariableAdjustment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipPulled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipPushed","type":"event"},{"inputs":[],"name":"DAO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OHM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adjustment","outputs":[{"internalType":"bool","name":"add","type":"bool"},{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint32","name":"buffer","type":"uint32"},{"internalType":"uint32","name":"lastTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"assetPrice","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bondInfo","outputs":[{"internalType":"uint256","name":"payout","type":"uint256"},{"internalType":"uint256","name":"pricePaid","type":"uint256"},{"internalType":"uint32","name":"vesting","type":"uint32"},{"internalType":"uint32","name":"lastTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondPrice","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondPriceInUSD","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtDecay","outputs":[{"internalType":"uint256","name":"decay_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtRatio","outputs":[{"internalType":"uint256","name":"debtRatio_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_maxPrice","type":"uint256"},{"internalType":"address","name":"_depositor","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_controlVariable","type":"uint256"},{"internalType":"uint256","name":"_minimumPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPayout","type":"uint256"},{"internalType":"uint256","name":"_maxDebt","type":"uint256"},{"internalType":"uint256","name":"_initialDebt","type":"uint256"},{"internalType":"uint32","name":"_vestingTerm","type":"uint32"}],"name":"initializeBondTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastDecay","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"payoutFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"pendingPayoutFor","outputs":[{"internalType":"uint256","name":"pendingPayout_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"percentVestedFor","outputs":[{"internalType":"uint256","name":"percentVested_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"policy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"principle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pullManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"name":"pushManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverLostToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_addition","type":"bool"},{"internalType":"uint256","name":"_increment","type":"uint256"},{"internalType":"uint256","name":"_target","type":"uint256"},{"internalType":"uint32","name":"_buffer","type":"uint32"}],"name":"setAdjustment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TimeBondDepository.PARAMETER","name":"_parameter","type":"uint8"},{"internalType":"uint256","name":"_input","type":"uint256"}],"name":"setBondTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"bool","name":"_helper","type":"bool"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingHelper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"standardizedDebtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terms","outputs":[{"internalType":"uint256","name":"controlVariable","type":"uint256"},{"internalType":"uint256","name":"minimumPrice","type":"uint256"},{"internalType":"uint256","name":"maxPayout","type":"uint256"},{"internalType":"uint256","name":"maxDebt","type":"uint256"},{"internalType":"uint32","name":"vestingTerm","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useHelper","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6101006040523480156200001257600080fd5b5060405162002e5b38038062002e5b833981810160405260a08110156200003857600080fd5b50805160208201516040808401516060850151608090950151600080546001600160a01b031916331780825593519596949592949391926001600160a01b0392909216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908290a36001600160a01b038516620000b557600080fd5b6001600160601b0319606086901b166080526001600160a01b038416620000db57600080fd5b6001600160601b0319606085901b1660a0526001600160a01b0383166200010157600080fd5b6001600160601b0319606084901b1660c0526001600160a01b0382166200012757600080fd5b6001600160601b0319606083901b1660e0526001600160a01b0381166200014d57600080fd5b600280546001600160a01b039092166001600160a01b03199092169190911790555050505060805160601c60a05160601c60c05160601c60e05160601c612c52620002096000398061165552806118445280612460525080610fb152806111465280611356528061141e528061146a525080610754528061117552806112b3528061132752806113fb528061180252508061167952806117c3528061192c5280611b855280611d245280611e0b5280611f1d5250612c526000f3fe6080604052600436106101f95760003560e01c8063844b5c7c1161010d578063cea55f57116100a0578063d7ccfb0b1161006f578063d7ccfb0b146106d0578063e0176de8146106e5578063e392a262146106fa578063f5c2ab5b1461070f578063fc7b9c181461073d576101f9565b8063cea55f5714610625578063d24378eb1461063a578063d4d863ce1461064f578063d50256251461068a576101f9565b8063a6c41fec116100dc578063a6c41fec1461053a578063ae9832cf1461054f578063b4abccba14610593578063cd1234b3146105c6576101f9565b8063844b5c7c146104c95780638dbdbe6d146104de578063904b3ece1461051057806398fabd3a14610525576101f9565b8063451ee4a1116101905780635a96ac0a1161015f5780635a96ac0a1461044b57806361d027b314610460578063759076e51461047557806377b818951461048a5780637927ebf81461049f576101f9565b8063451ee4a11461038557806346f68ee9146103d05780634cf088d914610403578063507930ec14610418576101f9565b80631e321a0f116101cc5780631e321a0f146102a05780631feed31f146102d35780632f3f470a1461030e578063309bf24b14610337576101f9565b8063016a4284146101fe57806301b88ee81461022f5780630505c8c914610274578063089208d814610289575b600080fd5b34801561020a57600080fd5b50610213610752565b604080516001600160a01b039092168252519081900360200190f35b34801561023b57600080fd5b506102626004803603602081101561025257600080fd5b50356001600160a01b0316610776565b60408051918252519081900360200190f35b34801561028057600080fd5b506102136107cf565b34801561029557600080fd5b5061029e6107df565b005b3480156102ac57600080fd5b5061029e600480360360408110156102c357600080fd5b5060ff8135169060200135610876565b3480156102df57600080fd5b50610262600480360360408110156102f657600080fd5b506001600160a01b03813516906020013515156109e4565b34801561031a57600080fd5b50610323610c2c565b604080519115158252519081900360200190f35b34801561034357600080fd5b5061029e600480360360c081101561035a57600080fd5b5080359060208101359060408101359060608101359060808101359060a0013563ffffffff16610c3c565b34801561039157600080fd5b5061039a610d38565b60408051951515865260208601949094528484019290925263ffffffff9081166060850152166080830152519081900360a00190f35b3480156103dc57600080fd5b5061029e600480360360208110156103f357600080fd5b50356001600160a01b0316610d5e565b34801561040f57600080fd5b50610213610e4b565b34801561042457600080fd5b506102626004803603602081101561043b57600080fd5b50356001600160a01b0316610e5a565b34801561045757600080fd5b5061029e610f05565b34801561046c57600080fd5b50610213610faf565b34801561048157600080fd5b50610262610fd3565b34801561049657600080fd5b50610213610fee565b3480156104ab57600080fd5b50610262600480360360208110156104c257600080fd5b5035610ffd565b3480156104d557600080fd5b50610262611022565b610262600480360360608110156104f457600080fd5b50803590602081013590604001356001600160a01b0316611044565b34801561051c57600080fd5b50610262611636565b34801561053157600080fd5b50610213611653565b34801561054657600080fd5b50610213611677565b34801561055b57600080fd5b5061029e6004803603608081101561057257600080fd5b5080351515906020810135906040810135906060013563ffffffff1661169b565b34801561059f57600080fd5b50610323600480360360208110156105b657600080fd5b50356001600160a01b03166117bf565b3480156105d257600080fd5b506105f9600480360360208110156105e957600080fd5b50356001600160a01b03166118f5565b60408051948552602085019390935263ffffffff91821684840152166060830152519081900360800190f35b34801561063157600080fd5b50610262611927565b34801561064657600080fd5b506102626119df565b34801561065b57600080fd5b5061029e6004803603604081101561067257600080fd5b506001600160a01b0381351690602001351515611a65565b34801561069657600080fd5b5061069f611b28565b60408051958652602086019490945284840192909252606084015263ffffffff166080830152519081900360a00190f35b3480156106dc57600080fd5b50610262611b40565b3480156106f157600080fd5b50610262611b71565b34801561070657600080fd5b50610262611c0e565b34801561071b57600080fd5b50610724611c67565b6040805163ffffffff9092168252519081900360200190f35b34801561074957600080fd5b50610262611c73565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008061078283610e5a565b6001600160a01b0384166000908152600e602052604090205490915061271082106107af578092506107c8565b6107c56127106107bf8385611c79565b90611cd9565b92505b5050919050565b6000546001600160a01b03165b90565b6000546001600160a01b0316331461082c576040805162461bcd60e51b81526020600482018190526024820152600080516020612b8c833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146108c3576040805162461bcd60e51b81526020600482018190526024820152600080516020612b8c833981519152604482015290519081900360640190fd5b60008260038111156108d157fe5b1415610933576201fa408110156109195760405162461bcd60e51b8152600401808060200182810382526024815260200180612bcf6024913960400191505060405180910390fd5b6009805463ffffffff191663ffffffff83161790556109e0565b600182600381111561094157fe5b14156109a8576103e881111561099e576040805162461bcd60e51b815260206004820181905260248201527f5061796f75742063616e6e6f742062652061626f766520312070657263656e74604482015290519081900360640190fd5b60078190556109e0565b60028260038111156109b657fe5b14156109c65760088190556109e0565b60038260038111156109d457fe5b14156109e05760068190555b5050565b60006109ee612a95565b506001600160a01b0383166000908152600e602090815260408083208151608081018352815481526001820154938101939093526002015463ffffffff80821692840192909252600160201b900416606082015290610a4c85610e5a565b90506127108110610ae1576001600160a01b0385166000818152600e6020908152604080832083815560018101849055600201805467ffffffffffffffff19169055855181519081529182019290925281517f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b1929181900390910190a2610ad885858460000151611d1b565b92505050610c26565b8151600090610af890612710906107bf9085611c79565b90506040518060800160405280610b1c83866000015161201e90919063ffffffff16565b815260200184602001518152602001610b64610b4b86606001514263ffffffff1661206090919063ffffffff16565b866040015163ffffffff1661206090919063ffffffff16565b63ffffffff90811682524281166020928301526001600160a01b0389166000818152600e8452604090819020855180825586860151600183015586830151600290920180546060909801518616600160201b0267ffffffff00000000199390961663ffffffff19909816979097179190911693909317909455835185815292830191909152825190927f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b1928290030190a2610c20868683611d1b565b93505050505b92915050565b600454600160a01b900460ff1681565b6000546001600160a01b03163314610c89576040805162461bcd60e51b81526020600482018190526024820152600080516020612b8c833981519152604482015290519081900360640190fd5b610c91610fd3565b15610ccd5760405162461bcd60e51b8152600401808060200182810382526021815260200180612b4a6021913960400191505060405180910390fd5b6040805160a081018252878152602081018790529081018590526060810184905263ffffffff91821660809091018190526005969096556006949094556007929092556008556009805463ffffffff199081169094179055600f556010805490921642909116179055565b600a54600b54600c54600d5460ff9093169263ffffffff80821691600160201b90041685565b6000546001600160a01b03163314610dab576040805162461bcd60e51b81526020600482018190526024820152600080516020612b8c833981519152604482015290519081900360640190fd5b6001600160a01b038116610df05760405162461bcd60e51b8152600401808060200182810382526026815260200180612adc6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b6000610e64612a95565b506001600160a01b0382166000908152600e602090815260408083208151608081018352815481526001820154938101939093526002015463ffffffff80821692840192909252600160201b9004811660608301819052919291610ecd91428116919061201e16565b604083015190915063ffffffff168015610ef857610ef1816107bf84612710611c79565b9350610efd565b600093505b505050919050565b6001546001600160a01b03163314610f4e5760405162461bcd60e51b8152600401808060200182810382526022815260200180612b026022913960400191505060405180910390fd5b600154600080546040516001600160a01b0393841693909116917faa151555690c956fc3ea32f106bb9f119b5237a061eaa8557cff3e51e3792c8d91a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610fe9610fe0611c0e565b600f549061201e565b905090565b6004546001600160a01b031681565b6000610c26655af3107a40006107bf61101d85611018611b40565b6120a2565b612219565b6000610fe9620f424061103e6110366119df565b61103e611b40565b90611c79565b60006001600160a01b038216611093576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b61109b612231565b600854600f5411156110eb576040805162461bcd60e51b815260206004820152601460248201527313585e0818d85c1858da5d1e481c995858da195960621b604482015290519081900360640190fd5b60006110f5611022565b90506000611101612256565b9050808510156111425760405162461bcd60e51b8152600401808060200182810382526023815260200180612bac6023913960400191505060405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631eec5a9a7f0000000000000000000000000000000000000000000000000000000000000000896040518363ffffffff1660e01b815260040180836001600160a01b031681526020018281526020019250505060206040518083038186803b1580156111d957600080fd5b505afa1580156111ed573d6000803e3d6000fd5b505050506040513d602081101561120357600080fd5b50519050600061121282610ffd565b90506298968081101561125d576040805162461bcd60e51b815260206004820152600e60248201526d109bdb99081d1bdbc81cdb585b1b60921b604482015290519081900360640190fd5b611265611b71565b8111156112aa576040805162461bcd60e51b815260206004820152600e60248201526d426f6e6420746f6f206c6172676560901b604482015290519081900360640190fd5b8747106113ee577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0896040518263ffffffff1660e01b81526004016000604051808303818588803b15801561130c57600080fd5b505af1158015611320573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb7f00000000000000000000000000000000000000000000000000000000000000008a6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156113bc57600080fd5b505af11580156113d0573d6000803e3d6000fd5b505050506040513d60208110156113e657600080fd5b506114439050565b6114436001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f00000000000000000000000000000000000000000000000000000000000000008b612290565b604080516335106f4960e11b81523060048201526024810183905290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691636a20de9291604480830192600092919082900301818387803b1580156114b157600080fd5b505af11580156114c5573d6000803e3d6000fd5b5050600f546114d792509050836122f0565b600f55604080516080810182526001600160a01b0388166000908152600e6020529190912054819061150990846122f0565b815260208082018790526009805463ffffffff908116604080860191909152428083166060968701526001600160a01b038d166000908152600e865282902087518155948701516001860155908601516002909401805496909501518216600160201b0267ffffffff000000001994831663ffffffff19909716969096179390931694909417909255905486926115a492918116906122f016565b604080518b8152905184917f1fec6dc81f140574bf43f6b1e420ae1dd47928b9d57db8cbd7b8611063b85ae5919081900360200190a46115e2611927565b6115ea612256565b6115f2611022565b6040517f375b221f40939bfd8f49723a17cf7bc6d576ebf72efe2cc3e991826f5b3f390a90600090a461162361234a565b61162b612455565b979650505050505050565b6000610fe96305f5e1006107bf61164b6119df565b61103e611927565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146116e8576040805162461bcd60e51b81526020600482018190526024820152600080516020612b8c833981519152604482015290519081900360640190fd5b6005546116fe906103e8906107bf906019611c79565b831115611748576040805162461bcd60e51b8152602060048201526013602482015272496e6372656d656e7420746f6f206c6172676560681b604482015290519081900360640190fd5b6040805160a0810182529415158086526020860185905290850183905263ffffffff91821660608601819052429092166080909501859052600a805460ff19169091179055600b92909255600c55600d805463ffffffff191690911767ffffffff000000001916600160201b909202919091179055565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561180057600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561183f57600080fd5b6118ed7f0000000000000000000000000000000000000000000000000000000000000000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118b057600080fd5b505afa1580156118c4573d6000803e3d6000fd5b505050506040513d60208110156118da57600080fd5b50516001600160a01b0385169190612487565b506001919050565b600e6020526000908152604090208054600182015460029092015490919063ffffffff80821691600160201b90041684565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561198357600080fd5b505afa158015611997573d6000803e3d6000fd5b505050506040513d60208110156119ad57600080fd5b505190506119d9670de0b6b3a76400006107bf61101d6119d3633b9aca0061103e610fd3565b856120a2565b91505090565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611a3057600080fd5b505afa158015611a44573d6000803e3d6000fd5b505050506040513d60a0811015611a5a57600080fd5b506020015191505090565b6000546001600160a01b03163314611ab2576040805162461bcd60e51b81526020600482018190526024820152600080516020612b8c833981519152604482015290519081900360640190fd5b6001600160a01b038216611ac557600080fd5b8015611afa5760048054600160a01b60ff60a01b19909116176001600160a01b0319166001600160a01b0384161790556109e0565b6004805460ff60a01b19169055600380546001600160a01b0384166001600160a01b03199091161790555050565b60055460065460075460085460095463ffffffff1685565b6000611b5d620186a06107bf611b54611927565b60055490611c79565b6006549091508110156107dc575060065490565b6000610fe9620186a06107bf6005600201547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611bdc57600080fd5b505afa158015611bf0573d6000803e3d6000fd5b505050506040513d6020811015611c0657600080fd5b505190611c79565b6010546000908190611c2c9063ffffffff4281169181169061206016565b600954600f54919250611c519163ffffffff918216916107bf919080861690611c7916565b9150600f54821115611c6357600f5491505b5090565b60105463ffffffff1681565b600f5481565b600082611c8857506000610c26565b82820282848281611c9557fe5b0414611cd25760405162461bcd60e51b8152600401808060200182810382526021815260200180612b6b6021913960400191505060405180910390fd5b9392505050565b6000611cd283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506124de565b600082611dcb577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb85846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611d9957600080fd5b505af1158015611dad573d6000803e3d6000fd5b505050506040513d6020811015611dc357600080fd5b506120179050565b600454600160a01b900460ff1615611ef157600480546040805163095ea7b360e01b81526001600160a01b039283169381019390935260248301859052517f00000000000000000000000000000000000000000000000000000000000000009091169163095ea7b39160448083019260209291908290030181600087803b158015611e5557600080fd5b505af1158015611e69573d6000803e3d6000fd5b505050506040513d6020811015611e7f57600080fd5b50506004805460408051637acb775760e01b81529283018590526001600160a01b0387811660248501529051911691637acb775791604480830192600092919082900301818387803b158015611ed457600080fd5b505af1158015611ee8573d6000803e3d6000fd5b50505050612017565b6003546040805163095ea7b360e01b81526001600160a01b0392831660048201526024810185905290517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b158015611f6857600080fd5b505af1158015611f7c573d6000803e3d6000fd5b505050506040513d6020811015611f9257600080fd5b505060035460408051637acb775760e01b8152600481018590526001600160a01b03878116602483015291519190921691637acb77579160448083019260209291908290030181600087803b158015611fea57600080fd5b505af1158015611ffe573d6000803e3d6000fd5b505050506040513d602081101561201457600080fd5b50505b5092915050565b6000611cd283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612580565b6000611cd283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506125da565b6120aa612ac9565b600082116120e95760405162461bcd60e51b8152600401808060200182810382526026815260200180612b246026913960400191505060405180910390fd5b826121035750604080516020810190915260008152610c26565b71ffffffffffffffffffffffffffffffffffff83116121aa57600082607085901b8161212b57fe5b0490506001600160e01b0381111561218a576040805162461bcd60e51b815260206004820152601e60248201527f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f770000604482015290519081900360640190fd5b6040518060200160405280826001600160e01b0316815250915050610c26565b60006121bb84600160701b85612639565b90506001600160e01b0381111561218a576040805162461bcd60e51b815260206004820152601e60248201527f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f770000604482015290519081900360640190fd5b516612725dd1d243ab6001600160e01b039091160490565b61223c610fe0611c0e565b600f556010805463ffffffff19164263ffffffff16179055565b600061226a620186a06107bf611b54611927565b60065490915081101561228057506006546107dc565b600654156107dc57600060065590565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526122ea9085906126ce565b50505050565b600082820183811015611cd2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600d5460009061236c9063ffffffff600160201b82048116918116906122f016565b600b54909150158015906123805750804210155b1561245257600554600a5460ff16156123ba57600b546005546123a2916122f0565b6005819055600c54116123b5576000600b555b6123dc565b600b546005546123c99161201e565b6005819055600c54106123dc576000600b555b600d805467ffffffff000000001916600160201b4263ffffffff1602179055600554600b54600a546040805185815260208101949094528381019290925260ff1615156060830152517fb923e581a0f83128e9e1d8297aa52b18d6744310476e0b54509c054cd7a93b2a916080908290030190a1505b50565b4715612485576124857f00000000000000000000000000000000000000000000000000000000000000004761277f565b565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526124d99084906126ce565b505050565b6000818361256a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561252f578181015183820152602001612517565b50505050905090810190601f16801561255c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161257657fe5b0495945050505050565b600081848411156125d25760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561252f578181015183820152602001612517565b505050900390565b60008363ffffffff168363ffffffff16111582906125d25760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561252f578181015183820152602001612517565b6000806000612648868661286e565b915091506000848061265657fe5b86880990508281111561266a576001820391505b80830392508482106126c3576040805162461bcd60e51b815260206004820152601a60248201527f46756c6c4d6174683a3a6d756c4469763a206f766572666c6f77000000000000604482015290519081900360640190fd5b61162b83838761289b565b6060612723826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661290b9092919063ffffffff16565b8051909150156124d95780806020019051602081101561274257600080fd5b50516124d95760405162461bcd60e51b815260040180806020018281038252602a815260200180612bf3602a913960400191505060405180910390fd5b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106127cb5780518252601f1990920191602091820191016127ac565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461282d576040519150601f19603f3d011682016040523d82523d6000602084013e612832565b606091505b50509050806124d9576040805162461bcd60e51b815260206004820152600360248201526253544560e81b604482015290519081900360640190fd5b6000808060001984860990508385029250828103915082811015612893576001820391505b509250929050565b600081810382168083816128ab57fe5b0492508085816128b757fe5b0494508081600003816128c657fe5b60028581038087028203028087028203028087028203028087028203028087028203028087028203029586029003909402930460010193909302939093010292915050565b606061291a8484600085612922565b949350505050565b606061292d85612a8f565b61297e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106129bd5780518252601f19909201916020918201910161299e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612a1f576040519150601f19603f3d011682016040523d82523d6000602084013e612a24565b606091505b50915091508115612a3857915061291a9050565b805115612a485780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561252f578181015183820152602001612517565b3b151590565b60405180608001604052806000815260200160008152602001600063ffffffff168152602001600063ffffffff1681525090565b6040805160208101909152600081529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a206d757374206265206e6577206f776e657220746f2070756c6c4669786564506f696e743a3a6672616374696f6e3a206469766973696f6e206279207a65726f44656274206d757374206265203020666f7220696e697469616c697a6174696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572536c697070616765206c696d69743a206d6f7265207468616e206d617820707269636556657374696e67206d757374206265206c6f6e676572207468616e20333620686f7572735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122027e2c3e3e837a58d7cc31248c8d61713c85e2434f018451478c4aad66eb67a7d64736f6c63430007050033000000000000000000000000b54f16fb19478766a268f172c9480f8da1a7c9c3000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c70000000000000000000000001c46450211cb2646cc1da3c5242422967ed9e04c00000000000000000000000078a9e536ebda08b5b9edbe5785c9d1d50fa3278c0000000000000000000000000a77230d17318075983913bc2145db16c7366156

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

000000000000000000000000b54f16fb19478766a268f172c9480f8da1a7c9c3000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c70000000000000000000000001c46450211cb2646cc1da3c5242422967ed9e04c00000000000000000000000078a9e536ebda08b5b9edbe5785c9d1d50fa3278c0000000000000000000000000a77230d17318075983913bc2145db16c7366156

-----Decoded View---------------
Arg [0] : _OHM (address): 0xb54f16fb19478766a268f172c9480f8da1a7c9c3
Arg [1] : _principle (address): 0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7
Arg [2] : _treasury (address): 0x1c46450211cb2646cc1da3c5242422967ed9e04c
Arg [3] : _DAO (address): 0x78a9e536ebda08b5b9edbe5785c9d1d50fa3278c
Arg [4] : _feed (address): 0x0a77230d17318075983913bc2145db16c7366156

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000b54f16fb19478766a268f172c9480f8da1a7c9c3
Arg [1] : 000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7
Arg [2] : 0000000000000000000000001c46450211cb2646cc1da3c5242422967ed9e04c
Arg [3] : 00000000000000000000000078a9e536ebda08b5b9edbe5785c9d1d50fa3278c
Arg [4] : 0000000000000000000000000a77230d17318075983913bc2145db16c7366156


Deployed ByteCode Sourcemap

22781:17322:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23523:34;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;23523:34:0;;;;;;;;;;;;;;38753:400;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38753:400:0;-1:-1:-1;;;;;38753:400:0;;:::i;:::-;;;;;;;;;;;;;;;;693:89;;;;;;;;;;;;;:::i;918:158::-;;;;;;;;;;;;;:::i;:::-;;27111:664;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27111:664:0;;;;;;;;;:::i;31501:1234::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31501:1234:0;;;;;;;;;;:::i;23922:21::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;26229:631;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26229:631:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;24007:24::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1084:260;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1084:260:0;-1:-1:-1;;;;;1084:260:0;;:::i;23791:22::-;;;;;;;;;;;;;:::i;38142:439::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38142:439:0;-1:-1:-1;;;;;38142:439:0;;:::i;1356:221::-;;;;;;;;;;;;;:::i;23593:33::-;;;;;;;;;;;;;:::i;37474:106::-;;;;;;;;;;;;;:::i;23844:28::-;;;;;;;;;;;;;:::i;35286:161::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35286:161:0;;:::i;36568:140::-;;;;;;;;;;;;;:::i;29129:2221::-;;;;;;;;;;;;;;;;-1:-1:-1;29129:2221:0;;;;;;;;;;;-1:-1:-1;;;;;29129:2221:0;;:::i;37209:166::-;;;;;;;;;;;;;:::i;23670:28::-;;;;;;;;;;;;;:::i;23453:::-;;;;;;;;;;;;;:::i;27971:478::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27971:478:0;;;;;;;;;;;;;;;;;;;;;:::i;39337:268::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39337:268:0;-1:-1:-1;;;;;39337:268:0;;:::i;24073:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24073:42:0;-1:-1:-1;;;;;24073:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36832:270;;;;;;;;;;;;;:::i;36323:140::-;;;;;;;;;;;;;:::i;28582:318::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28582:318:0;;;;;;;;;;:::i;23952:18::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35552:243;;;;;;;;;;;;;:::i;35017:140::-;;;;;;;;;;;;;:::i;37682:297::-;;;;;;;;;;;;;:::i;24248:23::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24166:21;;;;;;;;;;;;;:::i;23523:34::-;;;:::o;38753:400::-;38825:19;38858:18;38879:30;38897:10;38879:16;:30::i;:::-;-1:-1:-1;;;;;38934:22:0;;38920:11;38934:22;;;:8;:22;;;;;:29;38858:51;;-1:-1:-1;38998:5:0;38981:22;;38976:170;;39038:6;39021:23;;38976:170;;;39094:40;39127:5;39094:27;:6;39106:13;39094:10;:27::i;:::-;:31;;:40::i;:::-;39077:57;;38976:170;38753:400;;;;;:::o;693:89::-;741:7;768:6;-1:-1:-1;;;;;768:6:0;693:89;;:::o;918:158::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;823:67:0;;;;;;;;;;;;;;;1034:1:::1;1018:6:::0;;1001:37:::1;::::0;-1:-1:-1;;;;;1018:6:0;;::::1;::::0;1001:37:::1;::::0;1034:1;;1001:37:::1;1066:1;1049:19:::0;;-1:-1:-1;;;;;;1049:19:0::1;::::0;;918:158::o;27111:664::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;823:67:0;;;;;;;;;;;;;;;27223:17:::1;27209:10;:31;;;;;;;;;27204:564;;;27282:6;27272;:16;;27263:67;;;;-1:-1:-1::0;;;27263:67:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27345:17:::0;:34;;-1:-1:-1;;27345:34:0::1;;::::0;::::1;;::::0;;27204:564:::1;;;27416:16;27402:10;:30;;;;;;;;;27397:371;;;27474:4;27464:6;:14;;27455:61;;;::::0;;-1:-1:-1;;;27455:61:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;27531:15:::0;:24;;;27397:371:::1;;;27592:14;27578:10;:28;;;;;;;;;27573:195;;;27629:13:::0;:22;;;27573:195:::1;;;27688:18;27674:10;:32;;;;;;;;;27669:99;;;27729:18:::0;:27;;;27669:99:::1;27111:664:::0;;:::o;31501:1234::-;31571:4;31597:16;;:::i;:::-;-1:-1:-1;;;;;;31616:22:0;;;;;;:8;:22;;;;;;;;31597:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31597:41:0;;;;;;;;31670:30;31626:10;31670:16;:30::i;:::-;31649:51;;31795:5;31778:13;:22;31773:955;;-1:-1:-1;;;;;31844:22:0;;;;;;:8;:22;;;;;;;;31837:29;;;;;;;;;;;;;-1:-1:-1;;31837:29:0;;;31932:11;;31906:42;;;;;;;;;;;;;;;;;;;;;;;;;31988:46;32001:10;32013:6;32021:4;:11;;;31988;:46::i;:::-;31981:53;;;;;;31773:955;32167:11;;32153;;32167:45;;32205:5;;32167:32;;32184:13;32167:15;:32::i;:45::-;32153:59;;32297:269;;;;;;;;32329:25;32346:6;32329:4;:11;;;:15;;:25;;;;:::i;:::-;32297:269;;;;32536:4;:14;;;32297:269;;;;32382:70;32402:48;32435:4;:13;;;32410:15;32402:31;;;;:48;;;;:::i;:::-;32382:4;:12;;;:18;;;;:70;;;;:::i;:::-;32297:269;;;;;;32489:15;32297:269;;;;;;;-1:-1:-1;;;;;32272:22:0;;-1:-1:-1;32272:22:0;;;:8;:22;;;;;;;:294;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;32272:294:0;-1:-1:-1;;32272:294:0;;;;-1:-1:-1;;32272:294:0;;;;;;;;;;;;;;;;;;32588:65;;;;;;;;;;;;;;32272:22;;32588:65;;;;;;;;32675:41;32688:10;32700:6;32708;32675:11;:41::i;:::-;32668:48;;;;;31501:1234;;;;;:::o;23922:21::-;;;-1:-1:-1;;;23922:21:0;;;;;:::o;26229:631::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;823:67:0;;;;;;;;;;;;;;;26478:13:::1;:11;:13::i;:::-;:18:::0;26469:66:::1;;;;-1:-1:-1::0;;;26469:66:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26554:217;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;;26546:5:::1;:225:::0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26546:225:0;;::::1;::::0;;::::1;::::0;;26782:9:::1;:24:::0;26817:9:::1;:35:::0;;;;::::1;26836:15;26817:35:::0;;::::1;;::::0;;26229:631::o;24007:24::-;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;24007:24:0;;;;:::o;1084:260::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;823:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;1186:23:0;::::1;1177:75;;;;-1:-1:-1::0;;;1177:75:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1285:6;::::0;;1268:36:::1;::::0;-1:-1:-1;;;;;1268:36:0;;::::1;::::0;1285:6;::::1;::::0;1268:36:::1;::::0;::::1;1315:9;:21:::0;;-1:-1:-1;;;;;;1315:21:0::1;-1:-1:-1::0;;;;;1315:21:0;;;::::1;::::0;;;::::1;::::0;;1084:260::o;23791:22::-;;;-1:-1:-1;;;;;23791:22:0;;:::o;38142:439::-;38212:19;38245:16;;:::i;:::-;-1:-1:-1;;;;;;38264:22:0;;;;;;:8;:22;;;;;;;;38245:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38245:41:0;;;;;;;;;;;;38264:22;38321:44;;38328:15;38321:27;;;38245:41;38321:27;:44;:::i;:::-;38391:12;;;;38297:68;;-1:-1:-1;38376:27:0;;38421:11;;38416:158;;38467:44;38502:7;38467:29;:16;38489:5;38467:20;:29::i;:44::-;38450:61;;38416:158;;;38561:1;38544:18;;38416:158;38142:439;;;;;;:::o;1356:221::-;1440:9;;-1:-1:-1;;;;;1440:9:0;1426:10;:23;1417:71;;;;-1:-1:-1;;;1417:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1529:9;;;1521:6;;1504:36;;-1:-1:-1;;;;;1529:9:0;;;;1521:6;;;;1504:36;;;1560:9;;;1551:18;;-1:-1:-1;;;;;;1551:18:0;-1:-1:-1;;;;;1560:9:0;;;1551:18;;;;;;1356:221::o;23593:33::-;;;:::o;37474:106::-;37519:4;37544:28;37559:11;:9;:11::i;:::-;37544:9;;;:13;:28::i;:::-;37537:35;;37474:106;:::o;23844:28::-;;;-1:-1:-1;;;;;23844:28:0;;:::o;35286:161::-;35342:4;35367:72;35433:4;35367:60;:42;35388:6;35396:11;:9;:11::i;:::-;35367:19;:42::i;:::-;:58;:60::i;36568:140::-;36616:11;36650:50;36695:3;36650:39;36673:12;:10;:12::i;:::-;36650:11;:9;:11::i;:::-;:15;;:39::i;29129:2221::-;29259:4;-1:-1:-1;;;;;29286:24:0;;29277:54;;;;;-1:-1:-1;;;29277:54:0;;;;;;;;;;;;-1:-1:-1;;;29277:54:0;;;;;;;;;;;;;;;29344:11;:9;:11::i;:::-;29388:13;;29375:9;;:26;;29366:61;;;;;-1:-1:-1;;;29366:61:0;;;;;;;;;;;;-1:-1:-1;;;29366:61:0;;;;;;;;;;;;;;;29448:15;29466:16;:14;:16::i;:::-;29448:34;;29516:16;29535:12;:10;:12::i;:::-;29516:31;;29582:11;29569:9;:24;;29560:74;;;;-1:-1:-1;;;29560:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29670:10;29694:8;-1:-1:-1;;;;;29683:29:0;;29714:9;29725:7;29683:51;;;;;;;;;;;;;-1:-1:-1;;;;;29683:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29683:51:0;;-1:-1:-1;29745:11:0;29759:18;29683:51;29759:9;:18::i;:::-;29745:32;;29841:8;29831:6;:18;;29822:47;;;;;-1:-1:-1;;;29822:47:0;;;;;;;;;;;;-1:-1:-1;;;29822:47:0;;;;;;;;;;;;;;;29946:11;:9;:11::i;:::-;29936:6;:21;;29927:49;;;;;-1:-1:-1;;;29927:49:0;;;;;;;;;;;;-1:-1:-1;;;29927:49:0;;;;;;;;;;;;;;;30221:7;30196:21;:32;30192:336;;30283:9;-1:-1:-1;;;;;30276:25:0;;30309:7;30276:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30376:9;-1:-1:-1;;;;;30369:26:0;;30396:8;30406:7;30369:45;;;;;;;;;;;;;-1:-1:-1;;;;;30369:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30192:336:0;;-1:-1:-1;30192:336:0;;30447:69;-1:-1:-1;;;;;30455:9:0;30447:36;30485:10;30497:8;30507:7;30447:36;:69::i;:::-;30548:58;;;-1:-1:-1;;;30548:58:0;;30591:4;30548:58;;;;;;;;;;;;-1:-1:-1;;;;;30559:8:0;30548:33;;;;:58;;;;;-1:-1:-1;;30548:58:0;;;;;;;-1:-1:-1;30548:33:0;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30675:9:0;;:22;;-1:-1:-1;30675:9:0;-1:-1:-1;30690:5:0;30675:13;:22::i;:::-;30663:9;:34;30789:209;;;;;;;;-1:-1:-1;;;;;30818:22:0;;-1:-1:-1;30818:22:0;;;:8;:22;;;;;;:29;30789:209;;30818:43;;30853:6;30818:33;:43::i;:::-;30789:209;;;;;;;;;30885:17;;;;;;;30789:209;;;;;;;;30934:15;30789:209;;;;;;;;-1:-1:-1;;;;;30764:22:0;;-1:-1:-1;30764:22:0;;;:8;:22;;;;;:234;;;;;;;;30885:17;30764:234;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30764:234:0;-1:-1:-1;;30764:234:0;;;-1:-1:-1;;30764:234:0;;;;;;;;;;;;;;;;;;31106:17;;30976:10;;31085:40;;30934:15;31106:17;;;31085:19;:40;:::i;:::-;31055:84;;;;;;;;31077:6;;31055:84;;;;;;;;;;31205:11;:9;:11::i;:::-;31191:12;:10;:12::i;:::-;31173:16;:14;:16::i;:::-;31155:63;;;;;;;31231:8;:6;:8::i;:::-;31282:11;:9;:11::i;:::-;31335:6;29129:2221;-1:-1:-1;;;;;;;29129:2221:0:o;37209:166::-;37266:4;37291:50;37336:3;37291:39;37314:12;:10;:12::i;:::-;37291:11;:9;:11::i;23670:28::-;;;:::o;23453:::-;;;:::o;27971:478::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;823:67:0;;;;;;;;;;;;;;;28160:5:::1;:21:::0;:43:::1;::::0;28197:4:::1;::::0;28160:31:::1;::::0;28187:2:::1;28160:25;:31::i;:43::-;28146:10;:57;;28137:91;;;::::0;;-1:-1:-1;;;28137:91:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28137:91:0;;;;;;;;;;;;;::::1;;28254:187;::::0;;::::1;::::0;::::1;::::0;;;::::1;;::::0;;;::::1;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;28413:15:::1;28254:187:::0;;::::1;::::0;;;;;;;28241:10:::1;:200:::0;;-1:-1:-1;;28241:200:0::1;::::0;;::::1;::::0;;;;;;;;;;;;-1:-1:-1;;28241:200:0::1;::::0;;::::1;-1:-1:-1::0;;28241:200:0::1;-1:-1:-1::0;;;28241:200:0;;::::1;::::0;;;::::1;::::0;;27971:478::o;39337:268::-;39400:4;39437:3;-1:-1:-1;;;;;39427:13:0;:6;-1:-1:-1;;;;;39427:13:0;;;39418:24;;;;;;39472:9;-1:-1:-1;;;;;39462:19:0;:6;-1:-1:-1;;;;;39462:19:0;;;39453:30;;;;;;39494:81;39525:3;39538:6;-1:-1:-1;;;;;39530:26:0;;39566:4;39530:43;;;;;;;;;;;;;-1:-1:-1;;;;;39530:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39530:43:0;-1:-1:-1;;;;;39494:29:0;;;:81;:29;:81::i;:::-;-1:-1:-1;39593:4:0;39337:268;;;:::o;24073:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;24073:42:0;;;;:::o;36832:270::-;36875:15;36907:11;36929:3;-1:-1:-1;;;;;36921:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36921:27:0;;-1:-1:-1;36972:122:0;37088:4;36972:110;:92;37007:24;37026:3;37007:13;:11;:13::i;:24::-;37047:6;36972:19;:92::i;:122::-;36959:135;;36832:270;;:::o;36323:140::-;36366:3;36386:9;36405;;;;;;;;;-1:-1:-1;;;;;36405:9:0;-1:-1:-1;;;;;36405:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36405:27:0;;;;-1:-1:-1;;36323:140:0;:::o;28582:318::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;823:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28678:22:0;::::1;28669:33;;;::::0;::::1;;28718:7;28713:180;;;28743:9;:16:::0;;-1:-1:-1;;;;;;;28743:16:0;;::::1;;-1:-1:-1::0;;;;;;28774:24:0::1;-1:-1:-1::0;;;;;28774:24:0;::::1;;::::0;;28713:180:::1;;;28831:9;:17:::0;;-1:-1:-1;;;;28831:17:0::1;::::0;;28863:7:::1;:18:::0;;-1:-1:-1;;;;;28863:18:0;::::1;-1:-1:-1::0;;;;;;28863:18:0;;::::1;;::::0;;28582:318;;:::o;23952:18::-;;;;;;;;;;;;;;:::o;35552:243::-;35595:11;35637:51;35683:3;35637:40;35664:11;:9;:11::i;:::-;35637:5;:21;;:25;:40::i;:51::-;35713:18;;35628:60;;-1:-1:-1;35704:27:0;;35699:89;;;-1:-1:-1;35758:18:0;;35552:243;:::o;35017:140::-;35060:4;35085:64;35141:6;35085:50;35118:5;:15;;;35093:3;-1:-1:-1;;;;;35085:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35085:27:0;;:31;:50::i;37682:297::-;37804:9;;37725:11;;;;37773:42;;37804:9;37780:15;37773:29;;;37804:9;;;37773:29;:42;:::i;:::-;37871:17;;37835:9;;37750:65;;-1:-1:-1;37835:55:0;;37871:17;;;;;37835:30;;:9;:30;;;;:13;:30;:::i;:55::-;37826:64;;37915:9;;37906:6;:18;37901:71;;;37951:9;;37942:18;;37901:71;37682:297;;:::o;24248:23::-;;;;;;:::o;24166:21::-;;;;:::o;2486:250::-;2544:7;2568:6;2564:47;;-1:-1:-1;2598:1:0;2591:8;;2564:47;2635:5;;;2639:1;2635;:5;:1;2659:5;;;;;:10;2651:56;;;;-1:-1:-1;;;2651:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2727:1;2486:250;-1:-1:-1;;;2486:250:0:o;2744:132::-;2802:7;2829:39;2833:1;2836;2829:39;;;;;;;;;;;;;;;;;:3;:39::i;32965:690::-;33054:4;33078:6;33072:551;;33144:3;-1:-1:-1;;;;;33136:22:0;;33160:10;33172:7;33136:45;;;;;;;;;;;;;-1:-1:-1;;;;;33136:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33072:551:0;;-1:-1:-1;33072:551:0;;33260:9;;-1:-1:-1;;;33260:9:0;;;;33255:357;;;33344:13;;;33321:47;;;-1:-1:-1;;;33321:47:0;;-1:-1:-1;;;;;33344:13:0;;;33321:47;;;;;;;;;;;;;;33329:3;33321:21;;;;;;:47;;;;;;;;;;;;;;-1:-1:-1;33321:21:0;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33403:13:0;;;33387:60;;;-1:-1:-1;;;33387:60:0;;;;;;;;-1:-1:-1;;;;;33387:60:0;;;;;;;;;33403:13;;;33387:37;;:60;;;;;33403:13;;33387:60;;;;;;;33403:13;;33387:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33255:357;;;33511:7;;33488:41;;;-1:-1:-1;;;33488:41:0;;-1:-1:-1;;;;;33511:7:0;;;33488:41;;;;;;;;;;;;33496:3;33488:21;;;;;;:41;;;;;;;;;;;;;;;-1:-1:-1;33488:21:0;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33558:7:0;;33548:48;;;-1:-1:-1;;;33548:48:0;;;;;;;;-1:-1:-1;;;;;33548:48:0;;;;;;;;;33558:7;;;;;33548:25;;:48;;;;;33488:41;;33548:48;;;;;;;33558:7;;33548:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33255:357:0;-1:-1:-1;33640:7:0;32965:690;-1:-1:-1;;32965:690:0:o;1799:136::-;1857:7;1884:43;1888:1;1891;1884:43;;;;;;;;;;;;;;;;;:3;:43::i;2143:137::-;2201:6;2227:45;2233:1;2236;2227:45;;;;;;;;;;;;;;;;;:5;:45::i;20577:719::-;20658:16;;:::i;:::-;20709:1;20695:11;:15;20687:66;;;;-1:-1:-1;;;20687:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20768:14;20764:50;;-1:-1:-1;20791:23:0;;;;;;;;;-1:-1:-1;20791:23:0;;20784:30;;20764:50;20831:24;;;20827:462;;20872:14;20917:11;20003:3;20890:23;;;20917:11;20889:39;;;;;;-1:-1:-1;;;;;;20951:21:0;;;20943:64;;;;;-1:-1:-1;;;20943:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21029:26;;;;;;;;21047:6;-1:-1:-1;;;;;21029:26:0;;;;21022:33;;;;;20827:462;21088:14;21105:45;21121:9;-1:-1:-1;;;21138:11:0;21105:15;:45::i;:::-;21088:62;-1:-1:-1;;;;;;21173:21:0;;;21165:64;;;;;-1:-1:-1;;;21165:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;20432:137;20534:7;20545:16;-1:-1:-1;;;;;20529:13:0;;;:32;;20432:137::o;34737:135::-;34790:28;34805:11;:9;:11::i;34790:28::-;34778:9;:40;34829:9;:35;;-1:-1:-1;;34829:35:0;34848:15;34829:35;;;;;34737:135::o;35922:327::-;35963:11;35997:51;36043:3;35997:40;36024:11;:9;:11::i;35997:51::-;36073:18;;35988:60;;-1:-1:-1;36064:27:0;;36059:183;;;-1:-1:-1;36118:18:0;;36059:183;;;36167:18;;:23;36162:80;;36229:1;36208:18;:22;35922:327;:::o;17100:205::-;17228:68;;;-1:-1:-1;;;;;17228:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17228:68:0;-1:-1:-1;;;17228:68:0;;;17201:96;;17221:5;;17201:19;:96::i;:::-;17100:205;;;;:::o;1610:181::-;1668:7;1700:5;;;1724:6;;;;1716:46;;;;;-1:-1:-1;;;1716:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;33747:929;33832:17;;33786:18;;33807:44;;33832:17;-1:-1:-1;;;33807:19:0;;;;;33832:17;;;33807:23;:44;:::i;:::-;33867:15;;33786:65;;-1:-1:-1;33867:20:0;;;;:56;;;33910:13;33891:15;:32;;33867:56;33863:806;;;33956:5;:21;33997:10;:14;;;33992:494;;;34084:15;;34057:5;:21;:44;;:25;:44::i;:::-;34033:5;:68;;;34150:17;;-1:-1:-1;34120:112:0;;34211:1;34193:15;:19;34120:112;33992:494;;;34323:15;;34296:5;:21;:44;;:25;:44::i;:::-;34272:5;:68;;;34389:17;;-1:-1:-1;34359:112:0;;34450:1;34432:15;:19;34359:112;34500:19;:45;;-1:-1:-1;;34500:45:0;-1:-1:-1;;;34529:15:0;34500:45;;;;;;34601:5;:21;34624:15;;34500:10;34641:14;34565:92;;;;;;;;;;;;;;;;;;;;34641:14;;34565:92;;;;;;;;;;;;;;;;;33863:806;;33747:929;:::o;39613:123::-;39658:21;:25;39654:74;;39685:43;39701:3;39706:21;39685:15;:43::i;:::-;39613:123::o;16915:177::-;17025:58;;;-1:-1:-1;;;;;17025:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17025:58:0;-1:-1:-1;;;17025:58:0;;;16998:86;;17018:5;;16998:19;:86::i;:::-;16915:177;;;:::o;2884:189::-;2970:7;3005:12;2998:5;2990:28;;;;-1:-1:-1;;;2990:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3029:9;3045:1;3041;:5;;;;;;;2884:189;-1:-1:-1;;;;;2884:189:0:o;1943:192::-;2029:7;2065:12;2057:6;;;;2049:29;;;;-1:-1:-1;;;2049:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2101:5:0;;;1943:192::o;2288:190::-;2374:6;2406:1;2401:6;;:1;:6;;;;2409:12;2393:29;;;;;-1:-1:-1;;;2393:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19477:347;19583:7;19604:9;19615;19628:13;19636:1;19639;19628:7;:13::i;:::-;19603:38;;;;19652:10;19678:1;19665:15;;;;;19675:1;19672;19665:15;19652:28;;19700:1;19695:2;:6;19691:18;;;19708:1;19703:6;;;;19691:18;19725:2;19720:7;;;;19750:1;19746;:5;19738:44;;;;;-1:-1:-1;;;19738:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19800:16;19808:1;19811;19814;19800:7;:16::i;18318:420::-;18401:23;18427:69;18455:4;18427:69;;;;;;;;;;;;;;;;;18435:5;-1:-1:-1;;;;;18427:27:0;;;:69;;;;;:::i;:::-;18511:17;;18401:95;;-1:-1:-1;18511:21:0;18507:224;;18653:10;18642:30;;;;;;;;;;;;;;;-1:-1:-1;18642:30:0;18634:85;;;;-1:-1:-1;;;18634:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39932:168;40045:12;;;40005;40045;;;;;;;;;-1:-1:-1;;;;;40023:7:0;;;40038:5;;40023:35;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;40023:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40004:54;;;40077:7;40069:23;;;;;-1:-1:-1;;;40069:23:0;;;;;;;;;;;;-1:-1:-1;;;40069:23:0;;;;;;;;;;;;;;18769:210;18830:9;;;-1:-1:-1;;18886:1:0;18883;18876:25;18863:38;;18920:1;18916;:5;18912:9;;18941:1;18936:2;:6;18932:10;;18962:1;18957:2;:6;18953:18;;;18970:1;18965:6;;;;18953:18;18769:210;;;;;;:::o;18987:482::-;19093:7;19132:2;;;19128:6;;;19133:1;19128:6;19145:9;;;;;;;19170:4;19165:9;;;;;;;;;19205:4;19197;19196:5;;19195:14;;;;;19254:1;:9;;;19283:5;;;19279:9;;19274:14;19308:5;;;19304:9;;19299:14;19333:5;;;19329:9;;19324:14;19358:5;;;19354:9;;19349:14;19383:5;;;19379:9;;19374:14;19408:5;;;19404:9;;19399:14;19433:5;;;19429:9;;19424:14;;;19195;;19212:1;19195:18;19190:24;;;;19185:29;;;;19456:5;;18987:482;-1:-1:-1;;18987:482:0:o;4585:232::-;4724:12;4756:53;4779:6;4787:4;4793:1;4796:12;4756:22;:53::i;:::-;4749:60;4585:232;-1:-1:-1;;;;4585:232:0:o;5643:1025::-;5819:12;5852:18;5863:6;5852:10;:18::i;:::-;5844:60;;;;;-1:-1:-1;;;5844:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5978:12;5992:23;6019:6;-1:-1:-1;;;;;6019:11:0;6039:8;6050:4;6019:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6019:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5977:78;;;;6070:7;6066:595;;;6101:10;-1:-1:-1;6094:17:0;;-1:-1:-1;6094:17:0;6066:595;6215:17;;:21;6211:439;;6478:10;6472:17;6539:15;6526:10;6522:2;6518:19;6511:44;6426:148;6614:20;;-1:-1:-1;;;6614:20:0;;;;;;;;;;;;;;;;;6621:12;;6614:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3758:233;3936:20;3975:8;;;3758:233::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://27e2c3e3e837a58d7cc31248c8d61713c85e2434f018451478c4aad66eb67a7d
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.