ETH Price: $2,141.35 (+0.16%)

Contract

0xE8AA528D11d89c137F79A6d1Ca7dFdDC41dcF9b0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw208309612024-09-25 23:39:59540 days ago1727307599IN
0xE8AA528D...C41dcF9b0
0 ETH0.0010887613.08360111
Claim208309412024-09-25 23:35:59540 days ago1727307359IN
0xE8AA528D...C41dcF9b0
0 ETH0.0012919513.95489539
Unbond116954292021-01-20 23:49:151884 days ago1611186555IN
0xE8AA528D...C41dcF9b0
0 ETH0.0071419367
Unbond116812032021-01-18 19:48:381886 days ago1610999318IN
0xE8AA528D...C41dcF9b0
0 ETH0.006962276
Unbond116595022021-01-15 11:46:251890 days ago1610711185IN
0xE8AA528D...C41dcF9b0
0 ETH0.0041218245.00000145
Withdraw116573502021-01-15 4:01:261890 days ago1610683286IN
0xE8AA528D...C41dcF9b0
0 ETH0.0017551247.00000145
Claim116573502021-01-15 4:01:261890 days ago1610683286IN
0xE8AA528D...C41dcF9b0
0 ETH0.0017593947.00000145
Unbond116488662021-01-13 20:26:161891 days ago1610569576IN
0xE8AA528D...C41dcF9b0
0 ETH0.0042638440
Claim116454242021-01-13 7:56:211892 days ago1610524581IN
0xE8AA528D...C41dcF9b0
0 ETH0.0028988543.94265074
Withdraw116454242021-01-13 7:56:211892 days ago1610524581IN
0xE8AA528D...C41dcF9b0
0 ETH0.0028608443.94265074
Unbond116438412021-01-13 1:57:321892 days ago1610503052IN
0xE8AA528D...C41dcF9b0
0 ETH0.004110744.87864797
Unbond115986492021-01-06 3:45:481899 days ago1609904748IN
0xE8AA528D...C41dcF9b0
0 ETH0.0069287465
Bond115974662021-01-05 23:11:371899 days ago1609888297IN
0xE8AA528D...C41dcF9b0
0 ETH0.0100936499
Unbond115974592021-01-05 23:09:551899 days ago1609888195IN
0xE8AA528D...C41dcF9b0
0 ETH0.0101277695
Claim115905372021-01-04 21:43:201900 days ago1609796600IN
0xE8AA528D...C41dcF9b0
0 ETH0.0046837971
Claim115896342021-01-04 18:28:351900 days ago1609784915IN
0xE8AA528D...C41dcF9b0
0 ETH0.0059372190
Withdraw115895392021-01-04 18:07:321900 days ago1609783652IN
0xE8AA528D...C41dcF9b0
0 ETH0.0065104100
Claim115887192021-01-04 15:13:301900 days ago1609773210IN
0xE8AA528D...C41dcF9b0
0 ETH0.01207452183
Withdraw115844492021-01-03 23:17:121901 days ago1609715832IN
0xE8AA528D...C41dcF9b0
0 ETH0.01041664160
Claim115844492021-01-03 23:17:121901 days ago1609715832IN
0xE8AA528D...C41dcF9b0
0 ETH0.01055504160
Withdraw115837042021-01-03 20:25:281901 days ago1609705528IN
0xE8AA528D...C41dcF9b0
0 ETH0.005696687.5
Claim115837002021-01-03 20:24:581901 days ago1609705498IN
0xE8AA528D...C41dcF9b0
0 ETH0.0058042188
Unbond115815072021-01-03 12:24:121902 days ago1609676652IN
0xE8AA528D...C41dcF9b0
0 ETH0.0045836243
Claim115814082021-01-03 12:03:371902 days ago1609675417IN
0xE8AA528D...C41dcF9b0
0 ETH0.0054094582
Unbond115803882021-01-03 8:26:581902 days ago1609662418IN
0xE8AA528D...C41dcF9b0
0 ETH0.0097002391
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
-115485172020-12-29 11:00:061907 days ago1609239606  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Pool

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-12-30
*/

// Dependency file: @openzeppelin/contracts/math/SafeMath.sol

// pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol

// pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * // importANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// Dependency file: contracts/external/Require.sol

/*
    Copyright 2019 dYdX Trading Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.7;

/**
 * @title Require
 * @author dYdX
 *
 * Stringifies parameters to pretty-print revert messages. Costs more gas than regular require()
 */
library Require {

    // ============ Constants ============

    uint256 constant ASCII_ZERO = 48; // '0'
    uint256 constant ASCII_RELATIVE_ZERO = 87; // 'a' - 10
    uint256 constant ASCII_LOWER_EX = 120; // 'x'
    bytes2 constant COLON = 0x3a20; // ': '
    bytes2 constant COMMA = 0x2c20; // ', '
    bytes2 constant LPAREN = 0x203c; // ' <'
    byte constant RPAREN = 0x3e; // '>'
    uint256 constant FOUR_BIT_MASK = 0xf;

    // ============ Library Functions ============

    function that(
        bool must,
        bytes32 file,
        bytes32 reason
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason)
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        uint256 payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        uint256 payloadA,
        uint256 payloadB
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA,
        uint256 payloadB
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        address payloadA,
        uint256 payloadB,
        uint256 payloadC
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        COMMA,
                        stringify(payloadC),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        bytes32 payloadA
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        RPAREN
                    )
                )
            );
        }
    }

    function that(
        bool must,
        bytes32 file,
        bytes32 reason,
        bytes32 payloadA,
        uint256 payloadB,
        uint256 payloadC
    )
    internal
    pure
    {
        if (!must) {
            revert(
                string(
                    abi.encodePacked(
                        stringifyTruncated(file),
                        COLON,
                        stringifyTruncated(reason),
                        LPAREN,
                        stringify(payloadA),
                        COMMA,
                        stringify(payloadB),
                        COMMA,
                        stringify(payloadC),
                        RPAREN
                    )
                )
            );
        }
    }

    // ============ Private Functions ============

    function stringifyTruncated(
        bytes32 input
    )
    private
    pure
    returns (bytes memory)
    {
        // put the input bytes into the result
        bytes memory result = abi.encodePacked(input);

        // determine the length of the input by finding the location of the last non-zero byte
        for (uint256 i = 32; i > 0; ) {
            // reverse-for-loops with unsigned integer
            /* solium-disable-next-line security/no-modify-for-iter-var */
            i--;

            // find the last non-zero byte in order to determine the length
            if (result[i] != 0) {
                uint256 length = i + 1;

                /* solium-disable-next-line security/no-inline-assembly */
                assembly {
                    mstore(result, length) // r.length = length;
                }

                return result;
            }
        }

        // all bytes are zero
        return new bytes(0);
    }

    function stringify(
        uint256 input
    )
    private
    pure
    returns (bytes memory)
    {
        if (input == 0) {
            return "0";
        }

        // get the final string length
        uint256 j = input;
        uint256 length;
        while (j != 0) {
            length++;
            j /= 10;
        }

        // allocate the string
        bytes memory bstr = new bytes(length);

        // populate the string starting with the least-significant character
        j = input;
        for (uint256 i = length; i > 0; ) {
            // reverse-for-loops with unsigned integer
            /* solium-disable-next-line security/no-modify-for-iter-var */
            i--;

            // take last decimal digit
            bstr[i] = byte(uint8(ASCII_ZERO + (j % 10)));

            // remove the last decimal digit
            j /= 10;
        }

        return bstr;
    }

    function stringify(
        address input
    )
    private
    pure
    returns (bytes memory)
    {
        uint256 z = uint256(input);

        // addresses are "0x" followed by 20 bytes of data which take up 2 characters each
        bytes memory result = new bytes(42);

        // populate the result with "0x"
        result[0] = byte(uint8(ASCII_ZERO));
        result[1] = byte(uint8(ASCII_LOWER_EX));

        // for each byte (starting from the lowest byte), populate the result with two characters
        for (uint256 i = 0; i < 20; i++) {
            // each byte takes two characters
            uint256 shift = i * 2;

            // populate the least-significant character
            result[41 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;

            // populate the most-significant character
            result[40 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;
        }

        return result;
    }

    function stringify(
        bytes32 input
    )
    private
    pure
    returns (bytes memory)
    {
        uint256 z = uint256(input);

        // bytes32 are "0x" followed by 32 bytes of data which take up 2 characters each
        bytes memory result = new bytes(66);

        // populate the result with "0x"
        result[0] = byte(uint8(ASCII_ZERO));
        result[1] = byte(uint8(ASCII_LOWER_EX));

        // for each byte (starting from the lowest byte), populate the result with two characters
        for (uint256 i = 0; i < 32; i++) {
            // each byte takes two characters
            uint256 shift = i * 2;

            // populate the least-significant character
            result[65 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;

            // populate the most-significant character
            result[64 - shift] = char(z & FOUR_BIT_MASK);
            z = z >> 4;
        }

        return result;
    }

    function char(
        uint256 input
    )
    private
    pure
    returns (byte)
    {
        // return ASCII digit (0-9)
        if (input < 10) {
            return byte(uint8(input + ASCII_ZERO));
        }

        // return ASCII letter (a-f)
        return byte(uint8(input + ASCII_RELATIVE_ZERO));
    }
}

// Dependency file: contracts/external/Decimal.sol

/*
    Copyright 2019 dYdX Trading Inc.
    Copyright 2020 BullProtocol Devs 

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.7;
pragma experimental ABIEncoderV2;

// import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";

/**
 * @title Decimal
 * @author dYdX
 *
 * Library that defines a fixed-point number with 18 decimal places.
 */
library Decimal {
    using SafeMath for uint256;

    // ============ Constants ============

    uint256 constant BASE = 10**18;

    // ============ Structs ============


    struct D256 {
        uint256 value;
    }

    // ============ Static Functions ============

    function zero()
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: 0 });
    }

    function one()
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: BASE });
    }

    function from(
        uint256 a
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: a.mul(BASE) });
    }

    function ratio(
        uint256 a,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(a, BASE, b) });
    }

    // ============ Self Functions ============

    function add(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.add(b.mul(BASE)) });
    }

    function sub(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.mul(BASE)) });
    }

    function sub(
        D256 memory self,
        uint256 b,
        string memory reason
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.mul(BASE), reason) });
    }

    function mul(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.mul(b) });
    }

    function div(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.div(b) });
    }

    function pow(
        D256 memory self,
        uint256 b
    )
    internal
    pure
    returns (D256 memory)
    {
        if (b == 0) {
            return from(1);
        }

        D256 memory temp = D256({ value: self.value });
        for (uint256 i = 1; i < b; i++) {
            temp = mul(temp, self);
        }

        return temp;
    }

    function add(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.add(b.value) });
    }

    function sub(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.value) });
    }

    function sub(
        D256 memory self,
        D256 memory b,
        string memory reason
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: self.value.sub(b.value, reason) });
    }

    function mul(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(self.value, b.value, BASE) });
    }

    function div(
        D256 memory self,
        D256 memory b
    )
    internal
    pure
    returns (D256 memory)
    {
        return D256({ value: getPartial(self.value, BASE, b.value) });
    }

    function equals(D256 memory self, D256 memory b) internal pure returns (bool) {
        return self.value == b.value;
    }

    function greaterThan(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) == 2;
    }

    function lessThan(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) == 0;
    }

    function greaterThanOrEqualTo(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) > 0;
    }

    function lessThanOrEqualTo(D256 memory self, D256 memory b) internal pure returns (bool) {
        return compareTo(self, b) < 2;
    }

    function isZero(D256 memory self) internal pure returns (bool) {
        return self.value == 0;
    }

    function asUint256(D256 memory self) internal pure returns (uint256) {
        return self.value.div(BASE);
    }

    // ============ Core Methods ============

    function getPartial(
        uint256 target,
        uint256 numerator,
        uint256 denominator
    )
    private
    pure
    returns (uint256)
    {
        return target.mul(numerator).div(denominator);
    }

    function compareTo(
        D256 memory a,
        D256 memory b
    )
    private
    pure
    returns (uint256)
    {
        if (a.value == b.value) {
            return 1;
        }
        return a.value > b.value ? 2 : 0;
    }
}


// Dependency file: contracts/Constants.sol

/*
    Copyright 2020 BullProtocol Devs 

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;


// import "contracts/external/Decimal.sol";

library Constants {
    /* Chain */
    uint256 private constant CHAIN_ID = 1; // Mainnet

    /* Bootstrapping */
    uint256 private constant BOOTSTRAPPING_PERIOD = 300; // 300 epochs
    uint256 private constant BOOTSTRAPPING_PRICE = 130e16;

    /* Oracle */
    address private constant USDC = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
    uint256 private constant ORACLE_RESERVE_MINIMUM = 1e10; // 10,000 USDC

    /* Bonding */
    uint256 private constant INITIAL_STAKE_MULTIPLE = 1e6; // 100 BSD -> 100M BSDS

    /* Epoch */
    struct EpochStrategy {
        uint256 offset;
        uint256 start;
        uint256 period;
    }

    uint256 private constant EPOCH_OFFSET = 0;
    uint256 private constant EPOCH_START = 1609261200;
    uint256 private constant EPOCH_PERIOD = 3600; // 1 hour

    /* Governance */
    uint256 private constant GOVERNANCE_PERIOD = 72; // 72 epochs
    uint256 private constant GOVERNANCE_EXPIRATION = 24; // 24 epochs
    uint256 private constant GOVERNANCE_QUORUM = 33e16; // 33%
    uint256 private constant GOVERNANCE_PROPOSAL_THRESHOLD = 5e15; // 0.5%
    uint256 private constant GOVERNANCE_SUPER_MAJORITY = 66e16; // 66%
    uint256 private constant GOVERNANCE_EMERGENCY_DELAY = 12; // 12 epochs

    /* DAO */
    uint256 private constant ADVANCE_INCENTIVE_BELOW_ONE_DOLLAR = 100e18; // 100 BSD for reward if price <=1 USDC
    uint256 private constant ADVANCE_INCENTIVE_ABOVE_ONE_DOLLAR = 100e6; // 100 USDC convert from BSD price for reward
    uint256 private constant DAO_EXIT_LOCKUP_EPOCHS = 72; // 72 epochs fluid

    /* Pool */
    uint256 private constant POOL_EXIT_LOCKUP_EPOCHS = 24; // 24 epochs fluid

    /* Market */
    uint256 private constant COUPON_EXPIRATION = 720;
    uint256 private constant DEBT_RATIO_CAP = 15e16; // 15%

    /* Regulator */
    uint256 private constant SUPPLY_CHANGE_LIMIT = 3e16; // 3%
    uint256 private constant COUPON_SUPPLY_CHANGE_LIMIT = 6e16; // 6%
    uint256 private constant ORACLE_POOL_RATIO = 40; // 40%
    uint256 private constant TREASURY_RATIO = 150; // 1.5%

    /* Assets */
    address private constant TREASURY_ADDRESS = address(0xB8f2F09adc4fA5c15600BC461a3a3beC2eDFE9b9);

    /**
     * Getters
     */

    function getUsdcAddress() internal pure returns (address) {
        return USDC;
    }

    function getOracleReserveMinimum() internal pure returns (uint256) {
        return ORACLE_RESERVE_MINIMUM;
    }

    function getEpochStrategy() internal pure returns (EpochStrategy memory) {
        return EpochStrategy({
            offset: EPOCH_OFFSET,
            start: EPOCH_START,
            period: EPOCH_PERIOD
        });
    }

    function getInitialStakeMultiple() internal pure returns (uint256) {
        return INITIAL_STAKE_MULTIPLE;
    }

    function getBootstrappingPeriod() internal pure returns (uint256) {
        return BOOTSTRAPPING_PERIOD;
    }

    function getBootstrappingPrice() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: BOOTSTRAPPING_PRICE});
    }

    function getGovernancePeriod() internal pure returns (uint256) {
        return GOVERNANCE_PERIOD;
    }

    function getGovernanceExpiration() internal pure returns (uint256) {
        return GOVERNANCE_EXPIRATION;
    }

    function getGovernanceQuorum() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: GOVERNANCE_QUORUM});
    }

    function getGovernanceProposalThreshold() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: GOVERNANCE_PROPOSAL_THRESHOLD});
    }

    function getGovernanceSuperMajority() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: GOVERNANCE_SUPER_MAJORITY});
    }

    function getGovernanceEmergencyDelay() internal pure returns (uint256) {
        return GOVERNANCE_EMERGENCY_DELAY;
    }

    function getAdvanceIncentive() internal pure returns (uint256) {
        return ADVANCE_INCENTIVE_BELOW_ONE_DOLLAR;
    }

    function getAdvanceIncentiveRate() internal pure returns (uint256) {
        return ADVANCE_INCENTIVE_ABOVE_ONE_DOLLAR;
    }

    function getDAOExitLockupEpochs() internal pure returns (uint256) {
        return DAO_EXIT_LOCKUP_EPOCHS;
    }

    function getPoolExitLockupEpochs() internal pure returns (uint256) {
        return POOL_EXIT_LOCKUP_EPOCHS;
    }

    function getCouponExpiration() internal pure returns (uint256) {
        return COUPON_EXPIRATION;
    }

    function getDebtRatioCap() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: DEBT_RATIO_CAP});
    }

    function getSupplyChangeLimit() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: SUPPLY_CHANGE_LIMIT});
    }

    function getCouponSupplyChangeLimit() internal pure returns (Decimal.D256 memory) {
        return Decimal.D256({value: COUPON_SUPPLY_CHANGE_LIMIT});
    }

    function getOraclePoolRatio() internal pure returns (uint256) {
        return ORACLE_POOL_RATIO;
    }

    function getTreasuryRatio() internal pure returns (uint256) {
        return TREASURY_RATIO;
    }

    function getChainId() internal pure returns (uint256) {
        return CHAIN_ID;
    }

    function getTreasuryAddress() internal pure returns (address) {
        return TREASURY_ADDRESS;
    }
}


// Dependency file: contracts/token/IDollar.sol

/*
    Copyright 2020 BullProtocol Devs 

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;


// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract IDollar is IERC20 {
    function burn(uint256 amount) public;
    function burnFrom(address account, uint256 amount) public;
    function mint(address account, uint256 amount) public returns (bool);
}


// Dependency file: contracts/oracle/IDAO.sol

/*
    Copyright 2020 BullProtocol Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;

contract IDAO {
    function epoch() external view returns (uint256);
}

// Dependency file: contracts/oracle/IUSDC.sol

/*
    Copyright 2020 BullProtocol Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;

contract IUSDC {
    function isBlacklisted(address _account) external view returns (bool);
}

// Dependency file: contracts/oracle/PoolState.sol

/*
    Copyright 2020 BullProtocol Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;


// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "contracts/token/IDollar.sol";
// import "contracts/oracle/IDAO.sol";
// import "contracts/oracle/IUSDC.sol";

contract PoolAccount {
    enum Status {
        Frozen,
        Fluid,
        Locked
    }

    struct State {
        uint256 staged;
        uint256 claimable;
        uint256 bonded;
        uint256 phantom;
        uint256 fluidUntil;
    }
}

contract PoolStorage {
    struct Provider {
        IDAO dao;
        IDollar dollar;
        IERC20 univ2;
    }
    
    struct Balance {
        uint256 staged;
        uint256 claimable;
        uint256 bonded;
        uint256 phantom;
    }

    struct State {
        Balance balance;
        Provider provider;

        bool paused;

        mapping(address => PoolAccount.State) accounts;
    }
}

contract PoolState {
    PoolStorage.State _state;
}


// Dependency file: contracts/oracle/PoolGetters.sol

/*
    Copyright 2020 BullProtocol Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;


// import "@openzeppelin/contracts/math/SafeMath.sol";
// import "contracts/oracle/PoolState.sol";
// import "contracts/Constants.sol";

contract PoolGetters is PoolState {
    using SafeMath for uint256;

    /**
     * Global
     */

    function usdc() public view returns (address) {
        return Constants.getUsdcAddress();
    }

    function dao() public view returns (IDAO) {
        return _state.provider.dao;
    }

    function dollar() public view returns (IDollar) {
        return _state.provider.dollar;
    }

    function univ2() public view returns (IERC20) {
        return _state.provider.univ2;
    }

    function totalBonded() public view returns (uint256) {
        return _state.balance.bonded;
    }

    function totalStaged() public view returns (uint256) {
        return _state.balance.staged;
    }

    function totalClaimable() public view returns (uint256) {
        return _state.balance.claimable;
    }

    function totalPhantom() public view returns (uint256) {
        return _state.balance.phantom;
    }

    function totalRewarded() public view returns (uint256) {
        return dollar().balanceOf(address(this)).sub(totalClaimable());
    }

    function paused() public view returns (bool) {
        return _state.paused;
    }

    /**
     * Account
     */

    function balanceOfStaged(address account) public view returns (uint256) {
        return _state.accounts[account].staged;
    }

    function balanceOfClaimable(address account) public view returns (uint256) {
        return _state.accounts[account].claimable;
    }

    function balanceOfBonded(address account) public view returns (uint256) {
        return _state.accounts[account].bonded;
    }

    function balanceOfPhantom(address account) public view returns (uint256) {
        return _state.accounts[account].phantom;
    }

    function balanceOfRewarded(address account) public view returns (uint256) {
        uint256 totalBonded = totalBonded();
        if (totalBonded == 0) {
            return 0;
        }

        uint256 totalRewardedWithPhantom = totalRewarded().add(totalPhantom());
        uint256 balanceOfRewardedWithPhantom = totalRewardedWithPhantom
            .mul(balanceOfBonded(account))
            .div(totalBonded);

        uint256 balanceOfPhantom = balanceOfPhantom(account);
        if (balanceOfRewardedWithPhantom > balanceOfPhantom) {
            return balanceOfRewardedWithPhantom.sub(balanceOfPhantom);
        }
        return 0;
    }

    function statusOf(address account) public view returns (PoolAccount.Status) {
        return epoch() >= _state.accounts[account].fluidUntil ?
            PoolAccount.Status.Frozen :
            PoolAccount.Status.Fluid;
    }

    /**
     * Epoch
     */

    function epoch() internal view returns (uint256) {
        return dao().epoch();
    }
}


// Dependency file: contracts/oracle/PoolSetters.sol

/*
    Copyright 2020 BullProtocol Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;


// import "@openzeppelin/contracts/math/SafeMath.sol";
// import "contracts/oracle/PoolState.sol";
// import "contracts/oracle/PoolGetters.sol";

contract PoolSetters is PoolState, PoolGetters {
    using SafeMath for uint256;

    /**
     * Global
     */

    function pause() internal {
        _state.paused = true;
    }

    /**
     * Account
     */

    function incrementBalanceOfBonded(address account, uint256 amount) internal {
        _state.accounts[account].bonded = _state.accounts[account].bonded.add(amount);
        _state.balance.bonded = _state.balance.bonded.add(amount);
    }

    function decrementBalanceOfBonded(address account, uint256 amount, string memory reason) internal {
        _state.accounts[account].bonded = _state.accounts[account].bonded.sub(amount, reason);
        _state.balance.bonded = _state.balance.bonded.sub(amount, reason);
    }

    function incrementBalanceOfStaged(address account, uint256 amount) internal {
        _state.accounts[account].staged = _state.accounts[account].staged.add(amount);
        _state.balance.staged = _state.balance.staged.add(amount);
    }

    function decrementBalanceOfStaged(address account, uint256 amount, string memory reason) internal {
        _state.accounts[account].staged = _state.accounts[account].staged.sub(amount, reason);
        _state.balance.staged = _state.balance.staged.sub(amount, reason);
    }

    function incrementBalanceOfClaimable(address account, uint256 amount) internal {
        _state.accounts[account].claimable = _state.accounts[account].claimable.add(amount);
        _state.balance.claimable = _state.balance.claimable.add(amount);
    }

    function decrementBalanceOfClaimable(address account, uint256 amount, string memory reason) internal {
        _state.accounts[account].claimable = _state.accounts[account].claimable.sub(amount, reason);
        _state.balance.claimable = _state.balance.claimable.sub(amount, reason);
    }

    function incrementBalanceOfPhantom(address account, uint256 amount) internal {
        _state.accounts[account].phantom = _state.accounts[account].phantom.add(amount);
        _state.balance.phantom = _state.balance.phantom.add(amount);
    }

    function decrementBalanceOfPhantom(address account, uint256 amount, string memory reason) internal {
        _state.accounts[account].phantom = _state.accounts[account].phantom.sub(amount, reason);
        _state.balance.phantom = _state.balance.phantom.sub(amount, reason);
    }

    function unfreeze(address account) internal {
        _state.accounts[account].fluidUntil = epoch().add(Constants.getPoolExitLockupEpochs());
    }
}


// Dependency file: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol

// pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

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

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}


// Dependency file: contracts/external/UniswapV2Library.sol

// pragma solidity >=0.5.0;

// import "@openzeppelin/contracts/math/SafeMath.sol";
// import '/Users/khuyen/Documents/ProjectSecret/bsd/node_modules/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';

library UniswapV2Library {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }
}

// Dependency file: contracts/oracle/Liquidity.sol

/*
    Copyright 2020 BullProtocol Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

// pragma solidity ^0.5.17;


// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import '/Users/khuyen/Documents/ProjectSecret/bsd/node_modules/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';
// import 'contracts/external/UniswapV2Library.sol';
// import "contracts/Constants.sol";
// import "contracts/oracle/PoolGetters.sol";

contract Liquidity is PoolGetters {
    address private constant UNISWAP_FACTORY = address(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f);

    function addLiquidity(uint256 dollarAmount) internal returns (uint256, uint256) {
        (address dollar, address usdc) = (address(dollar()), usdc());
        (uint reserveA, uint reserveB) = getReserves(dollar, usdc);

        uint256 usdcAmount = (reserveA == 0 && reserveB == 0) ?
             dollarAmount :
             UniswapV2Library.quote(dollarAmount, reserveA, reserveB);

        address pair = address(univ2());
        IERC20(dollar).transfer(pair, dollarAmount);
        IERC20(usdc).transferFrom(msg.sender, pair, usdcAmount);
        return (usdcAmount, IUniswapV2Pair(pair).mint(address(this)));
    }

    // overridable for testing
    function getReserves(address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = UniswapV2Library.sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(UniswapV2Library.pairFor(UNISWAP_FACTORY, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }
}


// Root file: contracts/oracle/Pool.sol

/*
    Copyright 2020 BullProtocol Devs

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

pragma solidity ^0.5.17;


// import "@openzeppelin/contracts/math/SafeMath.sol";
// import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
// import "contracts/external/Require.sol";
// import "contracts/Constants.sol";
// import "contracts/oracle/PoolSetters.sol";
// import "contracts/oracle/Liquidity.sol";

contract Pool is PoolSetters, Liquidity {
    using SafeMath for uint256;

    constructor(address dollar, address univ2) public {
        _state.provider.dao = IDAO(msg.sender);
        _state.provider.dollar = IDollar(dollar);
        _state.provider.univ2 = IERC20(univ2);
    }

    bytes32 private constant FILE = "Pool";

    event Deposit(address indexed account, uint256 value);
    event Withdraw(address indexed account, uint256 value);
    event Claim(address indexed account, uint256 value);
    event Bond(address indexed account, uint256 start, uint256 value);
    event Unbond(address indexed account, uint256 start, uint256 value, uint256 newClaimable);
    event Provide(address indexed account, uint256 value, uint256 lessUsdc, uint256 newUniv2);

    function deposit(uint256 value) external onlyFrozen(msg.sender) notPaused {
        univ2().transferFrom(msg.sender, address(this), value);
        incrementBalanceOfStaged(msg.sender, value);

        balanceCheck();

        emit Deposit(msg.sender, value);
    }

    function withdraw(uint256 value) external onlyFrozen(msg.sender) {
        univ2().transfer(msg.sender, value);
        decrementBalanceOfStaged(msg.sender, value, "Pool: insufficient staged balance");

        balanceCheck();

        emit Withdraw(msg.sender, value);
    }

    function claim(uint256 value) external onlyFrozen(msg.sender) {
        dollar().transfer(msg.sender, value);
        decrementBalanceOfClaimable(msg.sender, value, "Pool: insufficient claimable balance");

        balanceCheck();

        emit Claim(msg.sender, value);
    }

    function bond(uint256 value) external notPaused {
        unfreeze(msg.sender);

        uint256 totalRewardedWithPhantom = totalRewarded().add(totalPhantom());
        uint256 newPhantom = totalBonded() == 0 ?
            totalRewarded() == 0 ? Constants.getInitialStakeMultiple().mul(value) : 0 :
            totalRewardedWithPhantom.mul(value).div(totalBonded());

        incrementBalanceOfBonded(msg.sender, value);
        incrementBalanceOfPhantom(msg.sender, newPhantom);
        decrementBalanceOfStaged(msg.sender, value, "Pool: insufficient staged balance");

        balanceCheck();

        emit Bond(msg.sender, epoch().add(1), value);
    }

    function unbond(uint256 value) external {
        unfreeze(msg.sender);

        uint256 balanceOfBonded = balanceOfBonded(msg.sender);
        Require.that(
            balanceOfBonded > 0,
            FILE,
            "insufficient bonded balance"
        );

        uint256 newClaimable = balanceOfRewarded(msg.sender).mul(value).div(balanceOfBonded);
        uint256 lessPhantom = balanceOfPhantom(msg.sender).mul(value).div(balanceOfBonded);

        incrementBalanceOfStaged(msg.sender, value);
        incrementBalanceOfClaimable(msg.sender, newClaimable);
        decrementBalanceOfBonded(msg.sender, value, "Pool: insufficient bonded balance");
        decrementBalanceOfPhantom(msg.sender, lessPhantom, "Pool: insufficient phantom balance");

        balanceCheck();

        emit Unbond(msg.sender, epoch().add(1), value, newClaimable);
    }

    function provide(uint256 value) external onlyFrozen(msg.sender) notPaused {
        Require.that(
            totalBonded() > 0,
            FILE,
            "insufficient total bonded"
        );

        Require.that(
            totalRewarded() > 0,
            FILE,
            "insufficient total rewarded"
        );

        Require.that(
            balanceOfRewarded(msg.sender) >= value,
            FILE,
            "insufficient rewarded balance"
        );

        (uint256 lessUsdc, uint256 newUniv2) = addLiquidity(value);

        uint256 totalRewardedWithPhantom = totalRewarded().add(totalPhantom()).add(value);
        uint256 newPhantomFromBonded = totalRewardedWithPhantom.mul(newUniv2).div(totalBonded());

        incrementBalanceOfBonded(msg.sender, newUniv2);
        incrementBalanceOfPhantom(msg.sender, value.add(newPhantomFromBonded));


        balanceCheck();

        emit Provide(msg.sender, value, lessUsdc, newUniv2);
    }

    function emergencyWithdraw(address token, uint256 value) external onlyDao {
        IERC20(token).transfer(address(dao()), value);
    }

    function emergencyPause() external onlyDao {
        pause();
    }

    function balanceCheck() private {
        Require.that(
            univ2().balanceOf(address(this)) >= totalStaged().add(totalBonded()),
            FILE,
            "Inconsistent UNI-V2 balances"
        );
    }

    modifier onlyFrozen(address account) {
        Require.that(
            statusOf(account) == PoolAccount.Status.Frozen,
            FILE,
            "Not frozen"
        );

        _;
    }

    modifier onlyDao() {
        Require.that(
            msg.sender == address(dao()),
            FILE,
            "Not dao"
        );

        _;
    }

    modifier notPaused() {
        Require.that(
            !paused(),
            FILE,
            "Paused"
        );

        _;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"dollar","type":"address"},{"internalType":"address","name":"univ2","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Bond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lessUsdc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newUniv2","type":"uint256"}],"name":"Provide","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newClaimable","type":"uint256"}],"name":"Unbond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Withdraw","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOfBonded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOfClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOfPhantom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOfRewarded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOfStaged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"bond","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"claim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dao","outputs":[{"internalType":"contract IDAO","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dollar","outputs":[{"internalType":"contract IDollar","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"emergencyPause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"provide","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"statusOf","outputs":[{"internalType":"enum PoolAccount.Status","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalBonded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalPhantom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalRewarded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalStaged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"unbond","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"univ2","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"usdc","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620020d8380380620020d8833981016040819052620000349162000084565b600480546001600160a01b03199081163317909155600580546001600160a01b0394851690831617905560068054929093169116179055620000ef565b80516200007e81620000d5565b92915050565b600080604083850312156200009857600080fd5b6000620000a6858562000071565b9250506020620000b98582860162000071565b9150509250929050565b60006001600160a01b0382166200007e565b620000e081620000c3565b8114620000ec57600080fd5b50565b611fd980620000ff6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80635c975abb116100c35780639940686e1161007c5780639940686e146102a7578063aed29d07146102ba578063b6b55f25146102c2578063c0d7a94f146102d5578063cf023779146102e8578063e0cf7285146102f057610158565b80635c975abb146102315780637298d36e14610246578063825ad6071461024e57806386cf9f141461026157806395ccea671461027457806397a5d5b51461028757610158565b80633e413bee116101155780633e413bee146101e75780634162169f146101fc57806344d96e95146102115780634838ed191461021957806351858e271461022157806351adeb571461022957610158565b80631667eb171461015d57806327de9e321461018657806329f32ed41461019b5780632e1a7d4d146101ae5780632e2ebe06146101c1578063379607f5146101d4575b600080fd5b61017061016b366004611871565b6102f8565b60405161017d9190611dcc565b60405180910390f35b61019961019436600461193c565b61031a565b005b6101706101a9366004611871565b610463565b6101996101bc36600461193c565b610481565b6101996101cf36600461193c565b6105b0565b6101996101e236600461193c565b610755565b6101ef61084c565b60405161017d9190611cd2565b61020461085b565b60405161017d9190611d3f565b61017061086a565b610170610870565b610199610876565b6102046108b7565b6102396108c6565b60405161017d9190611d31565b6102046108cf565b61017061025c366004611871565b6108de565b61017061026f366004611871565b6108fc565b610199610282366004611897565b610917565b61029a610295366004611871565b6109ae565b60405161017d9190611d4d565b6101996102b536600461193c565b6109e8565b610170610ad6565b6101996102d036600461193c565b610b72565b6101706102e3366004611871565b610c5d565b610170610ce5565b610170610ceb565b6001600160a01b0381166000908152600860205260409020600101545b919050565b61032333610cf1565b600061032e336108de565b90506103656000821163141bdbdb60e21b7f696e73756666696369656e7420626f6e6465642062616c616e63650000000000610d23565b6000610390826103848561037833610c5d565b9063ffffffff610d8116565b9063ffffffff610dc216565b905060006103a5836103848661037833610463565b90506103b13385610e04565b6103bb3383610e61565b6103de3385604051806060016040528060218152602001611f7660219139610ec6565b6104013382604051806060016040528060228152602001611f3360229139610f2e565b610409610f96565b337f93530ac0ee8c50e696e13c5ac62355d0c0ba4bd943620d5bda1eb08b64ae7512610444600161043861105f565b9063ffffffff6110d916565b868560405161045593929190611de8565b60405180910390a250505050565b6001600160a01b031660009081526008602052604090206003015490565b336104b860005b610491836109ae565b600281111561049c57fe5b1463141bdbdb60e21b692737ba10333937bd32b760b11b610d23565b6104c06108cf565b6001600160a01b031663a9059cbb33846040518363ffffffff1660e01b81526004016104ed929190611d08565b602060405180830381600087803b15801561050757600080fd5b505af115801561051b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061053f91908101906118d1565b506105633383604051806060016040528060218152602001611f55602191396110fe565b61056b610f96565b336001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364836040516105a49190611dcc565b60405180910390a25050565b336105bb6000610488565b6105de6105c66108c6565b1563141bdbdb60e21b6514185d5cd95960d21b610d23565b61061a60006105eb61086a565b1163141bdbdb60e21b7f696e73756666696369656e7420746f74616c20626f6e64656400000000000000610d23565b6106566000610627610ad6565b1163141bdbdb60e21b7f696e73756666696369656e7420746f74616c2072657761726465640000000000610d23565b6106938261066333610c5d565b101563141bdbdb60e21b7f696e73756666696369656e742072657761726465642062616c616e6365000000610d23565b60008061069f8461115e565b9150915060006106bc856104386106b4610ceb565b610438610ad6565b905060006106db6106cb61086a565b610384848663ffffffff610d8116565b90506106e73384611351565b610700336106fb888463ffffffff6110d916565b6113b6565b610708610f96565b336001600160a01b03167fbe9d8078818a53534ce225882a00e0c6f709b5296c8a08c3a1f23f9ffd44838087868660405161074593929190611de8565b60405180910390a2505050505050565b336107606000610488565b6107686108b7565b6001600160a01b031663a9059cbb33846040518363ffffffff1660e01b8152600401610795929190611d08565b602060405180830381600087803b1580156107af57600080fd5b505af11580156107c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506107e791908101906118d1565b5061080b3383604051806060016040528060248152602001611f0f6024913961141b565b610813610f96565b336001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4836040516105a49190611dcc565b6000610856611483565b905090565b6004546001600160a01b031690565b60025490565b60015490565b6108ad61088161085b565b6001600160a01b0316336001600160a01b03161463141bdbdb60e21b664e6f742064616f60c81b610d23565b6108b561149b565b565b6005546001600160a01b031690565b60075460ff1690565b6006546001600160a01b031690565b6001600160a01b031660009081526008602052604090206002015490565b6001600160a01b031660009081526008602052604090205490565b61092261088161085b565b816001600160a01b031663a9059cbb61093961085b565b836040518363ffffffff1660e01b8152600401610957929190611d23565b602060405180830381600087803b15801561097157600080fd5b505af1158015610985573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506109a991908101906118d1565b505050565b6001600160a01b0381166000908152600860205260408120600401546109d261105f565b10156109df5760016109e2565b60005b92915050565b6109f36105c66108c6565b6109fc33610cf1565b6000610a096106b4610ceb565b90506000610a1561086a565b15610a2a57610a256106cb61086a565b610a4a565b610a32610ad6565b15610a3e576000610a4a565b610a4a836103786114aa565b9050610a563384611351565b610a6033826113b6565b610a833384604051806060016040528060218152602001611f55602191396110fe565b610a8b610f96565b337f3ae9ad26d7d47616d306d7757b947fe7b0f9a7c61a5f0dc784b0ddb6c7c40b5a610aba600161043861105f565b85604051610ac9929190611dda565b60405180910390a2505050565b6000610856610ae3610870565b610aeb6108b7565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610b169190611cd2565b60206040518083038186803b158015610b2e57600080fd5b505afa158015610b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b66919081019061195a565b9063ffffffff6114b116565b33610b7d6000610488565b610b886105c66108c6565b610b906108cf565b6001600160a01b03166323b872dd3330856040518463ffffffff1660e01b8152600401610bbf93929190611ce0565b602060405180830381600087803b158015610bd957600080fd5b505af1158015610bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610c1191908101906118d1565b50610c1c3383610e04565b610c24610f96565b336001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c836040516105a49190611dcc565b600080610c6861086a565b905080610c79576000915050610315565b6000610c866106b4610ceb565b90506000610ca783610384610c9a886108de565b859063ffffffff610d8116565b90506000610cb486610463565b905080821115610cd957610cce828263ffffffff6114b116565b945050505050610315565b50600095945050505050565b60005490565b60035490565b610d04610cfc6114f3565b61043861105f565b6001600160a01b03909116600090815260086020526040902060040155565b826109a957610d31826114f8565b6101d160f51b610d40836114f8565b604051602001610d5293929190611c6b565b60408051601f198184030181529082905262461bcd60e51b8252610d7891600401611d5b565b60405180910390fd5b600082610d90575060006109e2565b82820282848281610d9d57fe5b0414610dbb5760405162461bcd60e51b8152600401610d7890611d9c565b9392505050565b6000610dbb83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611578565b6001600160a01b038216600090815260086020526040902054610e2d908263ffffffff6110d916565b6001600160a01b03831660009081526008602052604081209190915554610e5a908263ffffffff6110d916565b6000555050565b6001600160a01b038216600090815260086020526040902060010154610e8d908263ffffffff6110d916565b6001600160a01b038316600090815260086020526040902060019081019190915554610ebf908263ffffffff6110d916565b6001555050565b6001600160a01b038316600090815260086020526040902060020154610ef390838363ffffffff6115af16565b6001600160a01b038416600090815260086020526040902060029081019190915554610f2690838363ffffffff6115af16565b600255505050565b6001600160a01b038316600090815260086020526040902060030154610f5b90838363ffffffff6115af16565b6001600160a01b038416600090815260086020526040902060039081019190915554610f8e90838363ffffffff6115af16565b600355505050565b6108b5610fac610fa461086a565b610438610ce5565b610fb46108cf565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610fdf9190611cd2565b60206040518083038186803b158015610ff757600080fd5b505afa15801561100b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061102f919081019061195a565b101563141bdbdb60e21b7f496e636f6e73697374656e7420554e492d56322062616c616e63657300000000610d23565b600061106961085b565b6001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156110a157600080fd5b505afa1580156110b5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610856919081019061195a565b600082820183811015610dbb5760405162461bcd60e51b8152600401610d7890611d6c565b6001600160a01b03831660009081526008602052604090205461112890838363ffffffff6115af16565b6001600160a01b0384166000908152600860205260408120919091555461115690838363ffffffff6115af16565b600055505050565b60008060008061116c6108b7565b61117461084c565b9150915060008061118584846115db565b915091506000826000148015611199575081155b6111ad576111a88884846116c7565b6111af565b875b905060006111bb6108cf565b60405163a9059cbb60e01b81529091506001600160a01b0387169063a9059cbb906111ec9084908d90600401611d23565b602060405180830381600087803b15801561120657600080fd5b505af115801561121a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061123e91908101906118d1565b506040516323b872dd60e01b81526001600160a01b038616906323b872dd9061126f90339085908790600401611ce0565b602060405180830381600087803b15801561128957600080fd5b505af115801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506112c191908101906118d1565b506040516335313c2160e11b815282906001600160a01b03831690636a627842906112f0903090600401611cd2565b602060405180830381600087803b15801561130a57600080fd5b505af115801561131e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611342919081019061195a565b97509750505050505050915091565b6001600160a01b03821660009081526008602052604090206002015461137d908263ffffffff6110d916565b6001600160a01b0383166000908152600860205260409020600290810191909155546113af908263ffffffff6110d916565b6002555050565b6001600160a01b0382166000908152600860205260409020600301546113e2908263ffffffff6110d916565b6001600160a01b038316600090815260086020526040902060039081019190915554611414908263ffffffff6110d916565b6003555050565b6001600160a01b03831660009081526008602052604090206001015461144890838363ffffffff6115af16565b6001600160a01b03841660009081526008602052604090206001908101919091555461147b90838363ffffffff6115af16565b600155505050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4890565b6007805460ff19166001179055565b620f424090565b6000610dbb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506115af565b601890565b6060808260405160200161150c9190611c56565b60408051601f19818403018152919052905060205b80156115615781516000199091019082908290811061153c57fe5b01602001516001600160f81b0319161561155c5760010181529050610315565b611521565b505060408051600081526020810190915292915050565b600081836115995760405162461bcd60e51b8152600401610d789190611d5b565b5060008385816115a557fe5b0495945050505050565b600081848411156115d35760405162461bcd60e51b8152600401610d789190611d5b565b505050900390565b60008060006115ea8585611735565b50905060008061160f735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f88886117bf565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561164757600080fd5b505afa15801561165b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061167f91908101906118ef565b506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b0316146116b65780826116b9565b81815b909890975095505050505050565b60008084116116e85760405162461bcd60e51b8152600401610d7890611dac565b6000831180156116f85750600082115b6117145760405162461bcd60e51b8152600401610d7890611d8c565b82611725858463ffffffff610d8116565b8161172c57fe5b04949350505050565b600080826001600160a01b0316846001600160a01b0316141561176a5760405162461bcd60e51b8152600401610d7890611d7c565b826001600160a01b0316846001600160a01b03161061178a57828461178d565b83835b90925090506001600160a01b0382166117b85760405162461bcd60e51b8152600401610d7890611dbc565b9250929050565b60008060006117ce8585611735565b915091508582826040516020016117e6929190611c30565b6040516020818303038152906040528051906020012060405160200161180d929190611c9c565b60408051601f1981840301815291905280516020909101209695505050505050565b80356109e281611ed6565b80516109e281611eea565b80516109e281611ef3565b80356109e281611efc565b80516109e281611efc565b80516109e281611f05565b60006020828403121561188357600080fd5b600061188f848461182f565b949350505050565b600080604083850312156118aa57600080fd5b60006118b6858561182f565b92505060206118c785828601611850565b9150509250929050565b6000602082840312156118e357600080fd5b600061188f848461183a565b60008060006060848603121561190457600080fd5b60006119108686611845565b935050602061192186828701611845565b925050604061193286828701611866565b9150509250925092565b60006020828403121561194e57600080fd5b600061188f8484611850565b60006020828403121561196c57600080fd5b600061188f848461185b565b61198181611e5b565b82525050565b61198181611e10565b61198161199c82611e10565b611ea8565b61198181611e1b565b6119816119b682611e20565b611e2d565b6119816119b682611e2d565b60006119d282611e03565b6119dc8185610315565b93506119ec818560208601611e78565b9290920192915050565b61198181611e62565b61198181611e6d565b6000611a1382611e03565b611a1d8185611e07565b9350611a2d818560208601611e78565b611a3681611eb9565b9093019392505050565b6000611a4d601b83611e07565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b6000611a86602583611e07565b7f556e697377617056324c6962726172793a204944454e544943414c5f41444452815264455353455360d81b602082015260400192915050565b6000611acd602083610315565b7f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f815260200192915050565b6000611b06602883611e07565b7f556e697377617056324c6962726172793a20494e53554646494349454e545f4c815267495155494449545960c01b602082015260400192915050565b6000611b50600183610315565b6001600160f81b0319815260010192915050565b6000611b71602183611e07565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b6000611bb4602583611e07565b7f556e697377617056324c6962726172793a20494e53554646494349454e545f418152641353d5539560da1b602082015260400192915050565b6000611bfb601e83611e07565b7f556e697377617056324c6962726172793a205a45524f5f414444524553530000815260200192915050565b61198181611e2d565b6000611c3c8285611990565b601482019150611c4c8284611990565b5060140192915050565b6000611c6282846119bb565b50602001919050565b6000611c7782866119c7565b9150611c8382856119aa565b600282019150611c9382846119c7565b95945050505050565b6000611ca782611b43565b9150611cb38285611990565b601482019150611cc382846119bb565b60208201915061188f82611ac0565b602081016109e28284611987565b60608101611cee8286611978565b611cfb6020830185611987565b61188f6040830184611c27565b60408101611d168285611978565b610dbb6020830184611c27565b60408101611d168285611987565b602081016109e282846119a1565b602081016109e282846119f6565b602081016109e282846119ff565b60208082528101610dbb8184611a08565b602080825281016109e281611a40565b602080825281016109e281611a79565b602080825281016109e281611af9565b602080825281016109e281611b64565b602080825281016109e281611ba7565b602080825281016109e281611bee565b602081016109e28284611c27565b60408101611d168285611c27565b60608101611df68286611c27565b611cfb6020830185611c27565b5190565b90815260200190565b60006109e282611e46565b151590565b6001600160f01b03191690565b90565b8061031581611ec9565b6001600160701b031690565b6001600160a01b031690565b63ffffffff1690565b60006109e2825b60006109e282611e10565b60006109e282611e30565b60005b83811015611e93578181015183820152602001611e7b565b83811115611ea2576000848401525b50505050565b60006109e28260006109e282611ec3565b601f01601f191690565b60601b90565b60038110611ed357fe5b50565b611edf81611e10565b8114611ed357600080fd5b611edf81611e1b565b611edf81611e3a565b611edf81611e2d565b611edf81611e5256fe506f6f6c3a20696e73756666696369656e7420636c61696d61626c652062616c616e6365506f6f6c3a20696e73756666696369656e74207068616e746f6d2062616c616e6365506f6f6c3a20696e73756666696369656e74207374616765642062616c616e6365506f6f6c3a20696e73756666696369656e7420626f6e6465642062616c616e6365a365627a7a72315820681a92eb8dd48edb35107e2526bae1b56b0e49bbc51dd553b30cc0aadfbb38366c6578706572696d656e74616cf564736f6c634300051100400000000000000000000000000afb6a6ba319202464c75ed09f2010d883257ca9000000000000000000000000043f62e75d3e74f47a91408a8376bf00391aa227

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c80635c975abb116100c35780639940686e1161007c5780639940686e146102a7578063aed29d07146102ba578063b6b55f25146102c2578063c0d7a94f146102d5578063cf023779146102e8578063e0cf7285146102f057610158565b80635c975abb146102315780637298d36e14610246578063825ad6071461024e57806386cf9f141461026157806395ccea671461027457806397a5d5b51461028757610158565b80633e413bee116101155780633e413bee146101e75780634162169f146101fc57806344d96e95146102115780634838ed191461021957806351858e271461022157806351adeb571461022957610158565b80631667eb171461015d57806327de9e321461018657806329f32ed41461019b5780632e1a7d4d146101ae5780632e2ebe06146101c1578063379607f5146101d4575b600080fd5b61017061016b366004611871565b6102f8565b60405161017d9190611dcc565b60405180910390f35b61019961019436600461193c565b61031a565b005b6101706101a9366004611871565b610463565b6101996101bc36600461193c565b610481565b6101996101cf36600461193c565b6105b0565b6101996101e236600461193c565b610755565b6101ef61084c565b60405161017d9190611cd2565b61020461085b565b60405161017d9190611d3f565b61017061086a565b610170610870565b610199610876565b6102046108b7565b6102396108c6565b60405161017d9190611d31565b6102046108cf565b61017061025c366004611871565b6108de565b61017061026f366004611871565b6108fc565b610199610282366004611897565b610917565b61029a610295366004611871565b6109ae565b60405161017d9190611d4d565b6101996102b536600461193c565b6109e8565b610170610ad6565b6101996102d036600461193c565b610b72565b6101706102e3366004611871565b610c5d565b610170610ce5565b610170610ceb565b6001600160a01b0381166000908152600860205260409020600101545b919050565b61032333610cf1565b600061032e336108de565b90506103656000821163141bdbdb60e21b7f696e73756666696369656e7420626f6e6465642062616c616e63650000000000610d23565b6000610390826103848561037833610c5d565b9063ffffffff610d8116565b9063ffffffff610dc216565b905060006103a5836103848661037833610463565b90506103b13385610e04565b6103bb3383610e61565b6103de3385604051806060016040528060218152602001611f7660219139610ec6565b6104013382604051806060016040528060228152602001611f3360229139610f2e565b610409610f96565b337f93530ac0ee8c50e696e13c5ac62355d0c0ba4bd943620d5bda1eb08b64ae7512610444600161043861105f565b9063ffffffff6110d916565b868560405161045593929190611de8565b60405180910390a250505050565b6001600160a01b031660009081526008602052604090206003015490565b336104b860005b610491836109ae565b600281111561049c57fe5b1463141bdbdb60e21b692737ba10333937bd32b760b11b610d23565b6104c06108cf565b6001600160a01b031663a9059cbb33846040518363ffffffff1660e01b81526004016104ed929190611d08565b602060405180830381600087803b15801561050757600080fd5b505af115801561051b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061053f91908101906118d1565b506105633383604051806060016040528060218152602001611f55602191396110fe565b61056b610f96565b336001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364836040516105a49190611dcc565b60405180910390a25050565b336105bb6000610488565b6105de6105c66108c6565b1563141bdbdb60e21b6514185d5cd95960d21b610d23565b61061a60006105eb61086a565b1163141bdbdb60e21b7f696e73756666696369656e7420746f74616c20626f6e64656400000000000000610d23565b6106566000610627610ad6565b1163141bdbdb60e21b7f696e73756666696369656e7420746f74616c2072657761726465640000000000610d23565b6106938261066333610c5d565b101563141bdbdb60e21b7f696e73756666696369656e742072657761726465642062616c616e6365000000610d23565b60008061069f8461115e565b9150915060006106bc856104386106b4610ceb565b610438610ad6565b905060006106db6106cb61086a565b610384848663ffffffff610d8116565b90506106e73384611351565b610700336106fb888463ffffffff6110d916565b6113b6565b610708610f96565b336001600160a01b03167fbe9d8078818a53534ce225882a00e0c6f709b5296c8a08c3a1f23f9ffd44838087868660405161074593929190611de8565b60405180910390a2505050505050565b336107606000610488565b6107686108b7565b6001600160a01b031663a9059cbb33846040518363ffffffff1660e01b8152600401610795929190611d08565b602060405180830381600087803b1580156107af57600080fd5b505af11580156107c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506107e791908101906118d1565b5061080b3383604051806060016040528060248152602001611f0f6024913961141b565b610813610f96565b336001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4836040516105a49190611dcc565b6000610856611483565b905090565b6004546001600160a01b031690565b60025490565b60015490565b6108ad61088161085b565b6001600160a01b0316336001600160a01b03161463141bdbdb60e21b664e6f742064616f60c81b610d23565b6108b561149b565b565b6005546001600160a01b031690565b60075460ff1690565b6006546001600160a01b031690565b6001600160a01b031660009081526008602052604090206002015490565b6001600160a01b031660009081526008602052604090205490565b61092261088161085b565b816001600160a01b031663a9059cbb61093961085b565b836040518363ffffffff1660e01b8152600401610957929190611d23565b602060405180830381600087803b15801561097157600080fd5b505af1158015610985573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506109a991908101906118d1565b505050565b6001600160a01b0381166000908152600860205260408120600401546109d261105f565b10156109df5760016109e2565b60005b92915050565b6109f36105c66108c6565b6109fc33610cf1565b6000610a096106b4610ceb565b90506000610a1561086a565b15610a2a57610a256106cb61086a565b610a4a565b610a32610ad6565b15610a3e576000610a4a565b610a4a836103786114aa565b9050610a563384611351565b610a6033826113b6565b610a833384604051806060016040528060218152602001611f55602191396110fe565b610a8b610f96565b337f3ae9ad26d7d47616d306d7757b947fe7b0f9a7c61a5f0dc784b0ddb6c7c40b5a610aba600161043861105f565b85604051610ac9929190611dda565b60405180910390a2505050565b6000610856610ae3610870565b610aeb6108b7565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610b169190611cd2565b60206040518083038186803b158015610b2e57600080fd5b505afa158015610b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b66919081019061195a565b9063ffffffff6114b116565b33610b7d6000610488565b610b886105c66108c6565b610b906108cf565b6001600160a01b03166323b872dd3330856040518463ffffffff1660e01b8152600401610bbf93929190611ce0565b602060405180830381600087803b158015610bd957600080fd5b505af1158015610bed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610c1191908101906118d1565b50610c1c3383610e04565b610c24610f96565b336001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c836040516105a49190611dcc565b600080610c6861086a565b905080610c79576000915050610315565b6000610c866106b4610ceb565b90506000610ca783610384610c9a886108de565b859063ffffffff610d8116565b90506000610cb486610463565b905080821115610cd957610cce828263ffffffff6114b116565b945050505050610315565b50600095945050505050565b60005490565b60035490565b610d04610cfc6114f3565b61043861105f565b6001600160a01b03909116600090815260086020526040902060040155565b826109a957610d31826114f8565b6101d160f51b610d40836114f8565b604051602001610d5293929190611c6b565b60408051601f198184030181529082905262461bcd60e51b8252610d7891600401611d5b565b60405180910390fd5b600082610d90575060006109e2565b82820282848281610d9d57fe5b0414610dbb5760405162461bcd60e51b8152600401610d7890611d9c565b9392505050565b6000610dbb83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611578565b6001600160a01b038216600090815260086020526040902054610e2d908263ffffffff6110d916565b6001600160a01b03831660009081526008602052604081209190915554610e5a908263ffffffff6110d916565b6000555050565b6001600160a01b038216600090815260086020526040902060010154610e8d908263ffffffff6110d916565b6001600160a01b038316600090815260086020526040902060019081019190915554610ebf908263ffffffff6110d916565b6001555050565b6001600160a01b038316600090815260086020526040902060020154610ef390838363ffffffff6115af16565b6001600160a01b038416600090815260086020526040902060029081019190915554610f2690838363ffffffff6115af16565b600255505050565b6001600160a01b038316600090815260086020526040902060030154610f5b90838363ffffffff6115af16565b6001600160a01b038416600090815260086020526040902060039081019190915554610f8e90838363ffffffff6115af16565b600355505050565b6108b5610fac610fa461086a565b610438610ce5565b610fb46108cf565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610fdf9190611cd2565b60206040518083038186803b158015610ff757600080fd5b505afa15801561100b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061102f919081019061195a565b101563141bdbdb60e21b7f496e636f6e73697374656e7420554e492d56322062616c616e63657300000000610d23565b600061106961085b565b6001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156110a157600080fd5b505afa1580156110b5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610856919081019061195a565b600082820183811015610dbb5760405162461bcd60e51b8152600401610d7890611d6c565b6001600160a01b03831660009081526008602052604090205461112890838363ffffffff6115af16565b6001600160a01b0384166000908152600860205260408120919091555461115690838363ffffffff6115af16565b600055505050565b60008060008061116c6108b7565b61117461084c565b9150915060008061118584846115db565b915091506000826000148015611199575081155b6111ad576111a88884846116c7565b6111af565b875b905060006111bb6108cf565b60405163a9059cbb60e01b81529091506001600160a01b0387169063a9059cbb906111ec9084908d90600401611d23565b602060405180830381600087803b15801561120657600080fd5b505af115801561121a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061123e91908101906118d1565b506040516323b872dd60e01b81526001600160a01b038616906323b872dd9061126f90339085908790600401611ce0565b602060405180830381600087803b15801561128957600080fd5b505af115801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506112c191908101906118d1565b506040516335313c2160e11b815282906001600160a01b03831690636a627842906112f0903090600401611cd2565b602060405180830381600087803b15801561130a57600080fd5b505af115801561131e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611342919081019061195a565b97509750505050505050915091565b6001600160a01b03821660009081526008602052604090206002015461137d908263ffffffff6110d916565b6001600160a01b0383166000908152600860205260409020600290810191909155546113af908263ffffffff6110d916565b6002555050565b6001600160a01b0382166000908152600860205260409020600301546113e2908263ffffffff6110d916565b6001600160a01b038316600090815260086020526040902060039081019190915554611414908263ffffffff6110d916565b6003555050565b6001600160a01b03831660009081526008602052604090206001015461144890838363ffffffff6115af16565b6001600160a01b03841660009081526008602052604090206001908101919091555461147b90838363ffffffff6115af16565b600155505050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4890565b6007805460ff19166001179055565b620f424090565b6000610dbb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506115af565b601890565b6060808260405160200161150c9190611c56565b60408051601f19818403018152919052905060205b80156115615781516000199091019082908290811061153c57fe5b01602001516001600160f81b0319161561155c5760010181529050610315565b611521565b505060408051600081526020810190915292915050565b600081836115995760405162461bcd60e51b8152600401610d789190611d5b565b5060008385816115a557fe5b0495945050505050565b600081848411156115d35760405162461bcd60e51b8152600401610d789190611d5b565b505050900390565b60008060006115ea8585611735565b50905060008061160f735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f88886117bf565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561164757600080fd5b505afa15801561165b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061167f91908101906118ef565b506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b0316146116b65780826116b9565b81815b909890975095505050505050565b60008084116116e85760405162461bcd60e51b8152600401610d7890611dac565b6000831180156116f85750600082115b6117145760405162461bcd60e51b8152600401610d7890611d8c565b82611725858463ffffffff610d8116565b8161172c57fe5b04949350505050565b600080826001600160a01b0316846001600160a01b0316141561176a5760405162461bcd60e51b8152600401610d7890611d7c565b826001600160a01b0316846001600160a01b03161061178a57828461178d565b83835b90925090506001600160a01b0382166117b85760405162461bcd60e51b8152600401610d7890611dbc565b9250929050565b60008060006117ce8585611735565b915091508582826040516020016117e6929190611c30565b6040516020818303038152906040528051906020012060405160200161180d929190611c9c565b60408051601f1981840301815291905280516020909101209695505050505050565b80356109e281611ed6565b80516109e281611eea565b80516109e281611ef3565b80356109e281611efc565b80516109e281611efc565b80516109e281611f05565b60006020828403121561188357600080fd5b600061188f848461182f565b949350505050565b600080604083850312156118aa57600080fd5b60006118b6858561182f565b92505060206118c785828601611850565b9150509250929050565b6000602082840312156118e357600080fd5b600061188f848461183a565b60008060006060848603121561190457600080fd5b60006119108686611845565b935050602061192186828701611845565b925050604061193286828701611866565b9150509250925092565b60006020828403121561194e57600080fd5b600061188f8484611850565b60006020828403121561196c57600080fd5b600061188f848461185b565b61198181611e5b565b82525050565b61198181611e10565b61198161199c82611e10565b611ea8565b61198181611e1b565b6119816119b682611e20565b611e2d565b6119816119b682611e2d565b60006119d282611e03565b6119dc8185610315565b93506119ec818560208601611e78565b9290920192915050565b61198181611e62565b61198181611e6d565b6000611a1382611e03565b611a1d8185611e07565b9350611a2d818560208601611e78565b611a3681611eb9565b9093019392505050565b6000611a4d601b83611e07565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b6000611a86602583611e07565b7f556e697377617056324c6962726172793a204944454e544943414c5f41444452815264455353455360d81b602082015260400192915050565b6000611acd602083610315565b7f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f815260200192915050565b6000611b06602883611e07565b7f556e697377617056324c6962726172793a20494e53554646494349454e545f4c815267495155494449545960c01b602082015260400192915050565b6000611b50600183610315565b6001600160f81b0319815260010192915050565b6000611b71602183611e07565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b6000611bb4602583611e07565b7f556e697377617056324c6962726172793a20494e53554646494349454e545f418152641353d5539560da1b602082015260400192915050565b6000611bfb601e83611e07565b7f556e697377617056324c6962726172793a205a45524f5f414444524553530000815260200192915050565b61198181611e2d565b6000611c3c8285611990565b601482019150611c4c8284611990565b5060140192915050565b6000611c6282846119bb565b50602001919050565b6000611c7782866119c7565b9150611c8382856119aa565b600282019150611c9382846119c7565b95945050505050565b6000611ca782611b43565b9150611cb38285611990565b601482019150611cc382846119bb565b60208201915061188f82611ac0565b602081016109e28284611987565b60608101611cee8286611978565b611cfb6020830185611987565b61188f6040830184611c27565b60408101611d168285611978565b610dbb6020830184611c27565b60408101611d168285611987565b602081016109e282846119a1565b602081016109e282846119f6565b602081016109e282846119ff565b60208082528101610dbb8184611a08565b602080825281016109e281611a40565b602080825281016109e281611a79565b602080825281016109e281611af9565b602080825281016109e281611b64565b602080825281016109e281611ba7565b602080825281016109e281611bee565b602081016109e28284611c27565b60408101611d168285611c27565b60608101611df68286611c27565b611cfb6020830185611c27565b5190565b90815260200190565b60006109e282611e46565b151590565b6001600160f01b03191690565b90565b8061031581611ec9565b6001600160701b031690565b6001600160a01b031690565b63ffffffff1690565b60006109e2825b60006109e282611e10565b60006109e282611e30565b60005b83811015611e93578181015183820152602001611e7b565b83811115611ea2576000848401525b50505050565b60006109e28260006109e282611ec3565b601f01601f191690565b60601b90565b60038110611ed357fe5b50565b611edf81611e10565b8114611ed357600080fd5b611edf81611e1b565b611edf81611e3a565b611edf81611e2d565b611edf81611e5256fe506f6f6c3a20696e73756666696369656e7420636c61696d61626c652062616c616e6365506f6f6c3a20696e73756666696369656e74207068616e746f6d2062616c616e6365506f6f6c3a20696e73756666696369656e74207374616765642062616c616e6365506f6f6c3a20696e73756666696369656e7420626f6e6465642062616c616e6365a365627a7a72315820681a92eb8dd48edb35107e2526bae1b56b0e49bbc51dd553b30cc0aadfbb38366c6578706572696d656e74616cf564736f6c63430005110040

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

0000000000000000000000000afb6a6ba319202464c75ed09f2010d883257ca9000000000000000000000000043f62e75d3e74f47a91408a8376bf00391aa227

-----Decoded View---------------
Arg [0] : dollar (address): 0x0afB6a6ba319202464c75eD09F2010d883257cA9
Arg [1] : univ2 (address): 0x043F62e75D3e74f47a91408a8376bf00391Aa227

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000afb6a6ba319202464c75ed09f2010d883257ca9
Arg [1] : 000000000000000000000000043f62e75d3e74f47a91408a8376bf00391aa227


Deployed Bytecode Sourcemap

50725:5187:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50725:5187:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37777:135;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;53052:876;;;;;;;;;:::i;:::-;;38057:131;;;;;;;;;:::i;51793:282::-;;;;;;;;;:::i;53936:993::-;;;;;;;;;:::i;52083:283::-;;;;;;;;;:::i;36522:98::-;;;:::i;:::-;;;;;;;;36628:87;;;:::i;:::-;;;;;;;;36928:100;;;:::i;37144:106::-;;;:::i;55083:69::-;;;:::i;36723:96::-;;;:::i;37512:84::-;;;:::i;:::-;;;;;;;;36827:93;;;:::i;37920:129::-;;;;;;;;;:::i;37640:::-;;;;;;;;;:::i;54937:138::-;;;;;;;;;:::i;38862:229::-;;;;;;;;;:::i;:::-;;;;;;;;52374:670;;;;;;;;;:::i;37368:136::-;;;:::i;51513:272::-;;;;;;;;;:::i;38196:658::-;;;;;;;;;:::i;37036:100::-;;;:::i;37258:102::-;;;:::i;37777:135::-;-1:-1:-1;;;;;37870:24:0;;37843:7;37870:24;;;:15;:24;;;;;:34;;;37777:135;;;;:::o;53052:876::-;53103:20;53112:10;53103:8;:20::i;:::-;53136:23;53162:27;53178:10;53162:15;:27::i;:::-;53136:53;;53200:120;53245:1;53227:15;:19;-1:-1:-1;;;53200:120:0;:12;:120::i;:::-;53333:20;53356:61;53401:15;53356:40;53390:5;53356:29;53374:10;53356:17;:29::i;:::-;:33;:40;:33;:40;:::i;:::-;:44;:61;:44;:61;:::i;:::-;53333:84;;53428:19;53450:60;53494:15;53450:39;53483:5;53450:28;53467:10;53450:16;:28::i;:60::-;53428:82;;53523:43;53548:10;53560:5;53523:24;:43::i;:::-;53577:53;53605:10;53617:12;53577:27;:53::i;:::-;53641:80;53666:10;53678:5;53641:80;;;;;;;;;;;;;;;;;:24;:80::i;:::-;53732:88;53758:10;53770:11;53732:88;;;;;;;;;;;;;;;;;:25;:88::i;:::-;53833:14;:12;:14::i;:::-;53872:10;53865:55;53884:14;53896:1;53884:7;:5;:7::i;:::-;:11;:14;:11;:14;:::i;:::-;53900:5;53907:12;53865:55;;;;;;;;;;;;;;;;;53052:876;;;;:::o;38057:131::-;-1:-1:-1;;;;;38148:24:0;38121:7;38148:24;;;:15;:24;;;;;:32;;;;38057:131::o;51793:282::-;51846:10;55437:130;55485:25;55464:46;:17;55473:7;55464:8;:17::i;:::-;:46;;;;;;;;;-1:-1:-1;;;;;;55437:12:0;:130::i;:::-;51869:7;:5;:7::i;:::-;-1:-1:-1;;;;;51869:16:0;;51886:10;51898:5;51869:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51869:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;51869:35:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;51869:35:0;;;;;;;;;;51915:80;51940:10;51952:5;51915:80;;;;;;;;;;;;;;;;;:24;:80::i;:::-;52008:14;:12;:14::i;:::-;52049:10;-1:-1:-1;;;;;52040:27:0;;52061:5;52040:27;;;;;;;;;;;;;;;51793:282;;:::o;53936:993::-;53988:10;55437:130;55485:25;55464:46;;55437:130;55798:89;55826:8;:6;:8::i;:::-;55825:9;-1:-1:-1;;;;;;55798:12:0;:89::i;:::-;54021:116;54064:1;54048:13;:11;:13::i;:::-;:17;-1:-1:-1;;;54021:116:0;:12;:116::i;:::-;54150:120;54195:1;54177:15;:13;:15::i;:::-;:19;-1:-1:-1;;;54150:120:0;:12;:120::i;:::-;54283:141;54343:5;54310:29;54328:10;54310:17;:29::i;:::-;:38;;-1:-1:-1;;;54283:141:0;:12;:141::i;:::-;54438:16;54456;54476:19;54489:5;54476:12;:19::i;:::-;54437:58;;;;54508:32;54543:46;54583:5;54543:35;54563:14;:12;:14::i;:::-;54543:15;:13;:15::i;:46::-;54508:81;;54600:28;54631:57;54674:13;:11;:13::i;:::-;54631:38;:24;54660:8;54631:38;:28;:38;:::i;:57::-;54600:88;;54701:46;54726:10;54738:8;54701:24;:46::i;:::-;54758:70;54784:10;54796:31;:5;54806:20;54796:31;:9;:31;:::i;:::-;54758:25;:70::i;:::-;54843:14;:12;:14::i;:::-;54883:10;-1:-1:-1;;;;;54875:46:0;;54895:5;54902:8;54912;54875:46;;;;;;;;;;;;;;;;;55900:1;;;;53936:993;;:::o;52083:283::-;52133:10;55437:130;55485:25;55464:46;;55437:130;52156:8;:6;:8::i;:::-;-1:-1:-1;;;;;52156:17:0;;52174:10;52186:5;52156:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52156:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52156:36:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;52156:36:0;;;;;;;;;;52203:86;52231:10;52243:5;52203:86;;;;;;;;;;;;;;;;;:27;:86::i;:::-;52302:14;:12;:14::i;:::-;52340:10;-1:-1:-1;;;;;52334:24:0;;52352:5;52334:24;;;;;;;36522:98;36559:7;36586:26;:24;:26::i;:::-;36579:33;;36522:98;:::o;36628:87::-;36688:15;:19;-1:-1:-1;;;;;36688:19:0;36628:87;:::o;36928:100::-;36999:21;;36928:100;:::o;37144:106::-;37218:24;;37144:106;:::o;55083:69::-;55627:109;55676:5;:3;:5::i;:::-;-1:-1:-1;;;;;55654:28:0;:10;-1:-1:-1;;;;;55654:28:0;;-1:-1:-1;;;;;;55627:12:0;:109::i;:::-;55137:7;:5;:7::i;:::-;55083:69::o;36723:96::-;36789:22;;-1:-1:-1;;;;;36789:22:0;36723:96;:::o;37512:84::-;37575:13;;;;37512:84;:::o;36827:93::-;36891:21;;-1:-1:-1;;;;;36891:21:0;36827:93;:::o;37920:129::-;-1:-1:-1;;;;;38010:24:0;37983:7;38010:24;;;:15;:24;;;;;:31;;;;37920:129::o;37640:::-;-1:-1:-1;;;;;37730:24:0;37703:7;37730:24;;;:15;:24;;;;;:31;;37640:129::o;54937:138::-;55627:109;55676:5;:3;:5::i;55627:109::-;55029:5;-1:-1:-1;;;;;55022:22:0;;55053:5;:3;:5::i;:::-;55061;55022:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55022:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55022:45:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;55022:45:0;;;;;;;;;;54937:138;;:::o;38862:229::-;-1:-1:-1;;;;;38967:24:0;;38918:18;38967:24;;;:15;:24;;;;;:35;;;38956:7;:5;:7::i;:::-;:46;;:127;;39059:24;38956:127;;;39018:25;38956:127;38949:134;38862:229;-1:-1:-1;;38862:229:0:o;52374:670::-;55798:89;55826:8;:6;:8::i;55798:89::-;52433:20;52442:10;52433:8;:20::i;:::-;52466:32;52501:35;52521:14;:12;:14::i;52501:35::-;52466:70;;52547:18;52568:13;:11;:13::i;:::-;:18;:177;;52691:54;52731:13;:11;:13::i;52691:54::-;52568:177;;;52602:15;:13;:15::i;:::-;:20;:73;;52674:1;52602:73;;;52625:46;52665:5;52625:35;:33;:35::i;:46::-;52547:198;;52758:43;52783:10;52795:5;52758:24;:43::i;:::-;52812:49;52838:10;52850;52812:25;:49::i;:::-;52872:80;52897:10;52909:5;52872:80;;;;;;;;;;;;;;;;;:24;:80::i;:::-;52965:14;:12;:14::i;:::-;53002:10;52997:39;53014:14;53026:1;53014:7;:5;:7::i;:14::-;53030:5;52997:39;;;;;;;;;;;;;;;;55900:1;;52374:670;:::o;37368:136::-;37414:7;37441:55;37479:16;:14;:16::i;:::-;37441:8;:6;:8::i;:::-;-1:-1:-1;;;;;37441:18:0;;37468:4;37441:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37441:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37441:33:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;37441:33:0;;;;;;;;;:37;:55;:37;:55;:::i;51513:272::-;51565:10;55437:130;55485:25;55464:46;;55437:130;55798:89;55826:8;:6;:8::i;55798:89::-;51598:7;:5;:7::i;:::-;-1:-1:-1;;;;;51598:20:0;;51619:10;51639:4;51646:5;51598:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51598:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;51598:54:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;51598:54:0;;;;;;;;;;51663:43;51688:10;51700:5;51663:24;:43::i;:::-;51719:14;:12;:14::i;:::-;51759:10;-1:-1:-1;;;;;51751:26:0;;51771:5;51751:26;;;;;;;38196:658;38261:7;38281:19;38303:13;:11;:13::i;:::-;38281:35;-1:-1:-1;38331:16:0;38327:57;;38371:1;38364:8;;;;;38327:57;38396:32;38431:35;38451:14;:12;:14::i;38431:35::-;38396:70;;38477:36;38516:99;38603:11;38516:68;38559:24;38575:7;38559:15;:24::i;:::-;38516;;:68;:42;:68;:::i;:99::-;38477:138;;38628:24;38655:25;38672:7;38655:16;:25::i;:::-;38628:52;;38726:16;38695:28;:47;38691:137;;;38766:50;:28;38799:16;38766:50;:32;:50;:::i;:::-;38759:57;;;;;;;;38691:137;-1:-1:-1;38845:1:0;;38196:658;-1:-1:-1;;;;;38196:658:0:o;37036:100::-;37080:7;37107:21;37036:100;:::o;37258:102::-;37330:22;;37258:102;:::o;42495:149::-;42588:48;42600:35;:33;:35::i;:::-;42588:7;:5;:7::i;:48::-;-1:-1:-1;;;;;42550:24:0;;;:6;:24;;;:15;:24;;;;;:35;;:86;42495:149::o;9778:437::-;9912:4;9907:301;;10030:24;10049:4;10030:18;:24::i;:::-;-1:-1:-1;;;10113:26:0;10132:6;10113:18;:26::i;:::-;9987:175;;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;9987:175:0;;;;-1:-1:-1;;;9933:263:0;;;;;;;;;;;;;;;;2299:471;2357:7;2602:6;2598:47;;-1:-1:-1;2632:1:0;2625:8;;2598:47;2669:5;;;2673:1;2669;:5;:1;2693:5;;;;;:10;2685:56;;;;-1:-1:-1;;;2685:56:0;;;;;;;;;2761:1;2299:471;-1:-1:-1;;;2299:471:0:o;3238:132::-;3296:7;3323:39;3327:1;3330;3323:39;;;;;;;;;;;;;;;;;:3;:39::i;40853:240::-;-1:-1:-1;;;;;40974:24:0;;:6;:24;;;:15;:24;;;;;:31;:43;;41010:6;40974:43;:35;:43;:::i;:::-;-1:-1:-1;;;;;40940:24:0;;:6;:24;;;:15;:24;;;;;:77;;;;41052:21;:33;;41078:6;41052:33;:25;:33;:::i;:::-;41028:6;:57;-1:-1:-1;;40853:240:0:o;41387:255::-;-1:-1:-1;;;;;41514:24:0;;:6;:24;;;:15;:24;;;;;:34;;;:46;;41553:6;41514:46;:38;:46;:::i;:::-;-1:-1:-1;;;;;41477:24:0;;:6;:24;;;:15;:24;;;;;:34;;;;:83;;;;41598:24;:36;;41627:6;41598:36;:28;:36;:::i;:::-;41571:24;:63;-1:-1:-1;;41387:255:0:o;40567:278::-;-1:-1:-1;;;;;40710:24:0;;:6;:24;;;:15;:24;;;;;:31;;;:51;;40746:6;40754;40710:51;:35;:51;:::i;:::-;-1:-1:-1;;;;;40676:24:0;;:6;:24;;;:15;:24;;;;;:31;;;;:85;;;;40796:21;:41;;40822:6;40830;40796:41;:25;:41;:::i;:::-;40772:21;:65;-1:-1:-1;;;40567:278:0:o;42204:283::-;-1:-1:-1;;;;;42349:24:0;;:6;:24;;;:15;:24;;;;;:32;;;:52;;42386:6;42394;42349:52;:36;:52;:::i;:::-;-1:-1:-1;;;;;42314:24:0;;:6;:24;;;:15;:24;;;;;:32;;;;:87;;;;42437:22;:42;;42464:6;42472;42437:42;:26;:42;:::i;:::-;42412:22;:67;-1:-1:-1;;;42204:283:0:o;55160:221::-;55203:170;55266:32;55284:13;:11;:13::i;:::-;55266;:11;:13::i;:32::-;55230:7;:5;:7::i;:::-;-1:-1:-1;;;;;55230:17:0;;55256:4;55230:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55230:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55230:32:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;55230:32:0;;;;;;;;;:68;;-1:-1:-1;;;55203:170:0;:12;:170::i;39133:88::-;39173:7;39200:5;:3;:5::i;:::-;-1:-1:-1;;;;;39200:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39200:13:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39200:13:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;39200:13:0;;;;;;;;927:181;985:7;1017:5;;;1041:6;;;;1033:46;;;;-1:-1:-1;;;1033:46:0;;;;;;;;41101:278;-1:-1:-1;;;;;41244:24:0;;:6;:24;;;:15;:24;;;;;:31;:51;;41280:6;41288;41244:51;:35;:51;:::i;:::-;-1:-1:-1;;;;;41210:24:0;;:6;:24;;;:15;:24;;;;;:85;;;;41330:21;:41;;41356:6;41364;41330:41;:25;:41;:::i;:::-;41306:6;:65;-1:-1:-1;;;41101:278:0:o;48644:632::-;48706:7;48715;48736:14;48752:12;48777:8;:6;:8::i;:::-;48788:6;:4;:6::i;:::-;48735:60;;;;48807:13;48822;48839:25;48851:6;48859:4;48839:11;:25::i;:::-;48806:58;;;;48877:18;48899:8;48911:1;48899:13;:30;;;;-1:-1:-1;48916:13:0;;48899:30;48898:134;;48976:56;48999:12;49013:8;49023;48976:22;:56::i;:::-;48898:134;;;48947:12;48898:134;48877:155;;49045:12;49068:7;:5;:7::i;:::-;49087:43;;-1:-1:-1;;;49087:43:0;;49045:31;;-1:-1:-1;;;;;;49087:23:0;;;;;:43;;49045:31;;49117:12;;49087:43;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49087:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49087:43:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;49087:43:0;;;;;;;;;-1:-1:-1;49141:55:0;;-1:-1:-1;;;49141:55:0;;-1:-1:-1;;;;;49141:25:0;;;;;:55;;49167:10;;49179:4;;49185:10;;49141:55;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49141:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49141:55:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;49141:55:0;;;;;;;;;-1:-1:-1;49227:40:0;;-1:-1:-1;;;49227:40:0;;49215:10;;-1:-1:-1;;;;;49227:25:0;;;;;:40;;49261:4;;49227:40;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49227:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49227:40:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;49227:40:0;;;;;;;;;49207:61;;;;;;;;;;48644:632;;;:::o;40319:240::-;-1:-1:-1;;;;;40440:24:0;;:6;:24;;;:15;:24;;;;;:31;;;:43;;40476:6;40440:43;:35;:43;:::i;:::-;-1:-1:-1;;;;;40406:24:0;;:6;:24;;;:15;:24;;;;;:31;;;;:77;;;;40518:21;:33;;40544:6;40518:33;:25;:33;:::i;:::-;40494:21;:57;-1:-1:-1;;40319:240:0:o;41951:245::-;-1:-1:-1;;;;;42074:24:0;;:6;:24;;;:15;:24;;;;;:32;;;:44;;42111:6;42074:44;:36;:44;:::i;:::-;-1:-1:-1;;;;;42039:24:0;;:6;:24;;;:15;:24;;;;;:32;;;;:79;;;;42154:22;:34;;42181:6;42154:34;:26;:34;:::i;:::-;42129:22;:59;-1:-1:-1;;41951:245:0:o;41650:293::-;-1:-1:-1;;;;;41799:24:0;;:6;:24;;;:15;:24;;;;;:34;;;:54;;41838:6;41846;41799:54;:38;:54;:::i;:::-;-1:-1:-1;;;;;41762:24:0;;:6;:24;;;:15;:24;;;;;:34;;;;:91;;;;41891:24;:44;;41920:6;41928;41891:44;:28;:44;:::i;:::-;41864:24;:71;-1:-1:-1;;;41650:293:0:o;28144:88::-;26166:42;28144:88;:::o;40210:65::-;40247:13;:20;;-1:-1:-1;;40247:20:0;40263:4;40247:20;;;40210:65::o;28599:115::-;26363:3;28599:115;:::o;1383:136::-;1441:7;1468:43;1472:1;1475;1468:43;;;;;;;;;;;;;;;;;:3;:43::i;30235:116::-;27541:2;30235:116;:::o;14995:985::-;15091:12;15169:19;15208:5;15191:23;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;15191:23:0;;;;-1:-1:-1;49:4;15323:587:0;15344:5;;15323:587;;15601:9;;-1:-1:-1;;15500:3:0;;;;15601:6;;15500:3;;15601:9;;;;;;;;;;-1:-1:-1;;;;;;15601:9:0;:14;15597:302;;15657:1;15653:5;15787:22;;15794:6;-1:-1:-1;15870:13:0;;15597:302;15323:587;;;-1:-1:-1;;15960:12:0;;;15970:1;15960:12;;;;;;;;;15953:19;-1:-1:-1;;14995:985:0:o;3900:345::-;3986:7;4088:12;4081:5;4073:28;;;;-1:-1:-1;;;4073:28:0;;;;;;;;;;;4112:9;4128:1;4124;:5;;;;;;;3900:345;-1:-1:-1;;;;;3900:345:0:o;1856:192::-;1942:7;1978:12;1970:6;;;;1962:29;;;;-1:-1:-1;;;1962:29:0;;;;;;;;;;-1:-1:-1;;;2014:5:0;;;1856:192::o;49316:416::-;49392:13;49407;49434:14;49453:43;49481:6;49489;49453:27;:43::i;:::-;49433:63;;;49508:13;49523;49556:57;48592:42;49598:6;49606;49556:24;:57::i;:::-;-1:-1:-1;;;;;49541:85:0;;:87;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49541:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49541:87:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;49541:87:0;;;;;;;;;49507:121;-1:-1:-1;;;;;49507:121:0;;;-1:-1:-1;;;;;49507:121:0;;;49672:6;-1:-1:-1;;;;;49662:16:0;:6;-1:-1:-1;;;;;49662:16:0;;:62;;49705:8;49715;49662:62;;;49682:8;49692;49662:62;49639:85;;;;-1:-1:-1;49316:416:0;-1:-1:-1;;;;;;49316:416:0:o;47140:321::-;47222:12;47265:1;47255:7;:11;47247:61;;;;-1:-1:-1;;;47247:61:0;;;;;;;;;47338:1;47327:8;:12;:28;;;;;47354:1;47343:8;:12;47327:28;47319:81;;;;-1:-1:-1;;;47319:81:0;;;;;;;;;47445:8;47421:21;:7;47433:8;47421:21;:11;:21;:::i;:::-;:32;;;;;;;47140:321;-1:-1:-1;;;;47140:321:0:o;45659:349::-;45734:14;45750;45795:6;-1:-1:-1;;;;;45785:16:0;:6;-1:-1:-1;;;;;45785:16:0;;;45777:66;;;;-1:-1:-1;;;45777:66:0;;;;;;;;;45882:6;-1:-1:-1;;;;;45873:15:0;:6;-1:-1:-1;;;;;45873:15:0;;:53;;45911:6;45919;45873:53;;;45892:6;45900;45873:53;45854:72;;-1:-1:-1;45854:72:0;-1:-1:-1;;;;;;45945:20:0;;45937:63;;;;-1:-1:-1;;;45937:63:0;;;;;;;;;45659:349;;;;;:::o;46100:478::-;46189:12;46215:14;46231;46249:26;46260:6;46268;46249:10;:26::i;:::-;46214:61;;;;46377:7;46430:6;46438;46413:32;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;46413:32:0;;;46403:43;;;;;;46316:251;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;46316:251:0;;;46306:262;;49:4:-1;46306:262:0;;;;;46100:478;-1:-1:-1;;;;;;46100:478:0:o;5:130:-1:-;72:20;;97:33;72:20;97:33;;142:128;217:13;;235:30;217:13;235:30;;277:134;355:13;;373:33;355:13;373:33;;418:130;485:20;;510:33;485:20;510:33;;555:134;633:13;;651:33;633:13;651:33;;696:132;773:13;;791:32;773:13;791:32;;835:241;;939:2;927:9;918:7;914:23;910:32;907:2;;;955:1;952;945:12;907:2;990:1;1007:53;1052:7;1032:9;1007:53;;;997:63;901:175;-1:-1;;;;901:175;1083:366;;;1204:2;1192:9;1183:7;1179:23;1175:32;1172:2;;;1220:1;1217;1210:12;1172:2;1255:1;1272:53;1317:7;1297:9;1272:53;;;1262:63;;1234:97;1362:2;1380:53;1425:7;1416:6;1405:9;1401:22;1380:53;;;1370:63;;1341:98;1166:283;;;;;;1456:257;;1568:2;1556:9;1547:7;1543:23;1539:32;1536:2;;;1584:1;1581;1574:12;1536:2;1619:1;1636:61;1689:7;1669:9;1636:61;;1720:533;;;;1868:2;1856:9;1847:7;1843:23;1839:32;1836:2;;;1884:1;1881;1874:12;1836:2;1919:1;1936:64;1992:7;1972:9;1936:64;;;1926:74;;1898:108;2037:2;2055:64;2111:7;2102:6;2091:9;2087:22;2055:64;;;2045:74;;2016:109;2156:2;2174:63;2229:7;2220:6;2209:9;2205:22;2174:63;;;2164:73;;2135:108;1830:423;;;;;;2260:241;;2364:2;2352:9;2343:7;2339:23;2335:32;2332:2;;;2380:1;2377;2370:12;2332:2;2415:1;2432:53;2477:7;2457:9;2432:53;;2508:263;;2623:2;2611:9;2602:7;2598:23;2594:32;2591:2;;;2639:1;2636;2629:12;2591:2;2674:1;2691:64;2747:7;2727:9;2691:64;;2778:142;2869:45;2908:5;2869:45;;;2864:3;2857:58;2851:69;;;2927:113;3010:24;3028:5;3010:24;;3047:152;3148:45;3168:24;3186:5;3168:24;;;3148:45;;3206:104;3283:21;3298:5;3283:21;;3317:148;3416:43;3435:23;3452:5;3435:23;;;3416:43;;3472:152;3573:45;3593:24;3611:5;3593:24;;3631:356;;3759:38;3791:5;3759:38;;;3809:88;3890:6;3885:3;3809:88;;;3802:95;;3902:52;3947:6;3942:3;3935:4;3928:5;3924:16;3902:52;;;3966:16;;;;;3739:248;-1:-1;;3739:248;3994:152;4090:50;4134:5;4090:50;;4479:144;4571:46;4611:5;4571:46;;4630:347;;4742:39;4775:5;4742:39;;;4793:71;4857:6;4852:3;4793:71;;;4786:78;;4869:52;4914:6;4909:3;4902:4;4895:5;4891:16;4869:52;;;4942:29;4964:6;4942:29;;;4933:39;;;;4722:255;-1:-1;;;4722:255;4985:327;;5145:67;5209:2;5204:3;5145:67;;;5245:29;5225:50;;5303:2;5294:12;;5131:181;-1:-1;;5131:181;5321:374;;5481:67;5545:2;5540:3;5481:67;;;5581:34;5561:55;;-1:-1;;;5645:2;5636:12;;5629:29;5686:2;5677:12;;5467:228;-1:-1;;5467:228;5704:400;;5882:85;5964:2;5959:3;5882:85;;;6000:66;5980:87;;6095:2;6086:12;;5868:236;-1:-1;;5868:236;6113:377;;6273:67;6337:2;6332:3;6273:67;;;6373:34;6353:55;;-1:-1;;;6437:2;6428:12;;6421:32;6481:2;6472:12;;6259:231;-1:-1;;6259:231;6499:398;;6677:84;6759:1;6754:3;6677:84;;;-1:-1;;;;;;6774:87;;6889:1;6880:11;;6663:234;-1:-1;;6663:234;6906:370;;7066:67;7130:2;7125:3;7066:67;;;7166:34;7146:55;;-1:-1;;;7230:2;7221:12;;7214:25;7267:2;7258:12;;7052:224;-1:-1;;7052:224;7285:374;;7445:67;7509:2;7504:3;7445:67;;;7545:34;7525:55;;-1:-1;;;7609:2;7600:12;;7593:29;7650:2;7641:12;;7431:228;-1:-1;;7431:228;7668:330;;7828:67;7892:2;7887:3;7828:67;;;7928:32;7908:53;;7989:2;7980:12;;7814:184;-1:-1;;7814:184;8006:113;8089:24;8107:5;8089:24;;8126:383;;8273:75;8344:3;8335:6;8273:75;;;8370:2;8365:3;8361:12;8354:19;;8384:75;8455:3;8446:6;8384:75;;;-1:-1;8481:2;8472:12;;8261:248;-1:-1;;8261:248;8516:244;;8635:75;8706:3;8697:6;8635:75;;;-1:-1;8732:2;8723:12;;8623:137;-1:-1;8623:137;8767:553;;8983:93;9072:3;9063:6;8983:93;;;8976:100;;9087:73;9156:3;9147:6;9087:73;;;9182:1;9177:3;9173:11;9166:18;;9202:93;9291:3;9282:6;9202:93;;;9195:100;8964:356;-1:-1;;;;;8964:356;9327:917;;9683:148;9827:3;9683:148;;;9676:155;;9842:75;9913:3;9904:6;9842:75;;;9939:2;9934:3;9930:12;9923:19;;9953:75;10024:3;10015:6;9953:75;;;10050:2;10045:3;10041:12;10034:19;;10071:148;10215:3;10071:148;;10251:213;10369:2;10354:18;;10383:71;10358:9;10427:6;10383:71;;10471:451;10653:2;10638:18;;10667:79;10642:9;10719:6;10667:79;;;10757:72;10825:2;10814:9;10810:18;10801:6;10757:72;;;10840;10908:2;10897:9;10893:18;10884:6;10840:72;;10929:340;11083:2;11068:18;;11097:79;11072:9;11149:6;11097:79;;;11187:72;11255:2;11244:9;11240:18;11231:6;11187:72;;11276:324;11422:2;11407:18;;11436:71;11411:9;11480:6;11436:71;;11607:201;11719:2;11704:18;;11733:65;11708:9;11771:6;11733:65;;11815:239;11946:2;11931:18;;11960:84;11935:9;12017:6;11960:84;;12561:231;12688:2;12673:18;;12702:80;12677:9;12755:6;12702:80;;12799:301;12937:2;12951:47;;;12922:18;;13012:78;12922:18;13076:6;13012:78;;13107:407;13298:2;13312:47;;;13283:18;;13373:131;13283:18;13373:131;;13521:407;13712:2;13726:47;;;13697:18;;13787:131;13697:18;13787:131;;13935:407;14126:2;14140:47;;;14111:18;;14201:131;14111:18;14201:131;;14349:407;14540:2;14554:47;;;14525:18;;14615:131;14525:18;14615:131;;14763:407;14954:2;14968:47;;;14939:18;;15029:131;14939:18;15029:131;;15177:407;15368:2;15382:47;;;15353:18;;15443:131;15353:18;15443:131;;15591:213;15709:2;15694:18;;15723:71;15698:9;15767:6;15723:71;;15811:324;15957:2;15942:18;;15971:71;15946:9;16015:6;15971:71;;16142:435;16316:2;16301:18;;16330:71;16305:9;16374:6;16330:71;;;16412:72;16480:2;16469:9;16465:18;16456:6;16412:72;;16584:121;16671:12;;16642:63;16995:163;17098:19;;;17147:4;17138:14;;17091:67;17320:91;;17382:24;17400:5;17382:24;;17418:85;17484:13;17477:21;;17460:43;17510:144;-1:-1;;;;;;17571:78;;17554:100;17661:72;17723:5;17706:27;17740:128;17813:5;17819:44;17813:5;17819:44;;17875:109;-1:-1;;;;;17937:42;;17920:64;17991:121;-1:-1;;;;;18053:54;;18036:76;18198:88;18270:10;18259:22;;18242:44;18293:129;;18380:37;18411:5;18429:147;;18521:50;18565:5;18521:50;;19287:128;;19375:35;19404:5;19375:35;;19666:268;19731:1;19738:101;19752:6;19749:1;19746:13;19738:101;;;19819:11;;;19813:18;19800:11;;;19793:39;19774:2;19767:10;19738:101;;;19854:6;19851:1;19848:13;19845:2;;;19919:1;19910:6;19905:3;19901:16;19894:27;19845:2;19715:219;;;;;19942:95;;20006:26;20026:5;20205:89;20269:20;20283:5;20269:20;;20301:97;20389:2;20369:14;-1:-1;;20365:28;;20349:49;20406:94;20480:2;20476:14;;20448:52;20508:102;20588:1;20581:5;20578:12;20568:2;;20594:9;20568:2;20562:48;;20617:117;20686:24;20704:5;20686:24;;;20679:5;20676:35;20666:2;;20725:1;20722;20715:12;20741:111;20807:21;20822:5;20807:21;;20859:117;20928:24;20946:5;20928:24;;20983:117;21052:24;21070:5;21052:24;;21107:115;21175:23;21192:5;21175:23;

Swarm Source

bzzr://681a92eb8dd48edb35107e2526bae1b56b0e49bbc51dd553b30cc0aadfbb3836

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.