Contract 0xbf2a35efcd85e790f02458db4a3e2f29818521c5

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb7a6d8680d358ad33e875d3476280a9c7ffc23ad888823e16b839458bc1e9f71Redeem295419212022-06-14 3:22:57177 days 16 hrs ago0xfedc9cefff00af187133a76f1f2188b556ea5283 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.003263488365 61.743006763
0xdfa9468feb9c67ee7bc2bd35cbafc3fec2007e4c61309bcec19ce1156ab67244Redeem295418942022-06-14 3:22:03177 days 16 hrs ago0x375c1dc69f05ff526498c8aca48805eec52861d5 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.005183435197 77.893683936
0x3229d841b52dfe74187c2983cf7fda6421b03e49284dd0b1f92e7e4e1884a341Redeem276933202022-04-28 22:37:34223 days 21 hrs ago0x4c679d206d5c5927e5869b8e5e1502087e185d21 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.002826239144 42.47109692
0xb00d20129a090d4353012746cc15294103311ccd76e406d31b3378f730715fc3Redeem275257942022-04-24 16:38:43228 days 3 hrs ago0x10080bb62dafe52753af9d6bdd0bd14ac313bf43 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.002224987494 33.435832809
0xd01a417dfb82ff40862de31d9c4f1b4cdd4201ff36373d26fd9628cea9ba3e15Redeem267565462022-04-05 2:26:06247 days 17 hrs ago0x5d521897799769bd79223c294e79a2c6316c9818 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.001992199676 29.937631325
0xa7ac26dbc085186a3d7d2cb012a6498155b10c9626a52fa5dea706b19a1dec8bRedeem248886462022-02-13 10:07:39298 days 9 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.004070605029 77.000000553
0x924855355db0dea65c42a46a3ad8d6ddacc57b3c69f971a765716849429b3256Redeem248765162022-02-13 2:47:19298 days 17 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.005661832 88.000000014
0xc523c2e1cc346bb9b57c627eca2637a6f1bf4299f4dde6e0f08a07ff2d707e2bRedeem248657902022-02-12 20:20:35298 days 23 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.007680166629 119.370313958
0x963bc23f44b623e0f049142c070518719f3fcf776611ff03f2da340cdfed9068Redeem248433682022-02-12 6:47:23299 days 13 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.00495410341 77.000006381
0x19edabce3b9dc0183af5596f44711ea091166cc869ed4a20da77fa7a83ff301eRedeem248205552022-02-11 17:15:06300 days 2 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.004954261385 77.002461727
0x9da6045719210289ef856264ef68f38748a5ad1fa3913ab26ae74ec8c79bed61Deposit248192052022-02-11 16:28:42300 days 3 hrs ago0xfedc9cefff00af187133a76f1f2188b556ea5283 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.012176459391 29.878022451
0xefd7ca7ed02000d4fe61f0613b4cae81ed6d7e3e9bc5c36099f1c08e79ff4a11Redeem248090702022-02-11 9:59:51300 days 9 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.004954103132 77.000002052
0x2cce49a83fee3b406a48d692d53af76a8f29dc02ca36f274e0887f0af98cf6b6Redeem247975682022-02-11 2:31:55300 days 17 hrs ago0xb35526875f16e80c8c14042db32d909938d04826 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.002039941151 38.58774522
0xc094ae7c10dd083ce1aad936a2fe821e21992dadb499466594122863d062f240Redeem247965332022-02-11 1:47:30300 days 18 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.004954334048 77.003591105
0x8af764e9161914cd96449647483951afe50979cd566178212b1f48e85e5ab17fRedeem247874652022-02-10 19:59:26300 days 23 hrs ago0xfedc9cefff00af187133a76f1f2188b556ea5283 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.001110638501 13.63968341
0x3f7df71d8b8d7f6e5d49c62214dde88efbcc09b801560814d5a1db55f3a4cacaRedeem247865522022-02-10 19:21:36301 days 27 mins ago0xb35526875f16e80c8c14042db32d909938d04826 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.00407195 50
0x09c12d895f1137bfa3da6464eabdf4b68125b12e2ed354b433585b922bcbcb62Redeem247858372022-02-10 18:57:02301 days 51 mins ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.005073774822 78.860019939
0x030efc6b0ba94618abdd252507b07508ca8590a76c328c7a0089fe229514957eRedeem247776182022-02-10 13:56:51301 days 5 hrs ago0xb35526875f16e80c8c14042db32d909938d04826 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.002845680383 44.229477978
0xa103a1a02ca6f8d7d9976d664181ddab61923a885a4a5b63a431d34288c3ed15Redeem247747052022-02-10 12:13:56301 days 7 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.004954103001 77.000000021
0xb04756926e0134c705647334449f2cd9b4a8accf87235a93b5f349d81335cbdeRedeem247629502022-02-10 5:01:29301 days 14 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.004954103003 77.000000056
0x4658087ed3df76d01e5d929ca2f1b78f651d5f7ef0955f9aafa5b2ce5d76302eRedeem247517172022-02-09 22:20:00301 days 21 hrs ago0xb35526875f16e80c8c14042db32d909938d04826 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.002573560024 40.000000378
0x5f362f6f4a272ea0a878942c8094ab705b6956dde24ada01795a956603b2cf8fRedeem247512872022-02-09 22:03:04301 days 21 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.004954103001 77.000000027
0xb7fd70826d7b54cec3b61f6d0683cae4be2336a9fa74711342b93fe21a326cd0Redeem247402592022-02-09 15:28:40302 days 4 hrs ago0xb35526875f16e80c8c14042db32d909938d04826 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.002452517933 38.11868282
0x6b45f69f1e912962ea0571e9ee60bf10b62975249bc4b9d68f5e1dff387f8084Redeem247401092022-02-09 15:23:32302 days 4 hrs ago0x43b710129d997f19d996d8529ae5ed44839ccfcf IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.004962159727 77.125223075
0x42ec920c63b3ed43d7487b361963fe8b6a9b30a82ec466d0d6e08ef21ec80060Redeem247289242022-02-09 8:52:20302 days 10 hrs ago0xb35526875f16e80c8c14042db32d909938d04826 IN  KlimaDAO: BCT/USDC Bonds V10 MATIC0.003345628 52.000000015
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KlimaBondDepository

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-10-20
*/

// ██╗  ██╗██╗     ██╗███╗   ███╗ █████╗     ██████╗  █████╗  ██████╗
// ██║ ██╔╝██║     ██║████╗ ████║██╔══██╗    ██╔══██╗██╔══██╗██╔═══██╗
// █████╔╝ ██║     ██║██╔████╔██║███████║    ██║  ██║███████║██║   ██║
// ██╔═██╗ ██║     ██║██║╚██╔╝██║██╔══██║    ██║  ██║██╔══██║██║   ██║
// ██║  ██╗███████╗██║██║ ╚═╝ ██║██║  ██║    ██████╔╝██║  ██║╚██████╔╝
// ╚═╝  ╚═╝╚══════╝╚═╝╚═╝     ╚═╝╚═╝  ╚═╝    ╚═════╝ ╚═╝  ╚═╝ ╚═════╝


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

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

    function renounceManagement() external;

    function pushManagement( address newOwner_ ) external;

    function pullManagement() external;
}

contract Ownable is IOwnable {

    address internal _owner;
    address internal _newOwner;

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

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

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

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

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

    function pushManagement( address newOwner_ ) public virtual override onlyPolicy() {
        require( newOwner_ != address(0), "Ownable: new owner is the zero address");
        emit OwnershipPushed( _owner, newOwner_ );
        _newOwner = newOwner_;
    }

    function pullManagement() public virtual override {
        require( msg.sender == _newOwner, "Ownable: must be new owner to pull");
        emit OwnershipPulled( _owner, _newOwner );
        _owner = _newOwner;
    }
}

library SafeMath {

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

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

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

library Address {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return string(_addr);

    }
}

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

    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

abstract contract ERC20 is IERC20 {

    using SafeMath for uint256;

    // TODO comment actual hash value.
    bytes32 constant private ERC20TOKEN_ERC1820_INTERFACE_ID = keccak256( "ERC20Token" );

    mapping (address => uint256) internal _balances;

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

    uint256 internal _totalSupply;

    string internal _name;

    string internal _symbol;

    uint8 internal _decimals;

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

interface IERC2612Permit {

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

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

library Counters {
    using SafeMath for uint256;

    struct Counter {

        uint256 _value; // default: 0
    }

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

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

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

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

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

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

    bytes32 public DOMAIN_SEPARATOR;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

library FixedPoint {

    struct uq112x112 {
        uint224 _x;
    }

    struct uq144x112 {
        uint256 _x;
    }

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

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

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

        return uint(self._x) / 5192296858534827;
    }

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

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

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

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

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

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

contract KlimaBondDepository is Ownable {

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




    /* ======== 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 KLIMA; // token given as payment for bond
    address public immutable principle; // token used to create bond
    address public immutable treasury; // mints KLIMA when receives principle
    address public immutable DAO; // receives profit share from bond

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

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

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

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

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




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

    // Info for creating new bonds
    struct Terms {
        uint controlVariable; // scaling variable for price
        uint vestingTerm; // in blocks
        uint minimumPrice; // vs principle value
        uint maxPayout; // in thousandths of a %. i.e. 500 = 0.5%
        uint fee; // as % of bond payout, in hundreths. ( 500 = 5% = 0.05 for every 1 paid)
        uint maxDebt; // 9 decimal debt ratio, max % total supply created as debt
    }

    // Info for bond holder
    struct Bond {
        uint payout; // KLIMA remaining to be paid
        uint vesting; // Blocks left to vest
        uint lastBlock; // Last interaction
        uint pricePaid; // In BCT, for front end viewing
    }

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

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

    constructor (
        address _KLIMA,
        address _principle,
        address _treasury,
        address _DAO,
        address _bondCalculator
    ) {
        require( _KLIMA != address(0) );
        KLIMA = _KLIMA;
        require( _principle != address(0) );
        principle = _principle;
        require( _treasury != address(0) );
        treasury = _treasury;
        require( _DAO != address(0) );
        DAO = _DAO;
        // bondCalculator should be address(0) if not LP bond
        bondCalculator = _bondCalculator;
        isLiquidityBond = ( _bondCalculator != address(0) );
    }

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

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

    /**
     *  @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,
        uint _buffer
    ) external onlyPolicy() {
        require( _increment <= terms.controlVariable.mul( 25 ).div( 1000 ), "Increment too large" );

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

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

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

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

        decayDebt();
        require( totalDebt <= terms.maxDebt, "Max capacity reached" );

        uint priceInUSD = bondPriceInUSD(); // 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 KLIMA ( underflow protection )
        require( payout <= maxPayout(), "Bond too large"); // size protection because there is no slippage

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

        /**
            principle is transferred in
            approved and
            deposited into the treasury, returning (_amount - profit) KLIMA
         */
        IERC20( principle ).safeTransferFrom( msg.sender, address(this), _amount );
        IERC20( principle ).approve( address( treasury ), _amount );
        ITreasury( treasury ).deposit( _amount, principle, profit );

        if ( fee != 0 ) { // fee is transferred to dao 
            IERC20( KLIMA ).safeTransfer( DAO, fee );
        }

        // total debt is increased
        totalDebt = totalDebt.add( value );

        // depositor info is stored
        bondInfo[ _depositor ] = Bond({
        payout: bondInfo[ _depositor ].payout.add( payout ),
        vesting: terms.vestingTerm,
        lastBlock: block.number,
        pricePaid: priceInUSD
        });

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

        adjust(); // control variable is adjusted
        return payout;
    }

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

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

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

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

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




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

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

    /**
     *  @notice makes incremental adjustment to control variable
     */
    function adjust() internal {
        uint blockCanAdjust = adjustment.lastBlock.add( adjustment.buffer );
        if( adjustment.rate != 0 && block.number >= blockCanAdjust ) {
            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.lastBlock = block.number;
            emit ControlVariableAdjustment( initial, terms.controlVariable, adjustment.rate, adjustment.add );
        }
    }

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




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

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

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


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

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

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


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

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

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

    /**
     *  @notice amount to decay total debt by
     *  @return decay_ uint
     */
    function debtDecay() public view returns ( uint decay_ ) {
        uint blocksSinceLast = block.number.sub( lastDecay );
        decay_ = totalDebt.mul( blocksSinceLast ).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 blocksSinceLast = block.number.sub( bond.lastBlock );
        uint vesting = bond.vesting;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_KLIMA","type":"address"},{"internalType":"address","name":"_principle","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_DAO","type":"address"},{"internalType":"address","name":"_bondCalculator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"deposit","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"payout","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"expires","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"priceInUSD","type":"uint256"}],"name":"BondCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"priceInUSD","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"internalPrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"debtRatio","type":"uint256"}],"name":"BondPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"payout","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remaining","type":"uint256"}],"name":"BondRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"initialBCV","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBCV","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"adjustment","type":"uint256"},{"indexed":false,"internalType":"bool","name":"addition","type":"bool"}],"name":"ControlVariableAdjustment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipPulled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipPushed","type":"event"},{"inputs":[],"name":"DAO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KLIMA","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":"uint256","name":"buffer","type":"uint256"},{"internalType":"uint256","name":"lastBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondCalculator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bondInfo","outputs":[{"internalType":"uint256","name":"payout","type":"uint256"},{"internalType":"uint256","name":"vesting","type":"uint256"},{"internalType":"uint256","name":"lastBlock","type":"uint256"},{"internalType":"uint256","name":"pricePaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondPrice","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondPriceInUSD","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtDecay","outputs":[{"internalType":"uint256","name":"decay_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtRatio","outputs":[{"internalType":"uint256","name":"debtRatio_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_maxPrice","type":"uint256"},{"internalType":"address","name":"_depositor","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_controlVariable","type":"uint256"},{"internalType":"uint256","name":"_vestingTerm","type":"uint256"},{"internalType":"uint256","name":"_minimumPrice","type":"uint256"},{"internalType":"uint256","name":"_maxPayout","type":"uint256"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_maxDebt","type":"uint256"},{"internalType":"uint256","name":"_initialDebt","type":"uint256"}],"name":"initializeBondTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isLiquidityBond","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDecay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"payoutFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"pendingPayoutFor","outputs":[{"internalType":"uint256","name":"pendingPayout_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"percentVestedFor","outputs":[{"internalType":"uint256","name":"percentVested_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"policy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"principle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pullManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"name":"pushManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverLostToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_addition","type":"bool"},{"internalType":"uint256","name":"_increment","type":"uint256"},{"internalType":"uint256","name":"_target","type":"uint256"},{"internalType":"uint256","name":"_buffer","type":"uint256"}],"name":"setAdjustment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum KlimaBondDepository.PARAMETER","name":"_parameter","type":"uint8"},{"internalType":"uint256","name":"_input","type":"uint256"}],"name":"setBondTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"bool","name":"_helper","type":"bool"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingHelper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"standardizedDebtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terms","outputs":[{"internalType":"uint256","name":"controlVariable","type":"uint256"},{"internalType":"uint256","name":"vestingTerm","type":"uint256"},{"internalType":"uint256","name":"minimumPrice","type":"uint256"},{"internalType":"uint256","name":"maxPayout","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"maxDebt","type":"uint256"}],"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"}]

6101406040523480156200001257600080fd5b5060405162002c3e38038062002c3e833981810160405260a08110156200003857600080fd5b50805160208201516040808401516060850151608090950151600080546001600160a01b031916331780825593519596949592949391926001600160a01b0392909216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908290a36001600160a01b038516620000b557600080fd5b6001600160601b0319606086901b166080526001600160a01b038416620000db57600080fd5b6001600160601b0319606085901b1660a0526001600160a01b0383166200010157600080fd5b6001600160601b0319606084901b1660c0526001600160a01b0382166200012757600080fd5b6001600160601b0319606092831b811660e0529181901b909116610120526001600160a01b0316151560f81b6101005250505060805160601c60a05160601c60c05160601c60e05160601c6101005160f81c6101205160601c612a106200022e60003980610f5852806116dd5280611900525080610f2a52806116ac5280611adb52508061155252806117a6528061184d525080610dc052806111c152806113c452806114a652508061059b5280610f87528061102e52806111f0528061136b52806113955280611475528061170c528061180b52508061153052806117cc528061194e5280611b505280611c205280611cf95280611dde5280611ef35250612a106000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80637927ebf811610125578063d4d863ce116100ad578063e0176de81161007c578063e0176de814610571578063e392a26214610579578063e3ed12a014610581578063f5c2ab5b14610589578063fc7b9c181461059157610211565b8063d4d863ce146104f8578063d502562514610526578063d796906014610561578063d7ccfb0b1461056957610211565b806398fabd3a116100f457806398fabd3a1461046e578063b4abccba14610476578063c5332b7c1461049c578063cd1234b3146104a4578063cea55f57146104f057610211565b80637927ebf81461040f578063844b5c7c1461042c5780638dbdbe6d14610434578063904b3ece1461046657610211565b8063451ee4a1116101a85780635a96ac0a116101775780635a96ac0a146103ae57806361d027b3146103b657806371535008146103be578063759076e5146103ff57806377b818951461040757610211565b8063451ee4a11461032557806346f68ee91461035a5780634cf088d914610380578063507930ec1461038857610211565b80631a3d0068116101e45780631a3d0068146102845780631e321a0f146102b55780631feed31f146102db5780632f3f470a1461030957610211565b8063016a42841461021657806301b88ee81461023a5780630505c8c914610272578063089208d81461027a575b600080fd5b61021e610599565b604080516001600160a01b039092168252519081900360200190f35b6102606004803603602081101561025057600080fd5b50356001600160a01b03166105bd565b60408051918252519081900360200190f35b61021e610616565b610282610626565b005b6102826004803603608081101561029a57600080fd5b508035151590602081013590604081013590606001356106bd565b610282600480360360408110156102cb57600080fd5b5060ff81351690602001356107b5565b610260600480360360408110156102f157600080fd5b506001600160a01b0381351690602001351515610969565b610311610b5e565b604080519115158252519081900360200190f35b61032d610b6e565b60408051951515865260208601949094528484019290925260608401526080830152519081900360a00190f35b6102826004803603602081101561037057600080fd5b50356001600160a01b0316610b86565b61021e610c73565b6102606004803603602081101561039e57600080fd5b50356001600160a01b0316610c82565b610282610d14565b61021e610dbe565b610282600480360360e08110156103d457600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c00135610de2565b610260610ed6565b61021e610ef1565b6102606004803603602081101561042557600080fd5b5035610f00565b610260610f26565b6102606004803603606081101561044a57600080fd5b50803590602081013590604001356001600160a01b03166110bf565b6102606116a8565b61021e6117a4565b6103116004803603602081101561048c57600080fd5b50356001600160a01b03166117c8565b61021e6118fe565b6104ca600480360360208110156104ba57600080fd5b50356001600160a01b0316611922565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610260611949565b6102826004803603604081101561050e57600080fd5b506001600160a01b0381351690602001351515611a01565b61052e611ac4565b604080519687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b610311611ad9565b610260611afd565b610260611b3c565b610260611bd9565b61021e611c1e565b610260611c42565b610260611c48565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806105c983610c82565b6001600160a01b0384166000908152600f602052604090205490915061271082106105f65780925061060f565b61060c6127106106068385611c4e565b90611cae565b92505b5050919050565b6000546001600160a01b03165b90565b6000546001600160a01b03163314610673576040805162461bcd60e51b8152602060048201819052602482015260008051602061294a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908390a3600080546001600160a01b0319169055565b6000546001600160a01b0316331461070a576040805162461bcd60e51b8152602060048201819052602482015260008051602061294a833981519152604482015290519081900360640190fd5b600454610720906103e890610606906019611c4e565b83111561076a576040805162461bcd60e51b8152602060048201526013602482015272496e6372656d656e7420746f6f206c6172676560681b604482015290519081900360640190fd5b6040805160a0810182529415158086526020860185905290850183905260608501829052436080909501859052600a805460ff19169091179055600b92909255600c55600d55600e55565b6000546001600160a01b03163314610802576040805162461bcd60e51b8152602060048201819052602482015260008051602061294a833981519152604482015290519081900360640190fd5b600082600381111561081057fe5b1415610861576127108110156108575760405162461bcd60e51b815260040180806020018281038252602481526020018061298d6024913960400191505060405180910390fd5b6005819055610965565b600182600381111561086f57fe5b14156108d6576103e88111156108cc576040805162461bcd60e51b815260206004820181905260248201527f5061796f75742063616e6e6f742062652061626f766520312070657263656e74604482015290519081900360640190fd5b6007819055610965565b60028260038111156108e457fe5b141561094b57612710811115610941576040805162461bcd60e51b815260206004820152601c60248201527f44414f206665652063616e6e6f7420657863656564207061796f757400000000604482015290519081900360640190fd5b6008819055610965565b600382600381111561095957fe5b14156109655760098190555b5050565b6000610973612880565b506001600160a01b0383166000908152600f60209081526040808320815160808101835281548152600182015493810193909352600281015491830191909152600301546060820152906109c685610c82565b90506127108110610a56576001600160a01b0385166000818152600f602090815260408083208381556001810184905560028101849055600301839055855181519081529182019290925281517f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b1929181900390910190a2610a4d85858460000151611cf0565b92505050610b58565b8151600090610a6d90612710906106069085611c4e565b90506040518060800160405280610a91838660000151611ff490919063ffffffff16565b8152602001610abb610ab0866040015143611ff490919063ffffffff16565b602087015190611ff4565b8152436020808301919091526060808701516040938401526001600160a01b038a166000818152600f84528490208551808255868501516001830155868601516002830155959092015160039092019190915582518581529182019390935281517f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b1929181900390910190a2610b52868683611cf0565b93505050505b92915050565b600354600160a01b900460ff1681565b600a54600b54600c54600d54600e5460ff9094169385565b6000546001600160a01b03163314610bd3576040805162461bcd60e51b8152602060048201819052602482015260008051602061294a833981519152604482015290519081900360640190fd5b6001600160a01b038116610c185760405162461bcd60e51b81526004018080602001828103825260268152602001806128bb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6000610c8c612880565b506001600160a01b0382166000908152600f602090815260408083208151608081018352815481526001820154938101939093526002810154918301829052600301546060830152909190610ce2904390611ff4565b60208301519091508015610d0757610d008161060684612710611c4e565b9350610d0c565b600093505b505050919050565b6001546001600160a01b03163314610d5d5760405162461bcd60e51b81526004018080602001828103825260228152602001806128e16022913960400191505060405180910390fd5b600154600080546040516001600160a01b0393841693909116917faa151555690c956fc3ea32f106bb9f119b5237a061eaa8557cff3e51e3792c8d91a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b03163314610e2f576040805162461bcd60e51b8152602060048201819052602482015260008051602061294a833981519152604482015290519081900360640190fd5b60045415610e84576040805162461bcd60e51b815260206004820181905260248201527f426f6e6473206d75737420626520696e697469616c697a65642066726f6d2030604482015290519081900360640190fd5b6040805160c08101825288815260208101889052908101869052606081018590526080810184905260a00182905260049690965560059490945560069290925560075560085560095560105543601155565b6000610eec610ee3611bd9565b60105490611ff4565b905090565b6003546001600160a01b031681565b6000610b58662386f26fc10000610606610f2185610f1c611afd565b612036565b6121ad565b60007f0000000000000000000000000000000000000000000000000000000000000000156110245761101d60646106067f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166332da80a37f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610fe357600080fd5b505afa158015610ff7573d6000803e3d6000fd5b505050506040513d602081101561100d57600080fd5b5051611017611afd565b90611c4e565b9050610623565b610eec60646106067f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561108557600080fd5b505afa158015611099573d6000803e3d6000fd5b505050506040513d60208110156110af57600080fd5b505160ff16600a0a611017611afd565b60006001600160a01b03821661110e576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b6111166121c5565b6009546010541115611166576040805162461bcd60e51b815260206004820152601460248201527313585e0818d85c1858da5d1e481c995858da195960621b604482015290519081900360640190fd5b6000611170610f26565b9050600061117c6121d9565b9050808510156111bd5760405162461bcd60e51b815260040180806020018281038252602381526020018061296a6023913960400191505060405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631eec5a9a7f0000000000000000000000000000000000000000000000000000000000000000896040518363ffffffff1660e01b815260040180836001600160a01b031681526020018281526020019250505060206040518083038186803b15801561125457600080fd5b505afa158015611268573d6000803e3d6000fd5b505050506040513d602081101561127e57600080fd5b50519050600061128d82610f00565b9050629896808110156112d8576040805162461bcd60e51b815260206004820152600e60248201526d109bdb99081d1bdbc81cdb585b1b60921b604482015290519081900360640190fd5b6112e0611b3c565b811115611325576040805162461bcd60e51b815260206004820152600e60248201526d426f6e6420746f6f206c6172676560901b604482015290519081900360640190fd5b6000611344612710610606600480015485611c4e90919063ffffffff16565b9050600061135c826113568686611ff4565b90611ff4565b90506113936001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633308d61221b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663095ea7b37f00000000000000000000000000000000000000000000000000000000000000008c6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561142a57600080fd5b505af115801561143e573d6000803e3d6000fd5b505050506040513d602081101561145457600080fd5b50506040805163bc157ac160e01b8152600481018c90526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660248301526044820184905291517f00000000000000000000000000000000000000000000000000000000000000009092169163bc157ac1916064808201926020929091908290030181600087803b1580156114f157600080fd5b505af1158015611505573d6000803e3d6000fd5b505050506040513d602081101561151b57600080fd5b50508115611577576115776001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008461227b565b60105461158490856122d2565b601055604080516080810182526001600160a01b038a166000908152600f602052919091205481906115b690866122d2565b81526005805460208084019190915243604080850182905260609485018c90526001600160a01b038e166000908152600f8452819020865181559286015160018401558501516002830155939092015160039092019190915554879161161b916122d2565b604080518d8152905186917f1fec6dc81f140574bf43f6b1e420ae1dd47928b9d57db8cbd7b8611063b85ae5919081900360200190a4611659611949565b6116616121d9565b611669610f26565b6040517f375b221f40939bfd8f49723a17cf7bc6d576ebf72efe2cc3e991826f5b3f390a90600090a461169a61232c565b509098975050505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000001561179c5761101d633b9aca006106067f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166332da80a37f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561176857600080fd5b505afa15801561177c573d6000803e3d6000fd5b505050506040513d602081101561179257600080fd5b5051611017611949565b61101d611949565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561180957600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561184857600080fd5b6118f67f0000000000000000000000000000000000000000000000000000000000000000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156118b957600080fd5b505afa1580156118cd573d6000803e3d6000fd5b505050506040513d60208110156118e357600080fd5b50516001600160a01b038516919061227b565b506001919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600f6020526000908152604090208054600182015460028301546003909301549192909184565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119a557600080fd5b505afa1580156119b9573d6000803e3d6000fd5b505050506040513d60208110156119cf57600080fd5b505190506119fb670de0b6b3a7640000610606610f216119f5633b9aca00611017610ed6565b85612036565b91505090565b6000546001600160a01b03163314611a4e576040805162461bcd60e51b8152602060048201819052602482015260008051602061294a833981519152604482015290519081900360640190fd5b6001600160a01b038216611a6157600080fd5b8015611a965760038054600160a01b60ff60a01b19909116176001600160a01b0319166001600160a01b038416179055610965565b6003805460ff60a01b19169055600280546001600160a01b0384166001600160a01b03199091161790555050565b60045460055460065460075460085460095486565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000611b2862989680610606633b9aca00611b22611b19611949565b60045490611c4e565b906122d2565b600654909150811015610623575060065490565b6000610eec620186a06106066004600301547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611ba757600080fd5b505afa158015611bbb573d6000803e3d6000fd5b505050506040513d6020811015611bd157600080fd5b505190611c4e565b600080611bf160115443611ff490919063ffffffff16565b600554601054919250611c08916106069084611c4e565b9150601054821115611c1a5760105491505b5090565b7f000000000000000000000000000000000000000000000000000000000000000081565b60115481565b60105481565b600082611c5d57506000610b58565b82820282848281611c6a57fe5b0414611ca75760405162461bcd60e51b81526004018080602001828103825260218152602001806129296021913960400191505060405180910390fd5b9392505050565b6000611ca783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061240c565b600082611da0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb85846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611d6e57600080fd5b505af1158015611d82573d6000803e3d6000fd5b505050506040513d6020811015611d9857600080fd5b50611fed9050565b600354600160a01b900460ff1615611ec7576003546040805163095ea7b360e01b81526001600160a01b0392831660048201526024810185905290517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b158015611e2957600080fd5b505af1158015611e3d573d6000803e3d6000fd5b505050506040513d6020811015611e5357600080fd5b505060035460408051637acb775760e01b8152600481018590526001600160a01b03878116602483015291519190921691637acb775791604480830192600092919082900301818387803b158015611eaa57600080fd5b505af1158015611ebe573d6000803e3d6000fd5b50505050611fed565b6002546040805163095ea7b360e01b81526001600160a01b0392831660048201526024810185905290517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b158015611f3e57600080fd5b505af1158015611f52573d6000803e3d6000fd5b505050506040513d6020811015611f6857600080fd5b505060025460408051637acb775760e01b8152600481018590526001600160a01b03878116602483015291519190921691637acb77579160448083019260209291908290030181600087803b158015611fc057600080fd5b505af1158015611fd4573d6000803e3d6000fd5b505050506040513d6020811015611fea57600080fd5b50505b5092915050565b6000611ca783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506124ae565b61203e6128a8565b6000821161207d5760405162461bcd60e51b81526004018080602001828103825260268152602001806129036026913960400191505060405180910390fd5b826120975750604080516020810190915260008152610b58565b71ffffffffffffffffffffffffffffffffffff831161213e57600082607085901b816120bf57fe5b0490506001600160e01b0381111561211e576040805162461bcd60e51b815260206004820152601e60248201527f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f770000604482015290519081900360640190fd5b6040518060200160405280826001600160e01b0316815250915050610b58565b600061214f84600160701b85612508565b90506001600160e01b0381111561211e576040805162461bcd60e51b815260206004820152601e60248201527f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f770000604482015290519081900360640190fd5b516612725dd1d243ab6001600160e01b039091160490565b6121d0610ee3611bd9565b60105543601155565b60006121f562989680610606633b9aca00611b22611b19611949565b60065490915081101561220b5750600654610623565b6006541561062357600060065590565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526122759085906125a8565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526122cd9084906125a8565b505050565b600082820183811015611ca7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600d54600e5460009161233f91906122d2565b600b54909150158015906123535750804310155b1561240957600454600a5460ff161561238d57600b54600454612375916122d2565b6004819055600c5411612388576000600b555b6123af565b600b5460045461239c91611ff4565b6004819055600c54106123af576000600b555b43600e55600454600b54600a546040805185815260208101949094528381019290925260ff1615156060830152517fb923e581a0f83128e9e1d8297aa52b18d6744310476e0b54509c054cd7a93b2a9181900360800190a1505b50565b600081836124985760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561245d578181015183820152602001612445565b50505050905090810190601f16801561248a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816124a457fe5b0495945050505050565b600081848411156125005760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561245d578181015183820152602001612445565b505050900390565b60008060006125178686612659565b915091506000848061252557fe5b868809905082811115612539576001820391505b8083039250848210612592576040805162461bcd60e51b815260206004820152601a60248201527f46756c6c4d6174683a3a6d756c4469763a206f766572666c6f77000000000000604482015290519081900360640190fd5b61259d838387612686565b979650505050505050565b60606125fd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126f69092919063ffffffff16565b8051909150156122cd5780806020019051602081101561261c57600080fd5b50516122cd5760405162461bcd60e51b815260040180806020018281038252602a8152602001806129b1602a913960400191505060405180910390fd5b600080806000198486099050838502925082810391508281101561267e576001820391505b509250929050565b6000818103821680838161269657fe5b0492508085816126a257fe5b0494508081600003816126b157fe5b60028581038087028203028087028203028087028203028087028203028087028203028087028203029586029003909402930460010193909302939093010292915050565b6060612705848460008561270d565b949350505050565b60606127188561287a565b612769576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106127a85780518252601f199092019160209182019101612789565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461280a576040519150601f19603f3d011682016040523d82523d6000602084013e61280f565b606091505b509150915081156128235791506127059050565b8051156128335780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561245d578181015183820152602001612445565b3b151590565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6040805160208101909152600081529056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a206d757374206265206e6577206f776e657220746f2070756c6c4669786564506f696e743a3a6672616374696f6e3a206469766973696f6e206279207a65726f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572536c697070616765206c696d69743a206d6f7265207468616e206d617820707269636556657374696e67206d757374206265206c6f6e676572207468616e20333620686f7572735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122045ab6de63b35c0957bfb4d71ddf921b5af2d54205a507f0e0594a095c6ecd15e64736f6c634300070500330000000000000000000000004e78011ce80ee02d2c3e649fb657e458982578150000000000000000000000001e67124681b402064cd0abe8ed1b5c79d2e02f640000000000000000000000007dd4f0b986f032a44f913bf92c9e8b7c17d77ad700000000000000000000000065a5076c0ba74e5f3e069995dc3dab9d197d995c0000000000000000000000000b8d6d6611ed7cce01bbcc57826548c6107b0478

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

0000000000000000000000004e78011ce80ee02d2c3e649fb657e458982578150000000000000000000000001e67124681b402064cd0abe8ed1b5c79d2e02f640000000000000000000000007dd4f0b986f032a44f913bf92c9e8b7c17d77ad700000000000000000000000065a5076c0ba74e5f3e069995dc3dab9d197d995c0000000000000000000000000b8d6d6611ed7cce01bbcc57826548c6107b0478

-----Decoded View---------------
Arg [0] : _KLIMA (address): 0x4e78011ce80ee02d2c3e649fb657e45898257815
Arg [1] : _principle (address): 0x1e67124681b402064cd0abe8ed1b5c79d2e02f64
Arg [2] : _treasury (address): 0x7dd4f0b986f032a44f913bf92c9e8b7c17d77ad7
Arg [3] : _DAO (address): 0x65a5076c0ba74e5f3e069995dc3dab9d197d995c
Arg [4] : _bondCalculator (address): 0x0b8d6d6611ed7cce01bbcc57826548c6107b0478

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000004e78011ce80ee02d2c3e649fb657e45898257815
Arg [1] : 0000000000000000000000001e67124681b402064cd0abe8ed1b5c79d2e02f64
Arg [2] : 0000000000000000000000007dd4f0b986f032a44f913bf92c9e8b7c17d77ad7
Arg [3] : 00000000000000000000000065a5076c0ba74e5f3e069995dc3dab9d197d995c
Arg [4] : 0000000000000000000000000b8d6d6611ed7cce01bbcc57826548c6107b0478


Deployed ByteCode Sourcemap

22338:17095:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23053:34;;;:::i;:::-;;;;-1:-1:-1;;;;;23053:34:0;;;;;;;;;;;;;;38580:400;;;;;;;;;;;;;;;;-1:-1:-1;38580:400:0;-1:-1:-1;;;;;38580:400:0;;:::i;:::-;;;;;;;;;;;;;;;;1751:89;;;:::i;1976:158::-;;;:::i;:::-;;27845:443;;;;;;;;;;;;;;;;-1:-1:-1;27845:443:0;;;;;;;;;;;;;;;;;;;:::i;26935:714::-;;;;;;;;;;;;;;;;-1:-1:-1;26935:714:0;;;;;;;;;:::i;31301:1182::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31301:1182:0;;;;;;;;;;:::i;23585:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;23670:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2142:260;;;;;;;;;;;;;;;;-1:-1:-1;2142:260:0;-1:-1:-1;;;;;2142:260:0;;:::i;23454:22::-;;;:::i;37979:427::-;;;;;;;;;;;;;;;;-1:-1:-1;37979:427:0;-1:-1:-1;;;;;37979:427:0;;:::i;2410:221::-;;;:::i;23123:33::-;;;:::i;26058:643::-;;;;;;;;;;;;;;;;-1:-1:-1;26058:643:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;37322:106::-;;;:::i;23507:28::-;;;:::i;35015:161::-;;;;;;;;;;;;;;;;-1:-1:-1;35015:161:0;;:::i;36103:331::-;;;:::i;28958:2193::-;;;;;;;;;;;;;;;;-1:-1:-1;28958:2193:0;;;;;;;;;;;-1:-1:-1;;;;;28958:2193:0;;:::i;36948:275::-;;;:::i;23202:28::-;;;:::i;39160:270::-;;;;;;;;;;;;;;;;-1:-1:-1;39160:270:0;-1:-1:-1;;;;;39160:270:0;;:::i;23373:39::-;;;:::i;23736:42::-;;;;;;;;;;;;;;;;-1:-1:-1;23736:42:0;-1:-1:-1;;;;;23736:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36560:267;;;:::i;28421:318::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28421:318:0;;;;;;;;;;:::i;23615:18::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23274:37;;;:::i;35281:253::-;;;:::i;34744:142::-;;;:::i;37530:286::-;;;:::i;22981:30::-;;;:::i;23911:21::-;;;:::i;23829:::-;;;:::i;23053:34::-;;;:::o;38580:400::-;38652:19;38685:18;38706:30;38724:10;38706:16;:30::i;:::-;-1:-1:-1;;;;;38761:22:0;;38747:11;38761:22;;;:8;:22;;;;;:29;38685:51;;-1:-1:-1;38825:5:0;38808:22;;38803:170;;38865:6;38848:23;;38803:170;;;38921:40;38954:5;38921:27;:6;38933:13;38921:10;:27::i;:::-;:31;;:40::i;:::-;38904:57;;38803:170;38580:400;;;;;:::o;1751:89::-;1799:7;1826:6;-1:-1:-1;;;;;1826:6:0;1751:89;;:::o;1976:158::-;1890:6;;-1:-1:-1;;;;;1890:6:0;1900:10;1890:20;1881:67;;;;;-1:-1:-1;;;1881:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1881:67:0;;;;;;;;;;;;;;;2092:1:::1;2076:6:::0;;2059:37:::1;::::0;-1:-1:-1;;;;;2076:6:0;;::::1;::::0;2059:37:::1;::::0;2092:1;;2059:37:::1;2124:1;2107:19:::0;;-1:-1:-1;;;;;;2107:19:0::1;::::0;;1976:158::o;27845:443::-;1890:6;;-1:-1:-1;;;;;1890:6:0;1900:10;1890:20;1881:67;;;;;-1:-1:-1;;;1881:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1881:67:0;;;;;;;;;;;;;;;28029:5:::1;:21:::0;:43:::1;::::0;28066:4:::1;::::0;28029:31:::1;::::0;28056:2:::1;28029:25;:31::i;:43::-;28015:10;:57;;28006:91;;;::::0;;-1:-1:-1;;;28006:91:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28006:91:0;;;;;;;;;;;;;::::1;;28123:157;::::0;;::::1;::::0;::::1;::::0;;;::::1;;::::0;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;28256:12:::1;28123:157:::0;;;;;;;28110:10:::1;:170:::0;;-1:-1:-1;;28110:170:0::1;::::0;;::::1;::::0;;;;;;;;;;;;;27845:443::o;26935:714::-;1890:6;;-1:-1:-1;;;;;1890:6:0;1900:10;1890:20;1881:67;;;;;-1:-1:-1;;;1881:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1881:67:0;;;;;;;;;;;;;;;27047:17:::1;27033:10;:31;;;;;;;;;27028:614;;;27106:5;27096:6;:15;;27087:66;;;;-1:-1:-1::0;;;27087:66:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27168:17:::0;:26;;;27028:614:::1;;;27231:16;27217:10;:30;;;;;;;;;27212:430;;;27289:4;27279:6;:14;;27270:61;;;::::0;;-1:-1:-1;;;27270:61:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;27346:15:::0;:24;;;27212:430:::1;;;27407:13;27393:10;:27;;;;;;;;;27388:254;;;27462:5;27452:6;:15;;27443:58;;;::::0;;-1:-1:-1;;;27443:58:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;27516:9:::0;:18;;;27388:254:::1;;;27571:14;27557:10;:28;;;;;;;;;27552:90;;;27608:13:::0;:22;;;27552:90:::1;26935:714:::0;;:::o;31301:1182::-;31371:4;31389:16;;:::i;:::-;-1:-1:-1;;;;;;31408:22:0;;;;;;:8;:22;;;;;;;;31389:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31462:30;31418:10;31462:16;:30::i;:::-;31441:51;;31587:5;31570:13;:22;31565:911;;-1:-1:-1;;;;;31636:22:0;;;;;;:8;:22;;;;;;;;31629:29;;;;;;;;;;;;;;;;;;;;31724:11;;31698:42;;;;;;;;;;;;;;;;;;;;;;;;;31780:46;31793:10;31805:6;31813:4;:11;;;31780;:46::i;:::-;31773:53;;;;;;31565:911;31959:11;;31945;;31959:45;;31997:5;;31959:32;;31976:13;31959:15;:32::i;:45::-;31945:59;;32089:225;;;;;;;;32117:25;32134:6;32117:4;:11;;;:15;;:25;;;;:::i;:::-;32089:225;;;;32166:54;32184:34;32202:4;:14;;;32184:12;:16;;:34;;;;:::i;:::-;32166:12;;;;;:16;:54::i;:::-;32089:225;;32246:12;32089:225;;;;;;;;32284:14;;;;;32089:225;;;;;-1:-1:-1;;;;;32064:22:0;;-1:-1:-1;32064:22:0;;;:8;:22;;;;;:250;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32336:65;;;;;;;;;;;;;;;;;;;;;;;;;32423:41;32436:10;32448:6;32456;32423:11;:41::i;:::-;32416:48;;;;;31301:1182;;;;;:::o;23585:21::-;;;-1:-1:-1;;;23585:21:0;;;;;:::o;23670:24::-;;;;;;;;;;;;;;;;;:::o;2142:260::-;1890:6;;-1:-1:-1;;;;;1890:6:0;1900:10;1890:20;1881:67;;;;;-1:-1:-1;;;1881:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1881:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;2244:23:0;::::1;2235:75;;;;-1:-1:-1::0;;;2235:75:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2343:6;::::0;;2326:36:::1;::::0;-1:-1:-1;;;;;2326:36:0;;::::1;::::0;2343:6;::::1;::::0;2326:36:::1;::::0;::::1;2373:9;:21:::0;;-1:-1:-1;;;;;;2373:21:0::1;-1:-1:-1::0;;;;;2373:21:0;;;::::1;::::0;;;::::1;::::0;;2142:260::o;23454:22::-;;;-1:-1:-1;;;;;23454:22:0;;:::o;37979:427::-;38049:19;38082:16;;:::i;:::-;-1:-1:-1;;;;;;38101:22:0;;;;;;:8;:22;;;;;;;;38082:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38101:22;38157:34;;:12;;:16;:34::i;:::-;38217:12;;;;38134:57;;-1:-1:-1;38247:11:0;;38242:157;;38293:43;38327:7;38293:28;:15;38314:5;38293:19;:28::i;:43::-;38276:60;;38242:157;;;38386:1;38369:18;;38242:157;37979:427;;;;;;:::o;2410:221::-;2494:9;;-1:-1:-1;;;;;2494:9:0;2480:10;:23;2471:71;;;;-1:-1:-1;;;2471:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2583:9;;;2575:6;;2558:36;;-1:-1:-1;;;;;2583:9:0;;;;2575:6;;;;2558:36;;;2614:9;;;2605:18;;-1:-1:-1;;;;;;2605:18:0;-1:-1:-1;;;;;2614:9:0;;;2605:18;;;;;;2410:221::o;23123:33::-;;;:::o;26058:643::-;1890:6;;-1:-1:-1;;;;;1890:6:0;1900:10;1890:20;1881:67;;;;;-1:-1:-1;;;1881:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1881:67:0;;;;;;;;;;;;;;;26323:5:::1;:21:::0;:26;26314:73:::1;;;::::0;;-1:-1:-1;;;26314:73:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;26406:217;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;26398:5:::1;:225:::0;;;;;;;;;;;;;;;;;;;;26634:9:::1;:24:::0;26681:12:::1;26669:9;:24:::0;26058:643::o;37322:106::-;37367:4;37392:28;37407:11;:9;:11::i;:::-;37392:9;;;:13;:28::i;:::-;37385:35;;37322:106;:::o;23507:28::-;;;-1:-1:-1;;;;;23507:28:0;;:::o;35015:161::-;35071:4;35096:72;35162:4;35096:60;:42;35117:6;35125:11;:9;:11::i;:::-;35096:19;:42::i;:::-;:58;:60::i;36103:331::-;36151:11;36180:15;36176:251;;;36222:85;36302:3;36222:74;36256:14;-1:-1:-1;;;;;36239:42:0;;36283:9;36239:55;;;;;;;;;;;;;-1:-1:-1;;;;;36239:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36239:55:0;36222:11;:9;:11::i;:::-;:15;;:74::i;:85::-;36213:94;;36176:251;;;36349:66;36410:3;36349:55;36380:9;-1:-1:-1;;;;;36372:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36372:30:0;36366:36;;:2;:36;36349:11;:9;:11::i;28958:2193::-;29078:4;-1:-1:-1;;;;;29105:24:0;;29096:54;;;;;-1:-1:-1;;;29096:54:0;;;;;;;;;;;;-1:-1:-1;;;29096:54:0;;;;;;;;;;;;;;;29163:11;:9;:11::i;:::-;29207:13;;29194:9;;:26;;29185:61;;;;;-1:-1:-1;;;29185:61:0;;;;;;;;;;;;-1:-1:-1;;;29185:61:0;;;;;;;;;;;;;;;29259:15;29277:16;:14;:16::i;:::-;29259:34;;29327:16;29346:12;:10;:12::i;:::-;29327:31;;29393:11;29380:9;:24;;29371:74;;;;-1:-1:-1;;;29371:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29481:10;29505:8;-1:-1:-1;;;;;29494:29:0;;29525:9;29536:7;29494:51;;;;;;;;;;;;;-1:-1:-1;;;;;29494:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29494:51:0;;-1:-1:-1;29556:11:0;29570:18;29494:51;29570:9;:18::i;:::-;29556:32;;29652:8;29642:6;:18;;29633:47;;;;;-1:-1:-1;;;29633:47:0;;;;;;;;;;;;-1:-1:-1;;;29633:47:0;;;;;;;;;;;;;;;29759:11;:9;:11::i;:::-;29749:6;:21;;29740:49;;;;;-1:-1:-1;;;29740:49:0;;;;;;;;;;;;-1:-1:-1;;;29740:49:0;;;;;;;;;;;;;;;29885:8;29896:36;29925:5;29896:23;29908:5;:9;;;29896:6;:10;;:23;;;;:::i;:36::-;29885:47;-1:-1:-1;29943:11:0;29957:30;29885:47;29957:19;:5;29968:6;29957:9;:19::i;:::-;:23;;:30::i;:::-;29943:44;-1:-1:-1;30170:74:0;-1:-1:-1;;;;;30178:9:0;30170:36;30208:10;30228:4;30235:7;30170:36;:74::i;:::-;30263:9;-1:-1:-1;;;;;30255:27:0;;30293:8;30305:7;30255:59;;;;;;;;;;;;;-1:-1:-1;;;;;30255:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30325:59:0;;;-1:-1:-1;;;30325:59:0;;;;;;;;-1:-1:-1;;;;;30365:9:0;30325:59;;;;;;;;;;;;;;30336:8;30325:29;;;;;;:59;;;;;30255;;30325;;;;;;;;-1:-1:-1;30325:29:0;:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30402:8:0;;30397:113;;30458:40;-1:-1:-1;;;;;30466:5:0;30458:28;30488:3;30493;30458:28;:40::i;:::-;30570:9;;:22;;30585:5;30570:13;:22::i;:::-;30558:9;:34;30667:182;;;;;;;;-1:-1:-1;;;;;30691:22:0;;-1:-1:-1;30691:22:0;;;:8;:22;;;;;;:29;30667:182;;30691:43;;30726:6;30691:33;:43::i;:::-;30667:182;;30754:17;;;30667:182;;;;;;;;30793:12;30667:182;;;;;;;;;;;;;;-1:-1:-1;;;;;30642:22:0;;-1:-1:-1;30642:22:0;;;:8;:22;;;;;:207;;;;;;;;30754:17;30642:207;;;;;;;;;;;;;;;;;;;;;;;30954:17;30827:10;;30936:37;;:16;:37::i;:::-;30906:81;;;;;;;;30928:6;;30906:81;;;;;;;;;;31053:11;:9;:11::i;:::-;31039:12;:10;:12::i;:::-;31021:16;:14;:16::i;:::-;31003:63;;;;;;;31079:8;:6;:8::i;:::-;-1:-1:-1;31137:6:0;;28958:2193;-1:-1:-1;;;;;;;;28958:2193:0:o;36948:275::-;37005:4;37028:15;37023:193;;;37068:85;37148:3;37068:74;37102:14;-1:-1:-1;;;;;37085:42:0;;37129:9;37085:55;;;;;;;;;;;;;-1:-1:-1;;;;;37085:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37085:55:0;37068:11;:9;:11::i;37023:193::-;37193:11;:9;:11::i;23202:28::-;;;:::o;39160:270::-;39223:4;39260:5;-1:-1:-1;;;;;39250:15:0;:6;-1:-1:-1;;;;;39250:15:0;;;39241:26;;;;;;39297:9;-1:-1:-1;;;;;39287:19:0;:6;-1:-1:-1;;;;;39287:19:0;;;39278:30;;;;;;39319:81;39350:3;39363:6;-1:-1:-1;;;;;39355:26:0;;39391:4;39355:43;;;;;;;;;;;;;-1:-1:-1;;;;;39355:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39355:43:0;-1:-1:-1;;;;;39319:29:0;;;:81;:29;:81::i;:::-;-1:-1:-1;39418:4:0;39160:270;;;:::o;23373:39::-;;;:::o;23736:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;36560:267::-;36603:15;36632:11;36654:5;-1:-1:-1;;;;;36646:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36646:29:0;;-1:-1:-1;36699:120:0;36813:4;36699:108;:90;36733:24;36752:3;36733:13;:11;:13::i;:24::-;36772:6;36699:19;:90::i;:120::-;36686:133;;36560:267;;:::o;28421:318::-;1890:6;;-1:-1:-1;;;;;1890:6:0;1900:10;1890:20;1881:67;;;;;-1:-1:-1;;;1881:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1881:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28517:22:0;::::1;28508:33;;;::::0;::::1;;28557:7;28552:180;;;28582:9;:16:::0;;-1:-1:-1;;;;;;;28582:16:0;;::::1;;-1:-1:-1::0;;;;;;28613:24:0::1;-1:-1:-1::0;;;;;28613:24:0;::::1;;::::0;;28552:180:::1;;;28670:9;:17:::0;;-1:-1:-1;;;;28670:17:0::1;::::0;;28702:7:::1;:18:::0;;-1:-1:-1;;;;;28702:18:0;::::1;-1:-1:-1::0;;;;;;28702:18:0;;::::1;;::::0;;28421:318;;:::o;23615:18::-;;;;;;;;;;;;;;:::o;23274:37::-;;;:::o;35281:253::-;35324:11;35358:69;35422:3;35358:58;35404:10;35358:40;35385:11;:9;:11::i;:::-;35358:5;:21;;:25;:40::i;:::-;:44;;:58::i;:69::-;35452:18;;35349:78;;-1:-1:-1;35443:27:0;;35438:89;;;-1:-1:-1;35497:18:0;;35281:253;:::o;34744:142::-;34787:4;34812:66;34870:6;34812:52;34847:5;:15;;;34820:5;-1:-1:-1;;;;;34812:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34812:29:0;;:33;:52::i;37530:286::-;37573:11;37598:20;37621:29;37639:9;;37621:12;:16;;:29;;;;:::i;:::-;37708:17;;37670:9;;37598:52;;-1:-1:-1;37670:57:0;;:32;;37598:52;37670:13;:32::i;:57::-;37661:66;;37752:9;;37743:6;:18;37738:71;;;37788:9;;37779:18;;37738:71;37530:286;;:::o;22981:30::-;;;:::o;23911:21::-;;;;:::o;23829:::-;;;;:::o;3197:250::-;3255:7;3279:6;3275:47;;-1:-1:-1;3309:1:0;3302:8;;3275:47;3346:5;;;3350:1;3346;:5;:1;3370:5;;;;;:10;3362:56;;;;-1:-1:-1;;;3362:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3438:1;3197:250;-1:-1:-1;;;3197:250:0:o;3455:132::-;3513:7;3540:39;3544:1;3547;3540:39;;;;;;;;;;;;;;;;;:3;:39::i;32709:696::-;32798:4;32822:6;32816:557;;32888:5;-1:-1:-1;;;;;32880:24:0;;32906:10;32918:7;32880:47;;;;;;;;;;;;;-1:-1:-1;;;;;32880:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32816:557:0;;-1:-1:-1;32816:557:0;;33006:9;;-1:-1:-1;;;33006:9:0;;;;33001:361;;;33092:13;;33067:49;;;-1:-1:-1;;;33067:49:0;;-1:-1:-1;;;;;33092:13:0;;;33067:49;;;;;;;;;;;;33075:5;33067:23;;;;;;:49;;;;;;;;;;;;;;;-1:-1:-1;33067:23:0;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33151:13:0;;33135:60;;;-1:-1:-1;;;33135:60:0;;;;;;;;-1:-1:-1;;;;;33135:60:0;;;;;;;;;33151:13;;;;;33135:37;;:60;;;;;33151:13;;33135:60;;;;;;;33151:13;;33135:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33001:361;;;33261:7;;33236:43;;;-1:-1:-1;;;33236:43:0;;-1:-1:-1;;;;;33261:7:0;;;33236:43;;;;;;;;;;;;33244:5;33236:23;;;;;;:43;;;;;;;;;;;;;;;-1:-1:-1;33236:23:0;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33308:7:0;;33298:48;;;-1:-1:-1;;;33298:48:0;;;;;;;;-1:-1:-1;;;;;33298:48:0;;;;;;;;;33308:7;;;;;33298:25;;:48;;;;;33236:43;;33298:48;;;;;;;33308:7;;33298:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;33001:361:0;-1:-1:-1;33390:7:0;32709:696;-1:-1:-1;;32709:696:0:o;2853:136::-;2911:7;2938:43;2942:1;2945;2938:43;;;;;;;;;;;;;;;;;:3;:43::i;20998:719::-;21079:16;;:::i;:::-;21130:1;21116:11;:15;21108:66;;;;-1:-1:-1;;;21108:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21189:14;21185:50;;-1:-1:-1;21212:23:0;;;;;;;;;-1:-1:-1;21212:23:0;;21205:30;;21185:50;21252:24;;;21248:462;;21293:14;21338:11;20424:3;21311:23;;;21338:11;21310:39;;;;;;-1:-1:-1;;;;;;21372:21:0;;;21364:64;;;;;-1:-1:-1;;;21364:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21450:26;;;;;;;;21468:6;-1:-1:-1;;;;;21450:26:0;;;;21443:33;;;;;21248:462;21509:14;21526:45;21542:9;-1:-1:-1;;;21559:11:0;21526:15;:45::i;:::-;21509:62;-1:-1:-1;;;;;;21594:21:0;;;21586:64;;;;;-1:-1:-1;;;21586:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;20853:137;20955:7;20966:16;-1:-1:-1;;;;;20950:13:0;;;:32;;20853:137::o;34475:124::-;34528:28;34543:11;:9;:11::i;34528:28::-;34516:9;:40;34579:12;34567:9;:24;34475:124::o;35661:337::-;35702:11;35736:69;35800:3;35736:58;35782:10;35736:40;35763:11;:9;:11::i;35736:69::-;35830:18;;35727:78;;-1:-1:-1;35821:27:0;;35816:175;;;-1:-1:-1;35875:18:0;;35816:175;;;35916:18;;:23;35911:80;;35978:1;35957:18;:22;35661:337;:::o;17535:205::-;17663:68;;;-1:-1:-1;;;;;17663:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17663:68:0;-1:-1:-1;;;17663:68:0;;;17636:96;;17656:5;;17636:19;:96::i;:::-;17535:205;;;;:::o;17350:177::-;17460:58;;;-1:-1:-1;;;;;17460:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17460:58:0;-1:-1:-1;;;17460:58:0;;;17433:86;;17453:5;;17433:19;:86::i;:::-;17350:177;;;:::o;2664:181::-;2722:7;2754:5;;;2778:6;;;;2770:46;;;;;-1:-1:-1;;;2770:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;33497:917;33583:17;;33557:20;;33535:19;;33557:45;;:20;:24;:45::i;:::-;33617:15;;33535:67;;-1:-1:-1;33617:20:0;;;;:54;;;33657:14;33641:12;:30;;33617:54;33613:794;;;33704:5;:21;33745:10;:14;;;33740:494;;;33832:15;;33805:5;:21;:44;;:25;:44::i;:::-;33781:5;:68;;;33898:17;;-1:-1:-1;33868:112:0;;33959:1;33941:15;:19;33868:112;33740:494;;;34071:15;;34044:5;:21;:44;;:25;:44::i;:::-;34020:5;:68;;;34137:17;;-1:-1:-1;34107:112:0;;34198:1;34180:15;:19;34107:112;34271:12;34248:20;:35;:20;34339:21;34362:15;;34248:10;34379:14;34303:92;;;;;;;;;;;;;;;;;;;;34379:14;;34303:92;;;;;;;;;;;;;;;;33613:794;;33497:917;:::o;3595:189::-;3681:7;3716:12;3709:5;3701:28;;;;-1:-1:-1;;;3701:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3740:9;3756:1;3752;:5;;;;;;;3595:189;-1:-1:-1;;;;;3595:189:0:o;2997:192::-;3083:7;3119:12;3111:6;;;;3103:29;;;;-1:-1:-1;;;3103:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3155:5:0;;;2997:192::o;19898:347::-;20004:7;20025:9;20036;20049:13;20057:1;20060;20049:7;:13::i;:::-;20024:38;;;;20073:10;20099:1;20086:15;;;;;20096:1;20093;20086:15;20073:28;;20121:1;20116:2;:6;20112:18;;;20129:1;20124:6;;;;20112:18;20146:2;20141:7;;;;20171:1;20167;:5;20159:44;;;;;-1:-1:-1;;;20159:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20221:16;20229:1;20232;20235;20221:7;:16::i;:::-;20214:23;19898:347;-1:-1:-1;;;;;;;19898:347:0:o;18739:420::-;18822:23;18848:69;18876:4;18848:69;;;;;;;;;;;;;;;;;18856:5;-1:-1:-1;;;;;18848:27:0;;;:69;;;;;:::i;:::-;18932:17;;18822:95;;-1:-1:-1;18932:21:0;18928:224;;19074:10;19063:30;;;;;;;;;;;;;;;-1:-1:-1;19063:30:0;19055:85;;;;-1:-1:-1;;;19055:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19190:210;19251:9;;;-1:-1:-1;;19307:1:0;19304;19297:25;19284:38;;19341:1;19337;:5;19333:9;;19362:1;19357:2;:6;19353:10;;19383:1;19378:2;:6;19374:18;;;19391:1;19386:6;;;;19374:18;19190:210;;;;;;:::o;19408:482::-;19514:7;19553:2;;;19549:6;;;19554:1;19549:6;19566:9;;;;;;;19591:4;19586:9;;;;;;;;;19626:4;19618;19617:5;;19616:14;;;;;19675:1;:9;;;19704:5;;;19700:9;;19695:14;19729:5;;;19725:9;;19720:14;19754:5;;;19750:9;;19745:14;19779:5;;;19775:9;;19770:14;19804:5;;;19800:9;;19795:14;19829:5;;;19825:9;;19820:14;19854:5;;;19850:9;;19845:14;;;19616;;19633:1;19616:18;19611:24;;;;19606:29;;;;19877:5;;19408:482;-1:-1:-1;;19408:482:0:o;5298:196::-;5401:12;5433:53;5456:6;5464:4;5470:1;5473:12;5433:22;:53::i;:::-;5426:60;5298:196;-1:-1:-1;;;;5298:196:0:o;6274:979::-;6404:12;6437:18;6448:6;6437:10;:18::i;:::-;6429:60;;;;;-1:-1:-1;;;6429:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6563:12;6577:23;6604:6;-1:-1:-1;;;;;6604:11:0;6624:8;6635:4;6604:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6604:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6562:78;;;;6655:7;6651:595;;;6686:10;-1:-1:-1;6679:17:0;;-1:-1:-1;6679:17:0;6651:595;6800:17;;:21;6796:439;;7063:10;7057:17;7124:15;7111:10;7107:2;7103:19;7096:44;7011:148;7199:20;;-1:-1:-1;;;7199:20:0;;;;;;;;;;;;;;;;;7206:12;;7199:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4469:233;4647:20;4686:8;;;4469:233::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://45ab6de63b35c0957bfb4d71ddf921b5af2d54205a507f0e0594a095c6ecd15e
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.