Contract 0x43FA4f431E8cf7954143F9F34650FAC02a93cb83

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x5c59e859bbe65abe54a8b13bd1f97281267ed0bf9052751a2f0a1ee7cfe40c47Redeem49723922022-01-24 15:21:273 days 21 hrs ago0x07c9be9668d26d829612984c360adaf3f60efd03 IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.000625144361 ETH
0x8e2d5f2960167d4ac398942a63e951fa2e79876962d8ec1c469813c309d32641Set Bond Terms48537532022-01-21 9:32:247 days 3 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.000898904904 ETH
0xc6aa9a0f7a59d319aa23f29e85631525b13f2f691893e2a1c676e6dca9ab88a6Set Bond Terms48208392022-01-20 12:03:028 days 51 mins ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.000773458511 ETH
0x1aa7997b17eb382160cdecd3e12d0da6cf3a3689adb13ee1d438bee8a7978685Set Bond Terms48045732022-01-20 0:00:008 days 12 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.00085358532 ETH
0x3cc12c0660dcd2111773b7ec51cde3bdb4353e66f2a7f77e2c579eff22ec6038Set Bond Terms47899912022-01-19 11:59:599 days 54 mins ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.000750187893 ETH
0x3f750ed168ef89e8be01785997fb12059b670cf099227fda4e3d7b0803dbeb8cSet Bond Terms47765762022-01-19 0:00:049 days 12 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.00080179587 ETH
0x56799c6d5695c75458b8889c9a5fa0ba3199e759c23032f164a943c0fef17a49Set Bond Terms47765562022-01-18 23:58:239 days 12 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.00080179587 ETH
0x622637e250eb082d78ff1688e3bb6959f8445cfe11b6804789aa5cb4a6891fa1Set Bond Terms47752662022-01-18 22:59:269 days 13 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.000800135432 ETH
0x1b1200365035f09586261349177a41a5d56c750a33172876aa69f0076587cfc1Set Bond Terms47716242022-01-18 20:59:139 days 15 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.000782263054 ETH
0x271319b1b77e8bc0733ce7aa5dab8c0117640676f76f50389a81dd2a6ddea6a4Set Bond Terms47705252022-01-18 20:00:119 days 16 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.000775899276 ETH
0x07fd4a447bf881ec9f07a8f75de502032cb6a17b67703379f3c1036b6fc506a9Set Bond Terms47693972022-01-18 18:59:439 days 17 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.000892635967 ETH
0xafe72e61ee22ed66a8eed9057cbfa2e619d3c8f42eed9476cd0694f3fd6a9697Deposit47691632022-01-18 18:48:499 days 18 hrs ago0xb8415a5f01cc5289e22a173fe35c5d975ca596b4 IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001323038924 ETH
0x8da99c2923eb724bc638cd787b889ddb33226710eef7818aebc912eb7380bb4dRedeem47191942022-01-17 4:15:4211 days 8 hrs ago0x1583a435897b38adac501d1463adbcad6b2ecdd8 IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001094882654 ETH
0xf3f3d584afd31c4bcb6a2c0a5e8e1a190566ea97d63398d220394cca196ed1e0Set Bond Terms47169852022-01-17 2:59:1211 days 9 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.00092485553 ETH
0x7b744d4371eb4630ac1a936aa497b1ea105421e6bf9e56b05a66292d12cc7bf4Set Bond Terms46811722022-01-15 23:59:3612 days 12 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001011521601 ETH
0xff0dca5cd1cb17b0bc44dd84f74ad94b97d698af502857bc4b33004a35da0a9eSet Bond Terms46549762022-01-15 2:00:0813 days 10 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001119427588 ETH
0xd149873fa2a267f76b21532aa8176a737fa0c0b74360a773593f1863ddbfc171Set Bond Terms46472942022-01-14 18:59:3013 days 17 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001120372212 ETH
0xced8679146868c9b156c27f75a441fd8f5c7a6993c2e5473bbb6561962ced83eSet Bond Terms45544882022-01-11 7:00:0217 days 5 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001166963521 ETH
0x1f6b7c9fff97c29efb6f82559b08c9f0d45a105a1acb2bb2d8e48462e38dc1d2Set Bond Terms45494632022-01-11 1:59:5917 days 10 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001170892753 ETH
0x4767bae5a37f535454f02f6e78c30cabb93077a828f9ccaa2df4f5fb56c7f805Set Bond Terms45484172022-01-11 0:59:4217 days 11 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001170106049 ETH
0x6db29b540e02a8323550f5ae38b1a8848906f57659e6f5c49b16e3f9eb265b92Set Bond Terms45474552022-01-10 23:59:3817 days 12 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001149005242 ETH
0xa1138dc216c4376aa33fb21acb8cc1a8103ea1361620b02ac980b15ed05bbd3aSet Bond Terms45465682022-01-10 22:59:4617 days 13 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001151332181 ETH
0xb2093075915703169c12aa94fc3de3880288a4a854cad5825f3c7c2ab3bbd2d3Set Bond Terms45455612022-01-10 21:59:5717 days 14 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001131404553 ETH
0xcc5541fe7d5b1a8d566b070b8e9f6b77318b8c4e4c55bdadaa6e8aa99fb468dcSet Bond Terms45442652022-01-10 20:59:4317 days 15 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.001133691216 ETH
0xe207daa2b29f397c19b1b9b53206d974bfb30a2e164f7c7768868f6310e14a64Set Bond Terms45417242022-01-10 18:59:0217 days 17 hrs ago0x530f340ea366115287c8ab72bd7620f57ea79d4e IN  0x43fa4f431e8cf7954143f9f34650fac02a93cb830 ETH0.00112066728 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EthBondDepository

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at arbiscan.io on 2022-01-15
*/

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

/* 
Converted to support multiple owners.
 */
contract Ownable {

    mapping(address=>bool) internal _owners;

    address internal _newOwner;

    event AdminPushed(address indexed addedBy, address indexed newOwner);
    event AdminPulled(address indexed previousOwner);

    constructor () {
        _owners[msg.sender] = true;
        emit AdminPushed( address(0), msg.sender );
    }

    function isAdmin(address id) public view returns (bool) {
        return _owners[id];
    }

    modifier onlyAdmin() {
        require( _owners[msg.sender], "Ownable: caller is not the owner" );
        _;
    }

    function pushAdmin( address newOwner_ ) public virtual onlyAdmin() {
        require( newOwner_ != address(0), "Ownable: new owner is the zero address");
        require( !_owners[newOwner_], "Ownable: new owner is already a owner");
        _owners[newOwner_] = true;
        emit AdminPushed( msg.sender, newOwner_ );
    }
    
    function renounceAdmin(address oldOwner_) public virtual onlyAdmin() {
        _owners[oldOwner_] = false;
        emit AdminPulled( oldOwner_ );
    }
}

library SafeMath {

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

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

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

library Address {

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

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

    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

    function functionCallWithValue(
        address target, 
        bytes memory data, 
        uint256 value, 
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return string(_addr);

    }
}

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

    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

abstract contract ERC20 is IERC20 {

    using SafeMath for uint256;

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

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

    uint256 internal _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

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

interface IERC2612Permit {

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

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

library Counters {
    using SafeMath for uint256;

    struct Counter {

        uint256 _value; // default: 0
    }

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

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

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

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

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

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

    bytes32 public DOMAIN_SEPARATOR;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

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

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

library FixedPoint {

    struct uq112x112 {
        uint224 _x;
    }

    struct uq144x112 {
        uint256 _x;
    }

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

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

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

        return uint(self._x) / 5192296858534827;
    }

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

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

interface AggregatorV3Interface {

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

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

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

interface IsUMAMI {
    function index() external view returns ( uint );
}

interface IwsUMAMI {
    function wUMAMITosUMAMI( uint _amount ) external returns ( uint );
    function sUMAMITowUMAMI( uint _amount ) external returns ( uint );
}

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

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

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

contract EthBondDepository 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 UMAMI; // token given as payment for bond
    address public immutable sUMAMI; // token given as payment for bond
    address public immutable wsUMAMI; // token given as payment for bond
    address public immutable principle; // token used to create bond
    address public immutable treasury; // mints UMAMI when receives principle
    address public immutable DAO; // receives profit share from bond

    AggregatorV3Interface internal priceFeed;

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

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

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

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




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

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

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

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




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

    constructor ( 
        address _UMAMI,
        address _sUMAMI,
        address _wsUMAMI,
        address _principle,
        address _treasury,
        address _DAO,
        address _feed
    ) {
        require( _UMAMI != address(0) );
        UMAMI = _UMAMI;
        require( _sUMAMI != address(0) );
        sUMAMI = _sUMAMI;
        require( _wsUMAMI != address(0) );
        wsUMAMI = _wsUMAMI;
        require( _principle != address(0) );
        principle = _principle;
        require( _treasury != address(0) );
        treasury = _treasury;
        require( _DAO != address(0) );
        DAO = _DAO;
        require( _feed != address(0) );
        priceFeed = AggregatorV3Interface( _feed );
    }

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



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

    enum PARAMETER { VESTING, PAYOUT, DEBT, MINPRICE, BCV }

    function setPriceFeed(address _feed) external onlyAdmin() {
        require( _feed != address(0) );
        priceFeed = AggregatorV3Interface( _feed );
    }

    /**
     *  @notice set parameters for new bonds
     *  @param _parameter PARAMETER
     *  @param _input uint
     */
    
    function setBondTerms ( PARAMETER _parameter, uint _input ) external onlyAdmin() {
        if ( _parameter == PARAMETER.VESTING ) { // 0
            require( _input >= 129600, "Vesting must be longer than 36 hours" );
            terms.vestingTerm = uint32(_input);
        } else if ( _parameter == PARAMETER.PAYOUT ) { // 1
            require( _input <= 1000, "Payout cannot be above 1 percent" );
            terms.maxPayout = _input;
        } else if ( _parameter == PARAMETER.DEBT ) { // 2
            terms.maxDebt = _input;
        } else if ( _parameter == PARAMETER.MINPRICE ) { // 3
            terms.minimumPrice = _input;
        } else if ( _parameter == PARAMETER.BCV ) { // 4
            terms.controlVariable = _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 onlyAdmin() {
        require( _increment <= _target, "Increment too large" );

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

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


    

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

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

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

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

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

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

        /**
            asset carries risk and is not minted against
            asset transfered to treasury and rewards minted as payout
         */
        if (address(this).balance >= _amount) {
            // pay with WETH9
            IWETH9(principle).deposit{value: _amount}(); // wrap only what is needed to pay
            IWETH9(principle).transfer(treasury, _amount);
        } else {
            IERC20( principle ).safeTransferFrom( msg.sender, treasury, _amount );
        }
        
        ITreasury( treasury ).mintRewards( address(this), payout );

        // stake newly minted tokens
        if ( useHelper ) {
            IERC20( UMAMI ).approve( stakingHelper, payout );
            IStakingHelper( stakingHelper ).stake( payout, address(this) );
        } else {
            IERC20( UMAMI ).approve( staking, payout );
            IStaking( staking ).stake( payout, address(this) );
            IStaking( staking ).claim( address(this) );
        }
        uint wPayout = IwsUMAMI( wsUMAMI ).sUMAMITowUMAMI( payout );
        
        // total debt is increased
        totalDebt = totalDebt.add( value );
                
        // depositor info is stored
        bondInfo[ _depositor ] = Bond({ 
            payout: bondInfo[ _depositor ].payout.add( wPayout ),
            vesting: terms.vestingTerm,
            lastTime: uint32(block.timestamp),
            pricePaid: priceInUSD
        });

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

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

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

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

        }
    }



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

    /**
     *  @notice allow user to stake payout automatically
     *  @param _amount uint
     *  @return uint
     */
    function send( address _recipient, uint _amount ) internal returns ( uint ) {
        IERC20( sUMAMI ).safeTransfer( _recipient, _amount ); // send payout
        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( UMAMI ).totalSupply().mul( terms.maxPayout ).div( 100000 );
    }

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


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

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

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

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


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

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

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

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


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

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

    /**
     *  @notice calculate amount of UMAMI 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 UMAMI) to the DAO
     *  @return bool
     */
    function recoverLostToken( address _token ) external returns ( bool ) {
        require( _token != UMAMI );
        require( _token != principle );
        IERC20( _token ).safeTransfer( DAO, IERC20( _token ).balanceOf( address(this) ) );
        return true;
    }

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_UMAMI","type":"address"},{"internalType":"address","name":"_sUMAMI","type":"address"},{"internalType":"address","name":"_wsUMAMI","type":"address"},{"internalType":"address","name":"_principle","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_DAO","type":"address"},{"internalType":"address","name":"_feed","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"}],"name":"AdminPulled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addedBy","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"AdminPushed","type":"event"},{"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"},{"inputs":[],"name":"DAO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UMAMI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adjustment","outputs":[{"internalType":"bool","name":"add","type":"bool"},{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint32","name":"buffer","type":"uint32"},{"internalType":"uint32","name":"lastTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"assetPrice","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bondInfo","outputs":[{"internalType":"uint256","name":"payout","type":"uint256"},{"internalType":"uint256","name":"pricePaid","type":"uint256"},{"internalType":"uint32","name":"vesting","type":"uint32"},{"internalType":"uint32","name":"lastTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondPrice","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondPriceInUSD","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtDecay","outputs":[{"internalType":"uint256","name":"decay_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtRatio","outputs":[{"internalType":"uint256","name":"debtRatio_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_maxPrice","type":"uint256"},{"internalType":"address","name":"_depositor","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_controlVariable","type":"uint256"},{"internalType":"uint256","name":"_minimumPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPayout","type":"uint256"},{"internalType":"uint256","name":"_maxDebt","type":"uint256"},{"internalType":"uint256","name":"_initialDebt","type":"uint256"},{"internalType":"uint32","name":"_vestingTerm","type":"uint32"}],"name":"initializeBondTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"id","type":"address"}],"name":"isAdmin","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":"principle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"name":"pushAdmin","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"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldOwner_","type":"address"}],"name":"renounceAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sUMAMI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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 EthBondDepository.PARAMETER","name":"_parameter","type":"uint8"},{"internalType":"uint256","name":"_input","type":"uint256"}],"name":"setBondTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feed","type":"address"}],"name":"setPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"bool","name":"_helper","type":"bool"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingHelper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"standardizedDebtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terms","outputs":[{"internalType":"uint256","name":"controlVariable","type":"uint256"},{"internalType":"uint256","name":"minimumPrice","type":"uint256"},{"internalType":"uint256","name":"maxPayout","type":"uint256"},{"internalType":"uint256","name":"maxDebt","type":"uint256"},{"internalType":"uint32","name":"vestingTerm","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useHelper","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wsUMAMI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6101406040523480156200001257600080fd5b5060405162002fed38038062002fed833981810160405260e08110156200003857600080fd5b5080516020808301516040808501516060860151608087015160a088015160c09098015133600081815297889052858820805460ff1916600117905594519798959793969295919491939092907f55afcb507472af8b6733d5e5c3c14e658463350e0e8cd96ae0768979fa7d27f9908290a36001600160a01b038716620000be57600080fd5b6001600160601b0319606088901b166080526001600160a01b038616620000e457600080fd5b6001600160601b0319606087901b1660a0526001600160a01b0385166200010a57600080fd5b6001600160601b0319606086901b1660c0526001600160a01b0384166200013057600080fd5b6001600160601b0319606085901b1660e0526001600160a01b0383166200015657600080fd5b6001600160601b0319606084901b16610100526001600160a01b0382166200017d57600080fd5b6001600160601b0319606083901b16610120526001600160a01b038116620001a457600080fd5b600280546001600160a01b039092166001600160a01b031990921691909117905550505050505060805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c612d6762000286600039806118f25280611be952806124e9525080610ce55280610f08528061111852806111e0528061122c5250806107e65280610f37528061107552806110e952806111bd5280611ba7525080610b46528061153d5280611821525080611cce528061251f5250806109f452806112cd52806113dd5280611b685280611cf55280611f535250612d676000f3fe60806040526004361061020f5760003560e01c80638dbdbe6d11610118578063cea55f57116100a0578063d7ccfb0b1161006f578063d7ccfb0b14610762578063e0176de814610777578063e392a2621461078c578063f5c2ab5b146107a1578063fc7b9c18146107cf5761020f565b8063cea55f57146106b7578063d24378eb146106cc578063d4d863ce146106e1578063d50256251461071c5761020f565b80639dedb484116100e75780639dedb48414610599578063ae9832cf146105cc578063b4abccba14610610578063cd1234b314610643578063ce2db223146106a25761020f565b80638dbdbe6d1461050a578063904b3ece1461053c57806395a2251f1461055157806398fabd3a146105845761020f565b80634cf088d91161019b578063724e78da1161016a578063724e78da1461046e578063759076e5146104a157806377b81895146104b65780637927ebf8146104cb578063844b5c7c146104f55761020f565b80634cf088d9146103de578063507930ec146103f35780635e1fab0f1461042657806361d027b3146104595761020f565b806324d7806c116101e257806324d7806c146102d45780632f3f470a1461031b578063309bf24b146103305780633444d5771461037e578063451ee4a1146103935761020f565b8063016a42841461021457806301b88ee8146102455780631e321a0f1461028a5780631eee01b0146102bf575b600080fd5b34801561022057600080fd5b506102296107e4565b604080516001600160a01b039092168252519081900360200190f35b34801561025157600080fd5b506102786004803603602081101561026857600080fd5b50356001600160a01b0316610808565b60408051918252519081900360200190f35b34801561029657600080fd5b506102bd600480360360408110156102ad57600080fd5b5060ff8135169060200135610861565b005b3480156102cb57600080fd5b506102296109f2565b3480156102e057600080fd5b50610307600480360360208110156102f757600080fd5b50356001600160a01b0316610a16565b604080519115158252519081900360200190f35b34801561032757600080fd5b50610307610a38565b34801561033c57600080fd5b506102bd600480360360c081101561035357600080fd5b5080359060208101359060408101359060608101359060808101359060a0013563ffffffff16610a48565b34801561038a57600080fd5b50610229610b44565b34801561039f57600080fd5b506103a8610b68565b60408051951515865260208601949094528484019290925263ffffffff9081166060850152166080830152519081900360a00190f35b3480156103ea57600080fd5b50610229610b8e565b3480156103ff57600080fd5b506102786004803603602081101561041657600080fd5b50356001600160a01b0316610b9d565b34801561043257600080fd5b506102bd6004803603602081101561044957600080fd5b50356001600160a01b0316610c48565b34801561046557600080fd5b50610229610ce3565b34801561047a57600080fd5b506102bd6004803603602081101561049157600080fd5b50356001600160a01b0316610d07565b3480156104ad57600080fd5b50610278610d8e565b3480156104c257600080fd5b50610229610daa565b3480156104d757600080fd5b50610278600480360360208110156104ee57600080fd5b5035610db9565b34801561050157600080fd5b50610278610de4565b6102786004803603606081101561052057600080fd5b50803590602081013590604001356001600160a01b0316610e06565b34801561054857600080fd5b5061027861173d565b34801561055d57600080fd5b506102786004803603602081101561057457600080fd5b50356001600160a01b031661175a565b34801561059057600080fd5b506102296118f0565b3480156105a557600080fd5b506102bd600480360360208110156105bc57600080fd5b50356001600160a01b0316611914565b3480156105d857600080fd5b506102bd600480360360808110156105ef57600080fd5b5080351515906020810135906040810135906060013563ffffffff16611a50565b34801561061c57600080fd5b506103076004803603602081101561063357600080fd5b50356001600160a01b0316611b64565b34801561064f57600080fd5b506106766004803603602081101561066657600080fd5b50356001600160a01b0316611c9a565b60408051948552602085019390935263ffffffff91821684840152166060830152519081900360800190f35b3480156106ae57600080fd5b50610229611ccc565b3480156106c357600080fd5b50610278611cf0565b3480156106d857600080fd5b50610278611da8565b3480156106ed57600080fd5b506102bd6004803603604081101561070457600080fd5b506001600160a01b0381351690602001351515611e2e565b34801561072857600080fd5b50610731611ef6565b60408051958652602086019490945284840192909252606084015263ffffffff166080830152519081900360a00190f35b34801561076e57600080fd5b50610278611f0e565b34801561078357600080fd5b50610278611f3f565b34801561079857600080fd5b50610278611fdc565b3480156107ad57600080fd5b506107b6612035565b6040805163ffffffff9092168252519081900360200190f35b3480156107db57600080fd5b50610278612041565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008061081483610b9d565b6001600160a01b0384166000908152600e602052604090205490915061271082106108415780925061085a565b6108576127106108518385612047565b906120a7565b92505b5050919050565b3360009081526020819052604090205460ff166108b3576040805162461bcd60e51b81526020600482018190526024820152600080516020612c7c833981519152604482015290519081900360640190fd5b60008260048111156108c157fe5b1415610923576201fa408110156109095760405162461bcd60e51b8152600401808060200182810382526024815260200180612cbf6024913960400191505060405180910390fd5b6009805463ffffffff191663ffffffff83161790556109ee565b600182600481111561093157fe5b1415610998576103e881111561098e576040805162461bcd60e51b815260206004820181905260248201527f5061796f75742063616e6e6f742062652061626f766520312070657263656e74604482015290519081900360640190fd5b60078190556109ee565b60028260048111156109a657fe5b14156109b65760088190556109ee565b60038260048111156109c457fe5b14156109d45760068190556109ee565b60048260048111156109e257fe5b14156109ee5760058190555b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b03811660009081526020819052604090205460ff165b919050565b600454600160a01b900460ff1681565b3360009081526020819052604090205460ff16610a9a576040805162461bcd60e51b81526020600482018190526024820152600080516020612c7c833981519152604482015290519081900360640190fd5b60055415610ad95760405162461bcd60e51b8152600401808060200182810382526021815260200180612c3a6021913960400191505060405180910390fd5b6040805160a081018252878152602081018790529081018590526060810184905263ffffffff91821660809091018190526005969096556006949094556007929092556008556009805463ffffffff199081169094179055600f556010805490921642909116179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a54600b54600c54600d5460ff9093169263ffffffff80821691600160201b90041685565b6003546001600160a01b031681565b6000610ba7612ba7565b506001600160a01b0382166000908152600e602090815260408083208151608081018352815481526001820154938101939093526002015463ffffffff80821692840192909252600160201b9004811660608301819052919291610c109142811691906120e916565b604083015190915063ffffffff168015610c3b57610c348161085184612710612047565b9350610c40565b600093505b505050919050565b3360009081526020819052604090205460ff16610c9a576040805162461bcd60e51b81526020600482018190526024820152600080516020612c7c833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260208190526040808220805460ff19169055517f82507b75432a5bfae38b4043d050189bb6e16701bd353e27d9b953b97d9712a99190a250565b7f000000000000000000000000000000000000000000000000000000000000000081565b3360009081526020819052604090205460ff16610d59576040805162461bcd60e51b81526020600482018190526024820152600080516020612c7c833981519152604482015290519081900360640190fd5b6001600160a01b038116610d6c57600080fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000610da4610d9b611fdc565b600f54906120e9565b90505b90565b6004546001600160a01b031681565b6000610dde655af3107a4000610851610dd985610dd4611f0e565b61212b565b6122a2565b92915050565b6000610da4620f4240610e00610df8611da8565b610e00611f0e565b90612047565b60006001600160a01b038216610e55576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b610e5d6122ba565b600854600f541115610ead576040805162461bcd60e51b815260206004820152601460248201527313585e0818d85c1858da5d1e481c995858da195960621b604482015290519081900360640190fd5b6000610eb7610de4565b90506000610ec36122df565b905080851015610f045760405162461bcd60e51b8152600401808060200182810382526023815260200180612c9c6023913960400191505060405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631eec5a9a7f0000000000000000000000000000000000000000000000000000000000000000896040518363ffffffff1660e01b815260040180836001600160a01b031681526020018281526020019250505060206040518083038186803b158015610f9b57600080fd5b505afa158015610faf573d6000803e3d6000fd5b505050506040513d6020811015610fc557600080fd5b505190506000610fd482610db9565b90506298968081101561101f576040805162461bcd60e51b815260206004820152600e60248201526d109bdb99081d1bdbc81cdb585b1b60921b604482015290519081900360640190fd5b611027611f3f565b81111561106c576040805162461bcd60e51b815260206004820152600e60248201526d426f6e6420746f6f206c6172676560901b604482015290519081900360640190fd5b8747106111b0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0896040518263ffffffff1660e01b81526004016000604051808303818588803b1580156110ce57600080fd5b505af11580156110e2573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb7f00000000000000000000000000000000000000000000000000000000000000008a6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561117e57600080fd5b505af1158015611192573d6000803e3d6000fd5b505050506040513d60208110156111a857600080fd5b506112059050565b6112056001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f00000000000000000000000000000000000000000000000000000000000000008b612319565b604080516335106f4960e11b81523060048201526024810183905290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691636a20de9291604480830192600092919082900301818387803b15801561127357600080fd5b505af1158015611287573d6000803e3d6000fd5b5050600454600160a01b900460ff161591506113b1905057600480546040805163095ea7b360e01b81526001600160a01b039283169381019390935260248301849052517f00000000000000000000000000000000000000000000000000000000000000009091169163095ea7b39160448083019260209291908290030181600087803b15801561131757600080fd5b505af115801561132b573d6000803e3d6000fd5b505050506040513d602081101561134157600080fd5b50506004805460408051637acb775760e01b8152928301849052306024840152516001600160a01b0390911691637acb775791604480830192600092919082900301818387803b15801561139457600080fd5b505af11580156113a8573d6000803e3d6000fd5b50505050611539565b6003546040805163095ea7b360e01b81526001600160a01b0392831660048201526024810184905290517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561142857600080fd5b505af115801561143c573d6000803e3d6000fd5b505050506040513d602081101561145257600080fd5b505060035460408051637acb775760e01b81526004810184905230602482015290516001600160a01b0390921691637acb7757916044808201926020929091908290030181600087803b1580156114a857600080fd5b505af11580156114bc573d6000803e3d6000fd5b505050506040513d60208110156114d257600080fd5b505060035460408051630f41a04d60e11b815230600482015290516001600160a01b0390921691631e83409a9160248082019260009290919082900301818387803b15801561152057600080fd5b505af1158015611534573d6000803e3d6000fd5b505050505b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663345afa83836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156115a157600080fd5b505af11580156115b5573d6000803e3d6000fd5b505050506040513d60208110156115cb57600080fd5b5051600f549091506115dd9084612379565b600f55604080516080810182526001600160a01b0389166000908152600e6020529190912054819061160f9084612379565b815260208082018890526009805463ffffffff908116604080860191909152428083166060968701526001600160a01b038e166000908152600e865282902087518155948701516001860155908601516002909401805496909501518216600160201b0267ffffffff000000001994831663ffffffff19909716969096179390931694909417909255905487926116aa929181169061237916565b604080518c8152905184917f1fec6dc81f140574bf43f6b1e420ae1dd47928b9d57db8cbd7b8611063b85ae5919081900360200190a46116e8611cf0565b6116f06122df565b6116f8610de4565b6040517f375b221f40939bfd8f49723a17cf7bc6d576ebf72efe2cc3e991826f5b3f390a90600090a46117296123d3565b6117316124de565b98975050505050505050565b6000610da46305f5e100610851611752611da8565b610e00611cf0565b6000611764612ba7565b506001600160a01b0382166000908152600e602090815260408083208151608081018352815481526001820154938101939093526002015463ffffffff80821692840192909252600160201b9004166060820152906117c284610b9d565b9050612710811061085a576001600160a01b038085166000908152600e6020908152604080832083815560018101849055600201805467ffffffffffffffff1916905585518151637b1b35bf60e11b81526004810191909152905192937f0000000000000000000000000000000000000000000000000000000000000000169263f6366b7e9260248084019391929182900301818787803b15801561186657600080fd5b505af115801561187a573d6000803e3d6000fd5b505050506040513d602081101561189057600080fd5b50518351604080519182526000602083015280519293506001600160a01b038816927f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b19281900390910190a26118e68582612510565b9350505050610a33565b7f000000000000000000000000000000000000000000000000000000000000000081565b3360009081526020819052604090205460ff16611966576040805162461bcd60e51b81526020600482018190526024820152600080516020612c7c833981519152604482015290519081900360640190fd5b6001600160a01b0381166119ab5760405162461bcd60e51b8152600401808060200182810382526026815260200180612bee6026913960400191505060405180910390fd5b6001600160a01b03811660009081526020819052604090205460ff1615611a035760405162461bcd60e51b8152600401808060200182810382526025815260200180612ce36025913960400191505060405180910390fd5b6001600160a01b038116600081815260208190526040808220805460ff191660011790555133917f55afcb507472af8b6733d5e5c3c14e658463350e0e8cd96ae0768979fa7d27f991a350565b3360009081526020819052604090205460ff16611aa2576040805162461bcd60e51b81526020600482018190526024820152600080516020612c7c833981519152604482015290519081900360640190fd5b81831115611aed576040805162461bcd60e51b8152602060048201526013602482015272496e6372656d656e7420746f6f206c6172676560681b604482015290519081900360640190fd5b6040805160a0810182529415158086526020860185905290850183905263ffffffff91821660608601819052429092166080909501859052600a805460ff19169091179055600b92909255600c55600d805463ffffffff191690911767ffffffff000000001916600160201b909202919091179055565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611ba557600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415611be457600080fd5b611c927f0000000000000000000000000000000000000000000000000000000000000000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611c5557600080fd5b505afa158015611c69573d6000803e3d6000fd5b505050506040513d6020811015611c7f57600080fd5b50516001600160a01b038516919061254c565b506001919050565b600e6020526000908152604090208054600182015460029092015490919063ffffffff80821691600160201b90041684565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4c57600080fd5b505afa158015611d60573d6000803e3d6000fd5b505050506040513d6020811015611d7657600080fd5b50519050611da2670de0b6b3a7640000610851610dd9611d9c633b9aca00610e00610d8e565b8561212b565b91505090565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611df957600080fd5b505afa158015611e0d573d6000803e3d6000fd5b505050506040513d60a0811015611e2357600080fd5b506020015191505090565b3360009081526020819052604090205460ff16611e80576040805162461bcd60e51b81526020600482018190526024820152600080516020612c7c833981519152604482015290519081900360640190fd5b6001600160a01b038216611e9357600080fd5b8015611ec85760048054600160a01b60ff60a01b19909116176001600160a01b0319166001600160a01b0384161790556109ee565b6004805460ff60a01b19169055600380546001600160a01b0384166001600160a01b03199091161790555050565b60055460065460075460085460095463ffffffff1685565b6000611f2b620186a0610851611f22611cf0565b60055490612047565b600654909150811015610da7575060065490565b6000610da4620186a06108516005600201547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611faa57600080fd5b505afa158015611fbe573d6000803e3d6000fd5b505050506040513d6020811015611fd457600080fd5b505190612047565b6010546000908190611ffa9063ffffffff428116918116906125a316565b600954600f5491925061201f9163ffffffff9182169161085191908086169061204716565b9150600f5482111561203157600f5491505b5090565b60105463ffffffff1681565b600f5481565b60008261205657506000610dde565b8282028284828161206357fe5b04146120a05760405162461bcd60e51b8152600401808060200182810382526021815260200180612c5b6021913960400191505060405180910390fd5b9392505050565b60006120a083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506125e5565b60006120a083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612687565b612133612bdb565b600082116121725760405162461bcd60e51b8152600401808060200182810382526026815260200180612c146026913960400191505060405180910390fd5b8261218c5750604080516020810190915260008152610dde565b71ffffffffffffffffffffffffffffffffffff831161223357600082607085901b816121b457fe5b0490506001600160e01b03811115612213576040805162461bcd60e51b815260206004820152601e60248201527f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f770000604482015290519081900360640190fd5b6040518060200160405280826001600160e01b0316815250915050610dde565b600061224484600160701b856126e1565b90506001600160e01b03811115612213576040805162461bcd60e51b815260206004820152601e60248201527f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f770000604482015290519081900360640190fd5b516612725dd1d243ab6001600160e01b039091160490565b6122c5610d9b611fdc565b600f556010805463ffffffff19164263ffffffff16179055565b60006122f3620186a0610851611f22611cf0565b6006549091508110156123095750600654610da7565b60065415610da757600060065590565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612373908590612781565b50505050565b6000828201838110156120a0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600d546000906123f59063ffffffff600160201b820481169181169061237916565b600b54909150158015906124095750804210155b156124db57600554600a5460ff161561244357600b5460055461242b91612379565b6005819055600c541161243e576000600b555b612465565b600b54600554612452916120e9565b6005819055600c5410612465576000600b555b600d805467ffffffff000000001916600160201b4263ffffffff1602179055600554600b54600a546040805185815260208101949094528381019290925260ff1615156060830152517fb923e581a0f83128e9e1d8297aa52b18d6744310476e0b54509c054cd7a93b2a916080908290030190a1505b50565b471561250e5761250e7f000000000000000000000000000000000000000000000000000000000000000047612832565b565b60006125466001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016848461254c565b50919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261259e908490612781565b505050565b60006120a083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612921565b600081836126715760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561263657818101518382015260200161261e565b50505050905090810190601f1680156126635780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161267d57fe5b0495945050505050565b600081848411156126d95760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561263657818101518382015260200161261e565b505050900390565b60008060006126f08686612980565b91509150600084806126fe57fe5b868809905082811115612712576001820391505b808303925084821061276b576040805162461bcd60e51b815260206004820152601a60248201527f46756c6c4d6174683a3a6d756c4469763a206f766572666c6f77000000000000604482015290519081900360640190fd5b6127768383876129ad565b979650505050505050565b60606127d6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a1d9092919063ffffffff16565b80519091501561259e578080602001905160208110156127f557600080fd5b505161259e5760405162461bcd60e51b815260040180806020018281038252602a815260200180612d08602a913960400191505060405180910390fd5b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b6020831061287e5780518252601f19909201916020918201910161285f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146128e0576040519150601f19603f3d011682016040523d82523d6000602084013e6128e5565b606091505b505090508061259e576040805162461bcd60e51b815260206004820152600360248201526253544560e81b604482015290519081900360640190fd5b60008363ffffffff168363ffffffff16111582906126d95760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561263657818101518382015260200161261e565b60008080600019848609905083850292508281039150828110156129a5576001820391505b509250929050565b600081810382168083816129bd57fe5b0492508085816129c957fe5b0494508081600003816129d857fe5b60028581038087028203028087028203028087028203028087028203028087028203028087028203029586029003909402930460010193909302939093010292915050565b6060612a2c8484600085612a34565b949350505050565b6060612a3f85612ba1565b612a90576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612acf5780518252601f199092019160209182019101612ab0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612b31576040519150601f19603f3d011682016040523d82523d6000602084013e612b36565b606091505b50915091508115612b4a579150612a2c9050565b805115612b5a5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561263657818101518382015260200161261e565b3b151590565b60405180608001604052806000815260200160008152602001600063ffffffff168152602001600063ffffffff1681525090565b6040805160208101909152600081529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734669786564506f696e743a3a6672616374696f6e3a206469766973696f6e206279207a65726f44656274206d757374206265203020666f7220696e697469616c697a6174696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572536c697070616765206c696d69743a206d6f7265207468616e206d617820707269636556657374696e67206d757374206265206c6f6e676572207468616e20333620686f7572734f776e61626c653a206e6577206f776e657220697320616c72656164792061206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204482573aa625a7d6f54f53d499996bd1ad5a1d739c6ad3ad09ce271f3ca3e93964736f6c634300070500330000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e3000000000000000000000000e6d557d416ff5640235119369c7e26aa18a906d70000000000000000000000003cacdc222f8cd8d249e9a45ca4ad2aa381da26920000000000000000000000008d9ba570d6cb60c7e3e0f31343efe75ab8e65fb1000000000000000000000000e8e6a534146efdcadb64c4ce78600e5c9e71fc9700000000000000000000000036c73f33916aa6edbb1b8a0fd63d054c7e0af57a000000000000000000000000a950b2580e0b020d0f13e88937367fd0f1458d12

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

0000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e3000000000000000000000000e6d557d416ff5640235119369c7e26aa18a906d70000000000000000000000003cacdc222f8cd8d249e9a45ca4ad2aa381da26920000000000000000000000008d9ba570d6cb60c7e3e0f31343efe75ab8e65fb1000000000000000000000000e8e6a534146efdcadb64c4ce78600e5c9e71fc9700000000000000000000000036c73f33916aa6edbb1b8a0fd63d054c7e0af57a000000000000000000000000a950b2580e0b020d0f13e88937367fd0f1458d12

-----Decoded View---------------
Arg [0] : _UMAMI (address): 0x1622bf67e6e5747b81866fe0b85178a93c7f86e3
Arg [1] : _sUMAMI (address): 0xe6d557d416ff5640235119369c7e26aa18a906d7
Arg [2] : _wsUMAMI (address): 0x3cacdc222f8cd8d249e9a45ca4ad2aa381da2692
Arg [3] : _principle (address): 0x8d9ba570d6cb60c7e3e0f31343efe75ab8e65fb1
Arg [4] : _treasury (address): 0xe8e6a534146efdcadb64c4ce78600e5c9e71fc97
Arg [5] : _DAO (address): 0x36c73f33916aa6edbb1b8a0fd63d054c7e0af57a
Arg [6] : _feed (address): 0xa950b2580e0b020d0f13e88937367fd0f1458d12

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000001622bf67e6e5747b81866fe0b85178a93c7f86e3
Arg [1] : 000000000000000000000000e6d557d416ff5640235119369c7e26aa18a906d7
Arg [2] : 0000000000000000000000003cacdc222f8cd8d249e9a45ca4ad2aa381da2692
Arg [3] : 0000000000000000000000008d9ba570d6cb60c7e3e0f31343efe75ab8e65fb1
Arg [4] : 000000000000000000000000e8e6a534146efdcadb64c4ce78600e5c9e71fc97
Arg [5] : 00000000000000000000000036c73f33916aa6edbb1b8a0fd63d054c7e0af57a
Arg [6] : 000000000000000000000000a950b2580e0b020d0f13e88937367fd0f1458d12


Deployed ByteCode Sourcemap

22714:17263:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23604:34;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;23604:34:0;;;;;;;;;;;;;;38623:400;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38623:400:0;-1:-1:-1;;;;;38623:400:0;;:::i;:::-;;;;;;;;;;;;;;;;27587:766;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27587:766:0;;;;;;;;;:::i;:::-;;23385:30;;;;;;;;;;;;;:::i;484:93::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;484:93:0;-1:-1:-1;;;;;484:93:0;;:::i;:::-;;;;;;;;;;;;;;;;;;24005:21;;;;;;;;;;;;;:::i;26517:638::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26517:638:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;23530:32::-;;;;;;;;;;;;;:::i;24090:24::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23874:22;;;;;;;;;;;;;:::i;38010:439::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38010:439:0;-1:-1:-1;;;;;38010:439:0;;:::i;1053:154::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1053:154:0;-1:-1:-1;;;;;1053:154:0;;:::i;23674:33::-;;;;;;;;;;;;;:::i;27284:160::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27284:160:0;-1:-1:-1;;;;;27284:160:0;;:::i;37342:106::-;;;;;;;;;;;;;:::i;23927:28::-;;;;;;;;;;;;;:::i;35150:161::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35150:161:0;;:::i;36432:140::-;;;;;;;;;;;;;:::i;29669:2710::-;;;;;;;;;;;;;;;;-1:-1:-1;29669:2710:0;;;;;;;;;;;-1:-1:-1;;;;;29669:2710:0;;:::i;37077:166::-;;;;;;;;;;;;;:::i;32502:626::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32502:626:0;-1:-1:-1;;;;;32502:626:0;;:::i;23753:28::-;;;;;;;;;;;;;:::i;711:330::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;711:330:0;-1:-1:-1;;;;;711:330:0;;:::i;28549:441::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28549:441:0;;;;;;;;;;;;;;;;;;;;;:::i;39209:270::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39209:270:0;-1:-1:-1;;;;;39209:270:0;;:::i;24156:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24156:42:0;-1:-1:-1;;;;;24156:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23457:31;;;;;;;;;;;;;:::i;36698:272::-;;;;;;;;;;;;;:::i;36187:140::-;;;;;;;;;;;;;:::i;29123:317::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29123:317:0;;;;;;;;;;:::i;24035:18::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35416:243;;;;;;;;;;;;;:::i;34879:142::-;;;;;;;;;;;;;:::i;37550:297::-;;;;;;;;;;;;;:::i;24331:23::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24249:21;;;;;;;;;;;;;:::i;23604:34::-;;;:::o;38623:400::-;38695:19;38728:18;38749:30;38767:10;38749:16;:30::i;:::-;-1:-1:-1;;;;;38804:22:0;;38790:11;38804:22;;;:8;:22;;;;;:29;38728:51;;-1:-1:-1;38868:5:0;38851:22;;38846:170;;38908:6;38891:23;;38846:170;;;38964:40;38997:5;38964:27;:6;38976:13;38964:10;:27::i;:::-;:31;;:40::i;:::-;38947:57;;38846:170;38623:400;;;;;:::o;27587:766::-;634:10;626:7;:19;;;;;;;;;;;;;617:66;;;;;-1:-1:-1;;;617:66:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;617:66:0;;;;;;;;;;;;;;;27698:17:::1;27684:10;:31;;;;;;;;;27679:667;;;27757:6;27747;:16;;27738:67;;;;-1:-1:-1::0;;;27738:67:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27820:17:::0;:34;;-1:-1:-1;;27820:34:0::1;;::::0;::::1;;::::0;;27679:667:::1;;;27891:16;27877:10;:30;;;;;;;;;27872:474;;;27949:4;27939:6;:14;;27930:61;;;::::0;;-1:-1:-1;;;27930:61:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;28006:15:::0;:24;;;27872:474:::1;;;28067:14;28053:10;:28;;;;;;;;;28048:298;;;28104:13:::0;:22;;;28048:298:::1;;;28163:18;28149:10;:32;;;;;;;;;28144:202;;;28204:18:::0;:27;;;28144:202:::1;;;28268:13;28254:10;:27;;;;;;;;;28249:97;;;28304:5;:30:::0;;;28249:97:::1;27587:766:::0;;:::o;23385:30::-;;;:::o;484:93::-;-1:-1:-1;;;;;558:11:0;;534:4;558:11;;;;;;;;;;;;;484:93;;;;:::o;24005:21::-;;;-1:-1:-1;;;24005:21:0;;;;;:::o;26517:638::-;634:10;626:7;:19;;;;;;;;;;;;;617:66;;;;;-1:-1:-1;;;617:66:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;617:66:0;;;;;;;;;;;;;;;26765:5:::1;:21:::0;:26;26756:74:::1;;;;-1:-1:-1::0;;;26756:74:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26849:217;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;;26841:5:::1;:225:::0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26841:225:0;;::::1;::::0;;::::1;::::0;;27077:9:::1;:24:::0;27112:9:::1;:35:::0;;;;::::1;27131:15;27112:35:::0;;::::1;;::::0;;26517:638::o;23530:32::-;;;:::o;24090:24::-;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;24090:24:0;;;;:::o;23874:22::-;;;-1:-1:-1;;;;;23874:22:0;;:::o;38010:439::-;38080:19;38113:16;;:::i;:::-;-1:-1:-1;;;;;;38132:22:0;;;;;;:8;:22;;;;;;;;38113:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38113:41:0;;;;;;;;;;;;38132:22;38189:44;;38196:15;38189:27;;;38113:41;38189:27;:44;:::i;:::-;38259:12;;;;38165:68;;-1:-1:-1;38244:27:0;;38289:11;;38284:158;;38335:44;38370:7;38335:29;:16;38357:5;38335:20;:29::i;:44::-;38318:61;;38284:158;;;38429:1;38412:18;;38284:158;38010:439;;;;;;:::o;1053:154::-;634:10;626:7;:19;;;;;;;;;;;;;617:66;;;;;-1:-1:-1;;;617:66:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;617:66:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;1133:18:0;::::1;1154:5;1133:18:::0;;;::::1;::::0;;;;;;;:26;;-1:-1:-1;;1133:26:0::1;::::0;;1175:24;::::1;::::0;1154:5;1175:24:::1;1053:154:::0;:::o;23674:33::-;;;:::o;27284:160::-;634:10;626:7;:19;;;;;;;;;;;;;617:66;;;;;-1:-1:-1;;;617:66:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;617:66:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;27362:19:0;::::1;27353:30;;;::::0;::::1;;27394:9;:42:::0;;-1:-1:-1;;;;;;27394:42:0::1;-1:-1:-1::0;;;;;27394:42:0;;;::::1;::::0;;;::::1;::::0;;27284:160::o;37342:106::-;37387:4;37412:28;37427:11;:9;:11::i;:::-;37412:9;;;:13;:28::i;:::-;37405:35;;37342:106;;:::o;23927:28::-;;;-1:-1:-1;;;;;23927:28:0;;:::o;35150:161::-;35206:4;35231:72;35297:4;35231:60;:42;35252:6;35260:11;:9;:11::i;:::-;35231:19;:42::i;:::-;:58;:60::i;:72::-;35224:79;35150:161;-1:-1:-1;;35150:161:0:o;36432:140::-;36480:11;36514:50;36559:3;36514:39;36537:12;:10;:12::i;:::-;36514:11;:9;:11::i;:::-;:15;;:39::i;29669:2710::-;29799:4;-1:-1:-1;;;;;29826:24:0;;29817:54;;;;;-1:-1:-1;;;29817:54:0;;;;;;;;;;;;-1:-1:-1;;;29817:54:0;;;;;;;;;;;;;;;29884:11;:9;:11::i;:::-;29928:13;;29915:9;;:26;;29906:61;;;;;-1:-1:-1;;;29906:61:0;;;;;;;;;;;;-1:-1:-1;;;29906:61:0;;;;;;;;;;;;;;;29988:15;30006:16;:14;:16::i;:::-;29988:34;;30056:16;30075:12;:10;:12::i;:::-;30056:31;;30122:11;30109:9;:24;;30100:74;;;;-1:-1:-1;;;30100:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30210:10;30234:8;-1:-1:-1;;;;;30223:29:0;;30254:9;30265:7;30223:51;;;;;;;;;;;;;-1:-1:-1;;;;;30223:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30223:51:0;;-1:-1:-1;30285:11:0;30299:18;30223:51;30299:9;:18::i;:::-;30285:32;;30381:8;30371:6;:18;;30362:47;;;;;-1:-1:-1;;;30362:47:0;;;;;;;;;;;;-1:-1:-1;;;30362:47:0;;;;;;;;;;;;;;;30488:11;:9;:11::i;:::-;30478:6;:21;;30469:49;;;;;-1:-1:-1;;;30469:49:0;;;;;;;;;;;;-1:-1:-1;;;30469:49:0;;;;;;;;;;;;;;;30763:7;30738:21;:32;30734:336;;30825:9;-1:-1:-1;;;;;30818:25:0;;30851:7;30818:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30918:9;-1:-1:-1;;;;;30911:26:0;;30938:8;30948:7;30911:45;;;;;;;;;;;;;-1:-1:-1;;;;;30911:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30734:336:0;;-1:-1:-1;30734:336:0;;30989:69;-1:-1:-1;;;;;30997:9:0;30989:36;31027:10;31039:8;31049:7;30989:36;:69::i;:::-;31090:58;;;-1:-1:-1;;;31090:58:0;;31133:4;31090:58;;;;;;;;;;;;-1:-1:-1;;;;;31101:8:0;31090:33;;;;:58;;;;;-1:-1:-1;;31090:58:0;;;;;;;-1:-1:-1;31090:33:0;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31204:9:0;;-1:-1:-1;;;31204:9:0;;;;31199:366;;-1:-1:-1;31199:366:0;;-1:-1:-1;31199:366:0;31256:13;;;31231:48;;;-1:-1:-1;;;31231:48:0;;-1:-1:-1;;;;;31256:13:0;;;31231:48;;;;;;;;;;;;;;31239:5;31231:23;;;;;;:48;;;;;;;;;;;;;;-1:-1:-1;31231:23:0;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31310:13:0;;;31294:62;;;-1:-1:-1;;;31294:62:0;;;;;;;;31349:4;31294:62;;;;;-1:-1:-1;;;;;31310:13:0;;;;31294:37;;:62;;;;;31310:13;;31294:62;;;;;;;31310:13;;31294:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31199:366;;;31414:7;;31389:42;;;-1:-1:-1;;;31389:42:0;;-1:-1:-1;;;;;31414:7:0;;;31389:42;;;;;;;;;;;;31397:5;31389:23;;;;;;:42;;;;;;;;;;;;;;;-1:-1:-1;31389:23:0;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31456:7:0;;31446:50;;;-1:-1:-1;;;31446:50:0;;;;;;;;31489:4;31446:50;;;;;;-1:-1:-1;;;;;31456:7:0;;;;31446:25;;:50;;;;;31389:42;;31446:50;;;;;;;;31456:7;;31446:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31521:7:0;;31511:42;;;-1:-1:-1;;;31511:42:0;;31546:4;31511:42;;;;;;-1:-1:-1;;;;;31521:7:0;;;;31511:25;;:42;;;;;31521:7;;31511:42;;;;;;;;31521:7;;31511:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31199:366;31575:12;31600:7;-1:-1:-1;;;;;31590:34:0;;31626:6;31590:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31590:44:0;31703:9;;31590:44;;-1:-1:-1;31703:22:0;;31718:5;31703:13;:22::i;:::-;31691:9;:34;31816:210;;;;;;;;-1:-1:-1;;;;;31845:22:0;;-1:-1:-1;31845:22:0;;;:8;:22;;;;;;:29;31816:210;;31845:44;;31880:7;31845:33;:44::i;:::-;31816:210;;;;;;;;;31913:17;;;;;;;31816:210;;;;;;;;31962:15;31816:210;;;;;;;;-1:-1:-1;;;;;31791:22:0;;-1:-1:-1;31791:22:0;;;:8;:22;;;;;:235;;;;;;;;31913:17;31791:235;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31791:235:0;-1:-1:-1;;31791:235:0;;;-1:-1:-1;;31791:235:0;;;;;;;;;;;;;;;;;;32135:17;;32004:10;;32114:40;;31962:15;32135:17;;;32114:19;:40;:::i;:::-;32083:85;;;;;;;;32105:7;;32083:85;;;;;;;;;;32234:11;:9;:11::i;:::-;32220:12;:10;:12::i;:::-;32202:16;:14;:16::i;:::-;32184:63;;;;;;;32260:8;:6;:8::i;:::-;32311:11;:9;:11::i;:::-;32364:7;29669:2710;-1:-1:-1;;;;;;;;29669:2710:0:o;37077:166::-;37134:4;37159:50;37204:3;37159:39;37182:12;:10;:12::i;:::-;37159:11;:9;:11::i;32502:626::-;32559:4;32585:16;;:::i;:::-;-1:-1:-1;;;;;;32604:22:0;;;;;;:8;:22;;;;;;;;32585:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;32585:41:0;;;;;;;;32658:30;32614:10;32658:16;:30::i;:::-;32637:51;;32783:5;32766:13;:22;32761:360;;-1:-1:-1;;;;;32832:22:0;;;;;;;:8;:22;;;;;;;;32825:29;;;;;;;;;;;;;-1:-1:-1;;32825:29:0;;;32939:11;;32903:49;;-1:-1:-1;;;32903:49:0;;32825:29;32903:49;;;;;;;;32832:22;;32913:7;32903:34;;;;:49;;;;;32832:22;;32903:49;;;;;;32832:22;32903:34;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32903:49:0;32998:11;;32972:42;;;;;;32998:11;32903:49;32972:42;;;;;32903:49;;-1:-1:-1;;;;;;32972:42:0;;;;;;;;;;;;;33054:26;33060:10;33072:6;33054:4;:26::i;:::-;33047:33;;;;;;;23753:28;;;:::o;711:330::-;634:10;626:7;:19;;;;;;;;;;;;;617:66;;;;;-1:-1:-1;;;617:66:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;617:66:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;798:23:0;::::1;789:75;;;;-1:-1:-1::0;;;789:75:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;885:18:0;::::1;:7;:18:::0;;;::::1;::::0;;;;;;;::::1;;884:19;875:70;;;;-1:-1:-1::0;;;875:70:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;956:18:0;::::1;:7;:18:::0;;;::::1;::::0;;;;;;;:25;;-1:-1:-1;;956:25:0::1;977:4;956:25;::::0;;997:36;1010:10:::1;::::0;997:36:::1;::::0;::::1;711:330:::0;:::o;28549:441::-;634:10;626:7;:19;;;;;;;;;;;;;617:66;;;;;-1:-1:-1;;;617:66:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;617:66:0;;;;;;;;;;;;;;;28737:7:::1;28723:10;:21;;28714:55;;;::::0;;-1:-1:-1;;;28714:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28714:55:0;;;;;;;;;;;;;::::1;;28795:187;::::0;;::::1;::::0;::::1;::::0;;;::::1;;::::0;;;::::1;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;28954:15:::1;28795:187:::0;;::::1;::::0;;;;;;;28782:10:::1;:200:::0;;-1:-1:-1;;28782:200:0::1;::::0;;::::1;::::0;;;;;;;;;;;;-1:-1:-1;;28782:200:0::1;::::0;;::::1;-1:-1:-1::0;;28782:200:0::1;-1:-1:-1::0;;;28782:200:0;;::::1;::::0;;;::::1;::::0;;28549:441::o;39209:270::-;39272:4;39309:5;-1:-1:-1;;;;;39299:15:0;:6;-1:-1:-1;;;;;39299:15:0;;;39290:26;;;;;;39346:9;-1:-1:-1;;;;;39336:19:0;:6;-1:-1:-1;;;;;39336:19:0;;;39327:30;;;;;;39368:81;39399:3;39412:6;-1:-1:-1;;;;;39404:26:0;;39440:4;39404:43;;;;;;;;;;;;;-1:-1:-1;;;;;39404:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39404:43:0;-1:-1:-1;;;;;39368:29:0;;;:81;:29;:81::i;:::-;-1:-1:-1;39467:4:0;39209:270;;;:::o;24156:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;24156:42:0;;;;:::o;23457:31::-;;;:::o;36698:272::-;36741:15;36773:11;36795:5;-1:-1:-1;;;;;36787:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36787:29:0;;-1:-1:-1;36840:122:0;36956:4;36840:110;:92;36875:24;36894:3;36875:13;:11;:13::i;:24::-;36915:6;36840:19;:92::i;:122::-;36827:135;;36698:272;;:::o;36187:140::-;36230:3;36250:9;36269;;;;;;;;;-1:-1:-1;;;;;36269:9:0;-1:-1:-1;;;;;36269:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36269:27:0;;;;-1:-1:-1;;36187:140:0;:::o;29123:317::-;634:10;626:7;:19;;;;;;;;;;;;;617:66;;;;;-1:-1:-1;;;617:66:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;617:66:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;29218:22:0;::::1;29209:33;;;::::0;::::1;;29258:7;29253:180;;;29283:9;:16:::0;;-1:-1:-1;;;;;;;29283:16:0;;::::1;;-1:-1:-1::0;;;;;;29314:24:0::1;-1:-1:-1::0;;;;;29314:24:0;::::1;;::::0;;29253:180:::1;;;29371:9;:17:::0;;-1:-1:-1;;;;29371:17:0::1;::::0;;29403:7:::1;:18:::0;;-1:-1:-1;;;;;29403:18:0;::::1;-1:-1:-1::0;;;;;;29403:18:0;;::::1;;::::0;;29123:317;;:::o;24035:18::-;;;;;;;;;;;;;;:::o;35416:243::-;35459:11;35501:51;35547:3;35501:40;35528:11;:9;:11::i;:::-;35501:5;:21;;:25;:40::i;:51::-;35577:18;;35492:60;;-1:-1:-1;35568:27:0;;35563:89;;;-1:-1:-1;35622:18:0;;35416:243;:::o;34879:142::-;34922:4;34947:66;35005:6;34947:52;34982:5;:15;;;34955:5;-1:-1:-1;;;;;34947:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34947:29:0;;:33;:52::i;37550:297::-;37672:9;;37593:11;;;;37641:42;;37672:9;37648:15;37641:29;;;37672:9;;;37641:29;:42;:::i;:::-;37739:17;;37703:9;;37618:65;;-1:-1:-1;37703:55:0;;37739:17;;;;;37703:30;;:9;:30;;;;:13;:30;:::i;:55::-;37694:64;;37783:9;;37774:6;:18;37769:71;;;37819:9;;37810:18;;37769:71;37550:297;;:::o;24331:23::-;;;;;;:::o;24249:21::-;;;;:::o;2116:250::-;2174:7;2198:6;2194:47;;-1:-1:-1;2228:1:0;2221:8;;2194:47;2265:5;;;2269:1;2265;:5;:1;2289:5;;;;;:10;2281:56;;;;-1:-1:-1;;;2281:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2357:1;2116:250;-1:-1:-1;;;2116:250:0:o;2374:132::-;2432:7;2459:39;2463:1;2466;2459:39;;;;;;;;;;;;;;;;;:3;:39::i;1429:136::-;1487:7;1514:43;1518:1;1521;1514:43;;;;;;;;;;;;;;;;;:3;:43::i;20207:719::-;20288:16;;:::i;:::-;20339:1;20325:11;:15;20317:66;;;;-1:-1:-1;;;20317:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20398:14;20394:50;;-1:-1:-1;20421:23:0;;;;;;;;;-1:-1:-1;20421:23:0;;20414:30;;20394:50;20461:24;;;20457:462;;20502:14;20547:11;19633:3;20520:23;;;20547:11;20519:39;;;;;;-1:-1:-1;;;;;;20581:21:0;;;20573:64;;;;;-1:-1:-1;;;20573:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20659:26;;;;;;;;20677:6;-1:-1:-1;;;;;20659:26:0;;;;20652:33;;;;;20457:462;20718:14;20735:45;20751:9;-1:-1:-1;;;20768:11:0;20735:15;:45::i;:::-;20718:62;-1:-1:-1;;;;;;20803:21:0;;;20795:64;;;;;-1:-1:-1;;;20795:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;20062:137;20164:7;20175:16;-1:-1:-1;;;;;20159:13:0;;;:32;;20062:137::o;34599:135::-;34652:28;34667:11;:9;:11::i;34652:28::-;34640:9;:40;34691:9;:35;;-1:-1:-1;;34691:35:0;34710:15;34691:35;;;;;34599:135::o;35786:327::-;35827:11;35861:51;35907:3;35861:40;35888:11;:9;:11::i;35861:51::-;35937:18;;35852:60;;-1:-1:-1;35928:27:0;;35923:183;;;-1:-1:-1;35982:18:0;;35923:183;;;36031:18;;:23;36026:80;;36093:1;36072:18;:22;35786:327;:::o;16730:205::-;16858:68;;;-1:-1:-1;;;;;16858:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16858:68:0;-1:-1:-1;;;16858:68:0;;;16831:96;;16851:5;;16831:19;:96::i;:::-;16730:205;;;;:::o;1240:181::-;1298:7;1330:5;;;1354:6;;;;1346:46;;;;;-1:-1:-1;;;1346:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;33609:929;33694:17;;33648:18;;33669:44;;33694:17;-1:-1:-1;;;33669:19:0;;;;;33694:17;;;33669:23;:44;:::i;:::-;33729:15;;33648:65;;-1:-1:-1;33729:20:0;;;;:56;;;33772:13;33753:15;:32;;33729:56;33725:806;;;33818:5;:21;33859:10;:14;;;33854:494;;;33946:15;;33919:5;:21;:44;;:25;:44::i;:::-;33895:5;:68;;;34012:17;;-1:-1:-1;33982:112:0;;34073:1;34055:15;:19;33982:112;33854:494;;;34185:15;;34158:5;:21;:44;;:25;:44::i;:::-;34134:5;:68;;;34251:17;;-1:-1:-1;34221:112:0;;34312:1;34294:15;:19;34221:112;34362:19;:45;;-1:-1:-1;;34362:45:0;-1:-1:-1;;;34391:15:0;34362:45;;;;;;34463:5;:21;34486:15;;34362:10;34503:14;34427:92;;;;;;;;;;;;;;;;;;;;34503:14;;34427:92;;;;;;;;;;;;;;;;;33725:806;;33609:929;:::o;39487:123::-;39532:21;:25;39528:74;;39559:43;39575:3;39580:21;39559:15;:43::i;:::-;39487:123::o;33330:187::-;33399:4;33417:52;-1:-1:-1;;;;;33425:6:0;33417:29;33448:10;33460:7;33417:29;:52::i;:::-;-1:-1:-1;33502:7:0;33330:187;-1:-1:-1;33330:187:0:o;16545:177::-;16655:58;;;-1:-1:-1;;;;;16655:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16655:58:0;-1:-1:-1;;;16655:58:0;;;16628:86;;16648:5;;16628:19;:86::i;:::-;16545:177;;;:::o;1773:137::-;1831:6;1857:45;1863:1;1866;1857:45;;;;;;;;;;;;;;;;;:5;:45::i;2514:189::-;2600:7;2635:12;2628:5;2620:28;;;;-1:-1:-1;;;2620:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2659:9;2675:1;2671;:5;;;;;;;2514:189;-1:-1:-1;;;;;2514:189:0:o;1573:192::-;1659:7;1695:12;1687:6;;;;1679:29;;;;-1:-1:-1;;;1679:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1731:5:0;;;1573:192::o;19107:347::-;19213:7;19234:9;19245;19258:13;19266:1;19269;19258:7;:13::i;:::-;19233:38;;;;19282:10;19308:1;19295:15;;;;;19305:1;19302;19295:15;19282:28;;19330:1;19325:2;:6;19321:18;;;19338:1;19333:6;;;;19321:18;19355:2;19350:7;;;;19380:1;19376;:5;19368:44;;;;;-1:-1:-1;;;19368:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19430:16;19438:1;19441;19444;19430:7;:16::i;:::-;19423:23;19107:347;-1:-1:-1;;;;;;;19107:347:0:o;17948:420::-;18031:23;18057:69;18085:4;18057:69;;;;;;;;;;;;;;;;;18065:5;-1:-1:-1;;;;;18057:27:0;;;:69;;;;;:::i;:::-;18141:17;;18031:95;;-1:-1:-1;18141:21:0;18137:224;;18283:10;18272:30;;;;;;;;;;;;;;;-1:-1:-1;18272:30:0;18264:85;;;;-1:-1:-1;;;18264:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39806:168;39919:12;;;39879;39919;;;;;;;;;-1:-1:-1;;;;;39897:7:0;;;39912:5;;39897:35;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;39897:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39878:54;;;39951:7;39943:23;;;;;-1:-1:-1;;;39943:23:0;;;;;;;;;;;;-1:-1:-1;;;39943:23:0;;;;;;;;;;;;;;1918:190;2004:6;2036:1;2031:6;;:1;:6;;;;2039:12;2023:29;;;;;-1:-1:-1;;;2023:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18399:210;18460:9;;;-1:-1:-1;;18516:1:0;18513;18506:25;18493:38;;18550:1;18546;:5;18542:9;;18571:1;18566:2;:6;18562:10;;18592:1;18587:2;:6;18583:18;;;18600:1;18595:6;;;;18583:18;18399:210;;;;;;:::o;18617:482::-;18723:7;18762:2;;;18758:6;;;18763:1;18758:6;18775:9;;;;;;;18800:4;18795:9;;;;;;;;;18835:4;18827;18826:5;;18825:14;;;;;18884:1;:9;;;18913:5;;;18909:9;;18904:14;18938:5;;;18934:9;;18929:14;18963:5;;;18959:9;;18954:14;18988:5;;;18984:9;;18979:14;19013:5;;;19009:9;;19004:14;19038:5;;;19034:9;;19029:14;19063:5;;;19059:9;;19054:14;;;18825;;18842:1;18825:18;18820:24;;;;18815:29;;;;19086:5;;18617:482;-1:-1:-1;;18617:482:0:o;4215:232::-;4354:12;4386:53;4409:6;4417:4;4423:1;4426:12;4386:22;:53::i;:::-;4379:60;4215:232;-1:-1:-1;;;;4215:232:0:o;5273:1025::-;5449:12;5482:18;5493:6;5482:10;:18::i;:::-;5474:60;;;;;-1:-1:-1;;;5474:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5608:12;5622:23;5649:6;-1:-1:-1;;;;;5649:11:0;5669:8;5680:4;5649:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5649:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5607:78;;;;5700:7;5696:595;;;5731:10;-1:-1:-1;5724:17:0;;-1:-1:-1;5724:17:0;5696:595;5845:17;;:21;5841:439;;6108:10;6102:17;6169:15;6156:10;6152:2;6148:19;6141:44;6056:148;6244:20;;-1:-1:-1;;;6244:20:0;;;;;;;;;;;;;;;;;6251:12;;6244:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3388:233;3566:20;3605:8;;;3388:233::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

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