Contract 0x5845a586dfe7498760E17071cd9994E2b209bf59

 
 
Txn Hash
Method
Block
From
To
Value
0xa17474fbfa71d2c088d41b406ac847ae6ed517a76da84fdfe34b0984f932860aRedeem147860392022-05-16 11:41:0184 days 20 hrs ago0x01ebce016681d076667bdb823ebe1f76830da6fa IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00146032 19.67829472
0xf8eff9cf71337950a6151fd9cd10e2e29fe8c7ff61be6be028398759943583e5Redeem147567172022-05-11 19:28:4689 days 12 hrs ago0x17ff925ba25c86a8eb2e68b91844afbf54f2467e IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00962821 129.74277235
0x026d45bbc96a71909ec16aca97ea298127105846f912467b83f6f7f993117af0Redeem147483572022-05-10 11:41:4990 days 20 hrs ago0xc24301b36a9af2594837054d78ae553e3b81148d IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00173549 23.38621886
0x6b264c11da56698c26ae68c2649e3ebe8b3a46a266b44328f79f3ac8b8489dcfDeposit147358002022-05-08 11:26:0092 days 20 hrs ago0x01ebce016681d076667bdb823ebe1f76830da6fa IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00636077 24.07304268
0xffcd07a6e389a0eda053495f5fe40102bdcfa9304c5239276fcc9ed54cef1fc2Redeem147357632022-05-08 11:16:5592 days 20 hrs ago0x01ebce016681d076667bdb823ebe1f76830da6fa IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00186609 20.42642483
0x1a504eb43cd5a007a7052bae6f05b4fd9af777583c8041f40e5bd5dd6af14047Deposit147220592022-05-06 6:50:3595 days 56 mins ago0x01ebce016681d076667bdb823ebe1f76830da6fa IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.01136018 34.65033354
0x9cf8426cb934ec403b0a9ef82322a61dc1b059ba99c4d3e2f2ee5e8228f91ea1Redeem147101512022-05-04 9:36:3796 days 22 hrs ago0x01ebce016681d076667bdb823ebe1f76830da6fa IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00280414 30.92964214
0x1dc8d4335a7a5b6e84404c951d0cc11332eb5d8e83baa2638723706e4d346d10Deposit147072992022-05-03 22:28:5297 days 9 hrs ago0x17ff925ba25c86a8eb2e68b91844afbf54f2467e IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.01351105 40.61616949
0x2bdc1e33ea3ebd3651f76e3727370cf04da434568693bd012f154213a5a0ffd3Deposit146964552022-05-02 5:26:1699 days 2 hrs ago0xc24301b36a9af2594837054d78ae553e3b81148d IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.01232888 48.03737439
0xe155a91bb2ca7f9dceb4f20be36f6aef647f13daf264cde751db4a71a5ae2c0dRedeem146954522022-05-02 1:30:2599 days 6 hrs agoENS Name texas-pete.eth IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00362139 48.79931841
0x9056411d55704567d2c1980c96ba760b3ebf476638b335facf8865da2c7ddc30Redeem146911962022-05-01 9:34:5499 days 22 hrs ago0x5ce1b323678e1942057bc6f72a1b73f586657c68 IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00337396 45.46505236
0x5cb1e268ffb37c77d08b66ef52f60a90e97eb36118be394ab4849c99bbee5539Deposit146847982022-04-30 9:28:44100 days 22 hrs ago0xc24301b36a9af2594837054d78ae553e3b81148d IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00691064 26.92614316
0xb9655e4be080c08e88ae71a2eaa90f9e9973515f7569b79d689200639074ff59Redeem146733842022-04-28 14:27:33102 days 17 hrs agoENS Name texas-pete.eth IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.0045965 50.31365495
0xf13448699c70db80a82632e44258ab46bde8f536086e4721cd288e2ac85b1e13Deposit146690962022-04-27 22:14:47103 days 9 hrs ago0xc24301b36a9af2594837054d78ae553e3b81148d IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.01814525 55.34587747
0x46559d7b1d5d66b85a63918da2f54fde64aa45cda9da7d0418044cedc0056758Deposit146581452022-04-26 4:44:03105 days 3 hrs ago0x01ebce016681d076667bdb823ebe1f76830da6fa IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.01068573 32.59317963
0x2cde8985521f525b207ba2e846d23a84ef9c0be30e219c4dabf29b50c4398e55Redeem146434612022-04-23 21:18:23107 days 10 hrs ago0xd087fc159c508208b528e1a1f4dc720072cb34ae IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00204877 27.61156218
0xfbc1326bd0035863ba77e6f0875f73d16ba2ecfa1c719ed33729cf2383a62bb1Deposit146426392022-04-23 18:18:16107 days 13 hrs ago0x5ce1b323678e1942057bc6f72a1b73f586657c68 IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00602678 23.48230338
0xf92b80ab0f335f55a387a4110f921a5c4cf7265d89f4661a399f3e5dc9730a37Redeem146425152022-04-23 17:51:18107 days 13 hrs ago0x96d88738275653fbb5d844d4b685175d6d45d668 IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00243704 32.83981328
0x25a4580e868f820b24aa1d3cdf7c5954420406a976892a2f339b01559618f339Deposit146375092022-04-22 23:03:07108 days 8 hrs agoENS Name texas-pete.eth IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00965409 37.61552337
0x05d0351acca40cc60f1678c9d2360c46bfc2ed414eefeb8ab1c84109e04b399dDeposit146278432022-04-21 10:41:48109 days 21 hrs ago0x20f7cb624845f37b7bbf1db1af1ef71d8c5c8661 IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.01726163 51.89097348
0xcc7049d804291c16b16a95c3d07ab5d6fdbafde9f91eba5b90ffa047d95ce0f3Deposit146194022022-04-20 2:59:44111 days 4 hrs agoENS Name texas-pete.eth IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.02262368 68.01498703
0xb8a7cd79eb1b61178b5a9109ccbdd3757de28ee762e37b328a25c40e110404b4Deposit146071942022-04-18 5:03:01113 days 2 hrs ago0x5ce1b323678e1942057bc6f72a1b73f586657c68 IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.01325405 51.64212525
0x07cb1c106f1e63aaf17c9089b06717f6770406db2b50c0e1533556750e2915a5Deposit145954742022-04-16 9:11:16114 days 22 hrs ago0x96d88738275653fbb5d844d4b685175d6d45d668 IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00775489 22.88071913
0xe4bd1a34554669081d24af91930aac3a781f4468d4c0111be35d1c23d4a838bbDeposit145833172022-04-14 11:39:50116 days 20 hrs ago0xd087fc159c508208b528e1a1f4dc720072cb34ae IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.00760554 22.31707074
0x54a820b73c39b960b61a3f2fe7a932a63e09fd20a3a6a4113ac54c92ecfd8af9Deposit145705422022-04-12 11:56:12118 days 19 hrs ago0x5ce1b323678e1942057bc6f72a1b73f586657c68 IN  0x5845a586dfe7498760e17071cd9994e2b209bf590 Ether0.0137018 50.8214162
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x286f21731ab9864aa00d1c8c05cb1000a7e416c9a19006dfad81d7a6984ef08c140896992022-01-27 19:49:40193 days 11 hrs ago 0x6af02607a554e16087fe33a5fc3ea104cbef596f  Contract Creation0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CustomBond

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-01-27
*/

// File contracts/libraries/SafeMath.sol

pragma solidity 0.7.5;


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

pragma solidity 0.7.5;


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

    }
}

pragma solidity 0.7.5;

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

pragma solidity 0.7.5;


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


// File contracts/libraries/FullMath.sol

pragma solidity 0.7.5;

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


// File contracts/libraries/FixedPoint.sol

pragma solidity 0.7.5;

library Babylonian {

    function sqrt(uint256 x) internal pure returns (uint256) {
        if (x == 0) return 0;

        uint256 xx = x;
        uint256 r = 1;
        if (xx >= 0x100000000000000000000000000000000) {
            xx >>= 128;
            r <<= 64;
        }
        if (xx >= 0x10000000000000000) {
            xx >>= 64;
            r <<= 32;
        }
        if (xx >= 0x100000000) {
            xx >>= 32;
            r <<= 16;
        }
        if (xx >= 0x10000) {
            xx >>= 16;
            r <<= 8;
        }
        if (xx >= 0x100) {
            xx >>= 8;
            r <<= 4;
        }
        if (xx >= 0x10) {
            xx >>= 4;
            r <<= 2;
        }
        if (xx >= 0x8) {
            r <<= 1;
        }
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1; // Seven iterations should be enough
        uint256 r1 = x / r;
        return (r < r1 ? r : r1);
    }
}

library BitMath {

    function mostSignificantBit(uint256 x) internal pure returns (uint8 r) {
        require(x > 0, 'BitMath::mostSignificantBit: zero');

        if (x >= 0x100000000000000000000000000000000) {
            x >>= 128;
            r += 128;
        }
        if (x >= 0x10000000000000000) {
            x >>= 64;
            r += 64;
        }
        if (x >= 0x100000000) {
            x >>= 32;
            r += 32;
        }
        if (x >= 0x10000) {
            x >>= 16;
            r += 16;
        }
        if (x >= 0x100) {
            x >>= 8;
            r += 8;
        }
        if (x >= 0x10) {
            x >>= 4;
            r += 4;
        }
        if (x >= 0x4) {
            x >>= 2;
            r += 2;
        }
        if (x >= 0x2) r += 1;
    }
}


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));
        }
    }
    
    // square root of a UQ112x112
    // lossy between 0/1 and 40 bits
    function sqrt(uq112x112 memory self) internal pure returns (uq112x112 memory) {
        if (self._x <= uint144(-1)) {
            return uq112x112(uint224(Babylonian.sqrt(uint256(self._x) << 112)));
        }

        uint8 safeShiftBits = 255 - BitMath.mostSignificantBit(self._x);
        safeShiftBits -= safeShiftBits % 2;
        return uq112x112(uint224(Babylonian.sqrt(uint256(self._x) << safeShiftBits) << ((112 - safeShiftBits) / 2)));
    }
}


// File contracts/interfaces/ITreasury.sol

pragma solidity 0.7.5;

interface ITreasury {
    function sendPayoutTokens(uint _amountPayoutToken) external;
    function valueOfToken( address _principalTokenAddress, uint _amount ) external view returns ( uint value_ );
    function payoutToken() external view returns (address);
}


// File contracts/types/Ownable.sol

pragma solidity 0.7.5;

contract Ownable {

    address public policy;

    constructor () {
        policy = msg.sender;
    }

    modifier onlyPolicy() {
        require( policy == msg.sender, "Ownable: caller is not the owner" );
        _;
    }
    
    function transferManagment(address _newOwner) external onlyPolicy() {
        require( _newOwner != address(0) );
        policy = _newOwner;
    }
}


// File contracts/OlympusProCustomBond.sol

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




contract CustomBond is Ownable {
    using FixedPoint for *;
    using SafeERC20 for IERC20;
    using SafeMath for uint;
    
    /* ======== EVENTS ======== */

    event BondCreated( uint deposit, uint payout, uint expires );
    event BondRedeemed( address recipient, uint payout, uint remaining );
    event BondPriceChanged( uint internalPrice, uint debtRatio );
    event ControlVariableAdjustment( uint initialBCV, uint newBCV, uint adjustment, bool addition );
    
    
     /* ======== STATE VARIABLES ======== */
    
    IERC20 immutable private payoutToken; // token paid for principal
    IERC20 immutable private principalToken; // inflow token
    ITreasury immutable private customTreasury; // pays for and receives principal
    address immutable private olympusDAO;
    address private olympusTreasury; // receives fee
    address immutable private subsidyRouter; // pays subsidy in OHM to custom treasury

    uint public totalPrincipalBonded;
    uint public totalPayoutGiven;
    uint public totalDebt; // total value of outstanding bonds; used for pricing
    uint public lastDecay; // reference block for debt decay
    uint private payoutSinceLastSubsidy; // principal accrued since subsidy paid
    
    Terms public terms; // stores terms for new bonds
    Adjust public adjustment; // stores adjustment to BCV data
    FeeTiers[] private feeTiers; // stores fee tiers

    bool immutable private feeInPayout;

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

    struct FeeTiers {
        uint tierCeilings; // principal bonded till next tier
        uint fees; // in ten-thousandths (i.e. 33300 = 3.33%)
    }

    // Info for creating new bonds
    struct Terms {
        uint controlVariable; // scaling variable for price
        uint vestingTerm; // in blocks
        uint minimumPrice; // vs principal value
        uint maxPayout; // in thousandths of a %. i.e. 500 = 0.5%
        uint maxDebt; // payout token decimal debt ratio, max % total supply created as debt
    }

    // Info for bond holder
    struct Bond {
        uint payout; // payout token remaining to be paid
        uint vesting; // Blocks left to vest
        uint lastBlock; // Last interaction
        uint truePricePaid; // Price paid (principal tokens per payout token) in ten-millionths - 4000000 = 0.4
    }

    // 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
    }
    
    /* ======== CONSTRUCTOR ======== */

    constructor(
        address _customTreasury, 
        address _principalToken, 
        address _olympusTreasury,
        address _subsidyRouter, 
        address _initialOwner, 
        address _olympusDAO,
        uint[] memory _tierCeilings, 
        uint[] memory _fees,
        bool _feeInPayout
    ) {
        require( _customTreasury != address(0) );
        customTreasury = ITreasury( _customTreasury );
        payoutToken = IERC20( ITreasury(_customTreasury).payoutToken() );
        require( _principalToken != address(0) );
        principalToken = IERC20( _principalToken );
        require( _olympusTreasury != address(0) );
        olympusTreasury = _olympusTreasury;
        require( _subsidyRouter != address(0) );
        subsidyRouter = _subsidyRouter;
        require( _initialOwner != address(0) );
        policy = _initialOwner;
        require( _olympusDAO != address(0) );
        olympusDAO = _olympusDAO;
        require(_tierCeilings.length == _fees.length, "tier length and fee length not the same");

        for(uint i; i < _tierCeilings.length; i++) {
            feeTiers.push( FeeTiers({
                tierCeilings: _tierCeilings[i],
                fees: _fees[i]
            }));
        }

        feeInPayout = _feeInPayout;
    }

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

    enum PARAMETER { VESTING, PAYOUT, 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.DEBT ) { // 2
            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( 30 ).div( 1000 ), "Increment too large" );

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

    /**
     *  @notice change address of Olympus Treasury
     *  @param _olympusTreasury uint
     */
    function changeOlympusTreasury(address _olympusTreasury) external {
        require( msg.sender == olympusDAO, "Only Olympus DAO" );
        olympusTreasury = _olympusTreasury;
    }

    /**
     *  @notice subsidy controller checks payouts since last subsidy and resets counter
     *  @return payoutSinceLastSubsidy_ uint
     */
    function paySubsidy() external returns ( uint payoutSinceLastSubsidy_ ) {
        require( msg.sender == subsidyRouter, "Only subsidy controller" );

        payoutSinceLastSubsidy_ = payoutSinceLastSubsidy;
        payoutSinceLastSubsidy = 0;
    }
    
    /* ======== 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();
        
        uint nativePrice = trueBondPrice();

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

        uint value = customTreasury.valueOfToken( address(principalToken), _amount );

        uint payout;
        uint fee;

        if(feeInPayout) {
            (payout, fee) = payoutFor( value ); // payout and fee is computed
        } else {
            (payout, fee) = payoutFor( _amount ); // payout and fee is computed
            _amount = _amount.sub(fee);
        }

        require( payout >= 10 ** payoutToken.decimals() / 100, "Bond too small" ); // must be > 0.01 payout token ( underflow protection )
        require( payout <= maxPayout(), "Bond too large"); // size protection because there is no slippage
        
        // total debt is increased
        totalDebt = totalDebt.add( value );

        require( totalDebt <= terms.maxDebt, "Max capacity reached" );
                
        // depositor info is stored
        bondInfo[ _depositor ] = Bond({ 
            payout: bondInfo[ _depositor ].payout.add( payout ),
            vesting: terms.vestingTerm,
            lastBlock: block.number,
            truePricePaid: trueBondPrice()
        });

        totalPrincipalBonded = totalPrincipalBonded.add(_amount); // total bonded increased
        totalPayoutGiven = totalPayoutGiven.add(payout); // total payout increased
        payoutSinceLastSubsidy = payoutSinceLastSubsidy.add( payout ); // subsidy counter increased

        if(feeInPayout) {
            customTreasury.sendPayoutTokens( payout.add(fee) );
            if(fee != 0) { // if fee, send to Olympus treasury
                payoutToken.safeTransfer(olympusTreasury, fee);
            }
        } else {
            customTreasury.sendPayoutTokens( payout );
            if(fee != 0) { // if fee, send to Olympus treasury
                principalToken.safeTransferFrom( msg.sender, olympusTreasury, fee );
            }
        }

        principalToken.safeTransferFrom( msg.sender, address(customTreasury), _amount ); // transfer principal bonded to custom treasury

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

        adjust(); // control variable is adjusted
        return payout; 
    }
    
    /** 
     *  @notice redeem bond for user
     *  @return uint
     */ 
    function redeem(address _depositor) external returns (uint) {
        Bond memory info = bondInfo[ _depositor ];
        uint percentVested = percentVestedFor( _depositor ); // (blocks since last interaction / vesting term remaining)

        if ( percentVested >= 10000 ) { // if fully vested
            delete bondInfo[ _depositor ]; // delete user info
            emit BondRedeemed( _depositor, info.payout, 0 ); // emit bond data
            payoutToken.safeTransfer( _depositor, info.payout );
            return info.payout;

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

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

            emit BondRedeemed( _depositor, payout, bondInfo[ _depositor ].payout );
            payoutToken.safeTransfer( _depositor, payout );
            return payout;
        }
        
    }
    
    /* ======== INTERNAL HELPER FUNCTIONS ======== */

    /**
     *  @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;
    }

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


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

    /**
     *  @notice calculate current bond premium
     *  @return price_ uint
     */
    function bondPrice() public view returns ( uint price_ ) {        
        price_ = terms.controlVariable.mul( debtRatio() ).div( 10 ** (uint256(payoutToken.decimals()).sub(5)) );
        if ( price_ < terms.minimumPrice ) {
            price_ = terms.minimumPrice;
        }
    }

    /**
     *  @notice calculate true bond price a user pays
     *  @return price_ uint
     */
    function trueBondPrice() public view returns ( uint price_ ) {
        price_ = bondPrice().add(bondPrice().mul( currentOlympusFee() ).div( 1e6 ) );
    }

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

    /**
     *  @notice calculate user's interest due for new bond, accounting for Olympus Fee. 
     If fee is in payout then takes in the already calcualted value. If fee is in principal token 
     than takes in the amount of principal being deposited and then calculautes the fee based on
     the amount of principal and not in terms of the payout token
     *  @param _value uint
     *  @return _payout uint
     *  @return _fee uint
     */
    function payoutFor( uint _value ) public view returns ( uint _payout, uint _fee) {
        if(feeInPayout) {
            uint total = FixedPoint.fraction( _value, bondPrice() ).decode112with18().div( 1e11 );
            _fee = total.mul( currentOlympusFee() ).div( 1e6 );
            _payout = total.sub(_fee);
        } else {
            _fee = _value.mul( currentOlympusFee() ).div( 1e6 );
            _payout = FixedPoint.fraction( customTreasury.valueOfToken(address(principalToken), _value.sub(_fee)), bondPrice() ).decode112with18().div( 1e11 );
        }
    }

    /**
     *  @notice calculate current ratio of debt to payout token supply
     *  @notice protocols using Olympus Pro should be careful when quickly adding large %s to total supply
     *  @return debtRatio_ uint
     */
    function debtRatio() public view returns ( uint debtRatio_ ) {   
        debtRatio_ = FixedPoint.fraction( 
            currentDebt().mul( 10 ** payoutToken.decimals() ), 
            payoutToken.totalSupply()
        ).decode112with18().div( 1e18 );
    }

    /**
     *  @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 payout token 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 );
        }
    }

    /**
     *  @notice current fee Olympus takes of each bond
     *  @return currentFee_ uint
     */
    function currentOlympusFee() public view returns( uint currentFee_ ) {
        uint tierLength = feeTiers.length;
        for(uint i; i < tierLength; i++) {
            if(totalPrincipalBonded < feeTiers[i].tierCeilings || i == tierLength - 1 ) {
                return feeTiers[i].fees;
            }
        }
    }
    
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_customTreasury","type":"address"},{"internalType":"address","name":"_principalToken","type":"address"},{"internalType":"address","name":"_olympusTreasury","type":"address"},{"internalType":"address","name":"_subsidyRouter","type":"address"},{"internalType":"address","name":"_initialOwner","type":"address"},{"internalType":"address","name":"_olympusDAO","type":"address"},{"internalType":"uint256[]","name":"_tierCeilings","type":"uint256[]"},{"internalType":"uint256[]","name":"_fees","type":"uint256[]"},{"internalType":"bool","name":"_feeInPayout","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"deposit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payout","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expires","type":"uint256"}],"name":"BondCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"internalPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRatio","type":"uint256"}],"name":"BondPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"payout","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remaining","type":"uint256"}],"name":"BondRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"initialBCV","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBCV","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"adjustment","type":"uint256"},{"indexed":false,"internalType":"bool","name":"addition","type":"bool"}],"name":"ControlVariableAdjustment","type":"event"},{"inputs":[],"name":"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":[{"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":"truePricePaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondPrice","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_olympusTreasury","type":"address"}],"name":"changeOlympusTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentOlympusFee","outputs":[{"internalType":"uint256","name":"currentFee_","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":"_maxDebt","type":"uint256"},{"internalType":"uint256","name":"_initialDebt","type":"uint256"}],"name":"initializeBond","outputs":[],"stateMutability":"nonpayable","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":[],"name":"paySubsidy","outputs":[{"internalType":"uint256","name":"payoutSinceLastSubsidy_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"payoutFor","outputs":[{"internalType":"uint256","name":"_payout","type":"uint256"},{"internalType":"uint256","name":"_fee","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":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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 CustomBond.PARAMETER","name":"_parameter","type":"uint8"},{"internalType":"uint256","name":"_input","type":"uint256"}],"name":"setBondTerms","outputs":[],"stateMutability":"nonpayable","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":"maxDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPayoutGiven","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPrincipalBonded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferManagment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trueBondPrice","outputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"}]

6101406040523480156200001257600080fd5b5060405162003de238038062003de283398181016040526101208110156200003957600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805160405193929190846401000000008211156200009657600080fd5b83820191506020820185811115620000ad57600080fd5b8251866020820283011164010000000082111715620000cb57600080fd5b8083526020830192505050908051906020019060200280838360005b8381101562000104578082015181840152602081019050620000e7565b50505050905001604052602001805160405193929190846401000000008211156200012e57600080fd5b838201915060208201858111156200014557600080fd5b82518660208202830111640100000000821117156200016357600080fd5b8083526020830192505050908051906020019060200280838360005b838110156200019c5780820151818401526020810190506200017f565b5050505090500160405260200180519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614156200023157600080fd5b8873ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508873ffffffffffffffffffffffffffffffffffffffff16634efa82b66040518163ffffffff1660e01b815260040160206040518083038186803b158015620002af57600080fd5b505afa158015620002c4573d6000803e3d6000fd5b505050506040513d6020811015620002db57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff1614156200035d57600080fd5b8773ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161415620003cf57600080fd5b86600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156200044b57600080fd5b8573ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415620004be57600080fd5b846000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156200053957600080fd5b8373ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508151835114620005cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018062003dbb6027913960400191505060405180910390fd5b60005b8351811015620006655760116040518060400160405280868481518110620005f357fe5b602002602001015181526020018584815181106200060d57fe5b60200260200101518152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508080600101915050620005cf565b5080151561012081151560f81b8152505050505050505050505060805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160f81c61368b620007306000398061105d528061146f52806118495250806120fb525080610d955250806111435280611380528061186f52806119875280611a8f52508061117f52806113bc5280611a425280611ab15250806114d4528061193b5280611d1a5280611f12528061221352806122d052806123bc52806124cb5280612c4c525061368b6000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80637cbe044c116100de578063cea55f5711610097578063e0176de811610071578063e0176de8146106c8578063e392a262146106e6578063f5c2ab5b14610704578063fc7b9c18146107225761018e565b8063cea55f5714610652578063d502562514610670578063d7ccfb0b146106aa5761018e565b80637cbe044c146104855780638dbdbe6d146104a357806395a2251f1461050f578063a50603b214610567578063a9bc6b71146105c7578063cd1234b3146105e55761018e565b80633bfdd7de1161014b5780634799afda116101255780634799afda146103a8578063507930ec146103c6578063759076e51461041e5780637927ebf81461043c5761018e565b80633bfdd7de146102e45780633f0fb92f14610328578063451ee4a11461036c5761018e565b806301b88ee8146101935780630505c8c9146101eb5780630a7484891461021f5780631a3d00681461023d5780631e321a0f1461028b5780632bab6bde146102c6575b600080fd5b6101d5600480360360208110156101a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610740565b6040518082815260200191505060405180910390f35b6101f36107d7565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102276107fb565b6040518082815260200191505060405180910390f35b6102896004803603608081101561025357600080fd5b81019080803515159060200190929190803590602001909291908035906020019092919080359060200190929190505050610851565b005b6102c4600480360360408110156102a157600080fd5b81019080803560ff16906020019092919080359060200190929190505050610a30565b005b6102ce610c4f565b6040518082815260200191505060405180910390f35b610326600480360360208110156102fa57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c55565b005b61036a6004803603602081101561033e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d93565b005b610374610e98565b6040518086151581526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b6103b0610ec9565b6040518082815260200191505060405180910390f35b610408600480360360208110156103dc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f4f565b6040518082815260200191505060405180910390f35b610426611035565b6040518082815260200191505060405180910390f35b6104686004803603602081101561045257600080fd5b8101908080359060200190929190505050611058565b604051808381526020018281526020019250505060405180910390f35b61048d611265565b6040518082815260200191505060405180910390f35b6104f9600480360360608110156104b957600080fd5b810190808035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061126b565b6040518082815260200191505060405180910390f35b6105516004803603602081101561052557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611bb7565b6040518082815260200191505060405180910390f35b6105c5600480360360c081101561057d57600080fd5b81019080803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190505050611f62565b005b6105cf6120f7565b6040518082815260200191505060405180910390f35b610627600480360360208110156105fb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506121ca565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b61065a6121fa565b6040518082815260200191505060405180910390f35b61067861238c565b604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b6106b26123b0565b6040518082815260200191505060405180910390f35b6106d06124b7565b6040518082815260200191505060405180910390f35b6106ee61258b565b6040518082815260200191505060405180910390f35b61070c6125e7565b6040518082815260200191505060405180910390f35b61072a6125ed565b6040518082815260200191505060405180910390f35b60008061074c83610f4f565b90506000601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154905061271082106107a6578092506107d0565b6107cd6127106107bf84846125f390919063ffffffff16565b61267990919063ffffffff16565b92505b5050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061084c610836620f4240610828610812610ec9565b61081a6123b0565b6125f390919063ffffffff16565b61267990919063ffffffff16565b61083e6123b0565b6126c390919063ffffffff16565b905090565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610912576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61093f6103e8610931601e6007600001546125f390919063ffffffff16565b61267990919063ffffffff16565b8311156109b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f496e6372656d656e7420746f6f206c617267650000000000000000000000000081525060200191505060405180910390fd5b6040518060a00160405280851515815260200184815260200183815260200182815260200143815250600c60008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015590505050505050565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610af1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006002811115610afe57fe5b826002811115610b0a57fe5b1415610b7a57612710811015610b6b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806136086024913960400191505060405180910390fd5b80600760010181905550610c4b565b60016002811115610b8757fe5b826002811115610b9357fe5b1415610c20576103e8811115610c11576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5061796f75742063616e6e6f742062652061626f766520312070657263656e7481525060200191505060405180910390fd5b80600760030181905550610c4a565b600280811115610c2c57fe5b826002811115610c3857fe5b1415610c4957806007600401819055505b5b5b5050565b60035481565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d16576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d5057600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e54576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4f6e6c79204f6c796d7075732044414f0000000000000000000000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c8060000160009054906101000a900460ff16908060010154908060020154908060030154908060040154905085565b600080601180549050905060005b81811015610f495760118181548110610eec57fe5b9060005260206000209060020201600001546002541080610f0f57506001820381145b15610f3c5760118181548110610f2157fe5b90600052602060002090600202016001015492505050610f4c565b8080600101915050610ed7565b50505b90565b6000610f59613523565b601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201548152505090506000610fe682604001514361274b90919063ffffffff16565b905060008260200151905060008111156110285761102181611013612710856125f390919063ffffffff16565b61267990919063ffffffff16565b935061102d565b600093505b505050919050565b600061105361104261258b565b60045461274b90919063ffffffff16565b905090565b6000807f0000000000000000000000000000000000000000000000000000000000000000156111015760006110b364174876e8006110a56110a08761109b6123b0565b612795565b612a76565b61267990919063ffffffff16565b90506110e4620f42406110d66110c7610ec9565b846125f390919063ffffffff16565b61267990919063ffffffff16565b91506110f9828261274b90919063ffffffff16565b925050611260565b611130620f4240611122611113610ec9565b866125f390919063ffffffff16565b61267990919063ffffffff16565b905061125d64174876e80061124f61124a7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d1b317e57f00000000000000000000000000000000000000000000000000000000000000006111b1888b61274b90919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b15801561120257600080fd5b505afa158015611216573d6000803e3d6000fd5b505050506040513d602081101561122c57600080fd5b81019080805190602001909291905050506112456123b0565b612795565b612a76565b61267990919063ffffffff16565b91505b915091565b60025481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561130f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f496e76616c69642061646472657373000000000000000000000000000000000081525060200191505060405180910390fd5b611317612ab2565b60006113216107fb565b90508084101561137c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806135e56023913960400191505060405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d1b317e57f0000000000000000000000000000000000000000000000000000000000000000886040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b15801561142d57600080fd5b505afa158015611441573d6000803e3d6000fd5b505050506040513d602081101561145757600080fd5b810190808051906020019092919050505090506000807f0000000000000000000000000000000000000000000000000000000000000000156114a95761149c83611058565b80925081935050506114d0565b6114b288611058565b80925081935050506114cd818961274b90919063ffffffff16565b97505b60647f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561153857600080fd5b505afa15801561154c573d6000803e3d6000fd5b505050506040513d602081101561156257600080fd5b810190808051906020019092919050505060ff16600a0a8161158057fe5b048210156115f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f426f6e6420746f6f20736d616c6c00000000000000000000000000000000000081525060200191505060405180910390fd5b6115fe6124b7565b821115611673576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f426f6e6420746f6f206c6172676500000000000000000000000000000000000081525060200191505060405180910390fd5b611688836004546126c390919063ffffffff16565b600481905550600760040154600454111561170b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f4d6178206361706163697479207265616368656400000000000000000000000081525060200191505060405180910390fd5b604051806080016040528061176b84601260008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546126c390919063ffffffff16565b815260200160076001015481526020014381526020016117896107fb565b815250601260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015590505061180b886002546126c390919063ffffffff16565b600281905550611826826003546126c390919063ffffffff16565b600381905550611841826006546126c390919063ffffffff16565b6006819055507f000000000000000000000000000000000000000000000000000000000000000015611985577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16630b04f9186118bc83856126c390919063ffffffff16565b6040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156118f257600080fd5b505af1158015611906573d6000803e3d6000fd5b50505050600081146119805761197f600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16612add9092919063ffffffff16565b5b611a89565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16630b04f918836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156119f857600080fd5b505af1158015611a0c573d6000803e3d6000fd5b5050505060008114611a8857611a8733600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16612b7f909392919063ffffffff16565b5b5b611af6337f00000000000000000000000000000000000000000000000000000000000000008a7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16612b7f909392919063ffffffff16565b7fb7ce5a2d90f1705ca02547b0eb827724683e0df3b809477ae4326d0eefed0bc08883611b31600760010154436126c390919063ffffffff16565b60405180848152602001838152602001828152602001935050505060405180910390a17f2cb17bd1fd2a1fecfefae2de1e6a59194abaa62179652924ccdca01617f0bf16611b7d612c40565b611b856121fa565b604051808381526020018281526020019250505060405180910390a1611ba9612d65565b819450505050509392505050565b6000611bc1613523565b601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201548152505090506000611c4084610f4f565b90506127108110611d6c57601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008082016000905560018201600090556002820160009055600382016000905550507f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b18483600001516000604051808473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a1611d5e8483600001517f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16612add9092919063ffffffff16565b816000015192505050611f5d565b6000611d99612710611d8b8486600001516125f390919063ffffffff16565b61267990919063ffffffff16565b90506040518060800160405280611dbd83866000015161274b90919063ffffffff16565b8152602001611def611ddc86604001514361274b90919063ffffffff16565b866020015161274b90919063ffffffff16565b81526020014381526020018460600151815250601260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050507f51c99f515c87b0d95ba97f616edd182e8f161c4932eac17c6fefe9dab58b77b18582601260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154604051808473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a1611f5685827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16612add9092919063ffffffff16565b8093505050505b919050565b3373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612023576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600061202d611035565b14612083576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806135a36021913960400191505060405180910390fd5b6040518060a0016040528087815260200186815260200185815260200184815260200183815250600760008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401559050508060048190555043600581905550505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146121ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4f6e6c79207375627369647920636f6e74726f6c6c657200000000000000000081525060200191505060405180910390fd5b6006549050600060068190555090565b60126020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b6000612387670de0b6b3a76400006123796123746122ce7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561227757600080fd5b505afa15801561228b573d6000803e3d6000fd5b505050506040513d60208110156122a157600080fd5b810190808051906020019092919050505060ff16600a0a6122c0611035565b6125f390919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561233457600080fd5b505afa158015612348573d6000803e3d6000fd5b505050506040513d602081101561235e57600080fd5b8101908080519060200190929190505050612795565b612a76565b61267990919063ffffffff16565b905090565b60078060000154908060010154908060020154908060030154908060040154905085565b600061249c61246c60057f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561242057600080fd5b505afa158015612434573d6000803e3d6000fd5b505050506040513d602081101561244a57600080fd5b810190808051906020019092919050505060ff1661274b90919063ffffffff16565b600a0a61248e61247a6121fa565b6007600001546125f390919063ffffffff16565b61267990919063ffffffff16565b90506007600201548110156124b45760076002015490505b90565b6000612586620186a06125786007600301547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561252f57600080fd5b505afa158015612543573d6000803e3d6000fd5b505050506040513d602081101561255957600080fd5b81019080805190602001909291905050506125f390919063ffffffff16565b61267990919063ffffffff16565b905090565b6000806125a36005544361274b90919063ffffffff16565b90506125d16007600101546125c3836004546125f390919063ffffffff16565b61267990919063ffffffff16565b91506004548211156125e35760045491505b5090565b60055481565b60045481565b6000808314156126065760009050612673565b600082840290508284828161261757fe5b041461266e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806135c46021913960400191505060405180910390fd5b809150505b92915050565b60006126bb83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612ecb565b905092915050565b600080828401905083811015612741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061278d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f91565b905092915050565b61279d61354b565b600082116127f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061357d6026913960400191505060405180910390fd5b600083141561283457604051806020016040528060007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509050612a70565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff71ffffffffffffffffffffffffffffffffffff16831161296d57600082607060ff1685901b8161288157fe5b0490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16811115612938576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f77000081525060200191505060405180910390fd5b6040518060200160405280827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16815250915050612a70565b6000612989846e01000000000000000000000000000085613051565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16811115612a3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4669786564506f696e743a3a6672616374696f6e3a206f766572666c6f77000081525060200191505060405180910390fd5b6040518060200160405280827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509150505b92915050565b60006612725dd1d243ab82600001517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681612aaa57fe5b049050919050565b612ace612abd61258b565b60045461274b90919063ffffffff16565b60048190555043600581905550565b612b7a8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613113565b505050565b612c3a846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613113565b50505050565b6000612d2c612cfc60057f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612cb057600080fd5b505afa158015612cc4573d6000803e3d6000fd5b505050506040513d6020811015612cda57600080fd5b810190808051906020019092919050505060ff1661274b90919063ffffffff16565b600a0a612d1e612d0a6121fa565b6007600001546125f390919063ffffffff16565b61267990919063ffffffff16565b9050600760020154811015612d48576007600201549050612d62565b600060076002015414612d615760006007600201819055505b5b90565b6000612d84600c60030154600c600401546126c390919063ffffffff16565b90506000600c6001015414158015612d9c5750804310155b15612ec85760006007600001549050600c60000160009054906101000a900460ff1615612e0b57612de0600c600101546007600001546126c390919063ffffffff16565b600760000181905550600c6002015460076000015410612e06576000600c600101819055505b612e4f565b612e28600c6001015460076000015461274b90919063ffffffff16565b600760000181905550600c6002015460076000015411612e4e576000600c600101819055505b5b43600c600401819055507fb923e581a0f83128e9e1d8297aa52b18d6744310476e0b54509c054cd7a93b2a81600760000154600c60010154600c60000160009054906101000a900460ff1660405180858152602001848152602001838152602001821515815260200194505050505060405180910390a1505b50565b60008083118290612f77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f3c578082015181840152602081019050612f21565b50505050905090810190601f168015612f695780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581612f8357fe5b049050809150509392505050565b600083831115829061303e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613003578082015181840152602081019050612fe8565b50505050905090810190601f1680156130305780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008060006130608686613202565b915091506000848061306e57fe5b868809905082811115613082576001820391505b80830392508482106130fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f46756c6c4d6174683a3a6d756c4469763a206f766572666c6f7700000000000081525060200191505060405180910390fd5b613107838387613255565b93505050509392505050565b6060613175826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166132f29092919063ffffffff16565b90506000815111156131fd5780806020019051602081101561319657600080fd5b81019080805190602001909291905050506131fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061362c602a913960400191505060405180910390fd5b5b505050565b60008060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8061322f57fe5b8486099050838502925082810391508281101561324d576001820391505b509250929050565b600080826000038316905080838161326957fe5b04925080858161327557fe5b049450600181826000038161328657fe5b04018402850194506000600190508084026002038102905080840260020381029050808402600203810290508084026002038102905080840260020381029050808402600203810290508084026002038102905080840260020381029050808602925050509392505050565b6060613301848460008561330a565b90509392505050565b606061331585613510565b613387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106133d757805182526020820191506020810190506020830392506133b4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613439576040519150601f19603f3d011682016040523d82523d6000602084013e61343e565b606091505b50915091508115613453578092505050613508565b6000815111156134665780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156134cd5780820151818401526020810190506134b2565b50505050905090810190601f1680156134fa5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b905060008111915050919050565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b604051806020016040528060007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168152509056fe4669786564506f696e743a3a6672616374696f6e3a206469766973696f6e206279207a65726f44656274206d757374206265203020666f7220696e697469616c697a6174696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77536c697070616765206c696d69743a206d6f7265207468616e206d617820707269636556657374696e67206d757374206265206c6f6e676572207468616e20333620686f7572735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212207cb53c88ecec9dfdd35a46205abf5d87d65edd1e744dff1ab354c0e2ce4a563e64736f6c6343000705003374696572206c656e67746820616e6420666565206c656e677468206e6f74207468652073616d65000000000000000000000000c67db2061f5a6d7309a2ae0066652a354bcb7fc40000000000000000000000000efb424c465dbd0a626359d63412838f727f2c250000000000000000000000009a315bdf513367c0377fb36545857d12e85813ef0000000000000000000000005a5b49dcf339bc0d5dac1736ec95a85ed4b4842f0000000000000000000000009b7d53474da61cb51807da492244ec4de9d40af900000000000000000000000015fddc0d0397117b46903c1f6c735b55755c2a3a0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000008214

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

000000000000000000000000c67db2061f5a6d7309a2ae0066652a354bcb7fc40000000000000000000000000efb424c465dbd0a626359d63412838f727f2c250000000000000000000000009a315bdf513367c0377fb36545857d12e85813ef0000000000000000000000005a5b49dcf339bc0d5dac1736ec95a85ed4b4842f0000000000000000000000009b7d53474da61cb51807da492244ec4de9d40af900000000000000000000000015fddc0d0397117b46903c1f6c735b55755c2a3a0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000008214

-----Decoded View---------------
Arg [0] : _customTreasury (address): 0xc67db2061f5a6d7309a2ae0066652a354bcb7fc4
Arg [1] : _principalToken (address): 0x0efb424c465dbd0a626359d63412838f727f2c25
Arg [2] : _olympusTreasury (address): 0x9a315bdf513367c0377fb36545857d12e85813ef
Arg [3] : _subsidyRouter (address): 0x5a5b49dcf339bc0d5dac1736ec95a85ed4b4842f
Arg [4] : _initialOwner (address): 0x9b7d53474da61cb51807da492244ec4de9d40af9
Arg [5] : _olympusDAO (address): 0x15fddc0d0397117b46903c1f6c735b55755c2a3a
Arg [6] : _tierCeilings (uint256[]): 0
Arg [7] : _fees (uint256[]): 33300
Arg [8] : _feeInPayout (bool): True

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 000000000000000000000000c67db2061f5a6d7309a2ae0066652a354bcb7fc4
Arg [1] : 0000000000000000000000000efb424c465dbd0a626359d63412838f727f2c25
Arg [2] : 0000000000000000000000009a315bdf513367c0377fb36545857d12e85813ef
Arg [3] : 0000000000000000000000005a5b49dcf339bc0d5dac1736ec95a85ed4b4842f
Arg [4] : 0000000000000000000000009b7d53474da61cb51807da492244ec4de9d40af9
Arg [5] : 00000000000000000000000015fddc0d0397117b46903c1f6c735b55755c2a3a
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [12] : 0000000000000000000000000000000000000000000000000000000000008214


Deployed ByteCode Sourcemap

15888:17905:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32944:400;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;15381:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29651:156;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21991:466;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21245:550;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;16880:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;15604:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;22573:185;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;17202:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33460:324;;;:::i;:::-;;;;;;;;;;;;;;;;;;;32336:427;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31681:106;;;:::i;:::-;;;;;;;;;;;;;;;;;;;30504:577;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;16841:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23400:2631;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26123:1229;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20391:613;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;22919:254;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17365:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31320:262;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17147:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29255:286;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29900:138;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31889:286;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16997:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16915;;;:::i;:::-;;;;;;;;;;;;;;;;;;;32944:400;33016:19;33049:18;33070:30;33088:10;33070:16;:30::i;:::-;33049:51;;33111:11;33125:8;:22;33135:10;33125:22;;;;;;;;;;;;;;;:29;;;33111:43;;33189:5;33172:13;:22;33167:170;;33229:6;33212:23;;33167:170;;;33285:40;33318:5;33285:27;33297:13;33285:6;:10;;:27;;;;:::i;:::-;:31;;:40;;;;:::i;:::-;33268:57;;33167:170;32944:400;;;;;:::o;15381:21::-;;;;;;;;;;;;:::o;29651:156::-;29698:11;29732:67;29748:49;29792:3;29748:38;29765:19;:17;:19::i;:::-;29748:11;:9;:11::i;:::-;:15;;:38;;;;:::i;:::-;:42;;:49;;;;:::i;:::-;29732:11;:9;:11::i;:::-;:15;;:67;;;;:::i;:::-;29723:76;;29651:156;:::o;21991:466::-;15524:10;15514:20;;:6;;;;;;;;;;:20;;;15505:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22178:43:::1;22215:4;22178:31;22205:2;22178:5;:21;;;:25;;:31;;;;:::i;:::-;:35;;:43;;;;:::i;:::-;22164:10;:57;;22155:91;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;22272:177;;;;;;;;22299:9;22272:177;;;;;;22329:10;22272:177;;;;22362:7;22272:177;;;;22392:7;22272:177;;;;22425:12;22272:177;;::::0;22259:10:::1;:190;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21991:466:::0;;;;:::o;21245:550::-;15524:10;15514:20;;:6;;;;;;;;;;:20;;;15505:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21357:17:::1;21343:31;;;;;;;;:10;:31;;;;;;;;;21338:450;;;21416:5;21406:6;:15;;21397:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21498:6;21478:5;:17;;:26;;;;21338:450;;;21541:16;21527:30;;;;;;;;:10;:30;;;;;;;;;21522:266;;;21599:4;21589:6;:14;;21580:61;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;21674:6;21656:5;:15;;:24;;;;21522:266;;;21717:14;21703:28:::0;::::1;;;;;;;:10;:28;;;;;;;;;21698:90;;;21770:6;21754:5;:13;;:22;;;;21698:90;21522:266;21338:450;21245:550:::0;;:::o;16880:28::-;;;;:::o;15604:150::-;15524:10;15514:20;;:6;;;;;;;;;;:20;;;15505:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15713:1:::1;15692:23;;:9;:23;;;;15683:34;;;::::0;::::1;;15737:9;15728:6;::::0;:18:::1;;;;;;;;;;;;;;;;;;15604:150:::0;:::o;22573:185::-;22673:10;22659:24;;:10;:24;;;22650:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22734:16;22716:15;;:34;;;;;;;;;;;;;;;;;;22573:185;:::o;17202:24::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;33460:324::-;33510:16;33540:15;33558:8;:15;;;;33540:33;;33588:6;33584:193;33600:10;33596:1;:14;33584:193;;;33658:8;33667:1;33658:11;;;;;;;;;;;;;;;;;;:24;;;33635:20;;:47;:70;;;;33704:1;33691:10;:14;33686:1;:19;33635:70;33632:134;;;33734:8;33743:1;33734:11;;;;;;;;;;;;;;;;;;:16;;;33727:23;;;;;;33632:134;33612:3;;;;;;;33584:193;;;;33460:324;;;:::o;32336:427::-;32406:19;32439:16;;:::i;:::-;32458:8;:22;32468:10;32458:22;;;;;;;;;;;;;;;32439:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32491:20;32514:34;32532:4;:14;;;32514:12;:16;;:34;;;;:::i;:::-;32491:57;;32559:12;32574:4;:12;;;32559:27;;32614:1;32604:7;:11;32599:157;;;32650:43;32684:7;32650:28;32671:5;32650:15;:19;;:28;;;;:::i;:::-;:32;;:43;;;;:::i;:::-;32633:60;;32599:157;;;32743:1;32726:18;;32599:157;32336:427;;;;;;:::o;31681:106::-;31726:4;31751:28;31766:11;:9;:11::i;:::-;31751:9;;:13;;:28;;;;:::i;:::-;31744:35;;31681:106;:::o;30504:577::-;30560:12;30574:9;30599:11;30596:478;;;30627:10;30640:72;30706:4;30640:60;:42;30661:6;30669:11;:9;:11::i;:::-;30640:19;:42::i;:::-;:58;:60::i;:::-;:64;;:72;;;;:::i;:::-;30627:85;;30734:43;30772:3;30734:32;30745:19;:17;:19::i;:::-;30734:5;:9;;:32;;;;:::i;:::-;:36;;:43;;;;:::i;:::-;30727:50;;30802:15;30812:4;30802:5;:9;;:15;;;;:::i;:::-;30792:25;;30596:478;;;;30857:44;30896:3;30857:33;30869:19;:17;:19::i;:::-;30857:6;:10;;:33;;;;:::i;:::-;:37;;:44;;;;:::i;:::-;30850:51;;30926:136;31056:4;30926:124;:106;30947:14;:27;;;30983:14;31000:16;31011:4;31000:6;:10;;:16;;;;:::i;:::-;30947:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31019:11;:9;:11::i;:::-;30926:19;:106::i;:::-;:122;:124::i;:::-;:128;;:136;;;;:::i;:::-;30916:146;;30596:478;30504:577;;;:::o;16841:32::-;;;;:::o;23400:2631::-;23485:4;23533:1;23511:24;;:10;:24;;;;23502:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23569:11;:9;:11::i;:::-;23601:16;23620:15;:13;:15::i;:::-;23601:34;;23670:11;23657:9;:24;;23648:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23758:10;23771:14;:27;;;23808:14;23825:7;23771:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23758:76;;23847:11;23869:8;23893:11;23890:247;;;23937:18;23948:5;23937:9;:18::i;:::-;23921:34;;;;;;;;23890:247;;;24034:20;24045:7;24034:9;:20::i;:::-;24018:36;;;;;;;;24109:16;24121:3;24109:7;:11;;:16;;;;:::i;:::-;24099:26;;23890:247;24199:3;24174:11;:20;;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24168:28;;:2;:28;:34;;;;;;24158:6;:44;;24149:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24308:11;:9;:11::i;:::-;24298:6;:21;;24289:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24455:22;24470:5;24455:9;;:13;;:22;;;;:::i;:::-;24443:9;:34;;;;24512:5;:13;;;24499:9;;:26;;24490:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24642:208;;;;;;;;24671:43;24706:6;24671:8;:22;24681:10;24671:22;;;;;;;;;;;;;;;:29;;;:33;;:43;;;;:::i;:::-;24642:208;;;;24738:5;:17;;;24642:208;;;;24781:12;24642:208;;;;24823:15;:13;:15::i;:::-;24642:208;;;24617:8;:22;24627:10;24617:22;;;;;;;;;;;;;;;:233;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24886:33;24911:7;24886:20;;:24;;:33;;;;:::i;:::-;24863:20;:56;;;;24975:28;24996:6;24975:16;;:20;;:28;;;;:::i;:::-;24956:16;:47;;;;25065:36;25093:6;25065:22;;:26;;:36;;;;:::i;:::-;25040:22;:61;;;;25146:11;25143:476;;;25174:14;:31;;;25207:15;25218:3;25207:6;:10;;:15;;;;:::i;:::-;25174:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25249:1;25242:3;:8;25239:130;;25307:46;25332:15;;;;;;;;;;;25349:3;25307:11;:24;;;;:46;;;;;:::i;:::-;25239:130;25143:476;;;25401:14;:31;;;25434:6;25401:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25467:1;25460:3;:8;25457:151;;25525:67;25558:10;25570:15;;;;;;;;;;;25587:3;25525:14;:31;;;;:67;;;;;;:::i;:::-;25457:151;25143:476;25631:79;25664:10;25684:14;25701:7;25631:14;:31;;;;:79;;;;;;:::i;:::-;25815:69;25828:7;25837:6;25845:37;25863:5;:17;;;25845:12;:16;;:37;;;;:::i;:::-;25815:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25900:45;25918:12;:10;:12::i;:::-;25932:11;:9;:11::i;:::-;25900:45;;;;;;;;;;;;;;;;;;;;;;;;25958:8;:6;:8::i;:::-;26016:6;26009:13;;;;;;23400:2631;;;;;:::o;26123:1229::-;26177:4;26194:16;;:::i;:::-;26213:8;:22;26223:10;26213:22;;;;;;;;;;;;;;;26194:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26246:18;26267:30;26285:10;26267:16;:30::i;:::-;26246:51;;26392:5;26375:13;:22;26370:965;;26441:8;:22;26451:10;26441:22;;;;;;;;;;;;;;;;26434:29;;;;;;;;;;;;;;;;;;;;;;;;;;26503:42;26517:10;26529:4;:11;;;26542:1;26503:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26578:51;26604:10;26616:4;:11;;;26578;:24;;;;:51;;;;;:::i;:::-;26651:4;:11;;;26644:18;;;;;;26370:965;26754:11;26768:45;26806:5;26768:32;26785:13;26768:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:45;;;;:::i;:::-;26754:59;;26898:249;;;;;;;;26930:25;26947:6;26930:4;:11;;;:15;;:25;;;;:::i;:::-;26898:249;;;;26983:54;27001:34;27019:4;:14;;;27001:12;:16;;:34;;;;:::i;:::-;26983:4;:12;;;:16;;:54;;;;:::i;:::-;26898:249;;;;27067:12;26898:249;;;;27113:4;:18;;;26898:249;;;26873:8;:22;26883:10;26873:22;;;;;;;;;;;;;;;:274;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27169:65;27183:10;27195:6;27203:8;:22;27213:10;27203:22;;;;;;;;;;;;;;;:29;;;27169:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27249:46;27275:10;27287:6;27249:11;:24;;;;:46;;;;;:::i;:::-;27317:6;27310:13;;;;;26123:1229;;;;:::o;20391:613::-;15524:10;15514:20;;:6;;;;;;;;;;:20;;;15505:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20650:1:::1;20633:13;:11;:13::i;:::-;:18;20624:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20709:217;;;;;;;;20748:16;20709:217;;;;20792:12;20709:217;;;;20833:13;20709:217;;;;20872:10;20709:217;;;;20906:8;20709:217;;::::0;20701:5:::1;:225;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20949:12;20937:9;:24;;;;20984:12;20972:9;:24;;;;20391:613:::0;;;;;;:::o;22919:254::-;22960:28;23025:13;23011:27;;:10;:27;;;23002:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23106:22;;23080:48;;23164:1;23139:22;:26;;;;22919:254;:::o;17365:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;31320:262::-;31363:15;31408:166;31568:4;31408:154;:136;31443:49;31468:11;:20;;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31462:28;;:2;:28;31443:13;:11;:13::i;:::-;:17;;:49;;;;:::i;:::-;31508:11;:23;;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31408:19;:136::i;:::-;:152;:154::i;:::-;:158;;:166;;;;:::i;:::-;31395:179;;31320:262;:::o;17147:18::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;29255:286::-;29298:11;29340:94;29393:38;29429:1;29401:11;:20;;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29393:31;;:35;;:38;;;;:::i;:::-;29386:2;:46;29340:40;29367:11;:9;:11::i;:::-;29340:5;:21;;;:25;;:40;;;;:::i;:::-;:44;;:94;;;;:::i;:::-;29331:103;;29459:5;:18;;;29450:6;:27;29445:89;;;29504:5;:18;;;29495:27;;29445:89;29255:286;:::o;29900:138::-;29943:4;29968:62;30022:6;29968:48;29999:5;:15;;;29968:11;:23;;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:29;;:48;;;;:::i;:::-;:52;;:62;;;;:::i;:::-;29961:69;;29900:138;:::o;31889:286::-;31932:11;31957:20;31980:29;31998:9;;31980:12;:16;;:29;;;;:::i;:::-;31957:52;;32029:57;32067:5;:17;;;32029:32;32044:15;32029:9;;:13;;:32;;;;:::i;:::-;:36;;:57;;;;:::i;:::-;32020:66;;32111:9;;32102:6;:18;32097:71;;;32147:9;;32138:18;;32097:71;31889:286;;:::o;16997:21::-;;;;:::o;16915:::-;;;;:::o;631:250::-;689:7;718:1;713;:6;709:47;;;743:1;736:8;;;;709:47;768:9;784:1;780;:5;768:17;;813:1;808;804;:5;;;;;;:10;796:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;872:1;865:8;;;631:250;;;;;:::o;889:132::-;947:7;974:39;978:1;981;974:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;967:46;;889:132;;;;:::o;98:181::-;156:7;176:9;192:1;188;:5;176:17;;217:1;212;:6;;204:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;270:1;263:8;;;98:181;;;;:::o;287:136::-;345:7;372:43;376:1;379;372:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;365:50;;287:136;;;;:::o;13676:719::-;13757:16;;:::i;:::-;13808:1;13794:11;:15;13786:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13880:1;13867:9;:14;13863:50;;;13890:23;;;;;;;;13911:1;13890:23;;;;;13883:30;;;;13863:50;13951:2;13930:24;;:9;:24;13926:462;;13971:14;14016:11;13102:3;13989:23;;:9;:23;;13988:39;;;;;;13971:56;;14068:2;14050:21;;:6;:21;;14042:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14128:26;;;;;;;;14146:6;14128:26;;;;;14121:33;;;;;13926:462;14187:14;14204:45;14220:9;13144:31;14237:11;14204:15;:45::i;:::-;14187:62;;14290:2;14272:21;;:6;:21;;14264:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14350:26;;;;;;;;14368:6;14350:26;;;;;14343:33;;;13676:719;;;;;:::o;13531:137::-;13602:4;13644:16;13633:4;:7;;;13628:13;;:32;;;;;;13621:39;;13531:137;;;:::o;28483:124::-;28536:28;28551:11;:9;:11::i;:::-;28536:9;;:13;;:28;;;;:::i;:::-;28524:9;:40;;;;28587:12;28575:9;:24;;;;28483:124::o;7926:177::-;8009:86;8029:5;8059:23;;;8084:2;8088:5;8036:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8009:19;:86::i;:::-;7926:177;;;:::o;8111:205::-;8212:96;8232:5;8262:27;;;8291:4;8297:2;8301:5;8239:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8212:19;:96::i;:::-;8111:205;;;;:::o;28734:370::-;28775:11;28809:94;28862:38;28898:1;28870:11;:20;;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28862:31;;:35;;:38;;;;:::i;:::-;28855:2;:46;28809:40;28836:11;:9;:11::i;:::-;28809:5;:21;;;:25;;:40;;;;:::i;:::-;:44;;:94;;;;:::i;:::-;28800:103;;28928:5;:18;;;28919:6;:27;28914:183;;;28973:5;:18;;;28964:27;;28914:183;;;29044:1;29022:5;:18;;;:23;29017:80;;29084:1;29063:5;:18;;:22;;;;29017:80;28914:183;28734:370;:::o;27505:917::-;27543:19;27565:45;27591:10;:17;;;27565:10;:20;;;:24;;:45;;;;:::i;:::-;27543:67;;27644:1;27625:10;:15;;;:20;;:54;;;;;27665:14;27649:12;:30;;27625:54;27621:794;;;27697:12;27712:5;:21;;;27697:36;;27753:10;:14;;;;;;;;;;;;27748:494;;;27813:44;27840:10;:15;;;27813:5;:21;;;:25;;:44;;;;:::i;:::-;27789:5;:21;;:68;;;;27906:10;:17;;;27881:5;:21;;;:42;27876:112;;27967:1;27949:10;:15;;:19;;;;27876:112;27748:494;;;28052:44;28079:10;:15;;;28052:5;:21;;;:25;;:44;;;;:::i;:::-;28028:5;:21;;:68;;;;28145:10;:17;;;28120:5;:21;;;:42;28115:112;;28206:1;28188:10;:15;;:19;;;;28115:112;27748:494;28279:12;28256:10;:20;;:35;;;;28311:92;28338:7;28347:5;:21;;;28370:10;:15;;;28387:10;:14;;;;;;;;;;;;28311:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27621:794;;27505:917;:::o;1029:189::-;1115:7;1147:1;1143;:5;1150:12;1135:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1174:9;1190:1;1186;:5;;;;;;1174:17;;1209:1;1202:8;;;1029:189;;;;;:::o;431:192::-;517:7;550:1;545;:6;;553:12;537:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;577:9;593:1;589;:5;577:17;;614:1;607:8;;;431:192;;;;;:::o;10546:347::-;10652:7;10673:9;10684;10697:13;10705:1;10708;10697:7;:13::i;:::-;10672:38;;;;10721:10;10747:1;10734:15;;;;;10744:1;10741;10734:15;10721:28;;10769:1;10764:2;:6;10760:18;;;10777:1;10772:6;;;;10760:18;10794:2;10789:7;;;;10819:1;10815;:5;10807:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10869:16;10877:1;10880;10883;10869:7;:16::i;:::-;10862:23;;;;;10546:347;;;;;:::o;9315:420::-;9398:23;9424:69;9452:4;9424:69;;;;;;;;;;;;;;;;;9432:5;9424:27;;;;:69;;;;;:::i;:::-;9398:95;;9528:1;9508:10;:17;:21;9504:224;;;9650:10;9639:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9631:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9504:224;9315:420;;;:::o;9838:210::-;9899:9;9910;9932:10;9966:2;9945:25;;;;;9955:1;9952;9945:25;9932:38;;9989:1;9985;:5;9981:9;;10010:1;10005:2;:6;10001:10;;10031:1;10026:2;:6;10022:18;;;10039:1;10034:6;;;;10022:18;9838:210;;;;;;:::o;10056:482::-;10162:7;10182:12;10202:1;10201:2;;10197:1;:6;10182:21;;10219:4;10214:9;;;;;;;;;10239:4;10234:9;;;;;;;;;10281:1;10274:4;10266;10265:5;;10264:14;;;;;;:18;10259:1;:24;10254:29;;;;10294:9;10306:1;10294:13;;10331:1;10327;:5;10323:1;:9;10318:14;;;;10356:1;10352;:5;10348:1;:9;10343:14;;;;10381:1;10377;:5;10373:1;:9;10368:14;;;;10406:1;10402;:5;10398:1;:9;10393:14;;;;10431:1;10427;:5;10423:1;:9;10418:14;;;;10456:1;10452;:5;10448:1;:9;10443:14;;;;10481:1;10477;:5;10473:1;:9;10468:14;;;;10506:1;10502;:5;10498:1;:9;10493:14;;;;10529:1;10525;:5;10518:12;;;;10056:482;;;;;:::o;2758:196::-;2861:12;2893:53;2916:6;2924:4;2930:1;2933:12;2893:22;:53::i;:::-;2886:60;;2758:196;;;;;:::o;3734:979::-;3864:12;3897:18;3908:6;3897:10;:18::i;:::-;3889:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4023:12;4037:23;4064:6;:11;;4084:8;4095:4;4064:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4022:78;;;;4115:7;4111:595;;;4146:10;4139:17;;;;;;4111:595;4280:1;4260:10;:17;:21;4256:439;;;4523:10;4517:17;4584:15;4571:10;4567:2;4563:19;4556:44;4471:148;4666:12;4659:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3734:979;;;;;;;:::o;1931:233::-;1991:4;2010:12;2121:7;2109:20;2101:28;;2155:1;2148:4;:8;2141:15;;;1931:233;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://7cb53c88ecec9dfdd35a46205abf5d87d65edd1e744dff1ab354c0e2ce4a563e
Block Transaction Difficulty Gas Used Reward
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.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.