Contract 0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2f248b17b4e1baa951780d44c8b2b81b69132e3a767ab1aaf84fe4aba7b0a84bRedeem78857372021-12-06 14:27:2419 hrs 18 mins ago0xac210bafdb8a49e702850c01a547a6a48acccaf0 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00077342525
0x331d7703a2f4ba66f6903077de7f145f27a5bb03eeae6cc13423c00fde524d89Redeem76843762021-12-01 22:18:295 days 11 hrs ago0x1bdf0681de70a08c84aca3b8d32d7c85ceb88ab5 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00134393450843.441009409
0x3820adad312c7941f1d6200ccaea6fb122ac30f7b4daa1f82a7094e6fb0ec96bRedeem76843762021-12-01 22:18:295 days 11 hrs ago0x1bdf0681de70a08c84aca3b8d32d7c85ceb88ab5 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00694467525
0xc47f79999f2d55ba926437d345ca09c5018aacce13f91b99399e1c39444a00ceRedeem75848382021-11-29 14:38:007 days 19 hrs ago0x38d3f3de762da60f15422ee1e14cc21fccdfc1bf IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00708955535125.52155195
0x8f2de0c4b4cafc06811e2e77e940a585d76aae938e636c6018992cba6b2145efRedeem75731752021-11-29 8:06:378 days 1 hr ago0x9702219a295801852357994dbfaea84fce3590ca IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.0083336130
0xbba4dc36952fc6c68961ffc34d742620a03ad5d935b32f1add335e2297579d3fRedeem75305302021-11-28 8:24:419 days 1 hr ago0x6411b7f3ef1eee7d0227a7522b70f1aa47295edc IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.007639142527.5
0xb5e351182f13bbb8d4492f624995616ed47f34933762e9bb26a5fadb4bfe9723Redeem75091612021-11-27 20:27:359 days 13 hrs ago0xcae73b0ac8be6d186cbea45e72b7591457470a66 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00189653188925.749553842
0x5eaecc7993da381db8d5d7ab3177428e70a0fb1d3573af4f37b392e6156942c1Redeem75031452021-11-27 17:06:409 days 16 hrs ago0xc559829041f295befe37fd4afcc7d47a4998d4ef IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00206228428
0x2db27161b3571feaf8524db89fd3e512e40f93373eeb361e5d2a442afcbe0b3cRedeem74989242021-11-27 14:45:019 days 19 hrs ago0x1d096f771713570f529a2db5aac1f296a3613a7e IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00694467525
0x3e50fa07b14c7d87cdc862be0be5e035c11fc04987cd64717059efbc479e003eRedeem74938162021-11-27 11:52:219 days 21 hrs ago0x1381fc52facbd0de8a6de0471009bfc5be883b02 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00694467525
0xcadf4b73c8562062248249c593dcb0c291309b590373812a16df11441408485fRedeem74835672021-11-27 6:05:3710 days 3 hrs ago0x38182a50db4a92d09dce276d00937aa7607978d5 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00141352525
0xfd6663dc0d045fd1cae18a43e1904dd01e8dca1beeef7214484b5a183da5a7beRedeem74734142021-11-27 0:21:3010 days 9 hrs ago0x769dc614d9ce66780cf02b138f6cc61f1065241b IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00347621947147.197255662
0xd89aa74e05dc9b8e2347b055693f231522aed8a88501eae6b14a6d8227a64bc9Redeem74661642021-11-26 20:16:5010 days 13 hrs ago0x1df05767e71f5ae735cbbb74fe4ed75825937872 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00484345256385.644485066
0x23a8030266dc077ac7b7002a29130f0beb9d4b26b4574e8f25e906f1dd9c8614Redeem74615962021-11-26 17:40:1410 days 16 hrs ago0x3912d7ea8140e16dac355892653f3512c3cf3749 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.056436258001997.935706363
0xa4db53843d09c27e141cdaf78cd92a6f8a79f902a0f16d0f8065bc21b886be28Redeem74581912021-11-26 15:47:1010 days 17 hrs ago0xbb423ad71dfe08c9346c89e03c0f234739b2cce1 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.0020735081128.152391766
0x6b6637cceb6896039de2577ef6c19adae445bf16fcd94bdb84fbbc85a4d63cbaRedeem74568832021-11-26 15:03:2110 days 18 hrs ago0x7bc04e3fc0d61b4d53f89c9f73a517967f84e9fe IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00854119692830.747288131
0x0c89e7fb2f90705e1c98fd5016779beb3d45df6a4f5a678084c8222919c46439Redeem74543782021-11-26 13:39:2610 days 20 hrs ago0x74b0b7cea336fbb34bc23eb58f48ac5e4c04159e IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00929135873833.447780994
0xaec3bc96a84bd01063ca673360b18f3d9db6dcaaf3d3d025a308c8d64e46ecf4Redeem74536522021-11-26 13:15:1510 days 20 hrs ago0xd5b184c12577ae6a49d8a3dd77cae0c553bdf688 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00831904849729.947580333
0x47c34ac399ceae221cbadb36e803a08f58ba1d92c1caf9ea424a2d27b8e8bb80Redeem74529152021-11-26 12:50:4010 days 20 hrs ago0xa0aecc4a848e6f9998216e004a90b61c810febec IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00265268667536.021871998
0xf8c297462e656cb34c278f0dee86d1a49ac33e23a562e7d035402341105e650aRedeem74525052021-11-26 12:36:5910 days 21 hrs ago0x19d638fad1f5a055e538a7004bdda0e6ca555044 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00349990182761.900246317
0x9592639252e966e8ae33d669a203f174d40677ebcb5edcdd95ac82652313d489Redeem74516312021-11-26 12:07:4710 days 21 hrs ago0x2d87b4029f4464bc6c02e3e11bd04531a304a5a0 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.01365796368449.167036919
0x8422be9a2a7d5384fb7527ab307b0898712118af01821959c071b1d0026522e2Redeem74500272021-11-26 11:14:1510 days 22 hrs ago0xab5f9071d325b9b5844d52cd4e55ea6bbaceb021 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00870408195131.333654748
0x1ae4a13dc5979f260e0b98d3d1d5abd80e74b12f57d8c848f11c3a1498ab0fcdRedeem74500212021-11-26 11:14:0310 days 22 hrs ago0xd9e884b2e1151140495b089fd6b07d0296616198 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00219036999829.739046596
0x22b0b95e8a91301aed81e10427dff67ffdbf0ffbffcfd57a511700480331d81cRedeem74471762021-11-26 9:38:5311 days 7 mins ago0x8fb922fa15617e9df82bdddc604a11afabd95590 IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.00339271418259.991763165
0x55fe6c4128f518746691918126f1282b5e037658ce34972d4f1219cf070c11caRedeem74451012021-11-26 8:29:1911 days 1 hr ago0x59ab05181bd5574fb231b245d3bbc87ce9d5d5be IN  0xe38ff49b5b3e49bd0c70e4b473fe9d1a0330496d0 AVAX0.009466057298128.522358878
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OTWOBondDepository

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

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

// 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 ITreasury {
    function deposit( uint _amount, address _token, uint _profit ) external returns ( bool );
    function valueOf( address _token, uint _amount ) external view returns ( uint value_ );
}

interface IBondCalculator {
    function valuation( address _LP, uint _amount ) external view returns ( uint );
    function markdown( address _LP ) external view returns ( uint );
}

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

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

contract OTWOBondDepository 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 OTWO; // 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

    bool public immutable isLiquidityBond; // LP and Reserve bonds are treated slightly different
    address public immutable bondCalculator; // calculates value of LP tokens

    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 time for debt decay




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

    // Info for creating new bonds
    struct Terms {
        uint controlVariable; // scaling variable for price
        uint minimumPrice; // vs principle value
        uint maxPayout; // in thousandths of a %. i.e. 500 = 0.5%
        uint fee; // as % of bond payout, in hundreths. ( 500 = 5% = 0.05 for every 1 paid)
        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 lastTime; // Last interaction
        uint32 vesting; // Seconds left to vest
    }

    // 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; // time when last adjustment made
    }




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

    constructor ( 
        address _OTWO,
        address _principle,
        address _treasury, 
        address _DAO, 
        address _bondCalculator
    ) {
        require( _OTWO != address(0) );
        OTWO = _OTWO;
        require( _principle != address(0) );
        principle = _principle;
        require( _treasury != address(0) );
        treasury = _treasury;
        require( _DAO != address(0) );
        DAO = _DAO;
        bondCalculator = _bondCalculator;
        isLiquidityBond = ( _bondCalculator != address(0) );
    }

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



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

    enum PARAMETER { VESTING, PAYOUT, FEE, 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 <= 10000, "Payout cannot be above 10 percent" );
            terms.maxPayout = _input;
        } else if ( _parameter == PARAMETER.FEE ) { // 2
            require( _input <= 10000, "DAO fee cannot exceed payout" );
            terms.fee = _input;
        } else if ( _parameter == PARAMETER.DEBT ) { // 3
            terms.maxDebt = _input;
        } else if ( _parameter == PARAMETER.MINPRICE ) { // 4
            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() {

        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 returns ( uint ) {
        require( _depositor != address(0), "Invalid address" );

        decayDebt();
        require( totalDebt <= terms.maxDebt, "Max capacity reached" );
        
        uint priceInUSD = bondPriceInUSD();
        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" ); 
        require( payout <= maxPayout(), "Bond too large"); 

        // profits are calculated
        uint fee = payout.mul( terms.fee ).div( 10000 );

        uint profit = value.sub( payout ).sub( fee );

        /**
            principle is transferred in
            approved and
            deposited into the treasury, returning (_amount - profit) OHM
         */
        IERC20( principle ).safeTransferFrom( msg.sender, address(this), _amount );
        IERC20( principle ).approve( address( treasury ), _amount );
        ITreasury( treasury ).deposit( _amount, principle, profit );
        
        if ( fee != 0 ) { // fee is transferred to dao 
            IERC20( OTWO ).safeTransfer( DAO, fee ); 
        }
        
        totalDebt = totalDebt.add( value ); 
        bondInfo[ _depositor ] = Bond({ 
            payout: bondInfo[ _depositor ].payout.add( payout ),
            vesting: terms.vestingTerm,
            lastTime: uint32(block.timestamp),
            pricePaid: priceInUSD
        });

        emit BondCreated( _amount, payout, block.timestamp.add( terms.vestingTerm ), priceInUSD );
        emit BondPriceChanged( bondPriceInUSD(), _bondPrice(), debtRatio() );

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

        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( OTWO ).transfer( _recipient, _amount ); // send payout
        } else { // if user wants to stake
            if ( useHelper ) { // use if staking warmup is 0
                IERC20( OTWO ).approve( stakingHelper, _amount );
                IStakingHelper( stakingHelper ).stake( _amount, _recipient );
            } else {
                IERC20( OTWO ).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( OTWO ).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( 1e16 );
    }


    /**
     *  @notice calculate current bond premium
     *  @return price_ uint
     */
    function bondPrice() public view returns ( uint price_ ) {        
        price_ = terms.controlVariable.mul( debtRatio() ).add( 1000000000 ).div( 1e7 );

        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() ).add( 1000000000 ).div( 1e7 );
        if ( price_ < terms.minimumPrice ) {
            price_ = terms.minimumPrice;        
        } else if ( terms.minimumPrice != 0 ) {
            terms.minimumPrice = 0;
        }
    }

    /**
     *  @notice converts bond price to DAI value
     *  @return price_ uint
     */
    function bondPriceInUSD() public view returns ( uint price_ ) {
        if( isLiquidityBond ) {
            price_ = bondPrice().mul( IBondCalculator( bondCalculator ).markdown( principle ) ).div( 100 );
        } else {
            price_ = bondPrice().mul( 10 ** IERC20( principle ).decimals() ).div( 100 );
        }
    }


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

    /**
     *  @notice debt ratio in same terms for reserve or liquidity bonds
     *  @return uint
     */
    function standardizedDebtRatio() external view returns ( uint ) {
        if ( isLiquidityBond ) {
            return debtRatio().mul( IBondCalculator( bondCalculator ).markdown( principle ) ).div( 1e9 );
        } else {
            return debtRatio();
        }
    }

    /**
     *  @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 != OTWO );
        require( _token != principle );
        IERC20( _token ).safeTransfer( DAO, IERC20( _token ).balanceOf( address(this) ) );
        return true;
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_OTWO","type":"address"},{"internalType":"address","name":"_principle","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_DAO","type":"address"},{"internalType":"address","name":"_bondCalculator","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":"OTWO","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":"bondCalculator","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"lastTime","type":"uint32"},{"internalType":"uint32","name":"vesting","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_controlVariable","type":"uint256"},{"internalType":"uint256","name":"_minimumPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPayout","type":"uint256"},{"internalType":"uint256","name":"_fee","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":"isLiquidityBond","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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 OTWOBondDepository.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":"fee","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"}]

6101406040523480156200001257600080fd5b5060405162002f7d38038062002f7d833981810160405260a08110156200003857600080fd5b50805160208201516040808401516060850151608090950151600080546001600160a01b031916331780825593519596949592949391926001600160a01b0392909216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908290a36001600160a01b038516620000b557600080fd5b6001600160601b0319606086901b166080526001600160a01b038416620000db57600080fd5b6001600160601b0319606085901b1660a0526001600160a01b0383166200010157600080fd5b6001600160601b0319606084901b1660c0526001600160a01b0382166200012757600080fd5b6001600160601b0319606092831b811660e0529181901b909116610120526001600160a01b0316151560f81b6101005250505060805160601c60a05160601c60c05160601c60e05160601c6101005160f81c6101205160601c612d4f6200022e60003980610ea852806116b252806119d0525080610e7a52806116815280611cfb5250806114f1528061177b52806118f9525080610e045280611128528061134a52806114455250806106055280610ed75280610f7e528061115752806112f1528061131b528061141452806116e152806118b75250806114cf528061187852806119ac5280611a2a5280611d705280611f0f5280611ff452806121095250612d4f6000f3fe608060405234801561001057600080fd5b50600436106102415760003560e01c80638dbdbe6d11610145578063cf37a891116100bd578063d7ccfb0b1161008c578063e392a26211610071578063e392a262146105d2578063f5c2ab5b146105da578063fc7b9c18146105fb57610241565b8063d7ccfb0b146105c2578063e0176de8146105ca57610241565b8063cf37a89114610504578063d4d863ce1461054b578063d502562514610579578063d7969060146105ba57610241565b8063b4abccba11610114578063c5332b7c116100f9578063c5332b7c146104a2578063cd1234b3146104aa578063cea55f57146104fc57610241565b8063b4abccba14610474578063bd612a3e1461049a57610241565b80638dbdbe6d146103fb578063904b3ece1461042d57806398fabd3a14610435578063ae9832cf1461043d57610241565b806346f68ee9116101d857806361d027b3116101a757806377b818951161018c57806377b81895146103ce5780637927ebf8146103d6578063844b5c7c146103f357610241565b806361d027b3146103be578063759076e5146103c657610241565b806346f68ee9146103625780634cf088d914610388578063507930ec146103905780635a96ac0a146103b657610241565b80631e321a0f116102145780631e321a0f146102b45780631feed31f146102da5780632f3f470a14610308578063451ee4a11461032457610241565b8063016a42841461024657806301b88ee81461026a5780630505c8c9146102a2578063089208d8146102aa575b600080fd5b61024e610603565b604080516001600160a01b039092168252519081900360200190f35b6102906004803603602081101561028057600080fd5b50356001600160a01b0316610627565b60408051918252519081900360200190f35b61024e610680565b6102b2610690565b005b6102b2600480360360408110156102ca57600080fd5b5060ff8135169060200135610739565b610290600480360360408110156102f057600080fd5b506001600160a01b0381351690602001351515610918565b610310610b6a565b604080519115158252519081900360200190f35b61032c610b7a565b60408051951515865260208601949094528484019290925263ffffffff9081166060850152166080830152519081900360a00190f35b6102b26004803603602081101561037857600080fd5b50356001600160a01b0316610ba1565b61024e610ca0565b610290600480360360208110156103a657600080fd5b50356001600160a01b0316610caf565b6102b2610d58565b61024e610e02565b610290610e26565b61024e610e41565b610290600480360360208110156103ec57600080fd5b5035610e50565b610290610e76565b6102906004803603606081101561041157600080fd5b50803590602081013590604001356001600160a01b031661100f565b61029061167d565b61024e611779565b6102b26004803603608081101561045357600080fd5b5080351515906020810135906040810135906060013563ffffffff1661179d565b6103106004803603602081101561048a57600080fd5b50356001600160a01b0316611874565b61024e6119aa565b61024e6119ce565b6104d0600480360360208110156104c057600080fd5b50356001600160a01b03166119f2565b60408051948552602085019390935263ffffffff91821684840152166060830152519081900360800190f35b610290611a25565b6102b2600480360360e081101561051a57600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c0013563ffffffff16611add565b6102b26004803603604081101561056157600080fd5b506001600160a01b0381351690602001351515611c09565b610581611cde565b604080519687526020870195909552858501939093526060850191909152608084015263ffffffff1660a0830152519081900360c00190f35b610310611cf9565b610290611d1d565b610290611d5c565b610290611df9565b6105e2611e52565b6040805163ffffffff9092168252519081900360200190f35b610290611e5e565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008061063383610caf565b6001600160a01b0384166000908152600e6020526040902054909150612710821061066057809250610679565b6106766127106106708385611e64565b90611ec4565b92505b5050919050565b6000546001600160a01b03165b90565b6000546001600160a01b031633146106ef576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610798576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60008260048111156107a657fe5b1415610808576201fa408110156107ee5760405162461bcd60e51b8152600401808060200182810382526024815260200180612ccc6024913960400191505060405180910390fd5b6009805463ffffffff191663ffffffff8316179055610914565b600182600481111561081657fe5b14156108675761271081111561085d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c1f6021913960400191505060405180910390fd5b6006819055610914565b600282600481111561087557fe5b14156108dc576127108111156108d2576040805162461bcd60e51b815260206004820152601c60248201527f44414f206665652063616e6e6f7420657863656564207061796f757400000000604482015290519081900360640190fd5b6007819055610914565b60038260048111156108ea57fe5b14156108fa576008819055610914565b600482600481111561090857fe5b14156109145760058190555b5050565b6000610922612bb2565b506001600160a01b0383166000908152600e602090815260408083208151608081018352815481526001820154938101939093526002015463ffffffff8082169284019290925264010000000090041660608201529061098185610caf565b90506127108110610a16576001600160a01b0385166000818152600e6020908152604080832083815560018101849055600201805467ffffffffffffffff19169055855181519081529182019290925281517f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b1929181900390910190a2610a0d85858460000151611f06565b92505050610b64565b8151600090610a2d90612710906106709085611e64565b90506040518060800160405280610a5183866000015161220a90919063ffffffff16565b8152602001846020015181526020014263ffffffff168152602001610aa5610a8c86604001514263ffffffff1661224c90919063ffffffff16565b866060015163ffffffff1661224c90919063ffffffff16565b63ffffffff9081169091526001600160a01b0388166000818152600e60209081526040918290208551808255868301516001830155868401516002909201805460609098015187166401000000000267ffffffff00000000199390971663ffffffff19909816979097179190911694909417909455805185815293840192909252815190927f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b192908290030190a2610b5e868683611f06565b93505050505b92915050565b600354600160a01b900460ff1681565b600a54600b54600c54600d5460ff9093169263ffffffff8082169164010000000090041685565b6000546001600160a01b03163314610c00576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610c455760405162461bcd60e51b8152600401808060200182810382526026815260200180612bf96026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6000610cb9612bb2565b506001600160a01b0382166000908152600e602090815260408083208151608081018352815481526001820154938101939093526002015463ffffffff80821692840183905264010000000090910481166060840152919291610d20914282169161220a16565b606083015190915063ffffffff168015610d4b57610d448161067084612710611e64565b9350610d50565b600093505b505050919050565b6001546001600160a01b03163314610da15760405162461bcd60e51b8152600401808060200182810382526022815260200180612c406022913960400191505060405180910390fd5b600154600080546040516001600160a01b0393841693909116917faa151555690c956fc3ea32f106bb9f119b5237a061eaa8557cff3e51e3792c8d91a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610e3c610e33611df9565b600f549061220a565b905090565b6003546001600160a01b031681565b6000610b64662386f26fc10000610670610e7185610e6c611d1d565b61228e565b612410565b60007f000000000000000000000000000000000000000000000000000000000000000015610f7457610f6d60646106707f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166332da80a37f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610f3357600080fd5b505afa158015610f47573d6000803e3d6000fd5b505050506040513d6020811015610f5d57600080fd5b5051610f67611d1d565b90611e64565b905061068d565b610e3c60646106707f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610fd557600080fd5b505afa158015610fe9573d6000803e3d6000fd5b505050506040513d6020811015610fff57600080fd5b505160ff16600a0a610f67611d1d565b60006001600160a01b03821661106c576040805162461bcd60e51b815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b611074612428565b600854600f5411156110cd576040805162461bcd60e51b815260206004820152601460248201527f4d61782063617061636974792072656163686564000000000000000000000000604482015290519081900360640190fd5b60006110d7610e76565b905060006110e361244d565b9050808510156111245760405162461bcd60e51b8152600401808060200182810382526023815260200180612ca96023913960400191505060405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631eec5a9a7f0000000000000000000000000000000000000000000000000000000000000000896040518363ffffffff1660e01b815260040180836001600160a01b031681526020018281526020019250505060206040518083038186803b1580156111bb57600080fd5b505afa1580156111cf573d6000803e3d6000fd5b505050506040513d60208110156111e557600080fd5b5051905060006111f482610e50565b90506298968081101561124e576040805162461bcd60e51b815260206004820152600e60248201527f426f6e6420746f6f20736d616c6c000000000000000000000000000000000000604482015290519081900360640190fd5b611256611d5c565b8111156112aa576040805162461bcd60e51b815260206004820152600e60248201527f426f6e6420746f6f206c61726765000000000000000000000000000000000000604482015290519081900360640190fd5b60006112ca61271061067060046003015485611e6490919063ffffffff16565b905060006112e2826112dc868661220a565b9061220a565b90506113196001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633308d61248f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663095ea7b37f00000000000000000000000000000000000000000000000000000000000000008c6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156113b057600080fd5b505af11580156113c4573d6000803e3d6000fd5b505050506040513d60208110156113da57600080fd5b5050604080517fbc157ac1000000000000000000000000000000000000000000000000000000008152600481018c90526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660248301526044820184905291517f00000000000000000000000000000000000000000000000000000000000000009092169163bc157ac1916064808201926020929091908290030181600087803b15801561149057600080fd5b505af11580156114a4573d6000803e3d6000fd5b505050506040513d60208110156114ba57600080fd5b50508115611516576115166001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000084612508565b600f546115239085612578565b600f55604080516080810182526001600160a01b038a166000908152600e602052919091205481906115559086612578565b8152602080820189905263ffffffff428181166040808601919091526009805484166060968701526001600160a01b038f166000908152600e8652829020875181559487015160018601559086015160029094018054969095015183166401000000000267ffffffff000000001994841663ffffffff199097169690961793909316949094179092555488926115f092909181169061257816565b604080518d8152905186917f1fec6dc81f140574bf43f6b1e420ae1dd47928b9d57db8cbd7b8611063b85ae5919081900360200190a461162e611a25565b61163661244d565b61163e610e76565b6040517f375b221f40939bfd8f49723a17cf7bc6d576ebf72efe2cc3e991826f5b3f390a90600090a461166f6125d2565b509098975050505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000001561177157610f6d633b9aca006106707f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166332da80a37f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561173d57600080fd5b505afa158015611751573d6000803e3d6000fd5b505050506040513d602081101561176757600080fd5b5051610f67611a25565b610f6d611a25565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146117fc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6040805160a0810182529415158086526020860185905290850183905263ffffffff91821660608601819052429092166080909501859052600a805460ff19169091179055600b92909255600c55600d805463ffffffff191690911767ffffffff000000001916640100000000909202919091179055565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156118b557600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156118f457600080fd5b6119a27f0000000000000000000000000000000000000000000000000000000000000000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561196557600080fd5b505afa158015611979573d6000803e3d6000fd5b505050506040513d602081101561198f57600080fd5b50516001600160a01b0385169190612508565b506001919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600e6020526000908152604090208054600182015460029092015490919063ffffffff8082169164010000000090041684565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611a8157600080fd5b505afa158015611a95573d6000803e3d6000fd5b505050506040513d6020811015611aab57600080fd5b50519050611ad7670de0b6b3a7640000610670610e71611ad1633b9aca00610f67610e26565b8561228e565b91505090565b6000546001600160a01b03163314611b3c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60045415611b91576040805162461bcd60e51b815260206004820181905260248201527f426f6e6473206d75737420626520696e697469616c697a65642066726f6d2030604482015290519081900360640190fd5b6040805160c08101825288815260208101889052908101869052606081018590526080810184905263ffffffff91821660a09091018190526004979097556005959095556006939093556007919091556008556009805463ffffffff199081169094179055600f556010805490921642909116179055565b6000546001600160a01b03163314611c68576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038216611c7b57600080fd5b8015611cb05760038054600160a01b60ff60a01b19909116176001600160a01b0319166001600160a01b038416179055610914565b6003805460ff60a01b19169055600280546001600160a01b0384166001600160a01b03199091161790555050565b60045460055460065460075460085460095463ffffffff1686565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000611d4862989680610670633b9aca00611d42611d39611a25565b60045490611e64565b90612578565b60055490915081101561068d575060055490565b6000610e3c620186a06106706004600201547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611dc757600080fd5b505afa158015611ddb573d6000803e3d6000fd5b505050506040513d6020811015611df157600080fd5b505190611e64565b6010546000908190611e179063ffffffff4281169181169061224c16565b600954600f54919250611e3c9163ffffffff91821691610670919080861690611e6416565b9150600f54821115611e4e57600f5491505b5090565b60105463ffffffff1681565b600f5481565b600082611e7357506000610b64565b82820282848281611e8057fe5b0414611ebd5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c886021913960400191505060405180910390fd5b9392505050565b6000611ebd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506126df565b600082611fb6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb85846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611f8457600080fd5b505af1158015611f98573d6000803e3d6000fd5b505050506040513d6020811015611fae57600080fd5b506122039050565b600354600160a01b900460ff16156120dd576003546040805163095ea7b360e01b81526001600160a01b0392831660048201526024810185905290517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561203f57600080fd5b505af1158015612053573d6000803e3d6000fd5b505050506040513d602081101561206957600080fd5b505060035460408051637acb775760e01b8152600481018590526001600160a01b03878116602483015291519190921691637acb775791604480830192600092919082900301818387803b1580156120c057600080fd5b505af11580156120d4573d6000803e3d6000fd5b50505050612203565b6002546040805163095ea7b360e01b81526001600160a01b0392831660048201526024810185905290517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561215457600080fd5b505af1158015612168573d6000803e3d6000fd5b505050506040513d602081101561217e57600080fd5b505060025460408051637acb775760e01b8152600481018590526001600160a01b03878116602483015291519190921691637acb77579160448083019260209291908290030181600087803b1580156121d657600080fd5b505af11580156121ea573d6000803e3d6000fd5b505050506040513d602081101561220057600080fd5b50505b5092915050565b6000611ebd83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612781565b6000611ebd83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506127db565b612296612be6565b600082116122d55760405162461bcd60e51b8152600401808060200182810382526026815260200180612c626026913960400191505060405180910390fd5b826122ef5750604080516020810190915260008152610b64565b71ffffffffffffffffffffffffffffffffffff831161239657600082607085901b8161231757fe5b0490506001600160e01b03811115612376576040805162461bcd60e51b815260206004820152601e60248201527f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f770000604482015290519081900360640190fd5b6040518060200160405280826001600160e01b0316815250915050610b64565b60006123b2846e0100000000000000000000000000008561283a565b90506001600160e01b03811115612376576040805162461bcd60e51b815260206004820152601e60248201527f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f770000604482015290519081900360640190fd5b516612725dd1d243ab6001600160e01b039091160490565b612433610e33611df9565b600f556010805463ffffffff19164263ffffffff16179055565b600061246962989680610670633b9aca00611d42611d39611a25565b60055490915081101561247f575060055461068d565b6005541561068d57600060055590565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03167f23b872dd000000000000000000000000000000000000000000000000000000001790526125029085906128da565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b03167fa9059cbb000000000000000000000000000000000000000000000000000000001790526125739084906128da565b505050565b600082820183811015611ebd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600d546000906125f59063ffffffff640100000000820481169181169061257816565b600b54909150158015906126095750804210155b156126dc57600454600a5460ff161561264357600b5460045461262b91612578565b6004819055600c541161263e576000600b555b612665565b600b546004546126529161220a565b6004819055600c5410612665576000600b555b600d805467ffffffff0000000019166401000000004263ffffffff1602179055600454600b54600a546040805185815260208101949094528381019290925260ff1615156060830152517fb923e581a0f83128e9e1d8297aa52b18d6744310476e0b54509c054cd7a93b2a916080908290030190a1505b50565b6000818361276b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612730578181015183820152602001612718565b50505050905090810190601f16801561275d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161277757fe5b0495945050505050565b600081848411156127d35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612730578181015183820152602001612718565b505050900390565b60008363ffffffff168363ffffffff16111582906127d35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612730578181015183820152602001612718565b6000806000612849868661298b565b915091506000848061285757fe5b86880990508281111561286b576001820391505b80830392508482106128c4576040805162461bcd60e51b815260206004820152601a60248201527f46756c6c4d6174683a3a6d756c4469763a206f766572666c6f77000000000000604482015290519081900360640190fd5b6128cf8383876129b8565b979650505050505050565b606061292f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a289092919063ffffffff16565b8051909150156125735780806020019051602081101561294e57600080fd5b50516125735760405162461bcd60e51b815260040180806020018281038252602a815260200180612cf0602a913960400191505060405180910390fd5b60008080600019848609905083850292508281039150828110156129b0576001820391505b509250929050565b600081810382168083816129c857fe5b0492508085816129d457fe5b0494508081600003816129e357fe5b60028581038087028203028087028203028087028203028087028203028087028203028087028203029586029003909402930460010193909302939093010292915050565b6060612a378484600085612a3f565b949350505050565b6060612a4a85612bac565b612a9b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612ada5780518252601f199092019160209182019101612abb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612b3c576040519150601f19603f3d011682016040523d82523d6000602084013e612b41565b606091505b50915091508115612b55579150612a379050565b805115612b655780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612730578181015183820152602001612718565b3b151590565b60405180608001604052806000815260200160008152602001600063ffffffff168152602001600063ffffffff1681525090565b6040805160208101909152600081529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735061796f75742063616e6e6f742062652061626f76652031302070657263656e744f776e61626c653a206d757374206265206e6577206f776e657220746f2070756c6c4669786564506f696e743a3a6672616374696f6e3a206469766973696f6e206279207a65726f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77536c697070616765206c696d69743a206d6f7265207468616e206d617820707269636556657374696e67206d757374206265206c6f6e676572207468616e20333620686f7572735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220d3067a031f736d559c97ce628a1d050ddff0324553169bbc8ebfb8282bf73bef64736f6c63430007050033000000000000000000000000aa2439dbad718c9329a5893a51a708c015f76346000000000000000000000000918028f9bb2c7a707e2f194a82000923dd7338f3000000000000000000000000cfdd88430712350704b23c91b6cc6469fbd351f10000000000000000000000008b1ed43b164d2867abbcb8f02f390ce62c9d76870000000000000000000000001080c8690a473e00edf300807098de92d80d849b

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

000000000000000000000000aa2439dbad718c9329a5893a51a708c015f76346000000000000000000000000918028f9bb2c7a707e2f194a82000923dd7338f3000000000000000000000000cfdd88430712350704b23c91b6cc6469fbd351f10000000000000000000000008b1ed43b164d2867abbcb8f02f390ce62c9d76870000000000000000000000001080c8690a473e00edf300807098de92d80d849b

-----Decoded View---------------
Arg [0] : _OTWO (address): 0xaa2439dbad718c9329a5893a51a708c015f76346
Arg [1] : _principle (address): 0x918028f9bb2c7a707e2f194a82000923dd7338f3
Arg [2] : _treasury (address): 0xcfdd88430712350704b23c91b6cc6469fbd351f1
Arg [3] : _DAO (address): 0x8b1ed43b164d2867abbcb8f02f390ce62c9d7687
Arg [4] : _bondCalculator (address): 0x1080c8690a473e00edf300807098de92d80d849b

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000aa2439dbad718c9329a5893a51a708c015f76346
Arg [1] : 000000000000000000000000918028f9bb2c7a707e2f194a82000923dd7338f3
Arg [2] : 000000000000000000000000cfdd88430712350704b23c91b6cc6469fbd351f1
Arg [3] : 0000000000000000000000008b1ed43b164d2867abbcb8f02f390ce62c9d7687
Arg [4] : 0000000000000000000000001080c8690a473e00edf300807098de92d80d849b


Deployed ByteCode Sourcemap

21917:17053:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22662:34;;;:::i;:::-;;;;-1:-1:-1;;;;;22662:34:0;;;;;;;;;;;;;;38118:400;;;;;;;;;;;;;;;;-1:-1:-1;38118:400:0;-1:-1:-1;;;;;38118:400:0;;:::i;:::-;;;;;;;;;;;;;;;;693:89;;;:::i;918:158::-;;;:::i;:::-;;26559:830;;;;;;;;;;;;;;;;-1:-1:-1;26559:830:0;;;;;;;;;:::i;30789:1170::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30789:1170:0;;;;;;;;;;:::i;23192:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;23277:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1084:260;;;;;;;;;;;;;;;;-1:-1:-1;1084:260:0;-1:-1:-1;;;;;1084:260:0;;:::i;23061:22::-;;;:::i;37507:439::-;;;;;;;;;;;;;;;;-1:-1:-1;37507:439:0;-1:-1:-1;;;;;37507:439:0;;:::i;1356:221::-;;;:::i;22732:33::-;;;:::i;36839:106::-;;;:::i;23114:28::-;;;:::i;34512:161::-;;;;;;;;;;;;;;;;-1:-1:-1;34512:161:0;;:::i;35618:331::-;;;:::i;28641:1997::-;;;;;;;;;;;;;;;;-1:-1:-1;28641:1997:0;;;;;;;;;;;-1:-1:-1;;;;;28641:1997:0;;:::i;36465:275::-;;;:::i;22809:28::-;;;:::i;27585:376::-;;;;;;;;;;;;;;;;-1:-1:-1;27585:376:0;;;;;;;;;;;;;;;;;;;;;:::i;38698:269::-;;;;;;;;;;;;;;;;-1:-1:-1;38698:269:0;-1:-1:-1;;;;;38698:269:0;;:::i;22591:29::-;;;:::i;22980:39::-;;;:::i;23343:42::-;;;;;;;;;;;;;;;;-1:-1:-1;23343:42:0;-1:-1:-1;;;;;23343:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36073:271;;;:::i;25618:685::-;;;;;;;;;;;;;;;;-1:-1:-1;25618:685:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;28094:318::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28094:318:0;;;;;;;;;;:::i;23222:18::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22881:37;;;:::i;34778:263::-;;;:::i;34242:141::-;;;:::i;37047:297::-;;;:::i;23518:23::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23436:21;;;:::i;22662:34::-;;;:::o;38118:400::-;38190:19;38223:18;38244:30;38262:10;38244:16;:30::i;:::-;-1:-1:-1;;;;;38299:22:0;;38285:11;38299:22;;;:8;:22;;;;;:29;38223:51;;-1:-1:-1;38363:5:0;38346:22;;38341:170;;38403:6;38386:23;;38341:170;;;38459:40;38492:5;38459:27;:6;38471:13;38459:10;:27::i;:::-;:31;;:40::i;:::-;38442:57;;38341:170;38118: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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;26559:830::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26671:17:::1;26657:10;:31;;;;;;;;;26652:730;;;26730:6;26720;:16;;26711:67;;;;-1:-1:-1::0;;;26711:67:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26793:17:::0;:34;;-1:-1:-1;;26793:34:0::1;;::::0;::::1;;::::0;;26652:730:::1;;;26864:16;26850:10;:30;;;;;;;;;26845:537;;;26922:5;26912:6;:15;;26903:63;;;;-1:-1:-1::0;;;26903:63:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26981:15:::0;:24;;;26845:537:::1;;;27042:13;27028:10;:27;;;;;;;;;27023:359;;;27097:5;27087:6;:15;;27078:58;;;::::0;;-1:-1:-1;;;27078:58:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;27151:9:::0;:18;;;27023:359:::1;;;27206:14;27192:10;:28;;;;;;;;;27187:195;;;27243:13:::0;:22;;;27187:195:::1;;;27302:18;27288:10;:32;;;;;;;;;27283:99;;;27343:18:::0;:27;;;27283:99:::1;26559:830:::0;;:::o;30789:1170::-;30859:4;30885:16;;:::i;:::-;-1:-1:-1;;;;;;30904:22:0;;;;;;:8;:22;;;;;;;;30885:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30958:30;30914:10;30958:16;:30::i;:::-;30937:51;;31023:5;31006:13;:22;31001:951;;-1:-1:-1;;;;;31072:22:0;;;;;;:8;:22;;;;;;;;31065:29;;;;;;;;;;;;;-1:-1:-1;;31065:29:0;;;31160:11;;31134:42;;;;;;;;;;;;;;;;;;;;;;;;;31216:46;31229:10;31241:6;31249:4;:11;;;31216;:46::i;:::-;31209:53;;;;;;31001:951;31395:11;;31381;;31395:45;;31433:5;;31395:32;;31412:13;31395:15;:32::i;:45::-;31381:59;;31523:267;;;;;;;;31555:25;31572:6;31555:4;:11;;;:15;;:25;;;;:::i;:::-;31523:267;;;;31760:4;:14;;;31523:267;;;;31714:15;31523:267;;;;;;31608:70;31628:48;31661:4;:13;;;31636:15;31628:31;;;;:48;;;;:::i;:::-;31608:4;:12;;;:18;;;;:70;;;;:::i;:::-;31523:267;;;;;;;-1:-1:-1;;;;;31498:22:0;;;;;;:8;:22;;;;;;;;;:292;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31498:292:0;;;;-1:-1:-1;;31498:292:0;;;;;;;;;;;;;;;;;;31812:65;;;;;;;;;;;;;;31498:22;;31812:65;;;;;;;;;31899:41;31912:10;31924:6;31932;31899:11;:41::i;:::-;31892:48;;;;;30789:1170;;;;;:::o;23192:21::-;;;-1:-1:-1;;;23192:21:0;;;;;:::o;23277:24::-;;;;;;;;;;;;;;;;;;;;;;;;:::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;;;;;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;23061:22::-;;;-1:-1:-1;;;;;23061:22:0;;:::o;37507:439::-;37577:19;37610:16;;:::i;:::-;-1:-1:-1;;;;;;37629:22:0;;;;;;:8;:22;;;;;;;;37610:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37629:22;37686:44;;37693:15;37686:27;;;;:44;:::i;:::-;37756:12;;;;37662:68;;-1:-1:-1;37741:27:0;;37786:11;;37781:158;;37832:44;37867:7;37832:29;:16;37854:5;37832:20;:29::i;:44::-;37815:61;;37781:158;;;37926:1;37909:18;;37781:158;37507: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;22732:33::-;;;:::o;36839:106::-;36884:4;36909:28;36924:11;:9;:11::i;:::-;36909:9;;;:13;:28::i;:::-;36902:35;;36839:106;:::o;23114:28::-;;;-1:-1:-1;;;;;23114:28:0;;:::o;34512:161::-;34568:4;34593:72;34659:4;34593:60;:42;34614:6;34622:11;:9;:11::i;:::-;34593:19;:42::i;:::-;:58;:60::i;35618:331::-;35666:11;35695:15;35691:251;;;35737:85;35817:3;35737:74;35771:14;-1:-1:-1;;;;;35754:42:0;;35798:9;35754:55;;;;;;;;;;;;;-1:-1:-1;;;;;35754:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35754:55:0;35737:11;:9;:11::i;:::-;:15;;:74::i;:85::-;35728:94;;35691:251;;;35864:66;35925:3;35864:55;35895:9;-1:-1:-1;;;;;35887:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35887:30:0;35881:36;;:2;:36;35864:11;:9;:11::i;28641:1997::-;28763:4;-1:-1:-1;;;;;28790:24:0;;28781:54;;;;;-1:-1:-1;;;28781:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28848:11;:9;:11::i;:::-;28892:13;;28879:9;;:26;;28870:61;;;;;-1:-1:-1;;;28870:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28952:15;28970:16;:14;:16::i;:::-;28952:34;;28997:16;29016:12;:10;:12::i;:::-;28997:31;;29063:11;29050:9;:24;;29041:74;;;;-1:-1:-1;;;29041:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29151:10;29175:8;-1:-1:-1;;;;;29164:29:0;;29195:9;29206:7;29164:51;;;;;;;;;;;;;-1:-1:-1;;;;;29164:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29164:51:0;;-1:-1:-1;29236:11:0;29250:18;29164:51;29250:9;:18::i;:::-;29236:32;;29332:8;29322:6;:18;;29313:47;;;;;-1:-1:-1;;;29313:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29391:11;:9;:11::i;:::-;29381:6;:21;;29372:49;;;;;-1:-1:-1;;;29372:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29470:8;29481:36;29510:5;29481:23;29493:5;:9;;;29481:6;:10;;:23;;;;:::i;:36::-;29470:47;-1:-1:-1;29530:11:0;29544:30;29470:47;29544:19;:5;29555:6;29544:9;:19::i;:::-;:23;;:30::i;:::-;29530:44;-1:-1:-1;29755:74:0;-1:-1:-1;;;;;29763:9:0;29755:36;29793:10;29813:4;29820:7;29755:36;:74::i;:::-;29848:9;-1:-1:-1;;;;;29840:27:0;;29878:8;29890:7;29840:59;;;;;;;;;;;;;-1:-1:-1;;;;;29840:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29910:59:0;;;;;;;;;;;;-1:-1:-1;;;;;29950:9:0;29910:59;;;;;;;;;;;;;;29921:8;29910:29;;;;;;:59;;;;;29840;;29910;;;;;;;;-1:-1:-1;29910:29:0;:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29995:8:0;;29990:113;;30051:39;-1:-1:-1;;;;;30059:4:0;30051:27;30080:3;30085;30051:27;:39::i;:::-;30135:9;;:22;;30150:5;30135:13;:22::i;:::-;30123:9;:34;30194:209;;;;;;;;-1:-1:-1;;;;;30223:22:0;;-1:-1:-1;30223:22:0;;;:8;:22;;;;;;:29;30194:209;;30223:43;;30258:6;30223:33;:43::i;:::-;30194:209;;;;;;;;;;30339:15;30194:209;;;;;;;;;;;30290:17;;;;;30194:209;;;;;-1:-1:-1;;;;;30169:22:0;;-1:-1:-1;30169:22:0;;;:8;:22;;;;;:234;;;;;;;;30290:17;30169:234;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30169:234:0;;;-1:-1:-1;;30169:234:0;;;;;;;;;;;;;;;;;;30472:17;30381:10;;30451:40;;30339:15;;30472:17;;;30451:19;:40;:::i;:::-;30421:84;;;;;;;;30443:6;;30421:84;;;;;;;;;;30571:11;:9;:11::i;:::-;30557:12;:10;:12::i;:::-;30539:16;:14;:16::i;:::-;30521:63;;;;;;;30597:8;:6;:8::i;:::-;-1:-1:-1;30623:6:0;;28641:1997;-1:-1:-1;;;;;;;;28641:1997:0:o;36465:275::-;36522:4;36545:15;36540:193;;;36585:85;36665:3;36585:74;36619:14;-1:-1:-1;;;;;36602:42:0;;36646:9;36602:55;;;;;;;;;;;;;-1:-1:-1;;;;;36602:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36602:55:0;36585:11;:9;:11::i;36540:193::-;36710:11;:9;:11::i;22809:28::-;;;:::o;27585:376::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27766:187:::1;::::0;;::::1;::::0;::::1;::::0;;;::::1;;::::0;;;::::1;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;27925:15:::1;27766:187:::0;;::::1;::::0;;;;;;;27753:10:::1;:200:::0;;-1:-1:-1;;27753:200:0::1;::::0;;::::1;::::0;;;;;;;;;;;;-1:-1:-1;;27753:200:0::1;::::0;;::::1;-1:-1:-1::0;;27753:200:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;27585:376::o;38698:269::-;38761:4;38798;-1:-1:-1;;;;;38788:14:0;:6;-1:-1:-1;;;;;38788:14:0;;;38779:25;;;;;;38834:9;-1:-1:-1;;;;;38824:19:0;:6;-1:-1:-1;;;;;38824:19:0;;;38815:30;;;;;;38856:81;38887:3;38900:6;-1:-1:-1;;;;;38892:26:0;;38928:4;38892:43;;;;;;;;;;;;;-1:-1:-1;;;;;38892:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38892:43:0;-1:-1:-1;;;;;38856:29:0;;;:81;:29;:81::i;:::-;-1:-1:-1;38955:4:0;38698:269;;;:::o;22591:29::-;;;:::o;22980:39::-;;;:::o;23343:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;36073:271::-;36116:15;36148:11;36170:4;-1:-1:-1;;;;;36162:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36162:28:0;;-1:-1:-1;36214:122:0;36330:4;36214:110;:92;36249:24;36268:3;36249:13;:11;:13::i;:24::-;36289:6;36214:19;:92::i;:122::-;36201:135;;36073:271;;:::o;25618:685::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25887:5:::1;:21:::0;:26;25878:73:::1;;;::::0;;-1:-1:-1;;;25878:73:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;25970:244;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;;25962:5:::1;:252:::0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25962:252:0;;::::1;::::0;;::::1;::::0;;26225:9:::1;:24:::0;26260:9:::1;:35:::0;;;;::::1;26279:15;26260:35:::0;;::::1;;::::0;;25618:685::o;28094:318::-;832:6;;-1:-1:-1;;;;;832:6:0;842:10;832:20;823:67;;;;;-1:-1:-1;;;823:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28190:22:0;::::1;28181:33;;;::::0;::::1;;28230:7;28225:180;;;28255:9;:16:::0;;-1:-1:-1;;;;;;;28255:16:0;;::::1;;-1:-1:-1::0;;;;;;28286:24:0::1;-1:-1:-1::0;;;;;28286:24:0;::::1;;::::0;;28225:180:::1;;;28343:9;:17:::0;;-1:-1:-1;;;;28343:17:0::1;::::0;;28375:7:::1;:18:::0;;-1:-1:-1;;;;;28375:18:0;::::1;-1:-1:-1::0;;;;;;28375:18:0;;::::1;;::::0;;28094:318;;:::o;23222:18::-;;;;;;;;;;;;;;;;:::o;22881:37::-;;;:::o;34778:263::-;34821:11;34863:69;34927:3;34863:58;34909:10;34863:40;34890:11;:9;:11::i;:::-;34863:5;:21;;:25;:40::i;:::-;:44;;:58::i;:69::-;34959:18;;34854:78;;-1:-1:-1;34950:27:0;;34945:89;;;-1:-1:-1;35004:18:0;;34778:263;:::o;34242:141::-;34285:4;34310:65;34367:6;34310:51;34344:5;:15;;;34318:4;-1:-1:-1;;;;;34310:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34310:28:0;;:32;:51::i;37047:297::-;37169:9;;37090:11;;;;37138:42;;37169:9;37145:15;37138:29;;;37169:9;;;37138:29;:42;:::i;:::-;37236:17;;37200:9;;37115:65;;-1:-1:-1;37200:55:0;;37236:17;;;;;37200:30;;:9;:30;;;;:13;:30;:::i;:55::-;37191:64;;37280:9;;37271:6;:18;37266:71;;;37316:9;;37307:18;;37266:71;37047:297;;:::o;23518:23::-;;;;;;:::o;23436: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;32189:693::-;32278:4;32302:6;32296:554;;32368:4;-1:-1:-1;;;;;32360:23:0;;32385:10;32397:7;32360:46;;;;;;;;;;;;;-1:-1:-1;;;;;32360:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32296:554:0;;-1:-1:-1;32296:554:0;;32485:9;;-1:-1:-1;;;32485:9:0;;;;32480:359;;;32570:13;;32546:48;;;-1:-1:-1;;;32546:48:0;;-1:-1:-1;;;;;32570:13:0;;;32546:48;;;;;;;;;;;;32554:4;32546:22;;;;;;:48;;;;;;;;;;;;;;;-1:-1:-1;32546:22:0;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;32629:13:0;;32613:60;;;-1:-1:-1;;;32613:60:0;;;;;;;;-1:-1:-1;;;;;32613:60:0;;;;;;;;;32629:13;;;;;32613:37;;:60;;;;;32629:13;;32613:60;;;;;;;32629:13;;32613:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32480:359;;;32738:7;;32714:42;;;-1:-1:-1;;;32714:42:0;;-1:-1:-1;;;;;32738:7:0;;;32714:42;;;;;;;;;;;;32722:4;32714:22;;;;;;:42;;;;;;;;;;;;;;;-1:-1:-1;32714:22:0;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;32785:7:0;;32775:48;;;-1:-1:-1;;;32775:48:0;;;;;;;;-1:-1:-1;;;;;32775:48:0;;;;;;;;;32785:7;;;;;32775:25;;:48;;;;;32714:42;;32775:48;;;;;;;32785:7;;32775:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;32480:359:0;-1:-1:-1;32867:7:0;32189:693;-1:-1:-1;;32189:693: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;20045:31;21138:11;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;33962:135::-;34015:28;34030:11;:9;:11::i;34015:28::-;34003:9;:40;34054:9;:35;;-1:-1:-1;;34054:35:0;34073:15;34054:35;;;;;33962:135::o;35168:345::-;35209:11;35243:69;35307:3;35243:58;35289:10;35243:40;35270:11;:9;:11::i;35243:69::-;35337:18;;35234:78;;-1:-1:-1;35328:27:0;;35323:183;;;-1:-1:-1;35382:18:0;;35323:183;;;35431:18;;:23;35426:80;;35493:1;35472:18;:22;35168:345;:::o;17100:205::-;17228:68;;;-1:-1:-1;;;;;17228:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17228:68:0;17251:27;17228:68;;;17201:96;;17221:5;;17201:19;:96::i;:::-;17100:205;;;;:::o;16915:177::-;17025:58;;;-1:-1:-1;;;;;17025:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17025:58:0;17048:23;17025:58;;;16998:86;;17018:5;;16998:19;:86::i;:::-;16915:177;;;:::o;1610:181::-;1668:7;1700:5;;;1724:6;;;;1716:46;;;;;-1:-1:-1;;;1716:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;32974:927;33058:17;;33012:18;;33033:44;;33058:17;33033:19;;;;;;33058:17;;;33033:23;:44;:::i;:::-;33092:15;;33012:65;;-1:-1:-1;33092:20:0;;;;:56;;;33135:13;33116:15;:32;;33092:56;33088:806;;;33181:5;:21;33222:10;:14;;;33217:494;;;33309:15;;33282:5;:21;:44;;:25;:44::i;:::-;33258:5;:68;;;33375:17;;-1:-1:-1;33345:112:0;;33436:1;33418:15;:19;33345:112;33217:494;;;33548:15;;33521:5;:21;:44;;:25;:44::i;:::-;33497:5;:68;;;33614:17;;-1:-1:-1;33584:112:0;;33675:1;33657:15;:19;33584:112;33725:19;:45;;-1:-1:-1;;33725:45:0;;33754:15;33725:45;;;;;;:19;33826:21;33849:15;;33725:10;33866:14;33790:92;;;;;;;;;;;;;;;;;;;;33866:14;;33790:92;;;;;;;;;;;;;;;;;33088:806;;32974:927;:::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;:::-;19793:23;19477:347;-1:-1:-1;;;;;;;19477:347:0:o;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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://d3067a031f736d559c97ce628a1d050ddff0324553169bbc8ebfb8282bf73bef
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.