ETH Price: $3,373.83 (-2.43%)

Contract

0x8E666277C3de28df68A78EDE1274603eeEa02D34
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unbond Underlyin...118336072021-02-11 6:19:101414 days ago1613024350IN
0x8E666277...eeEa02D34
0 ETH0.00855228102.3
Advance116472482021-01-13 14:47:501443 days ago1610549270IN
0x8E666277...eeEa02D34
0 ETH0.0100760888
Advance116472452021-01-13 14:47:061443 days ago1610549226IN
0x8E666277...eeEa02D34
0 ETH0.0100760888
Advance116472442021-01-13 14:46:361443 days ago1610549196IN
0x8E666277...eeEa02D34
0 ETH0.0100760888
Advance116472422021-01-13 14:46:011443 days ago1610549161IN
0x8E666277...eeEa02D34
0 ETH0.0101905889
Advance116472412021-01-13 14:45:511443 days ago1610549151IN
0x8E666277...eeEa02D34
0 ETH0.0100760888
Advance116472412021-01-13 14:45:511443 days ago1610549151IN
0x8E666277...eeEa02D34
0 ETH0.02769779241.9
Advance116472392021-01-13 14:45:361443 days ago1610549136IN
0x8E666277...eeEa02D34
0 ETH0.0100760888
Advance116469522021-01-13 13:45:331443 days ago1610545533IN
0x8E666277...eeEa02D34
0 ETH0.0263799388
Advance116469512021-01-13 13:45:051443 days ago1610545505IN
0x8E666277...eeEa02D34
0 ETH0.0019860788
Advance116466822021-01-13 12:45:091443 days ago1610541909IN
0x8E666277...eeEa02D34
0 ETH0.0263799388
Advance116466802021-01-13 12:44:561443 days ago1610541896IN
0x8E666277...eeEa02D34
0 ETH0.0017829579
Advance116466802021-01-13 12:44:561443 days ago1610541896IN
0x8E666277...eeEa02D34
0 ETH0.00293397130
Advance116463912021-01-13 11:45:011443 days ago1610538301IN
0x8E666277...eeEa02D34
0 ETH0.026679789
Advance116463892021-01-13 11:44:111443 days ago1610538251IN
0x8E666277...eeEa02D34
0 ETH0.0017829579
Advance116461482021-01-13 10:44:211443 days ago1610534661IN
0x8E666277...eeEa02D34
0 ETH0.0269794890
Advance116458832021-01-13 9:44:201443 days ago1610531060IN
0x8E666277...eeEa02D34
0 ETH0.0233822178
Advance116456152021-01-13 8:43:161443 days ago1610527396IN
0x8E666277...eeEa02D34
0 ETH0.0224969879
Advance116453632021-01-13 7:42:051443 days ago1610523725IN
0x8E666277...eeEa02D34
0 ETH0.0042204187
Advance116453622021-01-13 7:41:571443 days ago1610523717IN
0x8E666277...eeEa02D34
0 ETH0.0176865459
Advance116450902021-01-13 6:41:471443 days ago1610520107IN
0x8E666277...eeEa02D34
0 ETH0.0176865459
Advance116447992021-01-13 5:41:211443 days ago1610516481IN
0x8E666277...eeEa02D34
0 ETH0.0185858662
Advance116445292021-01-13 4:40:581443 days ago1610512858IN
0x8E666277...eeEa02D34
0 ETH0.0233822178
Advance116440322021-01-13 2:41:221443 days ago1610505682IN
0x8E666277...eeEa02D34
0 ETH0.0221831274
Advance116437052021-01-13 1:30:281444 days ago1610501428IN
0x8E666277...eeEa02D34
0 ETH0.03657218122
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x8515fF86...A6EFb13f0
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Implementation

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU LGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-01-10
*/

pragma solidity ^0.5.17;	
pragma experimental ABIEncoderV2;
 
/**
 * @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;
    }
}
 
/*
    Copyright 2019 dYdX Trading Inc.
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
/**
 * @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;
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
library Constants {
    /* Chain */
    uint256 private constant CHAIN_ID = 1; // Mainnet
 
    /* Bootstrapping */
    uint256 private constant BOOTSTRAPPING_PERIOD = 300;
    uint256 private constant BOOTSTRAPPING_PRICE = 154e16; // 1.54 USDC
    uint256 private constant BOOTSTRAPPING_SPEEDUP_FACTOR = 3; // 30 days @ 8 hours
 
    /* Oracle */
    uint256 private constant ORACLE_RESERVE_MINIMUM = 1e10; // 10,000 USDC
 
    /* Bonding */
    uint256 private constant INITIAL_STAKE_MULTIPLE = 1e6; // 100 ESD -> 100M ESDS
 
    /* Epoch */
    struct EpochStrategy {
        uint256 offset;
        uint256 start;
        uint256 period;
    }
 
    uint256 private constant PREVIOUS_EPOCH_OFFSET = 91;
    uint256 private constant PREVIOUS_EPOCH_START = 1600905600;
    uint256 private constant PREVIOUS_EPOCH_PERIOD = 3600;
 
    uint256 private constant CURRENT_EPOCH_OFFSET = 106;
    uint256 private constant CURRENT_EPOCH_START = 1602201600;
    uint256 private constant CURRENT_EPOCH_PERIOD = 3600;
 
    /* Governance */
    uint256 private constant GOVERNANCE_PERIOD = 72; // 72 epochs
    uint256 private constant GOVERNANCE_EXPIRATION = 2; // 2 + 1 epochs
    uint256 private constant GOVERNANCE_QUORUM = 20e16; // 20%
    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 = 1e20; // 100 
    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 = 360;
    uint256 private constant DEBT_RATIO_CAP = 35e16; // 35%
 
    /* Regulator */
    uint256 private constant SUPPLY_CHANGE_LIMIT = 2e16; // 2%
    uint256 private constant COUPON_SUPPLY_CHANGE_LIMIT = 5e16; //5%
    uint256 private constant ORACLE_POOL_RATIO = 50; // 50%
    uint256 private constant TREASURY_RATIO = 10; // 0.1%
 
    /**
     * Getters
     */
 
    function getOracleReserveMinimum() internal pure returns (uint256) {
        return ORACLE_RESERVE_MINIMUM;
    }
 
    function getPreviousEpochStrategy() internal pure returns (EpochStrategy memory) {
        return EpochStrategy({
            offset: PREVIOUS_EPOCH_OFFSET,
            start: PREVIOUS_EPOCH_START,
            period: PREVIOUS_EPOCH_PERIOD
        });
    }
 
    function getCurrentEpochStrategy() internal pure returns (EpochStrategy memory) {
        return EpochStrategy({
            offset: CURRENT_EPOCH_OFFSET,
            start: CURRENT_EPOCH_START,
            period: CURRENT_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 getBootstrappingSpeedupFactor() internal pure returns (uint256) {
        return BOOTSTRAPPING_SPEEDUP_FACTOR;
    }
 
    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;
    }
 
    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;
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
contract Curve {
    using SafeMath for uint256;
    using Decimal for Decimal.D256;
 
    function calculateCouponPremium(
        uint256 totalSupply,
        uint256 totalDebt,
        uint256 amount
    ) internal pure returns (uint256) {
        return effectivePremium(totalSupply, totalDebt, amount).mul(amount).asUint256();
    }
 
    function effectivePremium(
        uint256 totalSupply,
        uint256 totalDebt,
        uint256 amount
    ) private pure returns (Decimal.D256 memory) {
        Decimal.D256 memory debtRatio = Decimal.ratio(totalDebt, totalSupply);
        Decimal.D256 memory debtRatioUpperBound = Constants.getDebtRatioCap();
 
        uint256 totalSupplyEnd = totalSupply.sub(amount);
        uint256 totalDebtEnd = totalDebt.sub(amount);
        Decimal.D256 memory debtRatioEnd = Decimal.ratio(totalDebtEnd, totalSupplyEnd);
 
        if (debtRatio.greaterThan(debtRatioUpperBound)) {
            if (debtRatioEnd.greaterThan(debtRatioUpperBound)) {
                return curve(debtRatioUpperBound);
            }
 
            Decimal.D256 memory premiumCurve = curveMean(debtRatioEnd, debtRatioUpperBound);
            Decimal.D256 memory premiumCurveDelta = debtRatioUpperBound.sub(debtRatioEnd);
            Decimal.D256 memory premiumFlat = curve(debtRatioUpperBound);
            Decimal.D256 memory premiumFlatDelta = debtRatio.sub(debtRatioUpperBound);
            return (premiumCurve.mul(premiumCurveDelta)).add(premiumFlat.mul(premiumFlatDelta))
                .div(premiumCurveDelta.add(premiumFlatDelta));
        }
 
        return curveMean(debtRatioEnd, debtRatio);
    }
 
    // 1/((1-R)^2)-1
    function curve(Decimal.D256 memory debtRatio) private pure returns (Decimal.D256 memory) {
        return Decimal.one().div(
            (Decimal.one().sub(debtRatio)).pow(2)
        ).sub(Decimal.one());
    }
 
    // 1/((1-R)(1-R'))-1
    function curveMean(
        Decimal.D256 memory lower,
        Decimal.D256 memory upper
    ) private pure returns (Decimal.D256 memory) {
        if (lower.equals(upper)) {
            return curve(lower);
        }
 
        return Decimal.one().div(
            (Decimal.one().sub(upper)).mul(Decimal.one().sub(lower))
        ).sub(Decimal.one());
    }
}
 
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;
}
 
/**
 * @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);
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
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);
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
contract IOracle {
    function setup() public;
    function capture() public returns (Decimal.D256 memory, bool);
    function pair() external view returns (address);
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
contract Account {
    enum Status {
        Frozen,
        Fluid,
        Locked
    }
 
    struct State {
        uint256 staged;
        uint256 balance;
        mapping(uint256 => uint256) coupons;
        mapping(address => uint256) couponAllowances;
        uint256 fluidUntil;
        uint256 lockedUntil;
    }
}
 
contract Epoch {
    struct Global {
        uint256 start;
        uint256 period;
        uint256 current;
        uint256 lastEpochTime;
    }
 
    struct Coupons {
        uint256 outstanding;
        uint256 expiration;
        uint256[] expiring;
    }
 
    struct State {
        uint256 bonded;
        Coupons coupons;
    }
}
 
contract Candidate {
    enum Vote {
        UNDECIDED,
        APPROVE,
        REJECT
    }
 
    struct State {
        uint256 start;
        uint256 period;
        uint256 approve;
        uint256 reject;
        mapping(address => Vote) votes;
        bool initialized;
    }
}
 
contract Storage {
    struct Provider {
        IDollar dollar;
        IOracle oracle;
        address pool;
        address treasury;
    }
 
    struct Balance {
        uint256 supply;
        uint256 bonded;
        uint256 staged;
        uint256 redeemable;
        uint256 debt;
        uint256 coupons;
    }
 
    struct State {
        Epoch.Global epoch;
        Balance balance;
        Provider provider;
 
        mapping(address => Account.State) accounts;
        mapping(uint256 => Epoch.State) epochs;
        mapping(address => Candidate.State) candidates;
    }
}
 
contract State {
    Storage.State _state;
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
contract Getters is State {
    using SafeMath for uint256;
    using Decimal for Decimal.D256;
 
    bytes32 private constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 
    /**
     * ERC20 Interface
     */
 
    function name() public view returns (string memory) {
        return "Empty Set Dollar Stake";
    }
 
    function symbol() public view returns (string memory) {
        return "ESDS";
    }
 
    function decimals() public view returns (uint8) {
        return 18;
    }
 
    function balanceOf(address account) public view returns (uint256) {
        return _state.accounts[account].balance;
    }
 
    function totalSupply() public view returns (uint256) {
        return _state.balance.supply;
    }
 
    function allowance(address owner, address spender) external view returns (uint256) {
        return 0;
    }
 
    /**
     * Global
     */
 
    function dollar() public view returns (IDollar) {
        return _state.provider.dollar;
    }
    
    function treasury() public view returns (address) {
        return _state.provider.treasury;
    }
 
    function oracle() public view returns (IOracle) {
        return _state.provider.oracle;
    }
 
    function pool() public view returns (address) {
        return _state.provider.pool;
    }
 
    function totalBonded() public view returns (uint256) {
        return _state.balance.bonded;
    }
 
    function totalStaged() public view returns (uint256) {
        return _state.balance.staged;
    }
 
    function totalDebt() public view returns (uint256) {
        return _state.balance.debt;
    }
 
    function totalRedeemable() public view returns (uint256) {
        return _state.balance.redeemable;
    }
 
    function totalCoupons() public view returns (uint256) {
        return _state.balance.coupons;
    }
 
    function totalNet() public view returns (uint256) {
        return IDollar(dollar()).totalSupply().sub(totalDebt());
    }
 
    /**
     * Account
     */
 
    function balanceOfStaged(address account) public view returns (uint256) {
        return _state.accounts[account].staged;
    }
 
    function balanceOfBonded(address account) public view returns (uint256) {
        uint256 totalSupply = totalSupply();
        if (totalSupply == 0) {
            return 0;
        }
        return totalBonded().mul(balanceOf(account)).div(totalSupply);
    }
 
    function balanceOfCoupons(address account, uint256 epoch) public view returns (uint256) {
        if (outstandingCoupons(epoch) == 0) {
            return 0;
        }
        return _state.accounts[account].coupons[epoch];
    }
 
    function statusOf(address account) public view returns (Account.Status) {
        if (_state.accounts[account].lockedUntil > epoch()) {
            return Account.Status.Locked;
        }
 
        return epoch() >= _state.accounts[account].fluidUntil ? Account.Status.Frozen : Account.Status.Fluid;
    }
 
    function fluidUntil(address account) public view returns (uint256) {
        return _state.accounts[account].fluidUntil;
    }
 
    function lockedUntil(address account) public view returns (uint256) {
        return _state.accounts[account].lockedUntil;
    }
 
    function allowanceCoupons(address owner, address spender) public view returns (uint256) {
        return _state.accounts[owner].couponAllowances[spender];
    }
 
    /**
     * Epoch
     */
 
    function epoch() public view returns (uint256) {
        return _state.epoch.current;
    }
 
    function epochTime() public view returns (uint256) {
        Constants.EpochStrategy memory current = Constants.getCurrentEpochStrategy();
        Constants.EpochStrategy memory previous = Constants.getPreviousEpochStrategy();
 
        return blockTimestamp() < current.start ?
            epochTimeWithStrategy(previous) :
            epochTimeWithStrategy(current);
    }
 
    function epochTimeWithStrategy(Constants.EpochStrategy memory strategy) private view returns (uint256) {
        return blockTimestamp()
            .sub(strategy.start)
            .div(strategy.period)
            .add(strategy.offset);
    }
 
    // Overridable for testing
    function blockTimestamp() internal view returns (uint256) {
        return block.timestamp;
    }
 
    function outstandingCoupons(uint256 epoch) public view returns (uint256) {
        return _state.epochs[epoch].coupons.outstanding;
    }
 
    function couponsExpiration(uint256 epoch) public view returns (uint256) {
        return _state.epochs[epoch].coupons.expiration;
    }
 
    function expiringCoupons(uint256 epoch) public view returns (uint256) {
        return _state.epochs[epoch].coupons.expiring.length;
    }
 
    function expiringCouponsAtIndex(uint256 epoch, uint256 i) public view returns (uint256) {
        return _state.epochs[epoch].coupons.expiring[i];
    }
 
    function totalBondedAt(uint256 epoch) public view returns (uint256) {
        return _state.epochs[epoch].bonded;
    }
 
    function bootstrappingAt(uint256 epoch) public view returns (bool) {
        return epoch <= Constants.getBootstrappingPeriod();
    }
    
    function lastEpochTime() public view returns (uint256) {
        return _state.epoch.lastEpochTime;
    }
 
    /**
     * Governance
     */
 
    function recordedVote(address account, address candidate) public view returns (Candidate.Vote) {
        return _state.candidates[candidate].votes[account];
    }
 
    function startFor(address candidate) public view returns (uint256) {
        return _state.candidates[candidate].start;
    }
 
    function periodFor(address candidate) public view returns (uint256) {
        return _state.candidates[candidate].period;
    }
 
    function approveFor(address candidate) public view returns (uint256) {
        return _state.candidates[candidate].approve;
    }
 
    function rejectFor(address candidate) public view returns (uint256) {
        return _state.candidates[candidate].reject;
    }
 
    function votesFor(address candidate) public view returns (uint256) {
        return approveFor(candidate).add(rejectFor(candidate));
    }
 
    function isNominated(address candidate) public view returns (bool) {
        return _state.candidates[candidate].start > 0;
    }
 
    function isInitialized(address candidate) public view returns (bool) {
        return _state.candidates[candidate].initialized;
    }
 
    function implementation() public view returns (address impl) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        assembly {
            impl := sload(slot)
        }
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
contract Setters is State, Getters {
    using SafeMath for uint256;
 
    event Transfer(address indexed from, address indexed to, uint256 value);
 
    /**
     * ERC20 Interface
     */
 
    function transfer(address recipient, uint256 amount) external returns (bool) {
        return false;
    }
 
    function approve(address spender, uint256 amount) external returns (bool) {
        return false;
    }
 
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
        return false;
    }
 
    /**
     * Global
     */
 
    function incrementTotalBonded(uint256 amount) internal {
        _state.balance.bonded = _state.balance.bonded.add(amount);
    }
 
    function decrementTotalBonded(uint256 amount, string memory reason) internal {
        _state.balance.bonded = _state.balance.bonded.sub(amount, reason);
    }
 
    function incrementTotalDebt(uint256 amount) internal {
        _state.balance.debt = _state.balance.debt.add(amount);
    }
 
    function decrementTotalDebt(uint256 amount, string memory reason) internal {
        _state.balance.debt = _state.balance.debt.sub(amount, reason);
    }
 
    function incrementTotalRedeemable(uint256 amount) internal {
        _state.balance.redeemable = _state.balance.redeemable.add(amount);
    }
 
    function decrementTotalRedeemable(uint256 amount, string memory reason) internal {
        _state.balance.redeemable = _state.balance.redeemable.sub(amount, reason);
    }
    
    function updateLastEpochTime(uint256 _lastEpochTime) internal {
        _state.epoch.lastEpochTime = _lastEpochTime;
    }
    
    function resetLastEpochTime() internal {
        _state.epoch.lastEpochTime = 0;
    }
 
    /**
     * Account
     */
 
    function incrementBalanceOf(address account, uint256 amount) internal {
        _state.accounts[account].balance = _state.accounts[account].balance.add(amount);
        _state.balance.supply = _state.balance.supply.add(amount);
 
        emit Transfer(address(0), account, amount);
    }
 
    function decrementBalanceOf(address account, uint256 amount, string memory reason) internal {
        _state.accounts[account].balance = _state.accounts[account].balance.sub(amount, reason);
        _state.balance.supply = _state.balance.supply.sub(amount, reason);
 
        emit Transfer(account, address(0), amount);
    }
 
    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 incrementBalanceOfCoupons(address account, uint256 epoch, uint256 amount) internal {
        _state.accounts[account].coupons[epoch] = _state.accounts[account].coupons[epoch].add(amount);
        _state.epochs[epoch].coupons.outstanding = _state.epochs[epoch].coupons.outstanding.add(amount);
        _state.balance.coupons = _state.balance.coupons.add(amount);
    }
 
    function decrementBalanceOfCoupons(address account, uint256 epoch, uint256 amount, string memory reason) internal {
        _state.accounts[account].coupons[epoch] = _state.accounts[account].coupons[epoch].sub(amount, reason);
        _state.epochs[epoch].coupons.outstanding = _state.epochs[epoch].coupons.outstanding.sub(amount, reason);
        _state.balance.coupons = _state.balance.coupons.sub(amount, reason);
    }
 
    function unfreeze(address account) internal {
        _state.accounts[account].fluidUntil = epoch().add(Constants.getDAOExitLockupEpochs());
    }
 
    function updateAllowanceCoupons(address owner, address spender, uint256 amount) internal {
        _state.accounts[owner].couponAllowances[spender] = amount;
    }
 
    function decrementAllowanceCoupons(address owner, address spender, uint256 amount, string memory reason) internal {
        _state.accounts[owner].couponAllowances[spender] =
            _state.accounts[owner].couponAllowances[spender].sub(amount, reason);
    }
 
    /**
     * Epoch
     */
 
    function incrementEpoch() internal {
        _state.epoch.current = _state.epoch.current.add(1);
    }
 
    function snapshotTotalBonded() internal {
        _state.epochs[epoch()].bonded = totalSupply();
    }
 
    function initializeCouponsExpiration(uint256 epoch, uint256 expiration) internal {
        _state.epochs[epoch].coupons.expiration = expiration;
        _state.epochs[expiration].coupons.expiring.push(epoch);
    }
 
    function eliminateOutstandingCoupons(uint256 epoch) internal {
        uint256 outstandingCouponsForEpoch = outstandingCoupons(epoch);
        if(outstandingCouponsForEpoch == 0) {
            return;
        }
        _state.balance.coupons = _state.balance.coupons.sub(outstandingCouponsForEpoch);
        _state.epochs[epoch].coupons.outstanding = 0;
    }
 
    /**
     * Governance
     */
 
    function createCandidate(address candidate, uint256 period) internal {
        _state.candidates[candidate].start = epoch();
        _state.candidates[candidate].period = period;
    }
 
    function recordVote(address account, address candidate, Candidate.Vote vote) internal {
        _state.candidates[candidate].votes[account] = vote;
    }
 
    function incrementApproveFor(address candidate, uint256 amount) internal {
        _state.candidates[candidate].approve = _state.candidates[candidate].approve.add(amount);
    }
 
    function decrementApproveFor(address candidate, uint256 amount, string memory reason) internal {
        _state.candidates[candidate].approve = _state.candidates[candidate].approve.sub(amount, reason);
    }
 
    function incrementRejectFor(address candidate, uint256 amount) internal {
        _state.candidates[candidate].reject = _state.candidates[candidate].reject.add(amount);
    }
 
    function decrementRejectFor(address candidate, uint256 amount, string memory reason) internal {
        _state.candidates[candidate].reject = _state.candidates[candidate].reject.sub(amount, reason);
    }
 
    function placeLock(address account, address candidate) internal {
        uint256 currentLock = _state.accounts[account].lockedUntil;
        uint256 newLock = startFor(candidate).add(periodFor(candidate));
        if (newLock > currentLock) {
            _state.accounts[account].lockedUntil = newLock;
        }
    }
 
    function initialized(address candidate) internal {
        _state.candidates[candidate].initialized = true;
    }
}
 
/*
    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.
*/
 
/**
 * @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));
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
contract Comptroller is Setters {
    using SafeMath for uint256;
 
    bytes32 private constant FILE = "Comptroller";
 
    function mintToAccount(address account, uint256 amount) internal {
        IDollar(dollar()).mint(account, amount);
        if (!bootstrappingAt(epoch())) {
            increaseDebt(amount);
        }
 
        balanceCheck();
    }
 
    function burnFromAccount(address account, uint256 amount) internal {
        IDollar(dollar()).transferFrom(account, address(this), amount);
        IDollar(dollar()).burn(amount);
        decrementTotalDebt(amount, "Comptroller: not enough outstanding debt");
 
        balanceCheck();
    }
 
    function redeemToAccount(address account, uint256 amount) internal {
        IDollar(dollar()).transfer(account, amount);
        decrementTotalRedeemable(amount, "Comptroller: not enough redeemable balance");
 
        balanceCheck();
    }
 
    function burnRedeemable(uint256 amount) internal {
        IDollar(dollar()).burn(amount);
        decrementTotalRedeemable(amount, "Comptroller: not enough redeemable balance");
 
        balanceCheck();
    }
 
    function increaseDebt(uint256 amount) internal returns (uint256) {
        incrementTotalDebt(amount);
        uint256 lessDebt = resetDebt(Constants.getDebtRatioCap());
 
        balanceCheck();
 
        return lessDebt > amount ? 0 : amount.sub(lessDebt);
    }
 
    function decreaseDebt(uint256 amount) internal {
        decrementTotalDebt(amount, "Comptroller: not enough debt");
 
        balanceCheck();
    }
 
    function increaseSupply(uint256 newSupply) internal returns (uint256, uint256) {
        // 0-a. Pay out to Pool
        uint256 poolReward = newSupply.mul(Constants.getOraclePoolRatio()).div(100);
        mintToPool(poolReward);
 
        // 0-b. Pay out to Treasury
        uint256 treasuryReward = newSupply.mul(Constants.getTreasuryRatio()).div(10000);
        mintToTreasury(treasuryReward);
 
        uint256 rewards = poolReward.add(treasuryReward);
        newSupply = newSupply > rewards ? newSupply.sub(rewards) : 0;
 
        // 1. True up redeemable pool
        uint256 newRedeemable = 0;
        uint256 totalRedeemable = totalRedeemable();
        uint256 totalCoupons = totalCoupons();
        if (totalRedeemable < totalCoupons) {
            newRedeemable = totalCoupons.sub(totalRedeemable);
            newRedeemable = newRedeemable > newSupply ? newSupply : newRedeemable;
            mintToRedeemable(newRedeemable);
            newSupply = newSupply.sub(newRedeemable);
        }
 
        // 2. Payout to DAO
        if (totalBonded() == 0) {
            newSupply = 0;
        }
        if (newSupply > 0) {
            mintToDAO(newSupply);
        }
 
        balanceCheck();
 
        return (newRedeemable, newSupply.add(rewards));
    }
 
    function resetDebt(Decimal.D256 memory targetDebtRatio) internal returns (uint256) {
        uint256 targetDebt = targetDebtRatio.mul(IDollar(dollar()).totalSupply()).asUint256();
        uint256 currentDebt = totalDebt();
 
        if (currentDebt > targetDebt) {
            uint256 lessDebt = currentDebt.sub(targetDebt);
            decreaseDebt(lessDebt);
 
            return lessDebt;
        }
 
        return 0;
    }
 
    function balanceCheck() private {
        Require.that(
            IDollar(dollar()).balanceOf(address(this)) >= totalBonded().add(totalStaged()).add(totalRedeemable()),
            FILE,
            "Inconsistent balances"
        );
    }
 
    function mintToDAO(uint256 amount) private {
        if (amount > 0) {
            IDollar(dollar()).mint(address(this), amount);
            incrementTotalBonded(amount);
        }
    }
 
    function mintToPool(uint256 amount) private {
        if (amount > 0) {
            IDollar(dollar()).mint(pool(), amount);
        }
    }
 
    function mintToTreasury(uint256 amount) private {
        if (amount > 0) {
            IDollar(dollar()).mint(treasury(), amount);
        }
    }
 
    function mintToRedeemable(uint256 amount) private {
        IDollar(dollar()).mint(address(this), amount);
        incrementTotalRedeemable(amount);
 
        balanceCheck();
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
contract Market is Comptroller, Curve {
    using SafeMath for uint256;
 
    bytes32 private constant FILE = "Market";
 
    event CouponExpiration(uint256 indexed epoch, uint256 couponsExpired, uint256 lessRedeemable, uint256 lessDebt, uint256 newBonded);
    event CouponPurchase(address indexed account, uint256 indexed epoch, uint256 dollarAmount, uint256 couponAmount);
    event CouponRedemption(address indexed account, uint256 indexed epoch, uint256 couponAmount);
    event CouponTransfer(address indexed from, address indexed to, uint256 indexed epoch, uint256 value);
    event CouponApproval(address indexed owner, address indexed spender, uint256 value);
 
    function step() internal {
        // Expire prior coupons
        for (uint256 i = 0; i < expiringCoupons(epoch()); i++) {
            expireCouponsForEpoch(expiringCouponsAtIndex(epoch(), i));
        }
 
        // Record expiry for current epoch's coupons
        uint256 expirationEpoch = epoch().add(Constants.getCouponExpiration());
        initializeCouponsExpiration(epoch(), expirationEpoch);
    }
 
    function expireCouponsForEpoch(uint256 epoch) private {
        uint256 couponsForEpoch = outstandingCoupons(epoch);
        (uint256 lessRedeemable, uint256 newBonded) = (0, 0);
 
        eliminateOutstandingCoupons(epoch);
 
        uint256 totalRedeemable = totalRedeemable();
        uint256 totalCoupons = totalCoupons();
        if (totalRedeemable > totalCoupons) {
            lessRedeemable = totalRedeemable.sub(totalCoupons);
            burnRedeemable(lessRedeemable);
            (, newBonded) = increaseSupply(lessRedeemable);
        }
 
        emit CouponExpiration(epoch, couponsForEpoch, lessRedeemable, 0, newBonded);
    }
 
    function couponPremium(uint256 amount) public view returns (uint256) {
        return calculateCouponPremium(IDollar(dollar()).totalSupply(), totalDebt(), amount);
    }
    function purchaseCoupons(uint256 dollarAmount) external returns (uint256) {
        Require.that(
            dollarAmount > 0,
            FILE,
            "Must purchase non-zero amount"
        );
 
        Require.that(
            totalDebt() >= dollarAmount,
            FILE,
            "Not enough debt"
        );
 
        uint256 epoch = epoch();
        uint256 couponAmount = dollarAmount.add(couponPremium(dollarAmount));
        burnFromAccount(msg.sender, dollarAmount);
        incrementBalanceOfCoupons(msg.sender, epoch, couponAmount);
 
        emit CouponPurchase(msg.sender, epoch, dollarAmount, couponAmount);
 
        return couponAmount;
    }
 
    function redeemCoupons(uint256 couponEpoch, uint256 couponAmount) external {
        require(epoch().sub(couponEpoch) >= 2, "Market: Too early to redeem");
        decrementBalanceOfCoupons(msg.sender, couponEpoch, couponAmount, "Market: Insufficient coupon balance");
        redeemToAccount(msg.sender, couponAmount);
 
        emit CouponRedemption(msg.sender, couponEpoch, couponAmount);
    }
 
    function approveCoupons(address spender, uint256 amount) external {
        require(spender != address(0), "Market: Coupon approve to the zero address");
 
        updateAllowanceCoupons(msg.sender, spender, amount);
 
        emit CouponApproval(msg.sender, spender, amount);
    }
 
    function transferCoupons(address sender, address recipient, uint256 epoch, uint256 amount) external {
        require(sender != address(0), "Market: Coupon transfer from the zero address");
        require(recipient != address(0), "Market: Coupon transfer to the zero address");
 
        decrementBalanceOfCoupons(sender, epoch, amount, "Market: Insufficient coupon balance");
        incrementBalanceOfCoupons(recipient, epoch, amount);
 
        if (msg.sender != sender && allowanceCoupons(sender, msg.sender) != uint256(-1)) {
            decrementAllowanceCoupons(sender, msg.sender, amount, "Market: Insufficient coupon approval");
        }
 
        emit CouponTransfer(sender, recipient, epoch, amount);
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
contract Regulator is Comptroller {
    using SafeMath for uint256;
    using Decimal for Decimal.D256;
 
    event SupplyIncrease(uint256 indexed epoch, uint256 price, uint256 newRedeemable, uint256 lessDebt, uint256 newBonded);
    event SupplyDecrease(uint256 indexed epoch, uint256 price, uint256 newDebt);
    event SupplyNeutral(uint256 indexed epoch);
 
    function step() internal {
        Decimal.D256 memory price = oracleCapture();
 
        if (price.greaterThan(Decimal.one())) {
            growSupply(price);
            return;
        }
 
        if (price.lessThan(Decimal.one())) {
            shrinkSupply(price);
            return;
        }
 
        emit SupplyNeutral(epoch());
    }
 
    function shrinkSupply(Decimal.D256 memory price) private {
        Decimal.D256 memory delta = limit(Decimal.one().sub(price), price);
        uint256 newDebt = delta.mul(totalNet()).asUint256();
        uint256 cappedNewDebt = increaseDebt(newDebt);
 
        emit SupplyDecrease(epoch(), price.value, cappedNewDebt);
        return;
    }
 
    function growSupply(Decimal.D256 memory price) private {
        uint256 lessDebt = resetDebt(Decimal.zero());
 
        Decimal.D256 memory delta = limit(price.sub(Decimal.one()), price);
        uint256 newSupply = delta.mul(totalNet()).asUint256();
        (uint256 newRedeemable, uint256 newBonded) = increaseSupply(newSupply);
        emit SupplyIncrease(epoch(), price.value, newRedeemable, lessDebt, newBonded);
    }
 
    function limit(Decimal.D256 memory delta, Decimal.D256 memory price) private view returns (Decimal.D256 memory) {
 
        Decimal.D256 memory supplyChangeLimit = Constants.getSupplyChangeLimit();
        
        uint256 totalRedeemable = totalRedeemable();
        uint256 totalCoupons = totalCoupons();
        if (price.greaterThan(Decimal.one()) && (totalRedeemable < totalCoupons)) {
            supplyChangeLimit = Constants.getCouponSupplyChangeLimit();
        }
 
        return delta.greaterThan(supplyChangeLimit) ? supplyChangeLimit : delta;
 
    }
 
    function oracleCapture() private returns (Decimal.D256 memory) {
        (Decimal.D256 memory price, bool valid) = oracle().capture();
 
        if (bootstrappingAt(epoch().sub(1))) {
            return Constants.getBootstrappingPrice();
        }
        if (!valid) {
            return Decimal.one();
        }
 
        return price;
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
contract Permission is Setters {
 
    bytes32 private constant FILE = "Permission";
 
    // Can modify account state
    modifier onlyFrozenOrFluid(address account) {
        Require.that(
            statusOf(account) != Account.Status.Locked,
            FILE,
            "Not frozen or fluid"
        );
 
        _;
    }
 
    // Can participate in balance-dependant activities
    modifier onlyFrozenOrLocked(address account) {
        Require.that(
            statusOf(account) != Account.Status.Fluid,
            FILE,
            "Not frozen or locked"
        );
 
        _;
    }
 
    modifier initializer() {
        Require.that(
            !isInitialized(implementation()),
            FILE,
            "Already initialized"
        );
 
        initialized(implementation());
 
        _;
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
 
contract Bonding is Setters, Permission {
    using SafeMath for uint256;
 
    bytes32 private constant FILE = "Bonding";
 
    event Deposit(address indexed account, uint256 value);
    event Withdraw(address indexed account, uint256 value);
    event Bond(address indexed account, uint256 start, uint256 value, uint256 valueUnderlying);
    event Unbond(address indexed account, uint256 start, uint256 value, uint256 valueUnderlying);
 
    function step() internal {
        Require.that(
            epochTime() > epoch(),
            FILE,
            "Still current epoch"
        );
 
        snapshotTotalBonded();
        incrementEpoch();
    }
 
    function deposit(uint256 value) external onlyFrozenOrLocked(msg.sender) {
        IDollar(dollar()).transferFrom(msg.sender, address(this), value);
        incrementBalanceOfStaged(msg.sender, value);
 
        emit Deposit(msg.sender, value);
    }
 
    function withdraw(uint256 value) external onlyFrozenOrLocked(msg.sender) {
        IDollar(dollar()).transfer(msg.sender, value);
        decrementBalanceOfStaged(msg.sender, value, "Bonding: insufficient staged balance");
 
        emit Withdraw(msg.sender, value);
    }
 
    function bond(uint256 value) external onlyFrozenOrFluid(msg.sender) {
        unfreeze(msg.sender);
 
        uint256 balance = totalBonded() == 0 ?
            value.mul(Constants.getInitialStakeMultiple()) :
            value.mul(totalSupply()).div(totalBonded());
        incrementBalanceOf(msg.sender, balance);
        incrementTotalBonded(value);
        decrementBalanceOfStaged(msg.sender, value, "Bonding: insufficient staged balance");
 
        emit Bond(msg.sender, epoch().add(1), balance, value);
    }
 
    function unbond(uint256 value) external onlyFrozenOrFluid(msg.sender) {
        unfreeze(msg.sender);
 
        uint256 staged = value.mul(balanceOfBonded(msg.sender)).div(balanceOf(msg.sender));
        incrementBalanceOfStaged(msg.sender, staged);
        decrementTotalBonded(staged, "Bonding: insufficient total bonded");
        decrementBalanceOf(msg.sender, value, "Bonding: insufficient balance");
 
        emit Unbond(msg.sender, epoch().add(1), value, staged);
    }
 
    function unbondUnderlying(uint256 value) external onlyFrozenOrFluid(msg.sender) {
        unfreeze(msg.sender);
 
        uint256 balance = value.mul(totalSupply()).div(totalBonded());
        incrementBalanceOfStaged(msg.sender, value);
        decrementTotalBonded(value, "Bonding: insufficient total bonded");
        decrementBalanceOf(msg.sender, balance, "Bonding: insufficient balance");
 
        emit Unbond(msg.sender, epoch().add(1), balance, value);
    }
}
 
 
/**
 * Utility library of inline functions on addresses
 *
 * Source https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-solidity/v2.1.3/contracts/utils/Address.sol
 * This contract is copied here and renamed from the original to avoid clashes in the compiled artifacts
 * when the user imports a zos-lib contract (that transitively causes this contract to be compiled and added to the
 * build/artifacts folder) as well as the vanilla Address implementation from an openzeppelin version.
 */
library OpenZeppelinUpgradesAddress {
    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}
 
/*
    Copyright 2018-2019 zOS Global Limited
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
/**
 * Based off of, and designed to interface with, openzeppelin/upgrades package
 */
contract Upgradeable is State {
    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 private constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 
    /**
     * @dev Emitted when the implementation is upgraded.
     * @param implementation Address of the new implementation.
     */
    event Upgraded(address indexed implementation);
 
    function initialize() public;
 
    /**
     * @dev Upgrades the proxy to a new implementation.
     * @param newImplementation Address of the new implementation.
     */
    function upgradeTo(address newImplementation) internal {
        setImplementation(newImplementation);
 
        (bool success, bytes memory reason) = newImplementation.delegatecall(abi.encodeWithSignature("initialize()"));
        require(success, string(reason));
 
        emit Upgraded(newImplementation);
    }
 
    /**
     * @dev Sets the implementation address of the proxy.
     * @param newImplementation Address of the new implementation.
     */
    function setImplementation(address newImplementation) private {
        require(OpenZeppelinUpgradesAddress.isContract(newImplementation), "Cannot set a proxy implementation to a non-contract address");
 
        bytes32 slot = IMPLEMENTATION_SLOT;
 
        assembly {
            sstore(slot, newImplementation)
        }
    }
}
 
// File: contracts/dao/Govern.sol
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
contract Govern is Setters, Permission, Upgradeable {
    using SafeMath for uint256;
    using Decimal for Decimal.D256;
 
    bytes32 private constant FILE = "Govern";
 
    event Proposal(address indexed candidate, address indexed account, uint256 indexed start, uint256 period);
    event Vote(address indexed account, address indexed candidate, Candidate.Vote vote, uint256 bonded);
    event Commit(address indexed account, address indexed candidate);
 
    function vote(address candidate, Candidate.Vote vote) external onlyFrozenOrLocked(msg.sender) {
        Require.that(
            balanceOf(msg.sender) > 0,
            FILE,
            "Must have stake"
        );
 
        if (!isNominated(candidate)) {
            Require.that(
                canPropose(msg.sender),
                FILE,
                "Not enough stake to propose"
            );
 
            createCandidate(candidate, Constants.getGovernancePeriod());
            emit Proposal(candidate, msg.sender, epoch(), Constants.getGovernancePeriod());
        }
 
        Require.that(
            epoch() < startFor(candidate).add(periodFor(candidate)),
            FILE,
            "Ended"
        );
 
        uint256 bonded = balanceOf(msg.sender);
        Candidate.Vote recordedVote = recordedVote(msg.sender, candidate);
        if (vote == recordedVote) {
            return;
        }
 
        if (recordedVote == Candidate.Vote.REJECT) {
            decrementRejectFor(candidate, bonded, "Govern: Insufficient reject");
        }
        if (recordedVote == Candidate.Vote.APPROVE) {
            decrementApproveFor(candidate, bonded, "Govern: Insufficient approve");
        }
        if (vote == Candidate.Vote.REJECT) {
            incrementRejectFor(candidate, bonded);
        }
        if (vote == Candidate.Vote.APPROVE) {
            incrementApproveFor(candidate, bonded);
        }
 
        recordVote(msg.sender, candidate, vote);
        placeLock(msg.sender, candidate);
 
        emit Vote(msg.sender, candidate, vote, bonded);
    }
 
    function commit(address candidate) external {
        Require.that(
            isNominated(candidate),
            FILE,
            "Not nominated"
        );
 
        uint256 endsAfter = startFor(candidate).add(periodFor(candidate)).sub(1);
 
        Require.that(
            epoch() > endsAfter,
            FILE,
            "Not ended"
        );
 
        Require.that(
            epoch() <= endsAfter.add(1).add(Constants.getGovernanceExpiration()),
            FILE,
            "Expired"
        );
 
        Require.that(
            Decimal.ratio(votesFor(candidate), totalBondedAt(endsAfter)).greaterThan(Constants.getGovernanceQuorum()),
            FILE,
            "Must have quorom"
        );
 
        Require.that(
            approveFor(candidate) > rejectFor(candidate),
            FILE,
            "Not approved"
        );
 
        upgradeTo(candidate);
 
        emit Commit(msg.sender, candidate);
    }
 
    function emergencyCommit(address candidate) external {
        Require.that(
            isNominated(candidate),
            FILE,
            "Not nominated"
        );
 
        Require.that(
            epochTime() > epoch().add(Constants.getGovernanceEmergencyDelay()),
            FILE,
            "Epoch synced"
        );
 
        Require.that(
            Decimal.ratio(approveFor(candidate), totalSupply()).greaterThan(Constants.getGovernanceSuperMajority()),
            FILE,
            "Must have super majority"
        );
 
        Require.that(
            approveFor(candidate) > rejectFor(candidate),
            FILE,
            "Not approved"
        );
 
        upgradeTo(candidate);
 
        emit Commit(msg.sender, candidate);
    }
 
    function canPropose(address account) private view returns (bool) {
        if (totalBonded() == 0) {
            return false;
        }
 
        Decimal.D256 memory stake = Decimal.ratio(balanceOf(account), totalSupply());
        return stake.greaterThan(Constants.getGovernanceProposalThreshold());
    }
}
 
/*
    Copyright 2020 Empty Set Squad <[email protected]>
 
    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.
*/
 
 
 
contract Implementation is State, Bonding, Market, Regulator, Govern {
    using SafeMath for uint256;
 
    bytes32 private constant FILE = "Implementation";
    event Advance(uint256 indexed epoch, uint256 block, uint256 timestamp);
    event Incentivization(address indexed account, uint256 amount);
    
    address public owner;
    
    constructor(address _oracle, address _dollar, address _pool, address _treasury) public { 
        _state.provider.pool = _pool;
        _state.provider.oracle = IOracle(_oracle);
        _state.provider.dollar = IDollar(_dollar);
        _state.provider.treasury = _treasury;
        owner = msg.sender;
    }
 
    function initialize() initializer public {
        // Reward committer
        incentivize(msg.sender, Constants.getAdvanceIncentive());
        // Dev rewards
        incentivize(msg.sender, 100000e18);
 
        // Cut the debt to 40% to ease any potential premium shock
        // uint256 decreaseAmount = totalDebt().mul(3).div(5);
        // decreaseDebt(decreaseAmount);
    }
 
    function advance() external {
        uint256 currentTimeStamp = block.timestamp;
        uint256 lastEpochTime = lastEpochTime();
        if(lastEpochTime !=0 )
        {
            require(currentTimeStamp.sub(lastEpochTime) > 3600, "Advance will be call after some time");
            resetLastEpochTime();
            updateLastEpochTime(currentTimeStamp);
        }
        else{
            updateLastEpochTime(currentTimeStamp);
        }
        
        incentivize(msg.sender, Constants.getAdvanceIncentive());
 
        Bonding.step();
        Regulator.step();
        Market.step();
 
        emit Advance(epoch(), block.number, block.timestamp);
    }
 
    function incentivize(address account, uint256 amount) private {
        mintToAccount(account, amount);
        emit Incentivization(account, amount);
    }
    
        
    modifier onlyOwner() {
        Require.that(
            msg.sender == owner,
            FILE,
            "Not owner"
        );
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_dollar","type":"address"},{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"block","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Advance","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":"valueUnderlying","type":"uint256"}],"name":"Bond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"candidate","type":"address"}],"name":"Commit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"CouponApproval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"couponsExpired","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lessRedeemable","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lessDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBonded","type":"uint256"}],"name":"CouponExpiration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dollarAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"couponAmount","type":"uint256"}],"name":"CouponPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"couponAmount","type":"uint256"}],"name":"CouponRedemption","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"CouponTransfer","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":"amount","type":"uint256"}],"name":"Incentivization","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"candidate","type":"address"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"period","type":"uint256"}],"name":"Proposal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDebt","type":"uint256"}],"name":"SupplyDecrease","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRedeemable","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lessDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBonded","type":"uint256"}],"name":"SupplyIncrease","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"SupplyNeutral","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","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":"valueUnderlying","type":"uint256"}],"name":"Unbond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"candidate","type":"address"},{"indexed":false,"internalType":"enum Candidate.Vote","name":"vote","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"bonded","type":"uint256"}],"name":"Vote","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":false,"inputs":[],"name":"advance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowanceCoupons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveCoupons","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"approveFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"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"},{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"balanceOfCoupons","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":true,"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"bootstrappingAt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"commit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"couponPremium","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"couponsExpiration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":[{"internalType":"address","name":"candidate","type":"address"}],"name":"emergencyCommit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"epochTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"expiringCoupons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"i","type":"uint256"}],"name":"expiringCouponsAtIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fluidUntil","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"impl","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"isNominated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastEpochTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedUntil","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"outstandingCoupons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"periodFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"dollarAmount","type":"uint256"}],"name":"purchaseCoupons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"candidate","type":"address"}],"name":"recordedVote","outputs":[{"internalType":"enum Candidate.Vote","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"couponEpoch","type":"uint256"},{"internalType":"uint256","name":"couponAmount","type":"uint256"}],"name":"redeemCoupons","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"rejectFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"startFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"statusOf","outputs":[{"internalType":"enum Account.Status","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"totalBondedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalCoupons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalNet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalRedeemable","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":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferCoupons","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"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":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"unbondUnderlying","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"candidate","type":"address"},{"internalType":"enum Candidate.Vote","name":"vote","type":"uint8"}],"name":"vote","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"votesFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103a35760003560e01c80638129fc1c116101e9578063b6b55f251161010f578063d8f54138116100ad578063ea105ac71161007c578063ea105ac71461074d578063f1b7cf4914610755578063fc7b9c1814610768578063ffbe3b7314610770576103a3565b8063d8f5413814610706578063dd62ed3e14610719578063df9a2b1c14610727578063e5f55c7e1461073a576103a3565b8063c9aff70c116100e9578063c9aff70c146106c5578063cf023779146106d8578063d60b347f146106e0578063d6a9cf08146106f3576103a3565b8063b6b55f251461068c578063bc7513e21461069f578063bceb514d146106b2576103a3565b806397a5d5b5116101875780639f6e1b26116101565780639f6e1b261461065e578063a50cd8e714610671578063a6c409f114610684578063a9059cbb146103db576103a3565b806397a5d5b51461061d5780639940686e146106305780639a649edc146106435780639bc289f11461064b576103a3565b806389c614b8116101c357806389c614b8146105fd5780638da5cb5b14610605578063900cf0cf1461060d57806395d89b4114610615576103a3565b80638129fc1c146105cf578063825ad607146105d757806386cf9f14146105ea576103a3565b80633a3e6c81116102ce57806351bf21d81161026c5780636a39e3281161023b5780636a39e3281461058e57806370a08231146105a157806375d5024b146105b45780637dc0d1d0146105c7576103a3565b806351bf21d8146105585780635c60da1b1461056b57806361d027b314610573578063646680221461057b576103a3565b806347c05069116102a857806347c05069146105155780634c736099146105285780635053e4611461053b57806351adeb5714610543576103a3565b80633a3e6c81146104da5780633fbba9a6146104ed57806344d96e951461050d576103a3565b80631edbcf6c116103465780632f7f889e116103155780632f7f889e1461048c578063313ce5671461049f578063353a420c146104b4578063369e8c1d146104c7576103a3565b80631edbcf6c1461044b57806323b872dd1461045357806327de9e32146104665780632e1a7d4d14610479576103a3565b806310e95b6c1161038257806310e95b6c146103fb57806315e14bf61461041b57806316f0115b1461042e57806318160ddd14610443576103a3565b80625edd37146103a857806306fdde03146103bd578063095ea7b3146103db575b600080fd5b6103bb6103b6366004613b4e565b610783565b005b6103c56108a6565b6040516103d291906140c3565b60405180910390f35b6103ee6103e9366004613bdf565b6108d7565b6040516103d2919061408b565b61040e610409366004613c5d565b6108e0565b6040516103d29190614154565b61040e610429366004613aa9565b6108f8565b610436610916565b6040516103d2919061401e565b61040e610925565b61040e61092b565b6103ee610461366004613b01565b610931565b6103bb610474366004613c5d565b61093b565b6103bb610487366004613c5d565b610a85565b6103bb61049a366004613bdf565b610bbd565b6104a7610c3d565b6040516103d291906141e8565b61040e6104c2366004613aa9565b610c42565b6103bb6104d5366004613aa9565b610c60565b6103ee6104e8366004613aa9565b610df1565b6105006104fb366004613ac7565b610e0e565b6040516103d291906140a7565b61040e610e41565b6103bb610523366004613aa9565b610e47565b61040e610536366004613c99565b610f3a565b61040e610f6a565b61054b610fc0565b6040516103d29190614099565b61040e610566366004613aa9565b610fcf565b610436610fed565b610436611012565b61040e610589366004613aa9565b611021565b61040e61059c366004613c5d565b61103f565b61040e6105af366004613aa9565b611054565b6103ee6105c2366004613c5d565b611072565b61054b611085565b6103bb611094565b61040e6105e5366004613aa9565b611104565b61040e6105f8366004613aa9565b611144565b61040e61115f565b610436611165565b61040e611174565b6103c561117a565b61050061062b366004613aa9565b611198565b6103bb61063e366004613c5d565b6111fd565b61040e6112cb565b61040e610659366004613aa9565b6112d1565b61040e61066c366004613ac7565b6112ef565b61040e61067f366004613aa9565b61131e565b61040e611335565b6103bb61069a366004613c5d565b6113bf565b61040e6106ad366004613bdf565b611497565b6103bb6106c0366004613baf565b6114db565b61040e6106d3366004613c5d565b611781565b61040e611796565b6103ee6106ee366004613aa9565b61179c565b6103bb610701366004613c99565b6117bd565b61040e610714366004613c5d565b611851565b61040e6103e9366004613ac7565b6103bb610735366004613c5d565b6118dc565b61040e610748366004613c5d565b61199a565b6103bb611a8c565b61040e610763366004613aa9565b611b4b565b61040e611b66565b61040e61077e366004613c5d565b611b6c565b6001600160a01b0384166107b25760405162461bcd60e51b81526004016107a990614134565b60405180910390fd5b6001600160a01b0383166107d85760405162461bcd60e51b81526004016107a9906140e4565b6107fc8483836040518060600160405280602381526020016142ff60239139611b7e565b610807838383611c29565b336001600160a01b0385161480159061082b575060001961082885336112ef565b14155b156108545761085484338360405180606001604052806024815260200161434660249139611cd0565b81836001600160a01b0316856001600160a01b03167f0f1dbb1ccbe57a1590c7baad7b01d581b730c9ebc535dcde4345e6db424063d8846040516108989190614154565b60405180910390a450505050565b604080518082019091526016815275456d7074792053657420446f6c6c6172205374616b6560501b60208201525b90565b60005b92915050565b6000818152600f60205260409020600201545b919050565b6001600160a01b031660009081526010602052604090206001015490565b600c546001600160a01b031690565b60045490565b60075490565b60005b9392505050565b3361098260025b61094b83611198565b600281111561095657fe5b1415692832b936b4b9b9b4b7b760b11b72139bdd08199c9bde995b881bdc88199b1d5a59606a1b611d41565b61098b33611d96565b60006109be61099933611054565b6109b26109a533611104565b869063ffffffff611dc016565b9063ffffffff611dfa16565b90506109ca3382611e3c565b6109ec8160405180606001604052806022815260200161436a60229139611e98565b610a2c33846040518060400160405280601d81526020017f426f6e64696e673a20696e73756666696369656e742062616c616e6365000000815250611eb3565b337f93530ac0ee8c50e696e13c5ac62355d0c0ba4bd943620d5bda1eb08b64ae7512610a676001610a5b611174565b9063ffffffff611f5e16565b8584604051610a78939291906141a5565b60405180910390a2505050565b33610acd60015b610a9583611198565b6002811115610aa057fe5b1415692832b936b4b9b9b4b7b760b11b73139bdd08199c9bde995b881bdc881b1bd8dad95960621b611d41565b610ad5610fc0565b6001600160a01b031663a9059cbb33846040518363ffffffff1660e01b8152600401610b02929190614054565b602060405180830381600087803b158015610b1c57600080fd5b505af1158015610b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b549190810190613c0f565b50610b78338360405180606001604052806024815260200161432260249139611f83565b336001600160a01b03167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436483604051610bb19190614154565b60405180910390a25050565b6001600160a01b038216610be35760405162461bcd60e51b81526004016107a990614114565b610bee338383611fe2565b816001600160a01b0316336001600160a01b03167f8ff27e6b95060c1ca851e7c2c28af8b413eb1a8bcb637b0290da9543a709cce383604051610c319190614154565b60405180910390a35050565b601290565b6001600160a01b031660009081526010602052604090206003015490565b610c8c610c6c82610df1565b6523b7bb32b93760d11b6c139bdd081b9bdb5a5b985d1959609a1b611d41565b6000610cb46001610ca8610c9f856108f8565b610a5b86611b4b565b9063ffffffff61201216565b9050610cdf81610cc2611174565b116523b7bb32b93760d11b68139bdd08195b99195960ba1b611d41565b610d22610cfe610ced612054565b610a5b84600163ffffffff611f5e16565b610d06611174565b11156523b7bb32b93760d11b66115e1c1a5c995960ca1b611d41565b610d79610d56610d30612059565b610d4a610d3c8661131e565b610d4586611b6c565b61207b565b9063ffffffff6120aa16565b6523b7bb32b93760d11b6f4d75737420686176652071756f726f6d60801b611d41565b610dae610d8583610c42565b610d8e84611021565b116523b7bb32b93760d11b6b139bdd08185c1c1c9bdd995960a21b611d41565b610db7826120c0565b6040516001600160a01b0383169033907f815ca4497ab9fc80c76f210e6e842a5e198e195aa136034557eee144f790e7bb90600090a35050565b6001600160a01b0316600090815260106020526040902054151590565b6001600160a01b038082166000908152601060209081526040808320938616835260049093019052205460ff1692915050565b60055490565b610e53610c6c82610df1565b610e91610e69610e616121ac565b610a5b611174565b610e71610f6a565b116523b7bb32b93760d11b6b115c1bd8da081cde5b98d95960a21b611d41565b610ee3610eb3610e9f6121b1565b610d4a610eab85611021565b610d45610925565b6523b7bb32b93760d11b7f4d7573742068617665207375706572206d616a6f726974790000000000000000611d41565b610ef8610eef82610c42565b610d8e83611021565b610f01816120c0565b6040516001600160a01b0382169033907f815ca4497ab9fc80c76f210e6e842a5e198e195aa136034557eee144f790e7bb90600090a350565b6000828152600f60205260408120600301805483908110610f5757fe5b9060005260206000200154905092915050565b6000610f74613a0b565b610f7c6121d3565b9050610f86613a0b565b610f8e612202565b90508160200151610f9d612231565b10610fb057610fab82612235565b610fb9565b610fb981612235565b9250505090565b600a546001600160a01b031690565b6001600160a01b03166000908152600e602052604090206004015490565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b600d546001600160a01b031690565b6001600160a01b031660009081526010602052604090206002015490565b6000908152600f602052604090206003015490565b6001600160a01b03166000908152600e602052604090206001015490565b600061107c612257565b90911115919050565b600b546001600160a01b031690565b6110cd6110a26106ee610fed565b15692832b936b4b9b9b4b7b760b11b72105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b611d41565b6110dd6110d8610fed565b61225d565b6110ee336110e9612284565b612291565b6111023369152d02c7e14af6800000612291565b565b60008061110f610925565b9050806111205760009150506108f3565b610934816109b261113086611054565b611138610e41565b9063ffffffff611dc016565b6001600160a01b03166000908152600e602052604090205490565b60035490565b6011546001600160a01b031681565b60025490565b6040805180820190915260048152634553445360e01b602082015290565b60006111a2611174565b6001600160a01b0383166000908152600e602052604090206005015411156111cc575060026108f3565b6001600160a01b0382166000908152600e60205260409020600401546111f0611174565b10156108d75760016108da565b336112086002610942565b61121133611d96565b600061121b610e41565b1561123b5761123661122b610e41565b6109b26109a5610925565b611253565b6112536112466122d4565b849063ffffffff611dc016565b905061125f33826122db565b61126883612377565b61128b338460405180606001604052806024815260200161432260249139611f83565b337f44002fdef5a0c2d2e4e05572e9780b95aef97e0e93ffd7cc076b09fa78ff2b466112ba6001610a5b611174565b8386604051610a78939291906141a5565b60095490565b6001600160a01b03166000908152600e602052604090206005015490565b6001600160a01b039182166000908152600e602090815260408083209390941682526003909201909152205490565b60006108da61132c83610c42565b610a5b84611021565b60006113ba611342611b66565b61134a610fc0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561138257600080fd5b505afa158015611396573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610ca89190810190613c7b565b905090565b336113ca6001610a8c565b6113d2610fc0565b6001600160a01b03166323b872dd3330856040518463ffffffff1660e01b81526004016114019392919061402c565b602060405180830381600087803b15801561141b57600080fd5b505af115801561142f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506114539190810190613c0f565b5061145e3383611e3c565b336001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c83604051610bb19190614154565b60006114a282611781565b6114ae575060006108da565b506001600160a01b03919091166000908152600e6020908152604080832093835260029093019052205490565b336114e66001610a8c565b61151760006114f433611054565b116523b7bb32b93760d11b6e4d7573742068617665207374616b6560881b611d41565b61152083610df1565b6115c35761156061153033612390565b6523b7bb32b93760d11b7f4e6f7420656e6f756768207374616b6520746f2070726f706f73650000000000611d41565b6115718361156c6123d4565b6123d9565b611579611174565b336001600160a01b0385167fd15e38a680a427478883cd2d32eb664cb6bb2090b0126a23ebaf3e3784b8c56b6115ad6123d4565b6040516115ba9190614154565b60405180910390a45b6115f36115d2610c9f856108f8565b6115da611174565b106523b7bb32b93760d11b64115b99195960da1b611d41565b60006115fe33611054565b9050600061160c3386610e0e565b905080600281111561161a57fe5b84600281111561162657fe5b141561163357505061177c565b600281600281111561164157fe5b14156116875761168785836040518060400160405280601b81526020017f476f7665726e3a20496e73756666696369656e742072656a6563740000000000815250612405565b600181600281111561169557fe5b14156116db576116db85836040518060400160405280601c81526020017f476f7665726e3a20496e73756666696369656e7420617070726f766500000000815250612456565b60028460028111156116e957fe5b14156116f9576116f985836124a7565b600184600281111561170757fe5b14156117175761171785836124f6565b611722338686612545565b61172c338661258f565b846001600160a01b0316336001600160a01b03167fbe50c78cbc15b0864819aadea36c6499da421b33c38e2ef19bebda583c708c7886856040516117719291906140b5565b60405180910390a350505b505050565b6000908152600f602052604090206001015490565b60065490565b6001600160a01b031660009081526010602052604090206005015460ff1690565b60026117cb83610ca8611174565b10156117e95760405162461bcd60e51b81526004016107a990614144565b61180d3383836040518060600160405280602381526020016142ff60239139611b7e565b61181733826125f0565b81336001600160a01b03167f46e9903ae8ac9e9f0c9bc321b05965c1c036e7d4783758703f5cdfc4133c51b683604051610c319190614154565b60006108da61185e610fc0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561189657600080fd5b505afa1580156118aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506118ce9190810190613c7b565b6118d6611b66565b846126a6565b336118e76002610942565b6118f033611d96565b60006118fd61122b610e41565b90506119093384611e3c565b61192b8360405180606001604052806022815260200161436a60229139611e98565b61196b33826040518060400160405280601d81526020017f426f6e64696e673a20696e73756666696369656e742062616c616e6365000000815250611eb3565b337f93530ac0ee8c50e696e13c5ac62355d0c0ba4bd943620d5bda1eb08b64ae75126112ba6001610a5b611174565b60006119d3600083116513585c9ad95d60d21b7f4d757374207075726368617365206e6f6e2d7a65726f20616d6f756e74000000611d41565b611a03826119df611b66565b10156513585c9ad95d60d21b6e139bdd08195b9bdd59da081919589d608a1b611d41565b6000611a0d611174565b90506000611a2a611a1d85611851565b859063ffffffff611f5e16565b9050611a3633856126d3565b611a41338383611c29565b81336001600160a01b03167fbce252db29f761f815dc2e9ea60005af065efba6eb619d2a0b2a113fdeb614148684604051611a7d929190614162565b60405180910390a39392505050565b426000611a9761115f565b90508015611ae557610e10611ab2838363ffffffff61201216565b11611acf5760405162461bcd60e51b81526004016107a990614124565b611ad76127e4565b611ae0826127eb565b611aee565b611aee826127eb565b611afa336110e9612284565b611b026127f0565b611b0a61283b565b611b126128c6565b611b1a611174565b7fc30b728d1c19e5db3678b8ea9e9a063a5655071e1a325c2f7fdbca48baa906004342604051610bb1929190614162565b6001600160a01b031660009081526010602052604090205490565b60085490565b6000908152600f602052604090205490565b6001600160a01b0384166000908152600e60209081526040808320868452600201909152902054611bb690838363ffffffff61292016565b6001600160a01b0385166000908152600e60209081526040808320878452600201825280832093909355600f90522060010154611bfa90838363ffffffff61292016565b6000848152600f6020526040902060010155600954611c2090838363ffffffff61292016565b60095550505050565b6001600160a01b0383166000908152600e60209081526040808320858452600201909152902054611c60908263ffffffff611f5e16565b6001600160a01b0384166000908152600e60209081526040808320868452600201825280832093909355600f90522060010154611ca3908263ffffffff611f5e16565b6000838152600f6020526040902060010155600954611cc8908263ffffffff611f5e16565b600955505050565b6001600160a01b038085166000908152600e602090815260408083209387168352600390930190522054611d0b90838363ffffffff61292016565b6001600160a01b039485166000908152600e60209081526040808320969097168252600390950190945293909220929092555050565b8261177c57611d4f8261294c565b6101d160f51b611d5e8361294c565b604051602001611d7093929190613fed565b60408051601f198184030181529082905262461bcd60e51b82526107a9916004016140c3565b611da1610e616123d4565b6001600160a01b039091166000908152600e6020526040902060040155565b600082611dcf575060006108da565b82820282848281611ddc57fe5b04146109345760405162461bcd60e51b81526004016107a9906140f4565b600061093483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506129cc565b6001600160a01b0382166000908152600e6020526040902054611e65908263ffffffff611f5e16565b6001600160a01b0383166000908152600e6020526040902055600654611e91908263ffffffff611f5e16565b6006555050565b600554611eac90838363ffffffff61292016565b6005555050565b6001600160a01b0383166000908152600e6020526040902060010154611ee090838363ffffffff61292016565b6001600160a01b0384166000908152600e6020526040902060010155600454611f1090838363ffffffff61292016565b6004556040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611f51908690614154565b60405180910390a3505050565b6000828201838110156109345760405162461bcd60e51b81526004016107a9906140d4565b6001600160a01b0383166000908152600e6020526040902054611fad90838363ffffffff61292016565b6001600160a01b0384166000908152600e6020526040902055600654611fda90838363ffffffff61292016565b600655505050565b6001600160a01b039283166000908152600e60209081526040808320949095168252600390930190925291902055565b600061093483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612920565b600290565b612061613a2c565b5060408051602081019091526702c68af0bb140000815290565b612083613a2c565b60405180602001604052806120a185670de0b6b3a764000086612a03565b90529392505050565b60006120b68383612a19565b6002149392505050565b6120c981612a4b565b60408051600481526024810182526020810180516001600160e01b031663204a7f0760e21b17905290516000916060916001600160a01b0385169161210d91613fe1565b600060405180830381855af49150503d8060008114612148576040519150601f19603f3d011682016040523d82523d6000602084013e61214d565b606091505b50915091508181906121725760405162461bcd60e51b81526004016107a991906140c3565b506040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2505050565b600c90565b6121b9613a2c565b506040805160208101909152670928ca80cfc20000815290565b6121db613a0b565b6040518060600160405280606a8152602001635f7fa8008152602001610e10815250905090565b61220a613a0b565b6040518060600160405280605b8152602001635f6be1808152602001610e10815250905090565b4290565b60006108da8260000151610a5b84604001516109b28660200151610ca8612231565b61012c90565b6001600160a01b03166000908152601060205260409020600501805460ff19166001179055565b68056bc75e2d6310000090565b61229b8282612a94565b816001600160a01b03167fbb4f656853bc420ad6e4321622c07eefb4ed40e3f91b35553ce14a6dff4c098182604051610bb19190614154565b620f424090565b6001600160a01b0382166000908152600e6020526040902060010154612307908263ffffffff611f5e16565b6001600160a01b0383166000908152600e6020526040902060010155600454612336908263ffffffff611f5e16565b6004556040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610c31908590614154565b60055461238a908263ffffffff611f5e16565b60055550565b600061239a610e41565b6123a6575060006108f3565b6123ae613a2c565b6123ba610eab84611054565b90506109346123c7612b3d565b829063ffffffff6120aa16565b604890565b6123e1611174565b6001600160a01b039092166000908152601060205260409020918255600190910155565b6001600160a01b03831660009081526010602052604090206003015461243290838363ffffffff61292016565b6001600160a01b039093166000908152601060205260409020600301929092555050565b6001600160a01b03831660009081526010602052604090206002015461248390838363ffffffff61292016565b6001600160a01b039093166000908152601060205260409020600201929092555050565b6001600160a01b0382166000908152601060205260409020600301546124d3908263ffffffff611f5e16565b6001600160a01b0390921660009081526010602052604090206003019190915550565b6001600160a01b038216600090815260106020526040902060020154612522908263ffffffff611f5e16565b6001600160a01b0390921660009081526010602052604090206002019190915550565b6001600160a01b03808316600090815260106020908152604080832093871683526004909301905220805482919060ff1916600183600281111561258557fe5b0217905550505050565b6001600160a01b0382166000908152600e6020526040812060050154906125c16125b8846108f8565b610a5b85611b4b565b9050818111156125ea576001600160a01b0384166000908152600e602052604090206005018190555b50505050565b6125f8610fc0565b6001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040161262592919061407d565b602060405180830381600087803b15801561263f57600080fd5b505af1158015612653573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506126779190810190613c0f565b5061269a816040518060600160405280602a81526020016143b4602a9139612b5e565b6126a2612b79565b5050565b60006126cb6126c6836126ba878787612c4c565b9063ffffffff612dc516565b612dec565b949350505050565b6126db610fc0565b6001600160a01b03166323b872dd8330846040518463ffffffff1660e01b815260040161270a9392919061406f565b602060405180830381600087803b15801561272457600080fd5b505af1158015612738573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061275c9190810190613c0f565b50612765610fc0565b6001600160a01b03166342966c68826040518263ffffffff1660e01b81526004016127909190614154565b600060405180830381600087803b1580156127aa57600080fd5b505af11580156127be573d6000803e3d6000fd5b5050505061269a8160405180606001604052806028815260200161438c60289139612e09565b6000600355565b600355565b61282b6127fb611174565b612803610f6a565b1166426f6e64696e6760c81b720a6e8d2d8d840c6eae4e4cadce840cae0dec6d606b1b611d41565b612833612e24565b611102612e4b565b612843613a2c565b61284b612e64565b90506128586123c7612f2c565b1561286c5761286681612f4e565b50611102565b612884612877612f2c565b829063ffffffff61300a16565b15612892576128668161301e565b61289a611174565b6040517fff7db5a0dc69b02c191ba632db46961b7d0daa1bd30709ddba9b80ad0a15d2c090600090a250565b60005b6128d461059c611174565b8110156128fc576128f46128ef6128e9611174565b83610f3a565b6130b0565b6001016128c9565b50600061290a610e61613148565b905061291d612917611174565b8261314e565b50565b600081848411156129445760405162461bcd60e51b81526004016107a991906140c3565b505050900390565b606080826040516020016129609190613fcc565b60408051601f19818403018152919052905060205b80156129b55781516000199091019082908290811061299057fe5b01602001516001600160f81b031916156129b057600101815290506108f3565b612975565b505060408051600081526020810190915292915050565b600081836129ed5760405162461bcd60e51b81526004016107a991906140c3565b5060008385816129f957fe5b0495945050505050565b60006126cb826109b2868663ffffffff611dc016565b805182516000911415612a2e575060016108da565b8151835111612a3e576000612a41565b60025b60ff169392505050565b612a5481613180565b612a705760405162461bcd60e51b81526004016107a990614104565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b612a9c610fc0565b6001600160a01b03166340c10f1983836040518363ffffffff1660e01b8152600401612ac992919061407d565b602060405180830381600087803b158015612ae357600080fd5b505af1158015612af7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612b1b9190810190613c0f565b50612b276105c2611174565b61269a57612b3481613186565b506126a2612b79565b612b45613a2c565b5060408051602081019091526611c37937e08000815290565b600754612b7290838363ffffffff61292016565b6007555050565b611102612b9a612b8761092b565b610a5b612b92611796565b610a5b610e41565b612ba2610fc0565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401612bcd919061401e565b60206040518083038186803b158015612be557600080fd5b505afa158015612bf9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612c1d9190810190613c7b565b10156a21b7b6b83a3937b63632b960a91b74496e636f6e73697374656e742062616c616e63657360581b611d41565b612c54613a2c565b612c5c613a2c565b612c66848661207b565b9050612c70613a2c565b612c786131cd565b90506000612c8c878663ffffffff61201216565b90506000612ca0878763ffffffff61201216565b9050612caa613a2c565b612cb4828461207b565b9050612cc6858563ffffffff6120aa16565b15612dae57612cdb818563ffffffff6120aa16565b15612cf557612ce9846131ef565b95505050505050610934565b612cfd613a2c565b612d07828661322a565b9050612d11613a2c565b612d21868463ffffffff61328c16565b9050612d2b613a2c565b612d34876131ef565b9050612d3e613a2c565b612d4e898963ffffffff61328c16565b9050612d9e612d63848363ffffffff6132b516565b612d92612d76858563ffffffff6132de16565b612d86888863ffffffff6132de16565b9063ffffffff6132b516565b9063ffffffff61330c16565b9950505050505050505050610934565b612db8818661322a565b9998505050505050505050565b612dcd613a2c565b6040805160208101909152835181906120a1908563ffffffff611dc016565b80516000906108da90670de0b6b3a764000063ffffffff611dfa16565b600854612e1d90838363ffffffff61292016565b6008555050565b612e2c610925565b600f6000612e38611174565b8152602081019190915260400160002055565b600254612e5f90600163ffffffff611f5e16565b600255565b612e6c613a2c565b612e74613a2c565b6000612e7e611085565b6001600160a01b031663d4a3e9d76040518163ffffffff1660e01b81526004016040805180830381600087803b158015612eb757600080fd5b505af1158015612ecb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612eef9190810190613c2d565b91509150612f036105c26001610ca8611174565b15612f1957612f1061333a565b925050506108d4565b80612f2657612f10612f2c565b50905090565b612f34613a2c565b506040805160208101909152670de0b6b3a7640000815290565b6000612f60612f5b61335c565b613377565b9050612f6a613a2c565b612f8b612f85612f78612f2c565b859063ffffffff61328c16565b8461344c565b90506000612faa6126c6612f9d611335565b849063ffffffff612dc516565b9050600080612fb8836134d7565b91509150612fc4611174565b86516040517f32fcaa1e76ed9517f4749d8ec9a77dd5e7329456d740b9bf9665d900eef5e28391612ffa9186908a9087906141c0565b60405180910390a2505050505050565b60006130168383612a19565b159392505050565b613026613a2c565b61304761304183613035612f2c565b9063ffffffff61328c16565b8361344c565b905060006130596126c6612f9d611335565b9050600061306682613186565b9050613070611174565b84516040517f5e139d4b8080a4a00dcc151e8217694aeebae893936326aa22096924a9906677916130a2918590614162565b60405180910390a250505050565b60006130bb82611781565b90506000806130c98461360b565b60006130d361092b565b905060006130df6112cb565b905080821115613111576130f9828263ffffffff61201216565b93506131048461364e565b61310d846134d7565b9350505b857f753df65b37159bf237ae1fca97ba1bd57cf83bc9498f271a514a4d7bafe87bda8686600087604051612ffa9493929190614170565b61016890565b6000828152600f6020908152604080832060020184905592825291812060030180546001810182559082529190200155565b3b151590565b6000613191826136dd565b600061319e612f5b6131cd565b90506131a8612b79565b8281116131c4576131bf838263ffffffff61201216565b610934565b50600092915050565b6131d5613a2c565b5060408051602081019091526704db732547630000815290565b6131f7613a2c565b6108da613202612f2c565b613035613222600261321687613035612f2c565b9063ffffffff6136f616565b612d92612f2c565b613232613a2c565b613242838363ffffffff61374c16565b1561325757613250836131ef565b90506108da565b610934613262612f2c565b61303561322261327487613035612f2c565b61328087613035612f2c565b9063ffffffff6132de16565b613294613a2c565b60408051602081019091528251845182916120a1919063ffffffff61201216565b6132bd613a2c565b60408051602081019091528251845182916120a1919063ffffffff611f5e16565b6132e6613a2c565b60405180602001604052806120a185600001518560000151670de0b6b3a7640000612a03565b613314613a2c565b60405180602001604052806120a18560000151670de0b6b3a76400008660000151612a03565b613342613a2c565b50604080516020810190915267155f2dd73a1a0000815290565b613364613a2c565b5060408051602081019091526000815290565b6000806134056126c6613388610fc0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156133c057600080fd5b505afa1580156133d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506133f89190810190613c7b565b859063ffffffff612dc516565b90506000613411611b66565b90508181111561344257600061342d828463ffffffff61201216565b905061343881613753565b92506108f3915050565b5060009392505050565b613454613a2c565b61345c613a2c565b613464613792565b9050600061347061092b565b9050600061347c6112cb565b9050613496613489612f2c565b869063ffffffff6120aa16565b80156134a157508082105b156134b1576134ae6137b3565b92505b6134c1868463ffffffff6120aa16565b6134cb57856134cd565b825b9695505050505050565b60008060006134f960646109b26134ec6137d4565b879063ffffffff611dc016565b9050613504816137d9565b60006135246127106109b261351761386d565b889063ffffffff611dc016565b905061352f81613872565b6000613541838363ffffffff611f5e16565b9050808611613551576000613561565b613561868263ffffffff61201216565b955060008061356e61092b565b9050600061357a6112cb565b9050808210156135c357613594818363ffffffff61201216565b92508883116135a357826135a5565b885b92506135b083613896565b6135c0898463ffffffff61201216565b98505b6135cb610e41565b6135d457600098505b88156135e3576135e389613927565b6135eb612b79565b826135fc8a8663ffffffff611f5e16565b97509750505050505050915091565b600061361682611781565b905080613623575061291d565b600954613636908263ffffffff61201216565b600955506000908152600f6020526040812060010155565b613656610fc0565b6001600160a01b03166342966c68826040518263ffffffff1660e01b81526004016136819190614154565b600060405180830381600087803b15801561369b57600080fd5b505af11580156136af573d6000803e3d6000fd5b505050506136d5816040518060600160405280602a81526020016143b4602a9139612b5e565b61291d612b79565b6008546136f0908263ffffffff611f5e16565b60085550565b6136fe613a2c565b8161370d5761325060016139be565b613715613a2c565b5060408051602081019091528351815260015b838110156137445761373a82866132de565b9150600101613728565b509392505050565b5190511490565b6136d5816040518060400160405280601c81526020017f436f6d7074726f6c6c65723a206e6f7420656e6f756768206465627400000000815250612e09565b61379a613a2c565b50604080516020810190915266470de4df820000815290565b6137bb613a2c565b50604080516020810190915266b1a2bc2ec50000815290565b603290565b801561291d576137e7610fc0565b6001600160a01b03166340c10f196137fd610916565b836040518363ffffffff1660e01b815260040161381b92919061407d565b602060405180830381600087803b15801561383557600080fd5b505af1158015613849573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506126a29190810190613c0f565b600a90565b801561291d57613880610fc0565b6001600160a01b03166340c10f196137fd611012565b61389e610fc0565b6001600160a01b03166340c10f1930836040518363ffffffff1660e01b81526004016138cb92919061407d565b602060405180830381600087803b1580156138e557600080fd5b505af11580156138f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061391d9190810190613c0f565b506136d5816139f2565b801561291d57613935610fc0565b6001600160a01b03166340c10f1930836040518363ffffffff1660e01b815260040161396292919061407d565b602060405180830381600087803b15801561397c57600080fd5b505af1158015613990573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506139b49190810190613c0f565b5061291d81612377565b6139c6613a2c565b6040805160208101909152806139ea84670de0b6b3a764000063ffffffff611dc016565b905292915050565b600754613a05908263ffffffff611f5e16565b60075550565b60405180606001604052806000815260200160008152602001600081525090565b6040518060200160405280600081525090565b80356108da816142cb565b80516108da816142df565b80356108da816142e8565b600060208284031215613a7257600080fd5b613a7c60206141f6565b90506000613a8a8484613a9e565b82525092915050565b80356108da816142f5565b80516108da816142f5565b600060208284031215613abb57600080fd5b60006126cb8484613a3f565b60008060408385031215613ada57600080fd5b6000613ae68585613a3f565b9250506020613af785828601613a3f565b9150509250929050565b600080600060608486031215613b1657600080fd5b6000613b228686613a3f565b9350506020613b3386828701613a3f565b9250506040613b4486828701613a93565b9150509250925092565b60008060008060808587031215613b6457600080fd5b6000613b708787613a3f565b9450506020613b8187828801613a3f565b9350506040613b9287828801613a93565b9250506060613ba387828801613a93565b91505092959194509250565b60008060408385031215613bc257600080fd5b6000613bce8585613a3f565b9250506020613af785828601613a55565b60008060408385031215613bf257600080fd5b6000613bfe8585613a3f565b9250506020613af785828601613a93565b600060208284031215613c2157600080fd5b60006126cb8484613a4a565b60008060408385031215613c4057600080fd5b6000613c4c8585613a60565b9250506020613af785828601613a4a565b600060208284031215613c6f57600080fd5b60006126cb8484613a93565b600060208284031215613c8d57600080fd5b60006126cb8484613a9e565b60008060408385031215613cac57600080fd5b6000613bfe8585613a93565b613cc181614263565b82525050565b613cc18161422a565b613cc181614235565b613cc1613ce58261423a565b6108d4565b613cc1613ce5826108d4565b6000613d018261421d565b613d0b81856108f3565b9350613d1b81856020860161428b565b9290920192915050565b613cc18161426a565b613cc181614275565b613cc181614280565b6000613d4b8261421d565b613d558185614221565b9350613d6581856020860161428b565b613d6e816142b7565b9093019392505050565b6000613d85601b83614221565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b6000613dbe602b83614221565b7f4d61726b65743a20436f75706f6e207472616e7366657220746f20746865207a81526a65726f206164647265737360a81b602082015260400192915050565b6000613e0b602183614221565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b6000613e4e603b83614221565b7f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f81527f6e20746f2061206e6f6e2d636f6e747261637420616464726573730000000000602082015260400192915050565b6000613ead602a83614221565b7f4d61726b65743a20436f75706f6e20617070726f766520746f20746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000613ef9602483614221565b7f416476616e63652077696c6c2062652063616c6c20616674657220736f6d652081526374696d6560e01b602082015260400192915050565b6000613f3f602d83614221565b7f4d61726b65743a20436f75706f6e207472616e736665722066726f6d2074686581526c207a65726f206164647265737360981b602082015260400192915050565b6000613f8e601b83614221565b7f4d61726b65743a20546f6f206561726c7920746f2072656465656d0000000000815260200192915050565b613cc1816108d4565b613cc18161425d565b6000613fd88284613cea565b50602001919050565b60006109348284613cf6565b6000613ff98286613cf6565b91506140058285613cd9565b6002820191506140158284613cf6565b95945050505050565b602081016108da8284613cc7565b6060810161403a8286613cb8565b6140476020830185613cc7565b6126cb6040830184613fba565b604081016140628285613cb8565b6109346020830184613fba565b6060810161403a8286613cc7565b604081016140628285613cc7565b602081016108da8284613cd0565b602081016108da8284613d25565b602081016108da8284613d2e565b604081016140628285613d2e565b602080825281016109348184613d40565b602080825281016108da81613d78565b602080825281016108da81613db1565b602080825281016108da81613dfe565b602080825281016108da81613e41565b602080825281016108da81613ea0565b602080825281016108da81613eec565b602080825281016108da81613f32565b602080825281016108da81613f81565b602081016108da8284613fba565b604081016140628285613fba565b6080810161417e8287613fba565b61418b6020830186613fba565b6141986040830185613d37565b6140156060830184613fba565b606081016141b38286613fba565b6140476020830185613fba565b608081016141ce8287613fba565b6141db6020830186613fba565b6141986040830185613fba565b602081016108da8284613fc3565b60405181810167ffffffffffffffff8111828210171561421557600080fd5b604052919050565b5190565b90815260200190565b60006108da82614251565b151590565b6001600160f01b03191690565b806108f3816142c1565b6001600160a01b031690565b60ff1690565b60006108da825b60006108da8261422a565b60006108da82614247565b60006108da826108d4565b60005b838110156142a657818101518382015260200161428e565b838111156125ea5750506000910152565b601f01601f191690565b6003811061291d57fe5b6142d48161422a565b811461291d57600080fd5b6142d481614235565b6003811061291d57600080fd5b6142d4816108d456fe4d61726b65743a20496e73756666696369656e7420636f75706f6e2062616c616e6365426f6e64696e673a20696e73756666696369656e74207374616765642062616c616e63654d61726b65743a20496e73756666696369656e7420636f75706f6e20617070726f76616c426f6e64696e673a20696e73756666696369656e7420746f74616c20626f6e646564436f6d7074726f6c6c65723a206e6f7420656e6f756768206f75747374616e64696e672064656274436f6d7074726f6c6c65723a206e6f7420656e6f7567682072656465656d61626c652062616c616e6365a365627a7a7231582059eccd65dd605fea1175aa1108138b69b7a60c4bb8fdbc750ac977fb0aedb4b66c6578706572696d656e74616cf564736f6c63430005110040

Deployed Bytecode Sourcemap

82817:2109:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82817:2109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64548:731;;;;;;;;;:::i;:::-;;30606:102;;;:::i;:::-;;;;;;;;;;;;;;;;38140:105;;;;;;;;;:::i;:::-;;;;;;;;34933:137;;;;;;;;;:::i;:::-;;;;;;;;36134:129;;;;;;;;;:::i;31616:92::-;;;:::i;:::-;;;;;;;;31030:100;;;:::i;32040:108::-;;;:::i;38254:128::-;;;;;;;;;:::i;72359:486::-;;;;;;;;;:::i;71537:277::-;;;;;;;;;:::i;64251:288::-;;;;;;;;;:::i;30812:76::-;;;:::i;:::-;;;;;;;;36412:129;;;;;;;;;:::i;80060:972::-;;;;;;;;;:::i;36699:131::-;;;;;;;;;:::i;35825:164::-;;;;;;;;;:::i;:::-;;;;;;;;31717:100;;;:::i;81041:788::-;;;;;;;;;:::i;35228:154::-;;;;;;;;;:::i;33997:381::-;;;:::i;31294:96::-;;;:::i;:::-;;;;;;;;33413:128;;;;;;;;;:::i;36983:178::-;;;:::i;31402:100::-;;;:::i;36272:131::-;;;;;;;;;:::i;35079:140::-;;;;;;;;;:::i;30897:124::-;;;;;;;;;:::i;35521:136::-;;;;;;;;;:::i;31511:96::-;;;:::i;83493:391::-;;;:::i;32576:265::-;;;;;;;;;:::i;32438:129::-;;;;;;;;;:::i;35669:107::-;;;:::i;83136:20::-;;;:::i;33895:93::-;;;:::i;30717:86::-;;;:::i;33093:311::-;;;;;;;;;:::i;71823:527::-;;;;;;;;;:::i;32157:102::-;;;:::i;33550:130::-;;;;;;;;;:::i;33689:162::-;;;;;;;;;:::i;36550:140::-;;;;;;;;;:::i;32268:124::-;;;:::i;71274:254::-;;;;;;;;;:::i;32850:234::-;;;;;;;;;:::i;78423:1628::-;;;;;;;;;:::i;34785:139::-;;;;;;;;;:::i;31826:100::-;;;:::i;36839:135::-;;;;;;;;;:::i;63839:403::-;;;;;;;;;:::i;62961:171::-;;;;;;;;;:::i;31139:110::-;;;;;;;72854:476;;;;;;;;;:::i;63138:692::-;;;;;;;;;:::i;83893:686::-;;;:::i;35998:127::-;;;;;;;;;:::i;31935:96::-;;;:::i;35391:121::-;;;;;;;;;:::i;64548:731::-;-1:-1:-1;;;;;64667:20:0;;64659:78;;;;-1:-1:-1;;;64659:78:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64756:23:0;;64748:79;;;;-1:-1:-1;;;64748:79:0;;;;;;;;;64841:87;64867:6;64875:5;64882:6;64841:87;;;;;;;;;;;;;;;;;:25;:87::i;:::-;64939:51;64965:9;64976:5;64983:6;64939:25;:51::i;:::-;65008:10;-1:-1:-1;;;;;65008:20:0;;;;;;:75;;;-1:-1:-1;;65032:36:0;65049:6;65057:10;65032:16;:36::i;:::-;:51;;65008:75;65004:201;;;65100:93;65126:6;65134:10;65146:6;65100:93;;;;;;;;;;;;;;;;;:25;:93::i;:::-;65257:5;65246:9;-1:-1:-1;;;;;65223:48:0;65238:6;-1:-1:-1;;;;;65223:48:0;;65264:6;65223:48;;;;;;;;;;;;;;;64548:731;;;;:::o;30606:102::-;30669:31;;;;;;;;;;;;-1:-1:-1;;;30669:31:0;;;;30606:102;;:::o;38140:105::-;38208:4;38140:105;;;;;:::o;34933:137::-;34996:7;35023:20;;;:13;:20;;;;;:39;;;34933:137;;;;:::o;36134:129::-;-1:-1:-1;;;;;36220:28:0;36193:7;36220:28;;;:17;:28;;;;;:35;;;;36134:129::o;31616:92::-;31680:20;;-1:-1:-1;;;;;31680:20:0;31616:92;:::o;31030:100::-;31101:14;:21;31030:100;:::o;32040:108::-;32115:25;;32040:108;:::o;38254:128::-;38345:4;38254:128;;;;;;:::o;72359:486::-;72417:10;69256:135;69304:21;69283:42;:17;69292:7;69283:8;:17::i;:::-;:42;;;;;;;;;;-1:-1:-1;;;;;;69256:12:0;:135::i;:::-;72440:20;72449:10;72440:8;:20::i;:::-;72474:14;72491:65;72534:21;72544:10;72534:9;:21::i;:::-;72491:38;72501:27;72517:10;72501:15;:27::i;:::-;72491:5;;:38;:9;:38;:::i;:::-;:42;:65;:42;:65;:::i;:::-;72474:82;;72567:44;72592:10;72604:6;72567:24;:44::i;:::-;72622:66;72643:6;72622:66;;;;;;;;;;;;;;;;;:20;:66::i;:::-;72699:70;72718:10;72730:5;72699:70;;;;;;;;;;;;;;;;;:18;:70::i;:::-;72795:10;72788:49;72807:14;72819:1;72807:7;:5;:7::i;:::-;:11;:14;:11;:14;:::i;:::-;72823:5;72830:6;72788:49;;;;;;;;;;;;;;;;;69405:1;72359:486;;:::o;71537:277::-;71598:10;69535:135;69583:20;69562:41;:17;69571:7;69562:8;:17::i;:::-;:41;;;;;;;;;;-1:-1:-1;;;;;;69535:12:0;:135::i;:::-;71629:8;:6;:8::i;:::-;-1:-1:-1;;;;;71621:26:0;;71648:10;71660:5;71621:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71621:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71621: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;71621:45:0;;;;;;;;;;71677:83;71702:10;71714:5;71677:83;;;;;;;;;;;;;;;;;:24;:83::i;:::-;71788:10;-1:-1:-1;;;;;71779:27:0;;71800:5;71779:27;;;;;;;;;;;;;;;71537:277;;:::o;64251:288::-;-1:-1:-1;;;;;64336:21:0;;64328:76;;;;-1:-1:-1;;;64328:76:0;;;;;;;;;64418:51;64441:10;64453:7;64462:6;64418:22;:51::i;:::-;64515:7;-1:-1:-1;;;;;64488:43:0;64503:10;-1:-1:-1;;;;;64488:43:0;;64524:6;64488:43;;;;;;;;;;;;;;;64251:288;;:::o;30812:76::-;30878:2;30812:76;:::o;36412:129::-;-1:-1:-1;;;;;36498:28:0;36471:7;36498:28;;;:17;:28;;;;;:35;;;;36412:129::o;80060:972::-;80115:109;80142:22;80154:9;80142:11;:22::i;:::-;-1:-1:-1;;;;;;80115:12:0;:109::i;:::-;80238:17;80258:52;80308:1;80258:45;80282:20;80292:9;80282;:20::i;:::-;80258:19;80267:9;80258:8;:19::i;:45::-;:49;:52;:49;:52;:::i;:::-;80238:72;;80324:102;80361:9;80351:7;:5;:7::i;:::-;:19;-1:-1:-1;;;;;;80324:12:0;:102::i;:::-;80440:149;80478:57;80499:35;:33;:35::i;:::-;80478:16;:9;80492:1;80478:16;:13;:16;:::i;:57::-;80467:7;:5;:7::i;:::-;:68;;-1:-1:-1;;;;;;80440:12:0;:149::i;:::-;80603:195;80630:105;80703:31;:29;:31::i;:::-;80630:60;80644:19;80653:9;80644:8;:19::i;:::-;80665:24;80679:9;80665:13;:24::i;:::-;80630:13;:60::i;:::-;:72;:105;:72;:105;:::i;:::-;-1:-1:-1;;;;;;80603:12:0;:195::i;:::-;80812:130;80863:20;80873:9;80863;:20::i;:::-;80839:21;80850:9;80839:10;:21::i;:::-;:44;-1:-1:-1;;;;;;80812:12:0;:130::i;:::-;80956:20;80966:9;80956;:20::i;:::-;80995:29;;-1:-1:-1;;;;;80995:29:0;;;81002:10;;80995:29;;;;;80060:972;;:::o;36699:131::-;-1:-1:-1;;;;;36784:28:0;36760:4;36784:28;;;:17;:28;;;;;:34;:38;;;36699:131::o;35825:164::-;-1:-1:-1;;;;;35938:28:0;;;35904:14;35938:28;;;:17;:28;;;;;;;;:43;;;;;:34;;;;:43;;;;;;35825:164;;;;:::o;31717:100::-;31788:21;;31717:100;:::o;81041:788::-;81105:109;81132:22;81144:9;81132:11;:22::i;81105:109::-;81228:152;81269:52;81281:39;:37;:39::i;:::-;81269:7;:5;:7::i;:52::-;81255:11;:9;:11::i;:::-;:66;-1:-1:-1;;;;;;81228:12:0;:152::i;:::-;81394:201;81421:103;81485:38;:36;:38::i;:::-;81421:51;81435:21;81446:9;81435:10;:21::i;:::-;81458:13;:11;:13::i;81421:103::-;-1:-1:-1;;;81394:201:0;:12;:201::i;:::-;81609:130;81660:20;81670:9;81660;:20::i;:::-;81636:21;81647:9;81636:10;:21::i;81609:130::-;81753:20;81763:9;81753;:20::i;:::-;81792:29;;-1:-1:-1;;;;;81792:29:0;;;81799:10;;81792:29;;;;;81041:788;:::o;35228:154::-;35307:7;35334:20;;;:13;:20;;;;;:37;;:40;;35372:1;;35334:40;;;;;;;;;;;;;;35327:47;;35228:154;;;;:::o;33997:381::-;34039:7;34059:38;;:::i;:::-;34100:35;:33;:35::i;:::-;34059:76;;34146:39;;:::i;:::-;34188:36;:34;:36::i;:::-;34146:78;;34264:7;:13;;;34245:16;:14;:16::i;:::-;:32;:125;;34340:30;34362:7;34340:21;:30::i;:::-;34245:125;;;34293:31;34315:8;34293:21;:31::i;:::-;34238:132;;;;33997:381;:::o;31294:96::-;31360:15;:22;-1:-1:-1;;;;;31360:22:0;31294:96;:::o;33413:128::-;-1:-1:-1;;;;;33498:24:0;33471:7;33498:24;;;:15;:24;;;;;:35;;;;33413:128::o;36983:178::-;30485:66;37132:11;;37109:45::o;31402:100::-;31470:24;;-1:-1:-1;;;;;31470:24:0;31402:100;:::o;36272:131::-;-1:-1:-1;;;;;36359:28:0;36332:7;36359:28;;;:17;:28;;;;;:36;;;;36272:131::o;35079:140::-;35140:7;35167:20;;;:13;:20;;;;;:37;;:44;;35079:140::o;30897:124::-;-1:-1:-1;;;;;30981:24:0;30954:7;30981:24;;;:15;:24;;;;;:32;;;;30897:124::o;35521:136::-;35582:4;35615:34;:32;:34::i;:::-;35606:43;;;;;35521:136;-1:-1:-1;35521:136:0:o;31511:96::-;31577:22;;-1:-1:-1;;;;;31577:22:0;31511:96;:::o;83493:391::-;69736:125;69764:31;69778:16;:14;:16::i;69764:31::-;69763:32;-1:-1:-1;;;;;;69736:12:0;:125::i;:::-;69875:29;69887:16;:14;:16::i;:::-;69875:11;:29::i;:::-;83574:56;83586:10;83598:31;:29;:31::i;:::-;83574:11;:56::i;:::-;83665:34;83677:10;83689:9;83665:11;:34::i;:::-;83493:391::o;32576:265::-;32639:7;32659:19;32681:13;:11;:13::i;:::-;32659:35;-1:-1:-1;32709:16:0;32705:57;;32749:1;32742:8;;;;;32705:57;32779:54;32821:11;32779:37;32797:18;32807:7;32797:9;:18::i;:::-;32779:13;:11;:13::i;:::-;:17;:37;:17;:37;:::i;32438:129::-;-1:-1:-1;;;;;32528:24:0;32501:7;32528:24;;;:15;:24;;;;;:31;;32438:129::o;35669:107::-;35742:26;;35669:107;:::o;83136:20::-;;;-1:-1:-1;;;;;83136:20:0;;:::o;33895:93::-;33960:20;;33895:93;:::o;30717:86::-;30782:13;;;;;;;;;;;;-1:-1:-1;;;30782:13:0;;;;30717:86;:::o;33093:311::-;33149:14;33219:7;:5;:7::i;:::-;-1:-1:-1;;;;;33180:24:0;;:6;:24;;;:15;:24;;;;;:36;;;:46;33176:107;;;-1:-1:-1;33250:21:0;33243:28;;33176:107;-1:-1:-1;;;;;33314:24:0;;:6;:24;;;:15;:24;;;;;:35;;;33303:7;:5;:7::i;:::-;:46;;:93;;33376:20;33303:93;;71823:527;71879:10;69256:135;69304:21;69283:42;;69256:135;71902:20;71911:10;71902:8;:20::i;:::-;71936:15;71954:13;:11;:13::i;:::-;:18;:139;;72050:43;72079:13;:11;:13::i;:::-;72050:24;72060:13;:11;:13::i;72050:43::-;71954:139;;;71988:46;71998:35;:33;:35::i;:::-;71988:5;;:46;:9;:46;:::i;:::-;71936:157;;72104:39;72123:10;72135:7;72104:18;:39::i;:::-;72154:27;72175:5;72154:20;:27::i;:::-;72192:83;72217:10;72229:5;72192:83;;;;;;;;;;;;;;;;;:24;:83::i;:::-;72299:10;72294:48;72311:14;72323:1;72311:7;:5;:7::i;:14::-;72327:7;72336:5;72294:48;;;;;;;;;32157:102;32229:22;;32157:102;:::o;33550:130::-;-1:-1:-1;;;;;33636:24:0;33609:7;33636:24;;;:15;:24;;;;;:36;;;;33550:130::o;33689:162::-;-1:-1:-1;;;;;33795:22:0;;;33768:7;33795:22;;;:15;:22;;;;;;;;:48;;;;;;:39;;;;:48;;;;;;33689:162::o;36550:140::-;36608:7;36635:47;36661:20;36671:9;36661;:20::i;:::-;36635:21;36646:9;36635:10;:21::i;32268:124::-;32309:7;32336:48;32372:11;:9;:11::i;:::-;32344:8;:6;:8::i;:::-;-1:-1:-1;;;;;32336:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32336:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32336:31: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;32336:31:0;;;;;;;;:48;32329:55;;32268:124;:::o;71274:254::-;71334:10;69535:135;69583:20;69562:41;;69535:135;71365:8;:6;:8::i;:::-;-1:-1:-1;;;;;71357:30:0;;71388:10;71408:4;71415:5;71357:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71357:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71357:64: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;71357:64:0;;;;;;;;;;71432:43;71457:10;71469:5;71432:24;:43::i;:::-;71502:10;-1:-1:-1;;;;;71494:26:0;;71514:5;71494:26;;;;;;;32850:234;32929:7;32953:25;32972:5;32953:18;:25::i;:::-;32949:71;;-1:-1:-1;33007:1:0;33000:8;;32949:71;-1:-1:-1;;;;;;33037:24:0;;;;:6;:24;;;:15;:24;;;;;;;;:39;;;:32;;;;:39;;;;;32850:234::o;78423:1628::-;78505:10;69535:135;69583:20;69562:41;;69535:135;78528:114;78579:1;78555:21;78565:10;78555:9;:21::i;:::-;:25;-1:-1:-1;;;;;;78528:12:0;:114::i;:::-;78661:22;78673:9;78661:11;:22::i;:::-;78656:365;;78700:139;78731:22;78742:10;78731;:22::i;:::-;-1:-1:-1;;;78700:139:0;:12;:139::i;:::-;78857:59;78873:9;78884:31;:29;:31::i;:::-;78857:15;:59::i;:::-;78968:7;:5;:7::i;:::-;78956:10;-1:-1:-1;;;;;78936:73:0;;;78977:31;:29;:31::i;:::-;78936:73;;;;;;;;;;;;;;;78656:365;79034:134;79071:45;79095:20;79105:9;79095;:20::i;79071:45::-;79061:7;:5;:7::i;:::-;:55;-1:-1:-1;;;;;;79034:12:0;:134::i;:::-;79182:14;79199:21;79209:10;79199:9;:21::i;:::-;79182:38;;79231:27;79261:35;79274:10;79286:9;79261:12;:35::i;:::-;79231:65;;79319:12;79311:20;;;;;;;;:4;:20;;;;;;;;;79307:59;;;79348:7;;;;79307:59;79399:21;79383:12;:37;;;;;;;;;79379:138;;;79437:68;79456:9;79467:6;79437:68;;;;;;;;;;;;;;;;;:18;:68::i;:::-;79547:22;79531:12;:38;;;;;;;;;79527:141;;;79586:70;79606:9;79617:6;79586:70;;;;;;;;;;;;;;;;;:19;:70::i;:::-;79690:21;79682:4;:29;;;;;;;;;79678:99;;;79728:37;79747:9;79758:6;79728:18;:37::i;:::-;79799:22;79791:4;:30;;;;;;;;;79787:101;;;79838:38;79858:9;79869:6;79838:19;:38::i;:::-;79901:39;79912:10;79924:9;79935:4;79901:10;:39::i;:::-;79951:32;79961:10;79973:9;79951;:32::i;:::-;80019:9;-1:-1:-1;;;;;80002:41:0;80007:10;-1:-1:-1;;;;;80002:41:0;;80030:4;80036:6;80002:41;;;;;;;;;;;;;;;;69684:1;;;78423:1628;;;:::o;34785:139::-;34849:7;34876:20;;;:13;:20;;;;;:28;;:40;;34785:139::o;31826:100::-;31897:21;;31826:100;:::o;36839:135::-;-1:-1:-1;;;;;36926:28:0;36902:4;36926:28;;;:17;:28;;;;;:40;;;;;;36839:135::o;63839:403::-;63961:1;63933:24;63945:11;63933:7;:5;:7::i;:24::-;:29;;63925:69;;;;-1:-1:-1;;;63925:69:0;;;;;;;;;64005:103;64031:10;64043:11;64056:12;64005:103;;;;;;;;;;;;;;;;;:25;:103::i;:::-;64119:41;64135:10;64147:12;64119:15;:41::i;:::-;64208:11;64196:10;-1:-1:-1;;;;;64179:55:0;;64221:12;64179:55;;;;;;;62961:171;63021:7;63048:76;63079:8;:6;:8::i;:::-;-1:-1:-1;;;;;63071:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63071:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;63071:31: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;63071:31:0;;;;;;;;;63104:11;:9;:11::i;:::-;63117:6;63048:22;:76::i;72854:476::-;72922:10;69256:135;69304:21;69283:42;;69256:135;72945:20;72954:10;72945:8;:20::i;:::-;72979:15;72997:43;73026:13;:11;:13::i;72997:43::-;72979:61;;73051:43;73076:10;73088:5;73051:24;:43::i;:::-;73105:65;73126:5;73105:65;;;;;;;;;;;;;;;;;:20;:65::i;:::-;73181:72;73200:10;73212:7;73181:72;;;;;;;;;;;;;;;;;:18;:72::i;:::-;73279:10;73272:50;73291:14;73303:1;73291:7;:5;:7::i;63138:692::-;63203:7;63223:119;63265:1;63250:12;:16;-1:-1:-1;;;63223:119:0;:12;:119::i;:::-;63356:116;63398:12;63383:11;:9;:11::i;:::-;:27;;-1:-1:-1;;;;;;63356:12:0;:116::i;:::-;63486:13;63502:7;:5;:7::i;:::-;63486:23;;63520:20;63543:45;63560:27;63574:12;63560:13;:27::i;:::-;63543:12;;:45;:16;:45;:::i;:::-;63520:68;;63599:41;63615:10;63627:12;63599:15;:41::i;:::-;63651:58;63677:10;63689:5;63696:12;63651:25;:58::i;:::-;63755:5;63743:10;-1:-1:-1;;;;;63728:61:0;;63762:12;63776;63728:61;;;;;;;;;;;;;;;;63810:12;63138:692;-1:-1:-1;;;63138:692:0:o;83893:686::-;83959:15;83932:24;84009:15;:13;:15::i;:::-;83985:39;-1:-1:-1;84038:17:0;;84035:315;;84128:4;84090:35;:16;84111:13;84090:35;:20;:35;:::i;:::-;:42;84082:91;;;;-1:-1:-1;;;84082:91:0;;;;;;;;;84188:20;:18;:20::i;:::-;84223:37;84243:16;84223:19;:37::i;:::-;84035:315;;;84301:37;84321:16;84301:19;:37::i;:::-;84370:56;84382:10;84394:31;:29;:31::i;84370:56::-;84440:14;:12;:14::i;:::-;84465:16;:14;:16::i;:::-;84492:13;:11;:13::i;:::-;84532:7;:5;:7::i;:::-;84524:47;84541:12;84555:15;84524:47;;;;;;;;35998:127;-1:-1:-1;;;;;36083:28:0;36056:7;36083:28;;;:17;:28;;;;;:34;;35998:127::o;31935:96::-;32004:19;;31935:96;:::o;35391:121::-;35450:7;35477:20;;;:13;:20;;;;;:27;;35391:121::o;41207:426::-;-1:-1:-1;;;;;41374:24:0;;:6;:24;;;:15;:24;;;;;;;;:39;;;:32;;:39;;;;;;:59;;41418:6;41426;41374:59;:43;:59;:::i;:::-;-1:-1:-1;;;;;41332:24:0;;:6;:24;;;:15;:24;;;;;;;;:39;;;:32;;:39;;;;;:101;;;;41487:13;:20;;;:28;;:40;:60;;41532:6;41540;41487:60;:44;:60;:::i;:::-;41444:6;:20;;;:13;:20;;;;;:28;;:103;41583:22;;:42;;41610:6;41618;41583:42;:26;:42;:::i;:::-;41558:22;:67;-1:-1:-1;;;;41207:426:0:o;40818:380::-;-1:-1:-1;;;;;40963:24:0;;:6;:24;;;:15;:24;;;;;;;;:39;;;:32;;:39;;;;;;:51;;41007:6;40963:51;:43;:51;:::i;:::-;-1:-1:-1;;;;;40921:24:0;;:6;:24;;;:15;:24;;;;;;;;:39;;;:32;;:39;;;;;:93;;;;41068:13;:20;;;:28;;:40;:52;;41113:6;41068:52;:44;:52;:::i;:::-;41025:6;:20;;;:13;:20;;;;;:28;;:95;41156:22;;:34;;41183:6;41156:34;:26;:34;:::i;:::-;41131:22;:59;-1:-1:-1;;;40818:380:0:o;41973:265::-;-1:-1:-1;;;;;42162:22:0;;;:6;:22;;;:15;:22;;;;;;;;:48;;;;;:39;;;;:48;;;;:68;;42215:6;42223;42162:68;:52;:68;:::i;:::-;-1:-1:-1;;;;;42098:22:0;;;:6;:22;;;:15;:22;;;;;;;;:48;;;;;;:39;;;;:48;;;;;;;:132;;;;-1:-1:-1;;41973:265:0:o;46049:437::-;46183:4;46178:301;;46301:24;46320:4;46301:18;:24::i;:::-;-1:-1:-1;;;46384:26:0;46403:6;46384:18;:26::i;:::-;46258:175;;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;46258:175:0;;;;-1:-1:-1;;;46204:263:0;;;;;;;;41642:148;41735:47;41747:34;:32;:34::i;41735:47::-;-1:-1:-1;;;;;41697:24:0;;;:6;:24;;;:15;:24;;;;;:35;;:85;41642:148::o;2274:473::-;2332:7;2577:6;2573:47;;-1:-1:-1;2607:1:0;2600:8;;2573:47;2645:5;;;2649:1;2645;:5;:1;2669:5;;;;;:10;2661:56;;;;-1:-1:-1;;;2661:56:0;;;;;;;;3216:132;3274:7;3301:39;3305:1;3308;3301:39;;;;;;;;;;;;;;;;;:3;:39::i;40282:240::-;-1:-1:-1;;;;;40403:24:0;;:6;:24;;;:15;:24;;;;;:31;:43;;40439:6;40403:43;:35;:43;:::i;:::-;-1:-1:-1;;;;;40369:24:0;;:6;:24;;;:15;:24;;;;;:77;40481:21;;:33;;40507:6;40481:33;:25;:33;:::i;:::-;40457:21;:57;-1:-1:-1;;40282:240:0:o;38567:161::-;38679:21;;:41;;38705:6;38713;38679:41;:25;:41;:::i;:::-;38655:21;:65;-1:-1:-1;;38567:161:0:o;39943:330::-;-1:-1:-1;;;;;40081:24:0;;:6;:24;;;:15;:24;;;;;:32;;;:52;;40118:6;40126;40081:52;:36;:52;:::i;:::-;-1:-1:-1;;;;;40046:24:0;;:6;:24;;;:15;:24;;;;;:32;;:87;40168:14;:21;:41;;40194:6;40202;40168:41;:25;:41;:::i;:::-;40144:14;:65;40228:37;;40144:6;;-1:-1:-1;;;;;40228:37:0;;;;;;;40258:6;;40228:37;;;;;;;;;;39943:330;;;:::o;897:182::-;955:7;987:5;;;1011:6;;;;1003:46;;;;-1:-1:-1;;;1003:46:0;;;;;;;;40531:278;-1:-1:-1;;;;;40674:24:0;;:6;:24;;;:15;:24;;;;;:31;:51;;40710:6;40718;40674:51;:35;:51;:::i;:::-;-1:-1:-1;;;;;40640:24:0;;:6;:24;;;:15;:24;;;;;:85;40760:21;;:41;;40786:6;40794;40760:41;:25;:41;:::i;:::-;40736:21;:65;-1:-1:-1;;;40531:278:0:o;41799:165::-;-1:-1:-1;;;;;41899:22:0;;;:6;:22;;;:15;:22;;;;;;;;:48;;;;;;:39;;;;:48;;;;;;:57;41799:165::o;1355:136::-;1413:7;1440:43;1444:1;1447;1440:43;;;;;;;;;;;;;;;;;:3;:43::i;15418:114::-;13079:1;15418:114;:::o;15541:141::-;15595:19;;:::i;:::-;-1:-1:-1;15634:40:0;;;;;;;;;13148:5;15634:40;;15541:141;:::o;7031:183::-;7131:11;;:::i;:::-;7167:39;;;;;;;;7181:22;7192:1;6448:6;7201:1;7181:10;:22::i;:::-;7167:39;;7160:46;7031:183;-1:-1:-1;;;7031:183:0:o;9894:132::-;9971:4;9995:18;10005:4;10011:1;9995:9;:18::i;:::-;10017:1;9995:23;;9894:132;-1:-1:-1;;;9894:132:0:o;76437:322::-;76503:36;76521:17;76503;:36::i;:::-;76622:39;;;22:32:-1;6:49;;76622:39:0;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;76591:71:0;;76554:12;;76568:19;;-1:-1:-1;;;;;76591:30:0;;;:71;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;76553:109:0;;;;76681:7;76697:6;76673:32;;;;;-1:-1:-1;;;76673:32:0;;;;;;;;;;-1:-1:-1;76724:27:0;;-1:-1:-1;;;;;76724:27:0;;;;;;;;76437:322;;;:::o;16029:123::-;13369:2;16029:123;:::o;15864:156::-;15925:19;;:::i;:::-;-1:-1:-1;15964:48:0;;;;;;;;;13296:5;15964:48;;15864:156;:::o;14500:259::-;14558:20;;:::i;:::-;14598:153;;;;;;;;12805:3;14598:153;;;;12862:10;14598:153;;;;12927:4;14598:153;;;14591:160;;14500:259;:::o;14228:263::-;14287:20;;:::i;:::-;14327:156;;;;;;;;12620:2;14327:156;;;;12677:10;14327:156;;;;12743:4;14327:156;;;14320:163;;14228:263;:::o;34677:99::-;34753:15;34677:99;:::o;34387:249::-;34481:7;34508:120;34612:8;:15;;;34508:85;34577:8;:15;;;34508:50;34543:8;:14;;;34508:16;:14;:16::i;14892:112::-;12068:3;14892:112;:::o;44649:115::-;-1:-1:-1;;;;;44709:28:0;:6;:28;;;:17;:28;;;;;:40;;:47;;-1:-1:-1;;44709:47:0;44752:4;44709:47;;;44649:115::o;16161:106::-;13454:4;16161:106;:::o;84588:159::-;84661:30;84675:7;84684:6;84661:13;:30::i;:::-;84723:7;-1:-1:-1;;;;;84707:32:0;;84732:6;84707:32;;;;;;;14768:115;12405:3;14768:115;:::o;39642:292::-;-1:-1:-1;;;;;39758:24:0;;:6;:24;;;:15;:24;;;;;:32;;;:44;;39795:6;39758:44;:36;:44;:::i;:::-;-1:-1:-1;;;;;39723:24:0;;:6;:24;;;:15;:24;;;;;:32;;:79;39837:14;:21;:33;;39863:6;39837:33;:25;:33;:::i;:::-;39813:14;:57;39889:37;;-1:-1:-1;;;;;39889:37:0;;;39813:6;;39889:37;;;;39919:6;;39889:37;;38427:131;38517:21;;:33;;38543:6;38517:33;:25;:33;:::i;:::-;38493:21;:57;-1:-1:-1;38427:131:0:o;81838:315::-;81897:4;81918:13;:11;:13::i;:::-;81914:63;;-1:-1:-1;81960:5:0;81953:12;;81914:63;81990:25;;:::i;:::-;82018:48;82032:18;82042:7;82032:9;:18::i;82018:48::-;81990:76;;82084:61;82102:42;:40;:42::i;:::-;82084:5;;:61;:17;:61;:::i;15303:106::-;13008:2;15303:106;:::o;43149:187::-;43266:7;:5;:7::i;:::-;-1:-1:-1;;;;;43229:28:0;;;:6;:28;;;:17;:28;;;;;:44;;;43284:35;;;;:44;43149:187::o;44100:206::-;-1:-1:-1;;;;;44243:28:0;;:6;:28;;;:17;:28;;;;;:35;;;:55;;44283:6;44291;44243:55;:39;:55;:::i;:::-;-1:-1:-1;;;;;44205:28:0;;;:6;:28;;;:17;:28;;;;;:35;;:93;;;;-1:-1:-1;;44100:206:0:o;43697:209::-;-1:-1:-1;;;;;43842:28:0;;:6;:28;;;:17;:28;;;;;:36;;;:56;;43883:6;43891;43842:56;:40;:56;:::i;:::-;-1:-1:-1;;;;;43803:28:0;;;:6;:28;;;:17;:28;;;;;:36;;:95;;;;-1:-1:-1;;43697:209:0:o;43915:176::-;-1:-1:-1;;;;;44036:28:0;;:6;:28;;;:17;:28;;;;;:35;;;:47;;44076:6;44036:47;:39;:47;:::i;:::-;-1:-1:-1;;;;;43998:28:0;;;:6;:28;;;:17;:28;;;;;:35;;:85;;;;-1:-1:-1;43915:176:0:o;43509:179::-;-1:-1:-1;;;;;43632:28:0;;:6;:28;;;:17;:28;;;;;:36;;;:48;;43673:6;43632:48;:40;:48;:::i;:::-;-1:-1:-1;;;;;43593:28:0;;;:6;:28;;;:17;:28;;;;;:36;;:87;;;;-1:-1:-1;43509:179:0:o;43345:155::-;-1:-1:-1;;;;;43442:28:0;;;:6;:28;;;:17;:28;;;;;;;;:43;;;;;:34;;;;:43;;;:50;;43488:4;;43442:43;-1:-1:-1;;43442:50:0;;43488:4;43442:50;;;;;;;;;;;;;43345:155;;;:::o;44315:325::-;-1:-1:-1;;;;;44412:24:0;;44390:19;44412:24;;;:15;:24;;;;;:36;;;;44477:45;44501:20;44511:9;44501;:20::i;:::-;44477:19;44486:9;44477:8;:19::i;:45::-;44459:63;;44547:11;44537:7;:21;44533:100;;;-1:-1:-1;;;;;44575:24:0;;:6;:24;;;:15;:24;;;;;:36;;:46;;;44533:100;44315:325;;;;:::o;56890:246::-;56976:8;:6;:8::i;:::-;-1:-1:-1;;;;;56968:26:0;;56995:7;57004:6;56968:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56968:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56968: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;56968:43:0;;;;;;;;;;57022:78;57047:6;57022:78;;;;;;;;;;;;;;;;;:24;:78::i;:::-;57114:14;:12;:14::i;:::-;56890:246;;:::o;18168:252::-;18313:7;18340:72;:60;18393:6;18340:48;18357:11;18370:9;18381:6;18340:16;:48::i;:::-;:52;:60;:52;:60;:::i;:::-;:70;:72::i;:::-;18333:79;18168:252;-1:-1:-1;;;;18168:252:0:o;56583:298::-;56669:8;:6;:8::i;:::-;-1:-1:-1;;;;;56661:30:0;;56692:7;56709:4;56716:6;56661:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56661:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56661:62: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;56661:62:0;;;;;;;;;;56742:8;:6;:8::i;:::-;-1:-1:-1;;;;;56734:22:0;;56757:6;56734:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56734:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56734:30:0;;;;56775:70;56794:6;56775:70;;;;;;;;;;;;;;;;;:18;:70::i;39508:88::-;39587:1;39558:26;:30;39508:88::o;39372:124::-;39445:26;:43;39372:124::o;71045:220::-;71081:114;71122:7;:5;:7::i;:::-;71108:11;:9;:11::i;:::-;:21;-1:-1:-1;;;;;;71081:12:0;:114::i;:::-;71209:21;:19;:21::i;:::-;71241:16;:14;:16::i;66313:359::-;66349:25;;:::i;:::-;66377:15;:13;:15::i;:::-;66349:43;;66410:32;66428:13;:11;:13::i;66410:32::-;66406:103;;;66459:17;66470:5;66459:10;:17::i;:::-;66491:7;;;66406:103;66526:29;66541:13;:11;:13::i;:::-;66526:5;;:29;:14;:29;:::i;:::-;66522:102;;;66572:19;66585:5;66572:12;:19::i;66522:102::-;66656:7;:5;:7::i;:::-;66642:22;;;;;;;66313:359;:::o;61868:417::-;61942:9;61937:139;61961:24;61977:7;:5;:7::i;61961:24::-;61957:1;:28;61937:139;;;62007:57;62029:34;62052:7;:5;:7::i;:::-;62061:1;62029:22;:34::i;:::-;62007:21;:57::i;:::-;61987:3;;61937:139;;;;62143:23;62169:44;62181:31;:29;:31::i;62169:44::-;62143:70;;62224:53;62252:7;:5;:7::i;:::-;62261:15;62224:27;:53::i;:::-;61868:417;:::o;1829:193::-;1915:7;1951:12;1943:6;;;;1935:29;;;;-1:-1:-1;;;1935:29:0;;;;;;;;;;-1:-1:-1;;;1987:5:0;;;1829:193::o;51275:990::-;51371:12;51449:19;51488:5;51471:23;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;51471:23:0;;;;-1:-1:-1;49:4;51604:590:0;51625:5;;51604:590;;51883:9;;-1:-1:-1;;51781:3:0;;;;51883:6;;51781:3;;51883:9;;;;;;;;;;-1:-1:-1;;;;;;51883:9:0;:14;51879:304;;51939:1;51935:5;52070:22;;52077:6;-1:-1:-1;52154:13:0;;51879:304;51604:590;;;-1:-1:-1;;52245:12:0;;;52255:1;52245:12;;;;;;;;;52238:19;-1:-1:-1;;51275:990:0:o;3879:346::-;3965:7;4067:12;4060:5;4052:28;;;;-1:-1:-1;;;4052:28:0;;;;;;;;;;;4091:9;4107:1;4103;:5;;;;;;;3879:346;-1:-1:-1;;;;;3879:346:0:o;10755:225::-;10902:7;10934:38;10960:11;10934:21;:6;10945:9;10934:21;:10;:21;:::i;10989:245::-;11140:7;;11129;;11100;;11129:18;11125:59;;;-1:-1:-1;11171:1:0;11164:8;;11125:59;11211:7;;11201;;:17;:25;;11225:1;11201:25;;;11221:1;11201:25;11194:32;;;10989:245;-1:-1:-1;;;10989:245:0:o;76913:337::-;76994:57;77033:17;76994:38;:57::i;:::-;76986:129;;;;-1:-1:-1;;;76986:129:0;;;;;;;;;75983:66;77201:31;77186:57::o;56335:239::-;56419:8;:6;:8::i;:::-;-1:-1:-1;;;;;56411:22:0;;56434:7;56443:6;56411:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56411:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56411:39: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;56411:39:0;;;;;;;;;;56466:24;56482:7;:5;:7::i;56466:24::-;56461:78;;56507:20;56520:6;56507:12;:20::i;:::-;;56552:14;:12;:14::i;15691:164::-;15756:19;;:::i;:::-;-1:-1:-1;15795:52:0;;;;;;;;;13224:4;15795:52;;15691:164;:::o;39187:173::-;39307:25;;:45;;39337:6;39345;39307:45;:29;:45;:::i;:::-;39279:25;:73;-1:-1:-1;;39187:173:0:o;59567:247::-;59610:196;59683:55;59720:17;:15;:17::i;:::-;59683:32;59701:13;:11;:13::i;:::-;59683;:11;:13::i;:55::-;59645:8;:6;:8::i;:::-;-1:-1:-1;;;;;59637:27:0;;59673:4;59637:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59637:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59637:42: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;59637:42:0;;;;;;;;;:101;;-1:-1:-1;;;;;;59610:12:0;:196::i;18429:1307::-;18567:19;;:::i;:::-;18599:29;;:::i;:::-;18631:37;18645:9;18656:11;18631:13;:37::i;:::-;18599:69;;18679:39;;:::i;:::-;18721:27;:25;:27::i;:::-;18679:69;-1:-1:-1;18762:22:0;18787:23;:11;18803:6;18787:23;:15;:23;:::i;:::-;18762:48;-1:-1:-1;18821:20:0;18844:21;:9;18858:6;18844:21;:13;:21;:::i;:::-;18821:44;;18876:32;;:::i;:::-;18911:43;18925:12;18939:14;18911:13;:43::i;:::-;18876:78;-1:-1:-1;18972:42:0;:9;18994:19;18972:42;:21;:42;:::i;:::-;18968:706;;;19035:45;:12;19060:19;19035:45;:24;:45;:::i;:::-;19031:119;;;19108:26;19114:19;19108:5;:26::i;:::-;19101:33;;;;;;;;;19031:119;19167:32;;:::i;:::-;19202:44;19212:12;19226:19;19202:9;:44::i;:::-;19167:79;;19261:37;;:::i;:::-;19301;:19;19325:12;19301:37;:23;:37;:::i;:::-;19261:77;;19353:31;;:::i;:::-;19387:26;19393:19;19387:5;:26::i;:::-;19353:60;;19428:36;;:::i;:::-;19467:34;:9;19481:19;19467:34;:13;:34;:::i;:::-;19428:73;-1:-1:-1;19523:139:0;19622:39;:17;19428:73;19622:39;:21;:39;:::i;:::-;19523:76;19565:33;:11;19581:16;19565:33;:15;:33;:::i;:::-;19524:35;:12;19541:17;19524:35;:16;:35;:::i;:::-;19523:41;:76;:41;:76;:::i;:::-;:98;:139;:98;:139;:::i;:::-;19516:146;;;;;;;;;;;;;18968:706;19694:34;19704:12;19718:9;19694;:34::i;:::-;19687:41;18429:1307;-1:-1:-1;;;;;;;;;18429:1307:0:o;7920:183::-;8025:11;;:::i;:::-;8061:34;;;;;;;;;8075:10;;8061:34;;8075:17;;8090:1;8075:17;:14;:17;:::i;10581:115::-;10668:10;;10641:7;;10668:20;;6448:6;10668:20;:14;:20;:::i;38871:155::-;38979:19;;:39;;39003:6;39011;38979:39;:23;:39;:::i;:::-;38957:19;:61;-1:-1:-1;;38871:155:0:o;42395:104::-;42478:13;:11;:13::i;:::-;42446;:6;42460:7;:5;:7::i;:::-;42446:22;;;;;;;;;;;-1:-1:-1;42446:22:0;:45;42395:104::o;42282:::-;42351:20;;:27;;42376:1;42351:27;:24;:27;:::i;:::-;42328:20;:50;42282:104::o;68061:354::-;68103:19;;:::i;:::-;68136:25;;:::i;:::-;68163:10;68177:8;:6;:8::i;:::-;-1:-1:-1;;;;;68177:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68177:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68177:18: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;68177:18:0;;;;;;;;;68135:60;;;;68213:31;68229:14;68241:1;68229:7;:5;:7::i;68213:31::-;68209:104;;;68268:33;:31;:33::i;:::-;68261:40;;;;;;68209:104;68328:5;68323:59;;68357:13;:11;:13::i;68323:59::-;-1:-1:-1;68402:5:0;-1:-1:-1;68061:354:0;:::o;6744:118::-;6797:11;;:::i;:::-;-1:-1:-1;6833:21:0;;;;;;;;;6448:6;6833:21;;6744:118;:::o;67037:431::-;67103:16;67122:25;67132:14;:12;:14::i;:::-;67122:9;:25::i;:::-;67103:44;;67161:25;;:::i;:::-;67189:38;67195:24;67205:13;:11;:13::i;:::-;67195:5;;:24;:9;:24;:::i;:::-;67221:5;67189;:38::i;:::-;67161:66;;67238:17;67258:33;:21;67268:10;:8;:10::i;:::-;67258:5;;:21;:9;:21;:::i;:33::-;67238:53;;67303:21;67326:17;67347:25;67362:9;67347:14;:25::i;:::-;67302:70;;;;67403:7;:5;:7::i;:::-;67412:11;;67388:72;;;;;;67425:13;;67440:8;;67450:9;;67388:72;;;;;;;;;;67037:431;;;;;;:::o;10035:129::-;10109:4;10133:18;10143:4;10149:1;10133:9;:18::i;:::-;:23;;10035:129;-1:-1:-1;;;10035:129:0:o;66681:347::-;66749:25;;:::i;:::-;66777:38;66783:24;66801:5;66783:13;:11;:13::i;:::-;:17;:24;:17;:24;:::i;:::-;66809:5;66777;:38::i;:::-;66749:66;;66826:15;66844:33;:21;66854:10;:8;:10::i;66844:33::-;66826:51;;66888:21;66912;66925:7;66912:12;:21::i;:::-;66888:45;;66967:7;:5;:7::i;:::-;66976:11;;66952:51;;;;;;66989:13;;66952:51;;;;;;;;;;67014:7;;;66681:347;:::o;62294:658::-;62359:23;62385:25;62404:5;62385:18;:25::i;:::-;62359:51;-1:-1:-1;62422:22:0;;62487:34;62515:5;62487:27;:34::i;:::-;62535:23;62561:17;:15;:17::i;:::-;62535:43;;62589:20;62612:14;:12;:14::i;:::-;62589:37;;62659:12;62641:15;:30;62637:219;;;62705:33;:15;62725:12;62705:33;:19;:33;:::i;:::-;62688:50;;62753:30;62768:14;62753;:30::i;:::-;62814;62829:14;62814;:30::i;:::-;62798:46;-1:-1:-1;;62637:219:0;62891:5;62874:70;62898:15;62915:14;62931:1;62934:9;62874:70;;;;;;;;;;16524:106;13715:3;16524:106;:::o;42508:217::-;42600:6;:20;;;:13;:20;;;;;;;;:39;;:52;;;42663:25;;;;;;:42;;27:10:-1;;42600:28:0;23:18:-1;;45:23;;42663:54:0;;;;;;;;42508:217::o;74256:627::-;74828:20;74867:8;;;74256:627::o;57369:271::-;57425:7;57445:26;57464:6;57445:18;:26::i;:::-;57482:16;57501:38;57511:27;:25;:27::i;57501:38::-;57482:57;;57553:14;:12;:14::i;:::-;57599:6;57588:8;:17;:44;;57612:20;:6;57623:8;57612:20;:10;:20;:::i;:::-;57588:44;;;-1:-1:-1;57608:1:0;;57369:271;-1:-1:-1;;57369:271:0:o;16639:134::-;16689:19;;:::i;:::-;-1:-1:-1;16728:37:0;;;;;;;;;13767:5;16728:37;;16639:134;:::o;19767:214::-;19835:19;;:::i;:::-;19874:99;19959:13;:11;:13::i;:::-;19874:80;19906:37;19941:1;19907:28;19925:9;19907:13;:11;:13::i;:28::-;19906:34;:37;:34;:37;:::i;:::-;19874:13;:11;:13::i;20016:369::-;20136:19;;:::i;:::-;20172;:5;20185;20172:19;:12;:19;:::i;:::-;20168:71;;;20215:12;20221:5;20215;:12::i;:::-;20208:19;;;;20168:71;20259:118;20363:13;:11;:13::i;:::-;20259:99;20291:56;20322:24;20340:5;20322:13;:11;:13::i;:24::-;20292;20310:5;20292:13;:11;:13::i;:24::-;20291:30;:56;:30;:56;:::i;8885:193::-;8994:11;;:::i;:::-;9030:40;;;;;;;;;9059:7;;9044:10;;9030:40;;9044:23;;:10;:23;:14;:23;:::i;8683:193::-;8792:11;;:::i;:::-;8828:40;;;;;;;;;8857:7;;8842:10;;8828:40;;8842:23;;:10;:23;:14;:23;:::i;9328:207::-;9437:11;;:::i;:::-;9473:54;;;;;;;;9487:37;9498:4;:10;;;9510:1;:7;;;6448:6;9487:10;:37::i;9544:207::-;9653:11;;:::i;:::-;9689:54;;;;;;;;9703:37;9714:4;:10;;;6448:6;9732:1;:7;;;9703:10;:37::i;15013:145::-;15069:19;;:::i;:::-;-1:-1:-1;15108:42:0;;;;;;;;;12125:6;15108:42;;15013:145;:::o;6619:116::-;6673:11;;:::i;:::-;-1:-1:-1;6709:18:0;;;;;;;;;-1:-1:-1;6709:18:0;;6619:116;:::o;59119:439::-;59193:7;59213:18;59234:64;:52;59262:8;:6;:8::i;:::-;-1:-1:-1;;;;;59254:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59254:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59254:31: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;59254:31:0;;;;;;;;;59234:15;;:52;:19;:52;:::i;:64::-;59213:85;;59309:19;59331:11;:9;:11::i;:::-;59309:33;;59374:10;59360:11;:24;59356:173;;;59401:16;59420:27;:11;59436:10;59420:27;:15;:27;:::i;:::-;59401:46;;59462:22;59475:8;59462:12;:22::i;:::-;59509:8;-1:-1:-1;59502:15:0;;-1:-1:-1;;59502:15:0;59356:173;-1:-1:-1;59549:1:0;;59119:439;-1:-1:-1;;;59119:439:0:o;67477:575::-;67568:19;;:::i;:::-;67603:37;;:::i;:::-;67643:32;:30;:32::i;:::-;67603:72;;67696:23;67722:17;:15;:17::i;:::-;67696:43;;67750:20;67773:14;:12;:14::i;:::-;67750:37;;67802:32;67820:13;:11;:13::i;:::-;67802:5;;:32;:17;:32;:::i;:::-;:68;;;;;67857:12;67839:15;:30;67802:68;67798:159;;;67907:38;:36;:38::i;:::-;67887:58;;67798:159;67977:36;:5;67995:17;67977:36;:17;:36;:::i;:::-;:64;;68036:5;67977:64;;;68016:17;67977:64;67970:71;67477:575;-1:-1:-1;;;;;;67477:575:0:o;57810:1300::-;57871:7;57880;57933:18;57954:54;58004:3;57954:45;57968:30;:28;:30::i;:::-;57954:9;;:45;:13;:45;:::i;:54::-;57933:75;;58019:22;58030:10;58019;:22::i;:::-;58092;58117:54;58165:5;58117:43;58131:28;:26;:28::i;:::-;58117:9;;:43;:13;:43;:::i;:54::-;58092:79;;58182:30;58197:14;58182;:30::i;:::-;58226:15;58244:30;:10;58259:14;58244:30;:14;:30;:::i;:::-;58226:48;;58309:7;58297:9;:19;:48;;58344:1;58297:48;;;58319:22;:9;58333:7;58319:22;:13;:22;:::i;:::-;58285:60;-1:-1:-1;58398:21:0;;58460:17;:15;:17::i;:::-;58434:43;;58488:20;58511:14;:12;:14::i;:::-;58488:37;;58558:12;58540:15;:30;58536:297;;;58603:33;:12;58620:15;58603:33;:16;:33;:::i;:::-;58587:49;;58683:9;58667:13;:25;:53;;58707:13;58667:53;;;58695:9;58667:53;58651:69;;58735:31;58752:13;58735:16;:31::i;:::-;58793:28;:9;58807:13;58793:28;:13;:28;:::i;:::-;58781:40;;58536:297;58879:13;:11;:13::i;:::-;58875:64;;58926:1;58914:13;;58875:64;58953:13;;58949:66;;58983:20;58993:9;58983;:20::i;:::-;59028:14;:12;:14::i;:::-;59064:13;59079:22;:9;59093:7;59079:22;:13;:22;:::i;:::-;59056:46;;;;;;;;;;57810:1300;;;:::o;42734:366::-;42806:34;42843:25;42862:5;42843:18;:25::i;:::-;42806:62;-1:-1:-1;42882:31:0;42879:69;;42930:7;;;42879:69;42983:22;;:54;;43010:26;42983:54;:26;:54;:::i;:::-;42958:22;:79;-1:-1:-1;42958:6:0;43048:20;;;:13;:20;;;;;:28;;:44;42734:366::o;57145:215::-;57213:8;:6;:8::i;:::-;-1:-1:-1;;;;;57205:22:0;;57228:6;57205:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57205:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57205:30:0;;;;57246:78;57271:6;57246:78;;;;;;;;;;;;;;;;;:24;:78::i;:::-;57338:14;:12;:14::i;38737:125::-;38823:19;;:31;;38847:6;38823:31;:23;:31;:::i;:::-;38801:19;:53;-1:-1:-1;38737:125:0:o;8304:370::-;8409:11;;:::i;:::-;8442:6;8438:53;;8472:7;8477:1;8472:4;:7::i;8438:53::-;8504:16;;:::i;:::-;-1:-1:-1;8523:27:0;;;;;;;;;8537:10;;8523:27;;8578:1;8561:81;8585:1;8581;:5;8561:81;;;8615:15;8619:4;8625;8615:3;:15::i;:::-;8608:22;-1:-1:-1;8588:3:0;;8561:81;;;-1:-1:-1;8662:4:0;8304:370;-1:-1:-1;;;8304:370:0:o;9760:125::-;9870:7;9856:10;;:21;;9760:125::o;57649:152::-;57707:58;57726:6;57707:58;;;;;;;;;;;;;;;;;:18;:58::i;16782:144::-;16837:19;;:::i;:::-;-1:-1:-1;16876:42:0;;;;;;;;;13857:4;16876:42;;16782:144;:::o;16935:157::-;16996:19;;:::i;:::-;-1:-1:-1;17035:49:0;;;;;;;;;13928:4;17035:49;;16935:157;:::o;17101:105::-;13989:2;17101:105;:::o;60024:143::-;60083:10;;60079:81;;60118:8;:6;:8::i;:::-;-1:-1:-1;;;;;60110:22:0;;60133:6;:4;:6::i;:::-;60141;60110:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60110:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;60110:38: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;60110:38:0;;;;;;;;17215:100;14047:2;17215:100;:::o;60176:151::-;60239:10;;60235:85;;60274:8;:6;:8::i;:::-;-1:-1:-1;;;;;60266:22:0;;60289:10;:8;:10::i;60336:185::-;60405:8;:6;:8::i;:::-;-1:-1:-1;;;;;60397:22:0;;60428:4;60435:6;60397:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60397:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;60397: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;60397:45:0;;;;;;;;;;60453:32;60478:6;60453:24;:32::i;59823:192::-;59881:10;;59877:131;;59916:8;:6;:8::i;:::-;-1:-1:-1;;;;;59908:22:0;;59939:4;59946:6;59908:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59908:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59908: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;59908:45:0;;;;;;;;;;59968:28;59989:6;59968:20;:28::i;6871:151::-;6950:11;;:::i;:::-;6986:28;;;;;;;;;;7000:11;:1;6448:6;7000:11;:5;:11;:::i;:::-;6986:28;;6979:35;6871:151;-1:-1:-1;;6871:151:0:o;39035:143::-;39133:25;;:37;;39163:6;39133:37;:29;:37;:::i;:::-;39105:25;:65;-1:-1:-1;39035:143:0:o;82817:2109::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;:::o;5:130:-1:-;72:20;;97:33;72:20;97:33;;142:128;217:13;;235:30;217:13;235:30;;277:148;353:20;;378:42;353:20;378:42;;458:342;;579:4;567:9;562:3;558:19;554:30;551:2;;;597:1;594;587:12;551:2;615:20;630:4;615:20;;;606:29;-1:-1;686:1;718:60;774:3;754:9;718:60;;;693:86;;-1:-1;704:5;545:255;-1:-1;;545:255;807:130;874:20;;899:33;874:20;899:33;;944:134;1022:13;;1040:33;1022:13;1040:33;;1085:241;;1189:2;1177:9;1168:7;1164:23;1160:32;1157:2;;;1205:1;1202;1195:12;1157:2;1240:1;1257:53;1302:7;1282:9;1257:53;;1333:366;;;1454:2;1442:9;1433:7;1429:23;1425:32;1422:2;;;1470:1;1467;1460:12;1422:2;1505:1;1522:53;1567:7;1547:9;1522:53;;;1512:63;;1484:97;1612:2;1630:53;1675:7;1666:6;1655:9;1651:22;1630:53;;;1620:63;;1591:98;1416:283;;;;;;1706:491;;;;1844:2;1832:9;1823:7;1819:23;1815:32;1812:2;;;1860:1;1857;1850:12;1812:2;1895:1;1912:53;1957:7;1937:9;1912:53;;;1902:63;;1874:97;2002:2;2020:53;2065:7;2056:6;2045:9;2041:22;2020:53;;;2010:63;;1981:98;2110:2;2128:53;2173:7;2164:6;2153:9;2149:22;2128:53;;;2118:63;;2089:98;1806:391;;;;;;2204:617;;;;;2359:3;2347:9;2338:7;2334:23;2330:33;2327:2;;;2376:1;2373;2366:12;2327:2;2411:1;2428:53;2473:7;2453:9;2428:53;;;2418:63;;2390:97;2518:2;2536:53;2581:7;2572:6;2561:9;2557:22;2536:53;;;2526:63;;2497:98;2626:2;2644:53;2689:7;2680:6;2669:9;2665:22;2644:53;;;2634:63;;2605:98;2734:2;2752:53;2797:7;2788:6;2777:9;2773:22;2752:53;;;2742:63;;2713:98;2321:500;;;;;;;;2828:384;;;2958:2;2946:9;2937:7;2933:23;2929:32;2926:2;;;2974:1;2971;2964:12;2926:2;3009:1;3026:53;3071:7;3051:9;3026:53;;;3016:63;;2988:97;3116:2;3134:62;3188:7;3179:6;3168:9;3164:22;3134:62;;3219:366;;;3340:2;3328:9;3319:7;3315:23;3311:32;3308:2;;;3356:1;3353;3346:12;3308:2;3391:1;3408:53;3453:7;3433:9;3408:53;;;3398:63;;3370:97;3498:2;3516:53;3561:7;3552:6;3541:9;3537:22;3516:53;;3592:257;;3704:2;3692:9;3683:7;3679:23;3675:32;3672:2;;;3720:1;3717;3710:12;3672:2;3755:1;3772:61;3825:7;3805:9;3772:61;;3856:435;;;4006:2;3994:9;3985:7;3981:23;3977:32;3974:2;;;4022:1;4019;4012:12;3974:2;4057:1;4074:85;4151:7;4131:9;4074:85;;;4064:95;;4036:129;4196:2;4214:61;4267:7;4258:6;4247:9;4243:22;4214:61;;4298:241;;4402:2;4390:9;4381:7;4377:23;4373:32;4370:2;;;4418:1;4415;4408:12;4370:2;4453:1;4470:53;4515:7;4495:9;4470:53;;4546:263;;4661:2;4649:9;4640:7;4636:23;4632:32;4629:2;;;4677:1;4674;4667:12;4629:2;4712:1;4729:64;4785:7;4765:9;4729:64;;4816:366;;;4937:2;4925:9;4916:7;4912:23;4908:32;4905:2;;;4953:1;4950;4943:12;4905:2;4988:1;5005:53;5050:7;5030:9;5005:53;;5189:142;5280:45;5319:5;5280:45;;;5275:3;5268:58;5262:69;;;5338:113;5421:24;5439:5;5421:24;;5458:104;5535:21;5550:5;5535:21;;5569:148;5668:43;5687:23;5704:5;5687:23;;;5668:43;;5724:152;5825:45;5845:24;5863:5;5845:24;;5883:356;;6011:38;6043:5;6011:38;;;6061:88;6142:6;6137:3;6061:88;;;6054:95;;6154:52;6199:6;6194:3;6187:4;6180:5;6176:16;6154:52;;;6218:16;;;;;5991:248;-1:-1;;5991:248;6246:158;6345:53;6392:5;6345:53;;6576:144;6668:46;6708:5;6668:46;;6874:142;6965:45;7004:5;6965:45;;7023:347;;7135:39;7168:5;7135:39;;;7186:71;7250:6;7245:3;7186:71;;;7179:78;;7262:52;7307:6;7302:3;7295:4;7288:5;7284:16;7262:52;;;7335:29;7357:6;7335:29;;;7326:39;;;;7115:255;-1:-1;;;7115:255;7378:327;;7538:67;7602:2;7597:3;7538:67;;;7638:29;7618:50;;7696:2;7687:12;;7524:181;-1:-1;;7524:181;7714:380;;7874:67;7938:2;7933:3;7874:67;;;7974:34;7954:55;;-1:-1;;;8038:2;8029:12;;8022:35;8085:2;8076:12;;7860:234;-1:-1;;7860:234;8103:370;;8263:67;8327:2;8322:3;8263:67;;;8363:34;8343:55;;-1:-1;;;8427:2;8418:12;;8411:25;8464:2;8455:12;;8249:224;-1:-1;;8249:224;8482:396;;8642:67;8706:2;8701:3;8642:67;;;8742:34;8722:55;;8811:29;8806:2;8797:12;;8790:51;8869:2;8860:12;;8628:250;-1:-1;;8628:250;8887:379;;9047:67;9111:2;9106:3;9047:67;;;9147:34;9127:55;;-1:-1;;;9211:2;9202:12;;9195:34;9257:2;9248:12;;9033:233;-1:-1;;9033:233;9275:373;;9435:67;9499:2;9494:3;9435:67;;;9535:34;9515:55;;-1:-1;;;9599:2;9590:12;;9583:28;9639:2;9630:12;;9421:227;-1:-1;;9421:227;9657:382;;9817:67;9881:2;9876:3;9817:67;;;9917:34;9897:55;;-1:-1;;;9981:2;9972:12;;9965:37;10030:2;10021:12;;9803:236;-1:-1;;9803:236;10048:327;;10208:67;10272:2;10267:3;10208:67;;;10308:29;10288:50;;10366:2;10357:12;;10194:181;-1:-1;;10194:181;10383:113;10466:24;10484:5;10466:24;;10503:107;10582:22;10598:5;10582:22;;10617:244;;10736:75;10807:3;10798:6;10736:75;;;-1:-1;10833:2;10824:12;;10724:137;-1:-1;10724:137;10868:262;;11012:93;11101:3;11092:6;11012:93;;11137:553;;11353:93;11442:3;11433:6;11353:93;;;11346:100;;11457:73;11526:3;11517:6;11457:73;;;11552:1;11547:3;11543:11;11536:18;;11572:93;11661:3;11652:6;11572:93;;;11565:100;11334:356;-1:-1;;;;;11334:356;11697:213;11815:2;11800:18;;11829:71;11804:9;11873:6;11829:71;;11917:451;12099:2;12084:18;;12113:79;12088:9;12165:6;12113:79;;;12203:72;12271:2;12260:9;12256:18;12247:6;12203:72;;;12286;12354:2;12343:9;12339:18;12330:6;12286:72;;12375:340;12529:2;12514:18;;12543:79;12518:9;12595:6;12543:79;;;12633:72;12701:2;12690:9;12686:18;12677:6;12633:72;;12722:435;12896:2;12881:18;;12910:71;12885:9;12954:6;12910:71;;13164:324;13310:2;13295:18;;13324:71;13299:9;13368:6;13324:71;;13495:201;13607:2;13592:18;;13621:65;13596:9;13659:6;13621:65;;13703:245;13837:2;13822:18;;13851:87;13826:9;13911:6;13851:87;;14207:231;14334:2;14319:18;;14348:80;14323:9;14401:6;14348:80;;14679:338;14832:2;14817:18;;14846:78;14821:9;14897:6;14846:78;;15024:301;15162:2;15176:47;;;15147:18;;15237:78;15147:18;15301:6;15237:78;;15332:407;15523:2;15537:47;;;15508:18;;15598:131;15508:18;15598:131;;15746:407;15937:2;15951:47;;;15922:18;;16012:131;15922:18;16012:131;;16160:407;16351:2;16365:47;;;16336:18;;16426:131;16336:18;16426:131;;16574:407;16765:2;16779:47;;;16750:18;;16840:131;16750:18;16840:131;;16988:407;17179:2;17193:47;;;17164:18;;17254:131;17164:18;17254:131;;17402:407;17593:2;17607:47;;;17578:18;;17668:131;17578:18;17668:131;;17816:407;18007:2;18021:47;;;17992:18;;18082:131;17992:18;18082:131;;18230:407;18421:2;18435:47;;;18406:18;;18496:131;18406:18;18496:131;;18644:213;18762:2;18747:18;;18776:71;18751:9;18820:6;18776:71;;18864:324;19010:2;18995:18;;19024:71;18999:9;19068:6;19024:71;;19195:563;19405:3;19390:19;;19420:71;19394:9;19464:6;19420:71;;;19502:72;19570:2;19559:9;19555:18;19546:6;19502:72;;;19585:80;19661:2;19650:9;19646:18;19637:6;19585:80;;;19676:72;19744:2;19733:9;19729:18;19720:6;19676:72;;19765:435;19939:2;19924:18;;19953:71;19928:9;19997:6;19953:71;;;20035:72;20103:2;20092:9;20088:18;20079:6;20035:72;;20207:547;20409:3;20394:19;;20424:71;20398:9;20468:6;20424:71;;;20506:72;20574:2;20563:9;20559:18;20550:6;20506:72;;;20589;20657:2;20646:9;20642:18;20633:6;20589:72;;20761:205;20875:2;20860:18;;20889:67;20864:9;20929:6;20889:67;;20973:256;21035:2;21029:9;21061:17;;;21136:18;21121:34;;21157:22;;;21118:62;21115:2;;;21193:1;21190;21183:12;21115:2;21209;21202:22;21013:216;;-1:-1;21013:216;21236:121;21323:12;;21294:63;21647:163;21750:19;;;21799:4;21790:14;;21743:67;21818:91;;21880:24;21898:5;21880:24;;21916:85;21982:13;21975:21;;21958:43;22008:144;-1:-1;;;;;;22069:78;;22052:100;22238:128;22311:5;22317:44;22311:5;22317:44;;22504:121;-1:-1;;;;;22566:54;;22549:76;22711:81;22782:4;22771:16;;22754:38;22799:129;;22886:37;22917:5;22935:153;;23030:53;23077:5;23030:53;;23517:128;;23605:35;23634:5;23605:35;;23783:116;;23870:24;23888:5;23870:24;;24150:268;24215:1;24222:101;24236:6;24233:1;24230:13;24222:101;;;24303:11;;;24297:18;24284:11;;;24277:39;24258:2;24251:10;24222:101;;;24338:6;24335:1;24332:13;24329:2;;;-1:-1;;24403:1;24385:16;;24378:27;24199:219;24587:97;24675:2;24655:14;-1:-1;;24651:28;;24635:49;24692:102;24772:1;24765:5;24762:12;24752:2;;24778:9;24908:117;24977:24;24995:5;24977:24;;;24970:5;24967:35;24957:2;;25016:1;25013;25006:12;25032:111;25098:21;25113:5;25098:21;;25150:103;25228:1;25221:5;25218:12;25208:2;;25244:1;25241;25234:12;25260:117;25329:24;25347:5;25329:24;

Swarm Source

bzzr://59eccd65dd605fea1175aa1108138b69b7a60c4bb8fdbc750ac977fb0aedb4b6

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.