Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 795 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Allocate | 13354760 | 1212 days ago | IN | 0 ETH | 0.0070918 | ||||
Allocate | 13354748 | 1212 days ago | IN | 0 ETH | 0.0070918 | ||||
Purchase | 13325987 | 1217 days ago | IN | 400 ETH | 0.01008125 | ||||
Purchase | 13321530 | 1218 days ago | IN | 400 ETH | 0.01063924 | ||||
Purchase | 13321521 | 1218 days ago | IN | 400 ETH | 0.01208958 | ||||
Purchase | 13321508 | 1218 days ago | IN | 400 ETH | 0.01113405 | ||||
Purchase | 13321506 | 1218 days ago | IN | 400 ETH | 0.01170243 | ||||
Purchase | 13320711 | 1218 days ago | IN | 200 ETH | 0.00775781 | ||||
Purchase | 13320710 | 1218 days ago | IN | 200 ETH | 0.00788663 | ||||
Purchase | 13320709 | 1218 days ago | IN | 200 ETH | 0.00768221 | ||||
Purchase | 13315402 | 1218 days ago | IN | 400 ETH | 0.01043496 | ||||
Purchase | 13315385 | 1218 days ago | IN | 400 ETH | 0.01393969 | ||||
Purchase | 13314995 | 1219 days ago | IN | 0.02 ETH | 0.01549331 | ||||
Purchase | 13179359 | 1240 days ago | IN | 600 ETH | 0.07132735 | ||||
Purchase | 13177239 | 1240 days ago | IN | 300 ETH | 0.02002385 | ||||
Purchase | 13176272 | 1240 days ago | IN | 300 ETH | 0.02002385 | ||||
Purchase | 13175405 | 1240 days ago | IN | 300 ETH | 0.02002385 | ||||
Purchase | 13175397 | 1240 days ago | IN | 300 ETH | 0.02002385 | ||||
Purchase | 13175397 | 1240 days ago | IN | 300 ETH | 0.02002385 | ||||
Purchase | 13175164 | 1240 days ago | IN | 300 ETH | 0.02002385 | ||||
Purchase | 13175164 | 1240 days ago | IN | 300 ETH | 0.02336094 | ||||
Purchase | 13173171 | 1241 days ago | IN | 600 ETH | 0.02002385 | ||||
Purchase | 13171864 | 1241 days ago | IN | 599 ETH | 0.02002385 | ||||
Purchase | 13171374 | 1241 days ago | IN | 600 ETH | 0.02002385 | ||||
Purchase | 13169906 | 1241 days ago | IN | 700 ETH | 0.02336094 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13394021 | 1206 days ago | 151.171875 ETH | ||||
13394019 | 1206 days ago | 148.046875 ETH | ||||
13394018 | 1206 days ago | 203.515625 ETH | ||||
13394017 | 1206 days ago | 203.515625 ETH | ||||
13394016 | 1206 days ago | 341.40625 ETH | ||||
13394015 | 1206 days ago | 350.78125 ETH | ||||
13394012 | 1206 days ago | 291.015625 ETH | ||||
13394011 | 1206 days ago | 329.6875 ETH | ||||
13394010 | 1206 days ago | 228.125 ETH | ||||
13393270 | 1206 days ago | 196.484375 ETH | ||||
13393229 | 1206 days ago | 499.609375 ETH | ||||
13393229 | 1206 days ago | 499.609375 ETH | ||||
13393228 | 1206 days ago | 499.609375 ETH | ||||
13393228 | 1206 days ago | 499.609375 ETH | ||||
13393227 | 1206 days ago | 499.609375 ETH | ||||
13393227 | 1206 days ago | 499.609375 ETH | ||||
13393226 | 1206 days ago | 499.609375 ETH | ||||
13393226 | 1206 days ago | 499.609375 ETH | ||||
13393225 | 1206 days ago | 499.609375 ETH | ||||
13393225 | 1206 days ago | 499.609375 ETH | ||||
13393224 | 1206 days ago | 499.609375 ETH | ||||
13393224 | 1206 days ago | 499.609375 ETH | ||||
13393223 | 1206 days ago | 499.609375 ETH | ||||
13393223 | 1206 days ago | 499.609375 ETH | ||||
13393222 | 1206 days ago | 499.609375 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
EthBondingCurve
Compiler Version
v0.6.6+commit.6c089d02
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-30 */ // hevm: flattened sources of ./contracts/bondingcurve/EthBondingCurve.sol pragma solidity >=0.4.0 >=0.6.0 <0.7.0 >=0.6.0 <0.8.0 >=0.6.2 <0.7.0 >=0.6.2 <0.8.0; pragma experimental ABIEncoderV2; ////// ./contracts/external/SafeMathCopy.sol // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.0; */ /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMathCopy { // To avoid namespace collision between openzeppelin safemath and uniswap 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. */ 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. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { 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. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } ////// ./contracts/external/Decimal.sol /* 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. */ /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "./SafeMathCopy.sol"; */ /** * @title Decimal * @author dYdX * * Library that defines a fixed-point number with 18 decimal places. */ library Decimal { using SafeMathCopy for uint256; // ============ Constants ============ uint256 private 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; } } ////// ./contracts/bondingcurve/IBondingCurve.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "../external/Decimal.sol"; */ interface IBondingCurve { // ----------- Events ----------- event ScaleUpdate(uint256 _scale); event BufferUpdate(uint256 _buffer); event IncentiveAmountUpdate(uint256 _incentiveAmount); event Purchase(address indexed _to, uint256 _amountIn, uint256 _amountOut); event Allocate(address indexed _caller, uint256 _amount); // ----------- State changing Api ----------- function purchase(address to, uint256 amountIn) external payable returns (uint256 amountOut); function allocate() external; // ----------- Governor only state changing api ----------- function setBuffer(uint256 _buffer) external; function setScale(uint256 _scale) external; function setAllocation( address[] calldata pcvDeposits, uint256[] calldata ratios ) external; function setIncentiveAmount(uint256 _incentiveAmount) external; function setIncentiveFrequency(uint256 _frequency) external; // ----------- Getters ----------- function getCurrentPrice() external view returns (Decimal.D256 memory); function getAverageUSDPrice(uint256 amountIn) external view returns (Decimal.D256 memory); function getAmountOut(uint256 amountIn) external view returns (uint256 amountOut); function scale() external view returns (uint256); function atScale() external view returns (bool); function buffer() external view returns (uint256); function totalPurchased() external view returns (uint256); function getTotalPCVHeld() external view returns (uint256); function incentiveAmount() external view returns (uint256); } ////// /home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT /* pragma solidity >=0.6.0 <0.8.0; */ /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20_5 { /** * @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); } ////// ./contracts/pcv/PCVSplitter.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "../external/SafeMathCopy.sol"; */ /* import "/home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/token/ERC20/IERC20.sol"; */ /// @title abstract contract for splitting PCV into different deposits /// @author Fei Protocol abstract contract PCVSplitter { using SafeMathCopy for uint256; /// @notice total allocation allowed representing 100% uint256 public constant ALLOCATION_GRANULARITY = 10_000; uint256[] private ratios; address[] private pcvDeposits; event AllocationUpdate(address[] _pcvDeposits, uint256[] _ratios); /// @notice PCVSplitter constructor /// @param _pcvDeposits list of PCV Deposits to split to /// @param _ratios ratios for splitting PCV Deposit allocations constructor(address[] memory _pcvDeposits, uint256[] memory _ratios) public { _setAllocation(_pcvDeposits, _ratios); } /// @notice make sure an allocation has matching lengths and totals the ALLOCATION_GRANULARITY /// @param _pcvDeposits new list of pcv deposits to send to /// @param _ratios new ratios corresponding to the PCV deposits /// @return true if it is a valid allocation function checkAllocation( address[] memory _pcvDeposits, uint256[] memory _ratios ) public pure returns (bool) { require( _pcvDeposits.length == _ratios.length, "PCVSplitter: PCV Deposits and ratios are different lengths" ); uint256 total; for (uint256 i; i < _ratios.length; i++) { total = total.add(_ratios[i]); } require( total == ALLOCATION_GRANULARITY, "PCVSplitter: ratios do not total 100%" ); return true; } /// @notice gets the pcvDeposits and ratios of the splitter function getAllocation() public view returns (address[] memory, uint256[] memory) { return (pcvDeposits, ratios); } /// @notice distribute funds to single PCV deposit /// @param amount amount of funds to send /// @param pcvDeposit the pcv deposit to send funds function _allocateSingle(uint256 amount, address pcvDeposit) internal virtual; /// @notice sets a new allocation for the splitter /// @param _pcvDeposits new list of pcv deposits to send to /// @param _ratios new ratios corresponding to the PCV deposits. Must total ALLOCATION_GRANULARITY function _setAllocation( address[] memory _pcvDeposits, uint256[] memory _ratios ) internal { checkAllocation(_pcvDeposits, _ratios); pcvDeposits = _pcvDeposits; ratios = _ratios; emit AllocationUpdate(_pcvDeposits, _ratios); } /// @notice distribute funds to all pcv deposits at specified allocation ratios /// @param total amount of funds to send function _allocate(uint256 total) internal { uint256 granularity = ALLOCATION_GRANULARITY; for (uint256 i; i < ratios.length; i++) { uint256 amount = total.mul(ratios[i]) / granularity; _allocateSingle(amount, pcvDeposits[i]); } } } ////// ./contracts/core/IPermissions.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /// @title Permissions interface /// @author Fei Protocol interface IPermissions { // ----------- Governor only state changing api ----------- function createRole(bytes32 role, bytes32 adminRole) external; function grantMinter(address minter) external; function grantBurner(address burner) external; function grantPCVController(address pcvController) external; function grantGovernor(address governor) external; function grantGuardian(address guardian) external; function revokeMinter(address minter) external; function revokeBurner(address burner) external; function revokePCVController(address pcvController) external; function revokeGovernor(address governor) external; function revokeGuardian(address guardian) external; // ----------- Revoker only state changing api ----------- function revokeOverride(bytes32 role, address account) external; // ----------- Getters ----------- function isBurner(address _address) external view returns (bool); function isMinter(address _address) external view returns (bool); function isGovernor(address _address) external view returns (bool); function isGuardian(address _address) external view returns (bool); function isPCVController(address _address) external view returns (bool); } ////// ./contracts/token/IFei.sol /* pragma solidity ^0.6.2; */ /* import "/home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/token/ERC20/IERC20.sol"; */ /// @title FEI stablecoin interface /// @author Fei Protocol interface IFei is IERC20_5 { // ----------- Events ----------- event Minting( address indexed _to, address indexed _minter, uint256 _amount ); event Burning( address indexed _to, address indexed _burner, uint256 _amount ); event IncentiveContractUpdate( address indexed _incentivized, address indexed _incentiveContract ); // ----------- State changing api ----------- function burn(uint256 amount) external; function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; // ----------- Burner only state changing api ----------- function burnFrom(address account, uint256 amount) external; // ----------- Minter only state changing api ----------- function mint(address account, uint256 amount) external; // ----------- Governor only state changing api ----------- function setIncentiveContract(address account, address incentive) external; // ----------- Getters ----------- function incentiveContract(address account) external view returns (address); } ////// ./contracts/core/ICore.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "./IPermissions.sol"; */ /* import "../token/IFei.sol"; */ /// @title Core Interface /// @author Fei Protocol interface ICore is IPermissions { // ----------- Events ----------- event FeiUpdate(address indexed _fei); event TribeUpdate(address indexed _tribe); event GenesisGroupUpdate(address indexed _genesisGroup); event TribeAllocation(address indexed _to, uint256 _amount); event GenesisPeriodComplete(uint256 _timestamp); // ----------- Governor only state changing api ----------- function init() external; // ----------- Governor only state changing api ----------- function setFei(address token) external; function setTribe(address token) external; function setGenesisGroup(address _genesisGroup) external; function allocateTribe(address to, uint256 amount) external; // ----------- Genesis Group only state changing api ----------- function completeGenesisGroup() external; // ----------- Getters ----------- function fei() external view returns (IFei); function tribe() external view returns (IERC20_5); function genesisGroup() external view returns (address); function hasGenesisGroupCompleted() external view returns (bool); } ////// ./contracts/refs/ICoreRef.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "../core/ICore.sol"; */ /// @title CoreRef interface /// @author Fei Protocol interface ICoreRef { // ----------- Events ----------- event CoreUpdate(address indexed _core); // ----------- Governor only state changing api ----------- function setCore(address core) external; function pause() external; function unpause() external; // ----------- Getters ----------- function core() external view returns (ICore); function fei() external view returns (IFei); function tribe() external view returns (IERC20_5); function feiBalance() external view returns (uint256); function tribeBalance() external view returns (uint256); } ////// /home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/utils/Address.sol // SPDX-License-Identifier: MIT /* pragma solidity >=0.6.2 <0.8.0; */ /** * @dev Collection of functions related to the address type */ library Address_2 { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } ////// /home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT /* pragma solidity >=0.6.0 <0.8.0; */ /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context_2 { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } ////// /home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/utils/Pausable.sol // SPDX-License-Identifier: MIT /* pragma solidity >=0.6.0 <0.8.0; */ /* import "./Context.sol"; */ /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable_2 is Context_2 { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } ////// ./contracts/refs/CoreRef.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "./ICoreRef.sol"; */ /* import "/home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/utils/Pausable.sol"; */ /* import "/home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/utils/Address.sol"; */ /// @title A Reference to Core /// @author Fei Protocol /// @notice defines some modifiers and utilities around interacting with Core abstract contract CoreRef is ICoreRef, Pausable_2 { ICore private _core; /// @notice CoreRef constructor /// @param core Fei Core to reference constructor(address core) public { _core = ICore(core); } modifier ifMinterSelf() { if (_core.isMinter(address(this))) { _; } } modifier ifBurnerSelf() { if (_core.isBurner(address(this))) { _; } } modifier onlyMinter() { require(_core.isMinter(msg.sender), "CoreRef: Caller is not a minter"); _; } modifier onlyBurner() { require(_core.isBurner(msg.sender), "CoreRef: Caller is not a burner"); _; } modifier onlyPCVController() { require( _core.isPCVController(msg.sender), "CoreRef: Caller is not a PCV controller" ); _; } modifier onlyGovernor() { require( _core.isGovernor(msg.sender), "CoreRef: Caller is not a governor" ); _; } modifier onlyGuardianOrGovernor() { require( _core.isGovernor(msg.sender) || _core.isGuardian(msg.sender), "CoreRef: Caller is not a guardian or governor" ); _; } modifier onlyFei() { require(msg.sender == address(fei()), "CoreRef: Caller is not FEI"); _; } modifier onlyGenesisGroup() { require( msg.sender == _core.genesisGroup(), "CoreRef: Caller is not GenesisGroup" ); _; } modifier postGenesis() { require( _core.hasGenesisGroupCompleted(), "CoreRef: Still in Genesis Period" ); _; } modifier nonContract() { require(!Address_2.isContract(msg.sender), "CoreRef: Caller is a contract"); _; } /// @notice set new Core reference address /// @param core the new core address function setCore(address core) external override onlyGovernor { _core = ICore(core); emit CoreUpdate(core); } /// @notice set pausable methods to paused function pause() public override onlyGuardianOrGovernor { _pause(); } /// @notice set pausable methods to unpaused function unpause() public override onlyGuardianOrGovernor { _unpause(); } /// @notice address of the Core contract referenced /// @return ICore implementation address function core() public view override returns (ICore) { return _core; } /// @notice address of the Fei contract referenced by Core /// @return IFei implementation address function fei() public view override returns (IFei) { return _core.fei(); } /// @notice address of the Tribe contract referenced by Core /// @return IERC20 implementation address function tribe() public view override returns (IERC20_5) { return _core.tribe(); } /// @notice fei balance of contract /// @return fei amount held function feiBalance() public view override returns (uint256) { return fei().balanceOf(address(this)); } /// @notice tribe balance of contract /// @return tribe amount held function tribeBalance() public view override returns (uint256) { return tribe().balanceOf(address(this)); } function _burnFeiHeld() internal { fei().burn(feiBalance()); } function _mintFei(uint256 amount) internal { fei().mint(address(this), amount); } } ////// ./contracts/oracle/IOracle.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "../external/Decimal.sol"; */ /// @title generic oracle interface for Fei Protocol /// @author Fei Protocol interface IOracle { // ----------- Events ----------- event Update(uint256 _peg); // ----------- State changing API ----------- function update() external returns (bool); // ----------- Getters ----------- function read() external view returns (Decimal.D256 memory, bool); function isOutdated() external view returns (bool); } ////// ./contracts/refs/IOracleRef.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "../oracle/IOracle.sol"; */ /// @title OracleRef interface /// @author Fei Protocol interface IOracleRef { // ----------- Events ----------- event OracleUpdate(address indexed _oracle); // ----------- State changing API ----------- function updateOracle() external returns (bool); // ----------- Governor only state changing API ----------- function setOracle(address _oracle) external; // ----------- Getters ----------- function oracle() external view returns (IOracle); function peg() external view returns (Decimal.D256 memory); function invert(Decimal.D256 calldata price) external pure returns (Decimal.D256 memory); } ////// ./contracts/refs/OracleRef.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "./IOracleRef.sol"; */ /* import "./CoreRef.sol"; */ /// @title Reference to an Oracle /// @author Fei Protocol /// @notice defines some utilities around interacting with the referenced oracle abstract contract OracleRef is IOracleRef, CoreRef { using Decimal for Decimal.D256; /// @notice the oracle reference by the contract IOracle public override oracle; /// @notice OracleRef constructor /// @param _core Fei Core to reference /// @param _oracle oracle to reference constructor(address _core, address _oracle) public CoreRef(_core) { _setOracle(_oracle); } /// @notice sets the referenced oracle /// @param _oracle the new oracle to reference function setOracle(address _oracle) external override onlyGovernor { _setOracle(_oracle); } /// @notice invert a peg price /// @param price the peg price to invert /// @return the inverted peg as a Decimal /// @dev the inverted peg would be X per FEI function invert(Decimal.D256 memory price) public pure override returns (Decimal.D256 memory) { return Decimal.one().div(price); } /// @notice updates the referenced oracle /// @return true if the update is effective function updateOracle() public override returns (bool) { return oracle.update(); } /// @notice the peg price of the referenced oracle /// @return the peg as a Decimal /// @dev the peg is defined as FEI per X with X being ETH, dollars, etc function peg() public view override returns (Decimal.D256 memory) { (Decimal.D256 memory _peg, bool valid) = oracle.read(); require(valid, "OracleRef: oracle invalid"); return _peg; } function _setOracle(address _oracle) internal { oracle = IOracle(_oracle); emit OracleUpdate(_oracle); } } ////// /home/brock/git_pkgs/fei-protocol-core/contracts/uniswap/lib/contracts/libraries/Babylonian.sol // SPDX-License-Identifier: GPL-3.0-or-later /* pragma solidity >=0.4.0; */ // computes square roots using the babylonian method // https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method library Babylonian_3 { function sqrt(uint y) internal pure returns (uint z) { if (y > 3) { z = y; uint x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } // else z = 0 } } ////// ./contracts/utils/Roots.sol /* pragma solidity ^0.6.0; */ /* import "/home/brock/git_pkgs/fei-protocol-core/contracts/uniswap/lib/contracts/libraries/Babylonian.sol"; */ library Roots { // Newton's method https://en.wikipedia.org/wiki/Cube_root#Numerical_methods function cubeRoot(uint256 y) internal pure returns (uint256 z) { if (y > 7) { z = y; uint256 x = y / 3 + 1; while (x < z) { z = x; x = (y / (x * x) + (2 * x)) / 3; } } else if (y != 0) { z = 1; } } function sqrt(uint256 y) internal pure returns (uint256) { return Babylonian_3.sqrt(y); } } ////// /home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/utils/SafeCast.sol // SPDX-License-Identifier: MIT /* pragma solidity >=0.6.0 <0.8.0; */ /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such 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. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast_2 { /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= -2**127 && value < 2**127, "SafeCast: value doesn\'t fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= -2**63 && value < 2**63, "SafeCast: value doesn\'t fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= -2**31 && value < 2**31, "SafeCast: value doesn\'t fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= -2**15 && value < 2**15, "SafeCast: value doesn\'t fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= -2**7 && value < 2**7, "SafeCast: value doesn\'t fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { require(value < 2**255, "SafeCast: value doesn't fit in an int256"); return int256(value); } } ////// ./contracts/utils/Timed.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "/home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/utils/SafeCast.sol"; */ /// @title an abstract contract for timed events /// @author Fei Protocol abstract contract Timed { using SafeCast_2 for uint256; /// @notice the start timestamp of the timed period uint256 public startTime; /// @notice the duration of the timed period uint256 public duration; event DurationUpdate(uint256 _duration); event TimerReset(uint256 _startTime); constructor(uint256 _duration) public { _setDuration(_duration); } modifier duringTime() { require(isTimeStarted(), "Timed: time not started"); require(!isTimeEnded(), "Timed: time ended"); _; } modifier afterTime() { require(isTimeEnded(), "Timed: time not ended"); _; } /// @notice return true if time period has ended function isTimeEnded() public view returns (bool) { return remainingTime() == 0; } /// @notice number of seconds remaining until time is up /// @return remaining function remainingTime() public view returns (uint256) { return duration - timeSinceStart(); // duration always >= timeSinceStart which is on [0,d] } /// @notice number of seconds since contract was initialized /// @return timestamp /// @dev will be less than or equal to duration function timeSinceStart() public view returns (uint256) { if (!isTimeStarted()) { return 0; // uninitialized } uint256 _duration = duration; // solhint-disable-next-line not-rely-on-time uint256 timePassed = block.timestamp - startTime; // block timestamp always >= startTime return timePassed > _duration ? _duration : timePassed; } function isTimeStarted() public view returns (bool) { return startTime != 0; } function _initTimed() internal { // solhint-disable-next-line not-rely-on-time startTime = block.timestamp; // solhint-disable-next-line not-rely-on-time emit TimerReset(block.timestamp); } function _setDuration(uint _duration) internal { duration = _duration; emit DurationUpdate(_duration); } } ////// /home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/math/Math.sol // SPDX-License-Identifier: MIT /* pragma solidity >=0.6.0 <0.8.0; */ /** * @dev Standard math utilities missing in the Solidity language. */ library Math_4 { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } ////// ./contracts/bondingcurve/BondingCurve.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "/home/brock/git_pkgs/fei-protocol-core/contracts/openzeppelin/contracts/math/Math.sol"; */ /* import "./IBondingCurve.sol"; */ /* import "../utils/Roots.sol"; */ /* import "../refs/OracleRef.sol"; */ /* import "../pcv/PCVSplitter.sol"; */ /* import "../utils/Timed.sol"; */ /// @title an abstract bonding curve for purchasing FEI /// @author Fei Protocol abstract contract BondingCurve is IBondingCurve, OracleRef, PCVSplitter, Timed { using Decimal for Decimal.D256; using Roots for uint256; /// @notice the Scale target at which bonding curve price fixes uint256 public override scale; /// @notice the total amount of FEI purchased on bonding curve. FEI_b from the whitepaper uint256 public override totalPurchased; // FEI_b for this curve /// @notice the buffer applied on top of the peg purchase price once at Scale uint256 public override buffer = 100; uint256 public constant BUFFER_GRANULARITY = 10_000; /// @notice amount of FEI paid for allocation when incentivized uint256 public override incentiveAmount; /// @notice constructor /// @param _scale the Scale target where peg fixes /// @param _core Fei Core to reference /// @param _pcvDeposits the PCV Deposits for the PCVSplitter /// @param _ratios the ratios for the PCVSplitter /// @param _oracle the UniswapOracle to reference /// @param _duration the duration between incentivizing allocations /// @param _incentive the amount rewarded to the caller of an allocation constructor( uint256 _scale, address _core, address[] memory _pcvDeposits, uint256[] memory _ratios, address _oracle, uint256 _duration, uint256 _incentive ) public OracleRef(_core, _oracle) PCVSplitter(_pcvDeposits, _ratios) Timed(_duration) { _setScale(_scale); incentiveAmount = _incentive; _initTimed(); } /// @notice sets the bonding curve Scale target function setScale(uint256 _scale) external override onlyGovernor { _setScale(_scale); } /// @notice sets the bonding curve price buffer function setBuffer(uint256 _buffer) external override onlyGovernor { require( _buffer < BUFFER_GRANULARITY, "BondingCurve: Buffer exceeds or matches granularity" ); buffer = _buffer; emit BufferUpdate(_buffer); } /// @notice sets the allocate incentive amount function setIncentiveAmount(uint256 _incentiveAmount) external override onlyGovernor { incentiveAmount = _incentiveAmount; emit IncentiveAmountUpdate(_incentiveAmount); } /// @notice sets the allocate incentive frequency function setIncentiveFrequency(uint256 _frequency) external override onlyGovernor { _setDuration(_frequency); } /// @notice sets the allocation of incoming PCV function setAllocation( address[] calldata allocations, uint256[] calldata ratios ) external override onlyGovernor { _setAllocation(allocations, ratios); } /// @notice batch allocate held PCV function allocate() external override postGenesis whenNotPaused { require((!Address_2.isContract(msg.sender)) || msg.sender == core().genesisGroup(), "BondingCurve: Caller is a contract"); uint256 amount = getTotalPCVHeld(); require(amount != 0, "BondingCurve: No PCV held"); _allocate(amount); _incentivize(); emit Allocate(msg.sender, amount); } /// @notice a boolean signalling whether Scale has been reached function atScale() public view override returns (bool) { return totalPurchased >= scale; } /// @notice return current instantaneous bonding curve price /// @return price reported as FEI per X with X being the underlying asset /// @dev Can be innacurate if outdated, need to call `oracle().isOutdated()` to check function getCurrentPrice() public view override returns (Decimal.D256 memory) { if (atScale()) { return peg().mul(_getBufferMultiplier()); } return peg().div(_getBondingCurvePriceMultiplier()); } /// @notice return amount of FEI received after a bonding curve purchase /// @param amountIn the amount of underlying used to purchase /// @return amountOut the amount of FEI received /// @dev Can be innacurate if outdated, need to call `oracle().isOutdated()` to check function getAmountOut(uint256 amountIn) public view override returns (uint256 amountOut) { uint256 adjustedAmount = _getAdjustedAmount(amountIn); amountOut = _getBufferAdjustedAmount(adjustedAmount); if (atScale()) { return amountOut; } return Math_4.max(amountOut, _getBondingCurveAmountOut(adjustedAmount)); // Cap price at buffer adjusted } /// @notice return the average price of a transaction along bonding curve /// @param amountIn the amount of underlying used to purchase /// @return price reported as USD per FEI /// @dev Can be innacurate if outdated, need to call `oracle().isOutdated()` to check function getAverageUSDPrice(uint256 amountIn) public view override returns (Decimal.D256 memory) { uint256 adjustedAmount = _getAdjustedAmount(amountIn); uint256 amountOut = getAmountOut(amountIn); return Decimal.ratio(adjustedAmount, amountOut); } /// @notice the amount of PCV held in contract and ready to be allocated function getTotalPCVHeld() public view virtual override returns (uint256); /// @notice multiplies amount in by the peg to convert to FEI function _getAdjustedAmount(uint256 amountIn) internal view returns (uint256) { return peg().mul(amountIn).asUint256(); } /// @notice mint FEI and send to buyer destination function _purchase(uint256 amountIn, address to) internal returns (uint256 amountOut) { updateOracle(); amountOut = getAmountOut(amountIn); _incrementTotalPurchased(amountOut); fei().mint(to, amountOut); emit Purchase(to, amountIn, amountOut); return amountOut; } function _incrementTotalPurchased(uint256 amount) internal { totalPurchased = totalPurchased.add(amount); } function _setScale(uint256 _scale) internal { scale = _scale; emit ScaleUpdate(_scale); } /// @notice if window has passed, reward caller and reset window function _incentivize() internal virtual { if (isTimeEnded()) { _initTimed(); // reset window fei().mint(msg.sender, incentiveAmount); } } /// @notice the bonding curve price multiplier at the current totalPurchased relative to Scale function _getBondingCurvePriceMultiplier() internal view virtual returns (Decimal.D256 memory); /// @notice returns the integral of the bonding curve solved for the amount of tokens out for a certain amount of value in /// @param adjustedAmountIn this is the value in FEI of the underlying asset coming in function _getBondingCurveAmountOut(uint256 adjustedAmountIn) internal view virtual returns (uint256); /// @notice returns the buffer on the post-scale bonding curve price function _getBufferMultiplier() internal view returns (Decimal.D256 memory) { uint256 granularity = BUFFER_GRANULARITY; // uses granularity - buffer (i.e. 1-b) instead of 1+b because the peg is inverted return Decimal.ratio(granularity - buffer, granularity); } function _getBufferAdjustedAmount(uint256 amountIn) internal view returns (uint256) { return _getBufferMultiplier().mul(amountIn).asUint256(); } } ////// ./contracts/pcv/IPCVDeposit.sol /* pragma solidity ^0.6.2; */ /// @title a PCV Deposit interface /// @author Fei Protocol interface IPCVDeposit { // ----------- Events ----------- event Deposit(address indexed _from, uint256 _amount); event Withdrawal( address indexed _caller, address indexed _to, uint256 _amount ); // ----------- State changing api ----------- function deposit(uint256 amount) external payable; // ----------- PCV Controller only state changing api ----------- function withdraw(address to, uint256 amount) external; // ----------- Getters ----------- function totalValue() external view returns (uint256); } ////// ./contracts/bondingcurve/EthBondingCurve.sol /* pragma solidity ^0.6.0; */ /* pragma experimental ABIEncoderV2; */ /* import "./BondingCurve.sol"; */ /* import "../pcv/IPCVDeposit.sol"; */ /// @title a square root growth bonding curve for purchasing FEI with ETH /// @author Fei Protocol contract EthBondingCurve is BondingCurve { // solhint-disable-next-line var-name-mixedcase uint256 internal immutable SHIFT; // k shift constructor( uint256 scale, address core, address[] memory pcvDeposits, uint256[] memory ratios, address oracle, uint256 duration, uint256 incentive ) public BondingCurve( scale, core, pcvDeposits, ratios, oracle, duration, incentive ) { SHIFT = scale / 3; // Enforces a .50c starting price per bonding curve formula } /// @notice purchase FEI for underlying tokens /// @param to address to receive FEI /// @param amountIn amount of underlying tokens input /// @return amountOut amount of FEI received function purchase(address to, uint256 amountIn) external payable override postGenesis whenNotPaused returns (uint256 amountOut) { require( msg.value == amountIn, "Bonding Curve: Sent value does not equal input" ); return _purchase(amountIn, to); } function getTotalPCVHeld() public view override returns (uint256) { return address(this).balance; } // Represents the integral solved for upper bound of P(x) = ((k+X)/(k+S))^1/2 * O. Subtracting starting point C function _getBondingCurveAmountOut(uint256 adjustedAmountIn) internal view override returns (uint256 amountOut) { uint256 shiftTotal = _shift(totalPurchased); // k + C uint256 shiftTotalCubed = shiftTotal.mul(shiftTotal.mul(shiftTotal)); uint256 radicand = (adjustedAmountIn.mul(3).mul(_shift(scale).sqrt()) / 2).add( shiftTotalCubed.sqrt() ); return (radicand.cubeRoot() ** 2).sub(shiftTotal); // result - (k + C) } // Bonding curve formula is sqrt(k+x)/sqrt(k+S) function _getBondingCurvePriceMultiplier() internal view override returns (Decimal.D256 memory) { return Decimal.ratio(_shift(totalPurchased).sqrt(), _shift(scale).sqrt()); } function _allocateSingle(uint256 amount, address pcvDeposit) internal override { IPCVDeposit(pcvDeposit).deposit{value: amount}(amount); } function _shift(uint256 x) internal view returns (uint256) { return SHIFT.add(x); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"scale","type":"uint256"},{"internalType":"address","name":"core","type":"address"},{"internalType":"address[]","name":"pcvDeposits","type":"address[]"},{"internalType":"uint256[]","name":"ratios","type":"uint256[]"},{"internalType":"address","name":"oracle","type":"address"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"incentive","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Allocate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_pcvDeposits","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"_ratios","type":"uint256[]"}],"name":"AllocationUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_buffer","type":"uint256"}],"name":"BufferUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_core","type":"address"}],"name":"CoreUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"DurationUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_incentiveAmount","type":"uint256"}],"name":"IncentiveAmountUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_oracle","type":"address"}],"name":"OracleUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountOut","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_scale","type":"uint256"}],"name":"ScaleUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"TimerReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ALLOCATION_GRANULARITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BUFFER_GRANULARITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allocate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"atScale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_pcvDeposits","type":"address[]"},{"internalType":"uint256[]","name":"_ratios","type":"uint256[]"}],"name":"checkAllocation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"core","outputs":[{"internalType":"contract ICore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fei","outputs":[{"internalType":"contract IFei","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feiBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllocation","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"getAverageUSDPrice","outputs":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalPCVHeld","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incentiveAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"price","type":"tuple"}],"name":"invert","outputs":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"isTimeEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTimeStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"peg","outputs":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"purchase","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"remainingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"allocations","type":"address[]"},{"internalType":"uint256[]","name":"ratios","type":"uint256[]"}],"name":"setAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buffer","type":"uint256"}],"name":"setBuffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"core","type":"address"}],"name":"setCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_incentiveAmount","type":"uint256"}],"name":"setIncentiveAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_frequency","type":"uint256"}],"name":"setIncentiveFrequency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_scale","type":"uint256"}],"name":"setScale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeSinceStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPurchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tribe","outputs":[{"internalType":"contract IERC20_5","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tribeBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateOracle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405260646008553480156200001657600080fd5b50604051620030f9380380620030f98339810160408190526200003991620004d4565b600080546001600160a81b0319166101006001600160a01b038916021790558686868686868681858588866200006f81620000ef565b5062000087905082826001600160e01b036200013916565b506200009e9050816001600160e01b03620001ba16565b50620000b3876001600160e01b03620001fc16565b6009819055620000cb6001600160e01b036200023316565b5050505050505060038781620000dd57fe5b0460805250620007a995505050505050565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fc17757c327b55fd7741523e1dd00ff52d2a125e38254b540926d1de3a3c9bfa990600090a250565b6200014e82826001600160e01b036200027316565b5081516200016490600390602085019062000349565b5080516200017a906002906020840190620003b3565b507fbef57aa97c9fb646a566800652d67ee461974b0a5f4b40f8be3f875d44638a4f8282604051620001ae929190620005f9565b60405180910390a15050565b60058190556040517fef01a748b5b8a4f1d48b88861f6d361d7391ad2bbed27ff97d762889ca80d73790620001f190839062000759565b60405180910390a150565b60068190556040517faceab8a6989ecc545e5a14983924930ea43e5eb96f4d7cd5fda33468b83d9bc590620001f190839062000759565b4260048190556040517fd1dbb2ce8081405078443ef34dae718285114121a39370b14ef01b9d2b0a208391620002699162000759565b60405180910390a1565b60008151835114620002a25760405162461bcd60e51b81526004016200029990620006fc565b60405180910390fd5b6000805b8351811015620002e957620002de848281518110620002c157fe5b6020026020010151836200031a60201b62001a0b1790919060201c565b9150600101620002a6565b5061271081146200030e5760405162461bcd60e51b8152600401620002999062000680565b60019150505b92915050565b600082820183811015620003425760405162461bcd60e51b81526004016200029990620006c5565b9392505050565b828054828255906000526020600020908101928215620003a1579160200282015b82811115620003a157825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200036a565b50620003af929150620003ff565b5090565b828054828255906000526020600020908101928215620003f1579160200282015b82811115620003f1578251825591602001919060010190620003d4565b50620003af92915062000429565b6200042691905b80821115620003af5780546001600160a01b031916815560010162000406565b90565b6200042691905b80821115620003af576000815560010162000430565b80516001600160a01b03811681146200031457600080fd5b600082601f8301126200046f578081fd5b815162000486620004808262000789565b62000762565b818152915060208083019084810181840286018201871015620004a857600080fd5b60005b84811015620004c957815184529282019290820190600101620004ab565b505050505092915050565b600080600080600080600060e0888a031215620004ef578283fd5b87519650620005028960208a0162000446565b60408901519096506001600160401b03808211156200051f578485fd5b818a018b601f82011262000531578586fd5b8051925062000544620004808462000789565b80848252602082019150602083018e6020808802860101111562000566578889fd5b8893505b8584101562000595576200057f8f8262000446565b835260019390930192602092830192016200056a565b5060608d01519099509350505080821115620005af578485fd5b50620005be8a828b016200045e565b945050620005d08960808a0162000446565b925060a0880151915060c0880151905092959891949750929550565b6001600160a01b03169052565b604080825283519082018190526000906020906060840190828701845b828110156200063d576200062c848351620005ec565b928401929084019060010162000616565b50505083810382850152845180825285830191830190845b81811015620006735783518352928401929184019160010162000655565b5090979650505050505050565b60208082526025908201527f50435653706c69747465723a20726174696f7320646f206e6f7420746f74616c604082015264203130302560d81b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252603a908201527f50435653706c69747465723a20504356204465706f7369747320616e6420726160408201527f74696f732061726520646966666572656e74206c656e67746873000000000000606082015260800190565b90815260200190565b6040518181016001600160401b03811182821017156200078157600080fd5b604052919050565b60006001600160401b038211156200079f578081fd5b5060209081020190565b608051612935620007c460003980611d1f52506129356000f3fe60806040526004361061023a5760003560e01c806386b117b11161012e578063cae5d73b116100ab578063eb91d37e1161006f578063eb91d37e146105c2578063edaafe20146105d7578063f2f4eb26146105ec578063f51e181a14610601578063fa657980146106165761023a565b8063cae5d73b14610543578063d29caa0b14610558578063d6f124f014610578578063e1d92bf81461058d578063e632c2f3146105ad5761023a565b8063acc4bd08116100f2578063acc4bd08146104cf578063adc7ea37146104e4578063ae951b2e14610504578063b490589714610519578063b86677fe1461052e5761023a565b806386b117b11461045d5780638de932221461047d5780639a9ba4da14610490578063a36832a5146104a5578063abaa9916146104ba5761023a565b80635c195217116101bc57806378e979251161018057806378e97925146103d15780637adbf973146103e65780637dc0d1d01461040657806380009630146104285780638456cb59146104485761023a565b80635c195217146103525780635c975abb1461037257806367fc6dea146103875780636b6dff0a1461039c5780636e791c83146103b15761023a565b80633102b21a116102035780633102b21a146102e65780633edc3519146103085780633f4ba83a1461032857806345f4db281461033d5780634ec1d6611461026a5761023a565b8062d89b331461023f57806306caac7f1461026a5780630c9e1e8e1461028c5780630fb5a6b4146102af5780631f1cb62b146102c4575b600080fd5b34801561024b57600080fd5b50610254610636565b604051610261919061249e565b60405180910390f35b34801561027657600080fd5b5061027f61063f565b604051610261919061288c565b34801561029857600080fd5b506102a1610645565b60405161026192919061241d565b3480156102bb57600080fd5b5061027f610702565b3480156102d057600080fd5b506102d9610708565b6040516102619190612882565b3480156102f257600080fd5b506103066103013660046121f3565b6107c1565b005b34801561031457600080fd5b506103066103233660046123b3565b6108d4565b34801561033457600080fd5b50610306610980565b34801561034957600080fd5b5061027f610ab4565b34801561035e57600080fd5b5061027f61036d3660046123b3565b610ab8565b34801561037e57600080fd5b50610254610aff565b34801561039357600080fd5b5061027f610b08565b3480156103a857600080fd5b5061027f610b33565b3480156103bd57600080fd5b506102d96103cc36600461233f565b610bbd565b3480156103dd57600080fd5b5061027f610be3565b3480156103f257600080fd5b50610306610401366004612190565b610be9565b34801561041257600080fd5b5061041b610c92565b60405161026191906123f0565b34801561043457600080fd5b50610306610443366004612190565b610ca1565b34801561045457600080fd5b50610306610d91565b34801561046957600080fd5b5061025461047836600461225c565b610ec3565b61027f61048b3660046121c8565b610f4f565b34801561049c57600080fd5b5061041b611047565b3480156104b157600080fd5b506102546110ce565b3480156104c657600080fd5b506103066110d9565b3480156104db57600080fd5b5061027f6112d7565b3480156104f057600080fd5b506103066104ff3660046123b3565b6112ea565b34801561051057600080fd5b506102546113eb565b34801561052557600080fd5b5061027f6113fb565b34801561053a57600080fd5b5061041b611405565b34801561054f57600080fd5b5061027f611454565b34801561056457600080fd5b506103066105733660046123b3565b61145a565b34801561058457600080fd5b5061025461152f565b34801561059957600080fd5b506103066105a83660046123b3565b6115ad565b3480156105b957600080fd5b5061027f611656565b3480156105ce57600080fd5b506102d961165c565b3480156105e357600080fd5b5061027f6116aa565b3480156105f857600080fd5b5061041b6116b0565b34801561060d57600080fd5b5061027f6116c4565b34801561062257600080fd5b506102d96106313660046123b3565b6116ca565b60045415155b90565b61271081565b60608060036002818054806020026020016040519081016040528092919081815260200182805480156106a157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610683575b50505050509150808054806020026020016040519081016040528092919081815260200182805480156106f357602002820191906000526020600020905b8154815260200190600101908083116106df575b50505050509050915091509091565b60055481565b610710611fdc565b610718611fdc565b600154604080516315f789a960e21b815281516000936001600160a01b0316926357de26a49260048082019391829003018186803b15801561075957600080fd5b505afa15801561076d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107919190612364565b91509150806107bb5760405162461bcd60e51b81526004016107b2906126dc565b60405180910390fd5b50905090565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b8906107f59033906004016123f0565b60206040518083038186803b15801561080d57600080fd5b505afa158015610821573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610845919061231f565b6108615760405162461bcd60e51b81526004016107b2906127a2565b6108ce848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040805160208088028281018201909352878252909350879250869182918501908490808284376000920191909152506116fe92505050565b50505050565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b8906109089033906004016123f0565b60206040518083038186803b15801561092057600080fd5b505afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610958919061231f565b6109745760405162461bcd60e51b81526004016107b2906127a2565b61097d8161176e565b50565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b8906109b49033906004016123f0565b60206040518083038186803b1580156109cc57600080fd5b505afa1580156109e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a04919061231f565b80610a8e5750600054604051630c68ba2160e01b81526101009091046001600160a01b031690630c68ba2190610a3e9033906004016123f0565b60206040518083038186803b158015610a5657600080fd5b505afa158015610a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8e919061231f565b610aaa5760405162461bcd60e51b81526004016107b29061262e565b610ab26117a3565b565b4790565b600080610ac483611811565b9050610acf81611833565b9150610ad96110ce565b15610ae45750610afa565b610af682610af183611844565b6118f6565b9150505b919050565b60005460ff1690565b6000610b12610636565b610b1e5750600061063c565b60055460045442038181116107bb5792915050565b6000610b3d611405565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610b6891906123f0565b60206040518083038186803b158015610b8057600080fd5b505afa158015610b94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb891906123cb565b905090565b610bc5611fdc565b610bdd82610bd161190d565b9063ffffffff61192f16565b92915050565b60045481565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b890610c1d9033906004016123f0565b60206040518083038186803b158015610c3557600080fd5b505afa158015610c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6d919061231f565b610c895760405162461bcd60e51b81526004016107b2906127a2565b61097d81611966565b6001546001600160a01b031681565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b890610cd59033906004016123f0565b60206040518083038186803b158015610ced57600080fd5b505afa158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d25919061231f565b610d415760405162461bcd60e51b81526004016107b2906127a2565b60008054610100600160a81b0319166101006001600160a01b03841690810291909117825560405190917fad9400e618eb1344fde53db22397a1b82c765527ecbba3a5c86bcac15090828b91a250565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b890610dc59033906004016123f0565b60206040518083038186803b158015610ddd57600080fd5b505afa158015610df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e15919061231f565b80610e9f5750600054604051630c68ba2160e01b81526101009091046001600160a01b031690630c68ba2190610e4f9033906004016123f0565b60206040518083038186803b158015610e6757600080fd5b505afa158015610e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9f919061231f565b610ebb5760405162461bcd60e51b81526004016107b29061262e565b610ab26119b0565b60008151835114610ee65760405162461bcd60e51b81526004016107b290612825565b6000805b8351811015610f2357610f19848281518110610f0257fe5b602002602001015183611a0b90919063ffffffff16565b9150600101610eea565b506127108114610f455760405162461bcd60e51b81526004016107b29061255f565b5060019392505050565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639711ac346040518163ffffffff1660e01b815260040160206040518083038186803b158015610f9e57600080fd5b505afa158015610fb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd6919061231f565b610ff25760405162461bcd60e51b81526004016107b2906124fc565b610ffa610aff565b156110175760405162461bcd60e51b81526004016107b2906126b2565b8134146110365760405162461bcd60e51b81526004016107b290612754565b6110408284611a30565b9392505050565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639a9ba4da6040518163ffffffff1660e01b815260040160206040518083038186803b15801561109657600080fd5b505afa1580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb891906121ac565b600654600754101590565b600060019054906101000a90046001600160a01b03166001600160a01b0316639711ac346040518163ffffffff1660e01b815260040160206040518083038186803b15801561112757600080fd5b505afa15801561113b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115f919061231f565b61117b5760405162461bcd60e51b81526004016107b2906124fc565b611183610aff565b156111a05760405162461bcd60e51b81526004016107b2906126b2565b6111a933611aff565b158061123d57506111b86116b0565b6001600160a01b03166384bb0a6b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111f057600080fd5b505afa158015611204573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122891906121ac565b6001600160a01b0316336001600160a01b0316145b6112595760405162461bcd60e51b81526004016107b2906127e3565b6000611263610ab4565b9050806112825760405162461bcd60e51b81526004016107b2906125a4565b61128b81611b05565b611293611b85565b336001600160a01b03167f249d8eb76d5a22983620d741de2470148d1a9a26ab923aec4262770690d11ebc826040516112cc919061288c565b60405180910390a250565b60006112e1610b08565b60055403905090565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b89061131e9033906004016123f0565b60206040518083038186803b15801561133657600080fd5b505afa15801561134a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136e919061231f565b61138a5760405162461bcd60e51b81526004016107b2906127a2565b61271081106113ab5760405162461bcd60e51b81526004016107b2906125db565b60088190556040517fd97e0c56536b665b7cc4a52c4b58182120a828b6b662698e2775b2b7214c64f8906113e090839061288c565b60405180910390a150565b60006113f56112d7565b15905090565b6000610b3d611047565b60008060019054906101000a90046001600160a01b03166001600160a01b031663b86677fe6040518163ffffffff1660e01b815260040160206040518083038186803b15801561109657600080fd5b60095481565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b89061148e9033906004016123f0565b60206040518083038186803b1580156114a657600080fd5b505afa1580156114ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114de919061231f565b6114fa5760405162461bcd60e51b81526004016107b2906127a2565b60098190556040517fd7d362261d11eb869f83c194ca379ca6d336bca661dde0896f0257a5a339986f906113e090839061288c565b6001546040805163a2e6204560e01b815290516000926001600160a01b03169163a2e6204591600480830192602092919082900301818787803b15801561157557600080fd5b505af1158015611589573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb8919061231f565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b8906115e19033906004016123f0565b60206040518083038186803b1580156115f957600080fd5b505afa15801561160d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611631919061231f565b61164d5760405162461bcd60e51b81526004016107b2906127a2565b61097d81611bff565b60075481565b611664611fdc565b61166c6110ce565b156116975761169061167c611c34565b611684610708565b9063ffffffff611c5516565b905061063c565b610bb86116a2611c83565b610bd1610708565b60085481565b60005461010090046001600160a01b031690565b60065481565b6116d2611fdc565b60006116dd83611811565b905060006116ea84610ab8565b90506116f68282611caa565b949350505050565b6117088282610ec3565b50815161171c906003906020850190611fef565b508051611730906002906020840190612054565b507fbef57aa97c9fb646a566800652d67ee461974b0a5f4b40f8be3f875d44638a4f828260405161176292919061241d565b60405180910390a15050565b60068190556040517faceab8a6989ecc545e5a14983924930ea43e5eb96f4d7cd5fda33468b83d9bc5906113e090839061288c565b6117ab610aff565b6117c75760405162461bcd60e51b81526004016107b290612531565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6117fa611cd0565b60405161180791906123f0565b60405180910390a1565b6000610bdd61182e83611822610708565b9063ffffffff611cd416565b611cfb565b6000610bdd61182e83611822611c34565b600080611852600754611d18565b90506000611876611869838063ffffffff611d4a16565b839063ffffffff611d4a16565b905060006118cf61188683611d84565b60026118bb61189e611899600654611d18565b611d84565b6118af8a600363ffffffff611d4a16565b9063ffffffff611d4a16565b816118c257fe5b049063ffffffff611a0b16565b90506118ed8360026118e084611d8f565b0a9063ffffffff611de516565b95945050505050565b6000818310156119065781611040565b5090919050565b611915611fdc565b506040805160208101909152670de0b6b3a7640000815290565b611937611fdc565b604051806020016040528061195d8560000151670de0b6b3a76400008660000151611e27565b90529392505050565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fc17757c327b55fd7741523e1dd00ff52d2a125e38254b540926d1de3a3c9bfa990600090a250565b6119b8610aff565b156119d55760405162461bcd60e51b81526004016107b2906126b2565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117fa611cd0565b6000828201838110156110405760405162461bcd60e51b81526004016107b29061267b565b6000611a3a61152f565b50611a4483610ab8565b9050611a4f81611e49565b611a57611047565b6001600160a01b03166340c10f1983836040518363ffffffff1660e01b8152600401611a84929190612404565b600060405180830381600087803b158015611a9e57600080fd5b505af1158015611ab2573d6000803e3d6000fd5b50505050816001600160a01b03167f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c8483604051611af1929190612895565b60405180910390a292915050565b3b151590565b61271060005b600254811015611b8057600082611b4260028481548110611b2857fe5b906000526020600020015486611d4a90919063ffffffff16565b81611b4957fe5b049050611b778160038481548110611b5d57fe5b6000918252602090912001546001600160a01b0316611e62565b50600101611b0b565b505050565b611b8d6113eb565b15610ab257611b9a611ec6565b611ba2611047565b6001600160a01b03166340c10f19336009546040518363ffffffff1660e01b8152600401611bd1929190612404565b600060405180830381600087803b158015611beb57600080fd5b505af11580156108ce573d6000803e3d6000fd5b60058190556040517fef01a748b5b8a4f1d48b88861f6d361d7391ad2bbed27ff97d762889ca80d737906113e090839061288c565b611c3c611fdc565b60085461271090611c4f90820382611caa565b91505090565b611c5d611fdc565b604051806020016040528061195d85600001518560000151670de0b6b3a7640000611e27565b611c8b611fdc565b610bb8611c9c611899600754611d18565b611caa611899600654611d18565b611cb2611fdc565b604051806020016040528061195d85670de0b6b3a764000086611e27565b3390565b611cdc611fdc565b60408051602081019091528351819061195d908563ffffffff611d4a16565b8051600090610bdd90670de0b6b3a764000063ffffffff611efa16565b6000610bdd7f00000000000000000000000000000000000000000000000000000000000000008363ffffffff611a0b16565b600082611d5957506000610bdd565b82820282848281611d6657fe5b04146110405760405162461bcd60e51b81526004016107b290612713565b6000610bdd82611f3c565b60006007821115611dd7575080600160038204015b81811015611dd1578091506003816002028283028581611dc057fe5b040181611dc957fe5b049050611da4565b50610afa565b8115610afa57506001919050565b600061104083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f79565b60006116f682611e3d868663ffffffff611d4a16565b9063ffffffff611efa16565b600754611e5c908263ffffffff611a0b16565b60075550565b60405163b6b55f2560e01b81526001600160a01b0382169063b6b55f25908490611e9090829060040161288c565b6000604051808303818588803b158015611ea957600080fd5b505af1158015611ebd573d6000803e3d6000fd5b50505050505050565b4260048190556040517fd1dbb2ce8081405078443ef34dae718285114121a39370b14ef01b9d2b0a2083916118079161288c565b600061104083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611fa5565b60006003821115611dd7575080600160028204015b81811015611dd157809150600281828581611f6857fe5b040181611f7157fe5b049050611f51565b60008184841115611f9d5760405162461bcd60e51b81526004016107b291906124a9565b505050900390565b60008183611fc65760405162461bcd60e51b81526004016107b291906124a9565b506000838581611fd257fe5b0495945050505050565b6040518060200160405280600081525090565b828054828255906000526020600020908101928215612044579160200282015b8281111561204457825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061200f565b5061205092915061209b565b5090565b82805482825590600052602060002090810192821561208f579160200282015b8281111561208f578251825591602001919060010190612074565b506120509291506120bf565b61063c91905b808211156120505780546001600160a01b03191681556001016120a1565b61063c91905b8082111561205057600081556001016120c5565b60008083601f8401126120ea578182fd5b50813567ffffffffffffffff811115612101578182fd5b602083019150836020808302850101111561211b57600080fd5b9250929050565b600082601f830112612132578081fd5b8135612145612140826128ca565b6128a3565b81815291506020808301908481018184028601820187101561216657600080fd5b60005b8481101561218557813584529282019290820190600101612169565b505050505092915050565b6000602082840312156121a1578081fd5b8135611040816128ea565b6000602082840312156121bd578081fd5b8151611040816128ea565b600080604083850312156121da578081fd5b82356121e5816128ea565b946020939093013593505050565b60008060008060408587031215612208578182fd5b843567ffffffffffffffff8082111561221f578384fd5b61222b888389016120d9565b90965094506020870135915080821115612243578384fd5b50612250878288016120d9565b95989497509550505050565b6000806040838503121561226e578182fd5b823567ffffffffffffffff80821115612285578384fd5b81850186601f820112612296578485fd5b803592506122a6612140846128ca565b80848252602080830192508084018a8283890287010111156122c6578889fd5b8894505b868510156122f15780356122dd816128ea565b8452600194909401939281019281016122ca565b509096508701359350505080821115612308578283fd5b5061231585828601612122565b9150509250929050565b600060208284031215612330578081fd5b81518015158114611040578182fd5b600060208284031215612350578081fd5b61235a60206128a3565b9135825250919050565b6000808284036040811215612377578283fd5b6020811215612384578283fd5b5061238f60206128a3565b83518152602084015190925080151581146123a8578182fd5b809150509250929050565b6000602082840312156123c4578081fd5b5035919050565b6000602082840312156123dc578081fd5b5051919050565b6001600160a01b03169052565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b604080825283519082018190526000906020906060840190828701845b8281101561245d5761244d8483516123e3565b928401929084019060010161243a565b50505083810382850152845180825285830191830190845b8181101561249157835183529284019291840191600101612475565b5090979650505050505050565b901515815260200190565b6000602080835283518082850152825b818110156124d5578581018301518582016040015282016124b9565b818111156124e65783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f436f72655265663a205374696c6c20696e2047656e6573697320506572696f64604082015260600190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526025908201527f50435653706c69747465723a20726174696f7320646f206e6f7420746f74616c604082015264203130302560d81b606082015260800190565b60208082526019908201527f426f6e64696e6743757276653a204e6f205043562068656c6400000000000000604082015260600190565b60208082526033908201527f426f6e64696e6743757276653a204275666665722065786365656473206f72206040820152726d617463686573206772616e756c617269747960681b606082015260800190565b6020808252602d908201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160408201526c371037b91033b7bb32b93737b960991b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526019908201527f4f7261636c655265663a206f7261636c6520696e76616c696400000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252602e908201527f426f6e64696e672043757276653a2053656e742076616c756520646f6573206e60408201526d1bdd08195c5d585b081a5b9c1d5d60921b606082015260800190565b60208082526021908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f6040820152603960f91b606082015260800190565b60208082526022908201527f426f6e64696e6743757276653a2043616c6c6572206973206120636f6e74726160408201526118dd60f21b606082015260800190565b6020808252603a908201527f50435653706c69747465723a20504356204465706f7369747320616e6420726160408201527f74696f732061726520646966666572656e74206c656e67746873000000000000606082015260800190565b9051815260200190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff811182821017156128c257600080fd5b604052919050565b600067ffffffffffffffff8211156128e0578081fd5b5060209081020190565b6001600160a01b038116811461097d57600080fdfea2646970667358221220ef2fc7778055bb83b8e70d3d5fe27ed5a00dd55d39c82583d6b7966b11920a3064736f6c6343000606003300000000000000000000000000000000000000000052b7d2dcc80cd2e40000000000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000087f35bd241e41fc28e43f0e8c58d283dd55bd65000000000000000000000000000000000000000000000000000000000001518000000000000000000000000000000000000000000000001b1ae4d6e2ef50000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009b0c6299d08fe823f2c0598d97a1141507e4ad8600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710
Deployed Bytecode
0x60806040526004361061023a5760003560e01c806386b117b11161012e578063cae5d73b116100ab578063eb91d37e1161006f578063eb91d37e146105c2578063edaafe20146105d7578063f2f4eb26146105ec578063f51e181a14610601578063fa657980146106165761023a565b8063cae5d73b14610543578063d29caa0b14610558578063d6f124f014610578578063e1d92bf81461058d578063e632c2f3146105ad5761023a565b8063acc4bd08116100f2578063acc4bd08146104cf578063adc7ea37146104e4578063ae951b2e14610504578063b490589714610519578063b86677fe1461052e5761023a565b806386b117b11461045d5780638de932221461047d5780639a9ba4da14610490578063a36832a5146104a5578063abaa9916146104ba5761023a565b80635c195217116101bc57806378e979251161018057806378e97925146103d15780637adbf973146103e65780637dc0d1d01461040657806380009630146104285780638456cb59146104485761023a565b80635c195217146103525780635c975abb1461037257806367fc6dea146103875780636b6dff0a1461039c5780636e791c83146103b15761023a565b80633102b21a116102035780633102b21a146102e65780633edc3519146103085780633f4ba83a1461032857806345f4db281461033d5780634ec1d6611461026a5761023a565b8062d89b331461023f57806306caac7f1461026a5780630c9e1e8e1461028c5780630fb5a6b4146102af5780631f1cb62b146102c4575b600080fd5b34801561024b57600080fd5b50610254610636565b604051610261919061249e565b60405180910390f35b34801561027657600080fd5b5061027f61063f565b604051610261919061288c565b34801561029857600080fd5b506102a1610645565b60405161026192919061241d565b3480156102bb57600080fd5b5061027f610702565b3480156102d057600080fd5b506102d9610708565b6040516102619190612882565b3480156102f257600080fd5b506103066103013660046121f3565b6107c1565b005b34801561031457600080fd5b506103066103233660046123b3565b6108d4565b34801561033457600080fd5b50610306610980565b34801561034957600080fd5b5061027f610ab4565b34801561035e57600080fd5b5061027f61036d3660046123b3565b610ab8565b34801561037e57600080fd5b50610254610aff565b34801561039357600080fd5b5061027f610b08565b3480156103a857600080fd5b5061027f610b33565b3480156103bd57600080fd5b506102d96103cc36600461233f565b610bbd565b3480156103dd57600080fd5b5061027f610be3565b3480156103f257600080fd5b50610306610401366004612190565b610be9565b34801561041257600080fd5b5061041b610c92565b60405161026191906123f0565b34801561043457600080fd5b50610306610443366004612190565b610ca1565b34801561045457600080fd5b50610306610d91565b34801561046957600080fd5b5061025461047836600461225c565b610ec3565b61027f61048b3660046121c8565b610f4f565b34801561049c57600080fd5b5061041b611047565b3480156104b157600080fd5b506102546110ce565b3480156104c657600080fd5b506103066110d9565b3480156104db57600080fd5b5061027f6112d7565b3480156104f057600080fd5b506103066104ff3660046123b3565b6112ea565b34801561051057600080fd5b506102546113eb565b34801561052557600080fd5b5061027f6113fb565b34801561053a57600080fd5b5061041b611405565b34801561054f57600080fd5b5061027f611454565b34801561056457600080fd5b506103066105733660046123b3565b61145a565b34801561058457600080fd5b5061025461152f565b34801561059957600080fd5b506103066105a83660046123b3565b6115ad565b3480156105b957600080fd5b5061027f611656565b3480156105ce57600080fd5b506102d961165c565b3480156105e357600080fd5b5061027f6116aa565b3480156105f857600080fd5b5061041b6116b0565b34801561060d57600080fd5b5061027f6116c4565b34801561062257600080fd5b506102d96106313660046123b3565b6116ca565b60045415155b90565b61271081565b60608060036002818054806020026020016040519081016040528092919081815260200182805480156106a157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610683575b50505050509150808054806020026020016040519081016040528092919081815260200182805480156106f357602002820191906000526020600020905b8154815260200190600101908083116106df575b50505050509050915091509091565b60055481565b610710611fdc565b610718611fdc565b600154604080516315f789a960e21b815281516000936001600160a01b0316926357de26a49260048082019391829003018186803b15801561075957600080fd5b505afa15801561076d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107919190612364565b91509150806107bb5760405162461bcd60e51b81526004016107b2906126dc565b60405180910390fd5b50905090565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b8906107f59033906004016123f0565b60206040518083038186803b15801561080d57600080fd5b505afa158015610821573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610845919061231f565b6108615760405162461bcd60e51b81526004016107b2906127a2565b6108ce848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040805160208088028281018201909352878252909350879250869182918501908490808284376000920191909152506116fe92505050565b50505050565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b8906109089033906004016123f0565b60206040518083038186803b15801561092057600080fd5b505afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610958919061231f565b6109745760405162461bcd60e51b81526004016107b2906127a2565b61097d8161176e565b50565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b8906109b49033906004016123f0565b60206040518083038186803b1580156109cc57600080fd5b505afa1580156109e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a04919061231f565b80610a8e5750600054604051630c68ba2160e01b81526101009091046001600160a01b031690630c68ba2190610a3e9033906004016123f0565b60206040518083038186803b158015610a5657600080fd5b505afa158015610a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8e919061231f565b610aaa5760405162461bcd60e51b81526004016107b29061262e565b610ab26117a3565b565b4790565b600080610ac483611811565b9050610acf81611833565b9150610ad96110ce565b15610ae45750610afa565b610af682610af183611844565b6118f6565b9150505b919050565b60005460ff1690565b6000610b12610636565b610b1e5750600061063c565b60055460045442038181116107bb5792915050565b6000610b3d611405565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610b6891906123f0565b60206040518083038186803b158015610b8057600080fd5b505afa158015610b94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb891906123cb565b905090565b610bc5611fdc565b610bdd82610bd161190d565b9063ffffffff61192f16565b92915050565b60045481565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b890610c1d9033906004016123f0565b60206040518083038186803b158015610c3557600080fd5b505afa158015610c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6d919061231f565b610c895760405162461bcd60e51b81526004016107b2906127a2565b61097d81611966565b6001546001600160a01b031681565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b890610cd59033906004016123f0565b60206040518083038186803b158015610ced57600080fd5b505afa158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d25919061231f565b610d415760405162461bcd60e51b81526004016107b2906127a2565b60008054610100600160a81b0319166101006001600160a01b03841690810291909117825560405190917fad9400e618eb1344fde53db22397a1b82c765527ecbba3a5c86bcac15090828b91a250565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b890610dc59033906004016123f0565b60206040518083038186803b158015610ddd57600080fd5b505afa158015610df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e15919061231f565b80610e9f5750600054604051630c68ba2160e01b81526101009091046001600160a01b031690630c68ba2190610e4f9033906004016123f0565b60206040518083038186803b158015610e6757600080fd5b505afa158015610e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9f919061231f565b610ebb5760405162461bcd60e51b81526004016107b29061262e565b610ab26119b0565b60008151835114610ee65760405162461bcd60e51b81526004016107b290612825565b6000805b8351811015610f2357610f19848281518110610f0257fe5b602002602001015183611a0b90919063ffffffff16565b9150600101610eea565b506127108114610f455760405162461bcd60e51b81526004016107b29061255f565b5060019392505050565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639711ac346040518163ffffffff1660e01b815260040160206040518083038186803b158015610f9e57600080fd5b505afa158015610fb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd6919061231f565b610ff25760405162461bcd60e51b81526004016107b2906124fc565b610ffa610aff565b156110175760405162461bcd60e51b81526004016107b2906126b2565b8134146110365760405162461bcd60e51b81526004016107b290612754565b6110408284611a30565b9392505050565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639a9ba4da6040518163ffffffff1660e01b815260040160206040518083038186803b15801561109657600080fd5b505afa1580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb891906121ac565b600654600754101590565b600060019054906101000a90046001600160a01b03166001600160a01b0316639711ac346040518163ffffffff1660e01b815260040160206040518083038186803b15801561112757600080fd5b505afa15801561113b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115f919061231f565b61117b5760405162461bcd60e51b81526004016107b2906124fc565b611183610aff565b156111a05760405162461bcd60e51b81526004016107b2906126b2565b6111a933611aff565b158061123d57506111b86116b0565b6001600160a01b03166384bb0a6b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111f057600080fd5b505afa158015611204573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122891906121ac565b6001600160a01b0316336001600160a01b0316145b6112595760405162461bcd60e51b81526004016107b2906127e3565b6000611263610ab4565b9050806112825760405162461bcd60e51b81526004016107b2906125a4565b61128b81611b05565b611293611b85565b336001600160a01b03167f249d8eb76d5a22983620d741de2470148d1a9a26ab923aec4262770690d11ebc826040516112cc919061288c565b60405180910390a250565b60006112e1610b08565b60055403905090565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b89061131e9033906004016123f0565b60206040518083038186803b15801561133657600080fd5b505afa15801561134a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136e919061231f565b61138a5760405162461bcd60e51b81526004016107b2906127a2565b61271081106113ab5760405162461bcd60e51b81526004016107b2906125db565b60088190556040517fd97e0c56536b665b7cc4a52c4b58182120a828b6b662698e2775b2b7214c64f8906113e090839061288c565b60405180910390a150565b60006113f56112d7565b15905090565b6000610b3d611047565b60008060019054906101000a90046001600160a01b03166001600160a01b031663b86677fe6040518163ffffffff1660e01b815260040160206040518083038186803b15801561109657600080fd5b60095481565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b89061148e9033906004016123f0565b60206040518083038186803b1580156114a657600080fd5b505afa1580156114ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114de919061231f565b6114fa5760405162461bcd60e51b81526004016107b2906127a2565b60098190556040517fd7d362261d11eb869f83c194ca379ca6d336bca661dde0896f0257a5a339986f906113e090839061288c565b6001546040805163a2e6204560e01b815290516000926001600160a01b03169163a2e6204591600480830192602092919082900301818787803b15801561157557600080fd5b505af1158015611589573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb8919061231f565b600054604051631c86b03760e31b81526101009091046001600160a01b03169063e43581b8906115e19033906004016123f0565b60206040518083038186803b1580156115f957600080fd5b505afa15801561160d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611631919061231f565b61164d5760405162461bcd60e51b81526004016107b2906127a2565b61097d81611bff565b60075481565b611664611fdc565b61166c6110ce565b156116975761169061167c611c34565b611684610708565b9063ffffffff611c5516565b905061063c565b610bb86116a2611c83565b610bd1610708565b60085481565b60005461010090046001600160a01b031690565b60065481565b6116d2611fdc565b60006116dd83611811565b905060006116ea84610ab8565b90506116f68282611caa565b949350505050565b6117088282610ec3565b50815161171c906003906020850190611fef565b508051611730906002906020840190612054565b507fbef57aa97c9fb646a566800652d67ee461974b0a5f4b40f8be3f875d44638a4f828260405161176292919061241d565b60405180910390a15050565b60068190556040517faceab8a6989ecc545e5a14983924930ea43e5eb96f4d7cd5fda33468b83d9bc5906113e090839061288c565b6117ab610aff565b6117c75760405162461bcd60e51b81526004016107b290612531565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6117fa611cd0565b60405161180791906123f0565b60405180910390a1565b6000610bdd61182e83611822610708565b9063ffffffff611cd416565b611cfb565b6000610bdd61182e83611822611c34565b600080611852600754611d18565b90506000611876611869838063ffffffff611d4a16565b839063ffffffff611d4a16565b905060006118cf61188683611d84565b60026118bb61189e611899600654611d18565b611d84565b6118af8a600363ffffffff611d4a16565b9063ffffffff611d4a16565b816118c257fe5b049063ffffffff611a0b16565b90506118ed8360026118e084611d8f565b0a9063ffffffff611de516565b95945050505050565b6000818310156119065781611040565b5090919050565b611915611fdc565b506040805160208101909152670de0b6b3a7640000815290565b611937611fdc565b604051806020016040528061195d8560000151670de0b6b3a76400008660000151611e27565b90529392505050565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fc17757c327b55fd7741523e1dd00ff52d2a125e38254b540926d1de3a3c9bfa990600090a250565b6119b8610aff565b156119d55760405162461bcd60e51b81526004016107b2906126b2565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117fa611cd0565b6000828201838110156110405760405162461bcd60e51b81526004016107b29061267b565b6000611a3a61152f565b50611a4483610ab8565b9050611a4f81611e49565b611a57611047565b6001600160a01b03166340c10f1983836040518363ffffffff1660e01b8152600401611a84929190612404565b600060405180830381600087803b158015611a9e57600080fd5b505af1158015611ab2573d6000803e3d6000fd5b50505050816001600160a01b03167f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c8483604051611af1929190612895565b60405180910390a292915050565b3b151590565b61271060005b600254811015611b8057600082611b4260028481548110611b2857fe5b906000526020600020015486611d4a90919063ffffffff16565b81611b4957fe5b049050611b778160038481548110611b5d57fe5b6000918252602090912001546001600160a01b0316611e62565b50600101611b0b565b505050565b611b8d6113eb565b15610ab257611b9a611ec6565b611ba2611047565b6001600160a01b03166340c10f19336009546040518363ffffffff1660e01b8152600401611bd1929190612404565b600060405180830381600087803b158015611beb57600080fd5b505af11580156108ce573d6000803e3d6000fd5b60058190556040517fef01a748b5b8a4f1d48b88861f6d361d7391ad2bbed27ff97d762889ca80d737906113e090839061288c565b611c3c611fdc565b60085461271090611c4f90820382611caa565b91505090565b611c5d611fdc565b604051806020016040528061195d85600001518560000151670de0b6b3a7640000611e27565b611c8b611fdc565b610bb8611c9c611899600754611d18565b611caa611899600654611d18565b611cb2611fdc565b604051806020016040528061195d85670de0b6b3a764000086611e27565b3390565b611cdc611fdc565b60408051602081019091528351819061195d908563ffffffff611d4a16565b8051600090610bdd90670de0b6b3a764000063ffffffff611efa16565b6000610bdd7f0000000000000000000000000000000000000000001b929b9eed599ba15555558363ffffffff611a0b16565b600082611d5957506000610bdd565b82820282848281611d6657fe5b04146110405760405162461bcd60e51b81526004016107b290612713565b6000610bdd82611f3c565b60006007821115611dd7575080600160038204015b81811015611dd1578091506003816002028283028581611dc057fe5b040181611dc957fe5b049050611da4565b50610afa565b8115610afa57506001919050565b600061104083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f79565b60006116f682611e3d868663ffffffff611d4a16565b9063ffffffff611efa16565b600754611e5c908263ffffffff611a0b16565b60075550565b60405163b6b55f2560e01b81526001600160a01b0382169063b6b55f25908490611e9090829060040161288c565b6000604051808303818588803b158015611ea957600080fd5b505af1158015611ebd573d6000803e3d6000fd5b50505050505050565b4260048190556040517fd1dbb2ce8081405078443ef34dae718285114121a39370b14ef01b9d2b0a2083916118079161288c565b600061104083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611fa5565b60006003821115611dd7575080600160028204015b81811015611dd157809150600281828581611f6857fe5b040181611f7157fe5b049050611f51565b60008184841115611f9d5760405162461bcd60e51b81526004016107b291906124a9565b505050900390565b60008183611fc65760405162461bcd60e51b81526004016107b291906124a9565b506000838581611fd257fe5b0495945050505050565b6040518060200160405280600081525090565b828054828255906000526020600020908101928215612044579160200282015b8281111561204457825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061200f565b5061205092915061209b565b5090565b82805482825590600052602060002090810192821561208f579160200282015b8281111561208f578251825591602001919060010190612074565b506120509291506120bf565b61063c91905b808211156120505780546001600160a01b03191681556001016120a1565b61063c91905b8082111561205057600081556001016120c5565b60008083601f8401126120ea578182fd5b50813567ffffffffffffffff811115612101578182fd5b602083019150836020808302850101111561211b57600080fd5b9250929050565b600082601f830112612132578081fd5b8135612145612140826128ca565b6128a3565b81815291506020808301908481018184028601820187101561216657600080fd5b60005b8481101561218557813584529282019290820190600101612169565b505050505092915050565b6000602082840312156121a1578081fd5b8135611040816128ea565b6000602082840312156121bd578081fd5b8151611040816128ea565b600080604083850312156121da578081fd5b82356121e5816128ea565b946020939093013593505050565b60008060008060408587031215612208578182fd5b843567ffffffffffffffff8082111561221f578384fd5b61222b888389016120d9565b90965094506020870135915080821115612243578384fd5b50612250878288016120d9565b95989497509550505050565b6000806040838503121561226e578182fd5b823567ffffffffffffffff80821115612285578384fd5b81850186601f820112612296578485fd5b803592506122a6612140846128ca565b80848252602080830192508084018a8283890287010111156122c6578889fd5b8894505b868510156122f15780356122dd816128ea565b8452600194909401939281019281016122ca565b509096508701359350505080821115612308578283fd5b5061231585828601612122565b9150509250929050565b600060208284031215612330578081fd5b81518015158114611040578182fd5b600060208284031215612350578081fd5b61235a60206128a3565b9135825250919050565b6000808284036040811215612377578283fd5b6020811215612384578283fd5b5061238f60206128a3565b83518152602084015190925080151581146123a8578182fd5b809150509250929050565b6000602082840312156123c4578081fd5b5035919050565b6000602082840312156123dc578081fd5b5051919050565b6001600160a01b03169052565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b604080825283519082018190526000906020906060840190828701845b8281101561245d5761244d8483516123e3565b928401929084019060010161243a565b50505083810382850152845180825285830191830190845b8181101561249157835183529284019291840191600101612475565b5090979650505050505050565b901515815260200190565b6000602080835283518082850152825b818110156124d5578581018301518582016040015282016124b9565b818111156124e65783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f436f72655265663a205374696c6c20696e2047656e6573697320506572696f64604082015260600190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526025908201527f50435653706c69747465723a20726174696f7320646f206e6f7420746f74616c604082015264203130302560d81b606082015260800190565b60208082526019908201527f426f6e64696e6743757276653a204e6f205043562068656c6400000000000000604082015260600190565b60208082526033908201527f426f6e64696e6743757276653a204275666665722065786365656473206f72206040820152726d617463686573206772616e756c617269747960681b606082015260800190565b6020808252602d908201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160408201526c371037b91033b7bb32b93737b960991b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526019908201527f4f7261636c655265663a206f7261636c6520696e76616c696400000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252602e908201527f426f6e64696e672043757276653a2053656e742076616c756520646f6573206e60408201526d1bdd08195c5d585b081a5b9c1d5d60921b606082015260800190565b60208082526021908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f6040820152603960f91b606082015260800190565b60208082526022908201527f426f6e64696e6743757276653a2043616c6c6572206973206120636f6e74726160408201526118dd60f21b606082015260800190565b6020808252603a908201527f50435653706c69747465723a20504356204465706f7369747320616e6420726160408201527f74696f732061726520646966666572656e74206c656e67746873000000000000606082015260800190565b9051815260200190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff811182821017156128c257600080fd5b604052919050565b600067ffffffffffffffff8211156128e0578081fd5b5060209081020190565b6001600160a01b038116811461097d57600080fdfea2646970667358221220ef2fc7778055bb83b8e70d3d5fe27ed5a00dd55d39c82583d6b7966b11920a3064736f6c63430006060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000052b7d2dcc80cd2e40000000000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000087f35bd241e41fc28e43f0e8c58d283dd55bd65000000000000000000000000000000000000000000000000000000000001518000000000000000000000000000000000000000000000001b1ae4d6e2ef50000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009b0c6299d08fe823f2c0598d97a1141507e4ad8600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710
-----Decoded View---------------
Arg [0] : scale (uint256): 100000000000000000000000000
Arg [1] : core (address): 0x8d5ED43dCa8C2F7dFB20CF7b53CC7E593635d7b9
Arg [2] : pcvDeposits (address[]): 0x9b0C6299D08fe823f2C0598d97A1141507e4ad86
Arg [3] : ratios (uint256[]): 10000
Arg [4] : oracle (address): 0x087F35bd241e41Fc28E43f0E8C58d283DD55bD65
Arg [5] : duration (uint256): 86400
Arg [6] : incentive (uint256): 500000000000000000000
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [1] : 0000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b9
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 000000000000000000000000087f35bd241e41fc28e43f0e8c58d283dd55bd65
Arg [5] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [6] : 00000000000000000000000000000000000000000000001b1ae4d6e2ef500000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 0000000000000000000000009b0c6299d08fe823f2c0598d97a1141507e4ad86
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 0000000000000000000000000000000000000000000000000000000000002710
Deployed Bytecode Sourcemap
65357:2632:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;54523:92:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54523:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;56995:51;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56995:51:0;;;:::i;:::-;;;;;;;;18349:161;;5:9:-1;2:2;;;27:1;24;17:12;2:2;18349:161:0;;;:::i;:::-;;;;;;;;;53059:23;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53059:23:0;;;:::i;43915:215::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;43915:215:0;;;:::i;:::-;;;;;;;;59084:192;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;59084:192:0;;;;;;;;:::i;:::-;;58141:101;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;58141:101:0;;;;;;;;:::i;39438:87::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;39438:87:0;;;:::i;66616:113::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;66616:113:0;;;:::i;60739:447::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;60739:447:0;;;;;;;;:::i;35375:86::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;35375:86:0;;;:::i;54110:405::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54110:405:0;;;:::i;40427:121::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;40427:121:0;;;:::i;43351:185::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;43351:185:0;;;;;;;;:::i;52976:24::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52976:24:0;;;:::i;43059:105::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;43059:105:0;;;;;;;;:::i;42685:30::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;42685:30:0;;;:::i;:::-;;;;;;;;39109:132;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;39109:132:0;;;;;;;;:::i;39297:83::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;39297:83:0;;;:::i;17690:586::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;17690:586:0;;;;;;;;:::i;66244:364::-;;;;;;;;;:::i;39837:88::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;39837:88:0;;;:::i;59812:104::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;59812:104:0;;;:::i;59325:410::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;59325:410:0;;;:::i;53793:163::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53793:163:0;;;:::i;58303:279::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;58303:279:0;;;;;;;;:::i;53600:96::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53600:96:0;;;:::i;40224:117::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;40224:117:0;;;:::i;40046:96::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;40046:96:0;;;:::i;57124:39::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;57124:39:0;;;:::i;58642:193::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;58642:193:0;;;;;;;;:::i;43640:96::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;43640:96:0;;;:::i;58898:125::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;58898:125:0;;;;;;;;:::i;56798:38::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56798:38:0;;;:::i;60160:281::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;60160:281:0;;;:::i;56952:36::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56952:36:0;;;:::i;39636:84::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;39636:84:0;;;:::i;56665:29::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56665:29:0;;;:::i;61478:321::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;-1:-1;61478:321:0;;;;;;;;:::i;54523:92::-;54593:9;;:14;;54523:92;;:::o;56995:51::-;57040:6;56995:51;:::o;18349:161::-;18422:16;18440;18482:11;18495:6;18474:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18474:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18349:161;;:::o;53059:23::-;;;;:::o;43915:215::-;43960:19;;:::i;:::-;43993:24;;:::i;:::-;44033:6;;:13;;;-1:-1:-1;;;44033:13:0;;;;44019:10;;-1:-1:-1;;;;;44033:6:0;;:11;;:13;;;;;;;;;;;:6;:13;;;2:2:-1;;;;27:1;24;17:12;2:2;44033:13:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;44033:13:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;44033:13:0;;;;;;;;;43992:54;;;;44065:5;44057:43;;;;-1:-1:-1;;;44057:43:0;;;;;;;;;;;;;;;;;-1:-1:-1;44118:4:0;-1:-1:-1;43915:215:0;:::o;59084:192::-;38037:5;;:28;;-1:-1:-1;;;38037:28:0;;:5;;;;-1:-1:-1;;;;;38037:5:0;;:16;;:28;;38054:10;;38037:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38037:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38037:28: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;38037:28:0;;;;;;;;;38015:111;;;;-1:-1:-1;;;38015:111:0;;;;;;;;;59233:35:::1;59248:11;;59233:35;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16:::0;::::1;74:27:::0;;;;-1:-1;;59233:35:0::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;-1:-1:-1;59261:6:0;;-1:-1:-1;59261:6:0;;;;59233:35;::::1;::::0;59261:6;;59233:35;59261:6;59233:35;1:33:-1::1;99:1;81:16:::0;::::1;74:27:::0;;;;-1:-1;59233:14:0::1;::::0;-1:-1:-1;;;59233:35:0:i:1;:::-;59084:192:::0;;;;:::o;58141:101::-;38037:5;;:28;;-1:-1:-1;;;38037:28:0;;:5;;;;-1:-1:-1;;;;;38037:5:0;;:16;;:28;;38054:10;;38037:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38037:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38037:28: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;38037:28:0;;;;;;;;;38015:111;;;;-1:-1:-1;;;38015:111:0;;;;;;;;;58217:17:::1;58227:6;58217:9;:17::i;:::-;58141:101:::0;:::o;39438:87::-;38221:5;;:28;;-1:-1:-1;;;38221:28:0;;:5;;;;-1:-1:-1;;;;;38221:5:0;;:16;;:28;;38238:10;;38221:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38221:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38221:28: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;38221:28:0;;;;;;;;;:73;;;-1:-1:-1;38266:5:0;;:28;;-1:-1:-1;;;38266:28:0;;:5;;;;-1:-1:-1;;;;;38266:5:0;;:16;;:28;;38283:10;;38266:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38266:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38266:28: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;38266:28:0;;;;;;;;;38199:168;;;;-1:-1:-1;;;38199:168:0;;;;;;;;;39507:10:::1;:8;:10::i;:::-;39438:87::o:0;66616:113::-;66700:21;66616:113;:::o;60739:447::-;60845:17;60880:22;60905:28;60924:8;60905:18;:28::i;:::-;60880:53;;60956:40;60981:14;60956:24;:40::i;:::-;60944:52;;61011:9;:7;:9::i;:::-;61007:58;;;-1:-1:-1;61037:16:0;;61007:58;61082:64;61093:9;61104:41;61130:14;61104:25;:41::i;:::-;61082:10;:64::i;:::-;61075:71;;;60739:447;;;;:::o;35375:86::-;35422:4;35446:7;;;35375:86;:::o;54110:405::-;54157:7;54182:15;:13;:15::i;:::-;54177:74;;-1:-1:-1;54221:1:0;54214:8;;54177:74;54281:8;;54394:9;;54376:15;:27;54460:22;;;:47;;54497:10;54110:405;-1:-1:-1;;54110:405:0:o;40427:121::-;40481:7;40508;:5;:7::i;:::-;-1:-1:-1;;;;;40508:17:0;;40534:4;40508:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;40508:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40508:32:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;40508:32:0;;;;;;;;;40501:39;;40427:121;:::o;43351:185::-;43460:19;;:::i;:::-;43504:24;43522:5;43504:13;:11;:13::i;:::-;:17;:24;:17;:24;:::i;:::-;43497:31;43351:185;-1:-1:-1;;43351:185:0:o;52976:24::-;;;;:::o;43059:105::-;38037:5;;:28;;-1:-1:-1;;;38037:28:0;;:5;;;;-1:-1:-1;;;;;38037:5:0;;:16;;:28;;38054:10;;38037:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38037:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38037:28: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;38037:28:0;;;;;;;;;38015:111;;;;-1:-1:-1;;;38015:111:0;;;;;;;;;43137:19:::1;43148:7;43137:10;:19::i;42685:30::-:0;;;-1:-1:-1;;;;;42685:30:0;;:::o;39109:132::-;38037:5;;:28;;-1:-1:-1;;;38037:28:0;;:5;;;;-1:-1:-1;;;;;38037:5:0;;:16;;:28;;38054:10;;38037:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38037:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38037:28: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;38037:28:0;;;;;;;;;38015:111;;;;-1:-1:-1;;;38015:111:0;;;;;;;;;39182:5:::1;:19:::0;;-1:-1:-1;;;;;;39182:19:0::1;;-1:-1:-1::0;;;;;39182:19:0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;39217:16:::1;::::0;39182:19;;39217:16:::1;::::0;::::1;39109:132:::0;:::o;39297:83::-;38221:5;;:28;;-1:-1:-1;;;38221:28:0;;:5;;;;-1:-1:-1;;;;;38221:5:0;;:16;;:28;;38238:10;;38221:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38221:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38221:28: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;38221:28:0;;;;;;;;;:73;;;-1:-1:-1;38266:5:0;;:28;;-1:-1:-1;;;38266:28:0;;:5;;;;-1:-1:-1;;;;;38266:5:0;;:16;;:28;;38283:10;;38266:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38266:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38266:28: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;38266:28:0;;;;;;;;;38199:168;;;;-1:-1:-1;;;38199:168:0;;;;;;;;;39364:8:::1;:6;:8::i;17690:586::-:0;17818:4;17880:7;:14;17857:12;:19;:37;17835:145;;;;-1:-1:-1;;;17835:145:0;;;;;;;;;17993:13;18022:9;18017:97;18037:7;:14;18033:1;:18;18017:97;;;18081:21;18091:7;18099:1;18091:10;;;;;;;;;;;;;;18081:5;:9;;:21;;;;:::i;:::-;18073:29;-1:-1:-1;18053:3:0;;18017:97;;;;16922:6;18148:5;:31;18126:118;;;;-1:-1:-1;;;18126:118:0;;;;;;;;;-1:-1:-1;18264:4:0;;17690:586;-1:-1:-1;;;17690:586:0:o;66244:364::-;66407:17;38762:5;;;;;;;;;-1:-1:-1;;;;;38762:5:0;-1:-1:-1;;;;;38762:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38762:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38762:32:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;38762:32:0;;;;;;;;;38740:114;;;;-1:-1:-1;;;38740:114:0;;;;;;;;;35701:8:::1;:6;:8::i;:::-;35700:9;35692:38;;;;-1:-1:-1::0;;;35692:38:0::1;;;;;;;;;66477:8:::2;66464:9;:21;66442:117;;;;-1:-1:-1::0;;;66442:117:0::2;;;;;;;;;66577:23;66587:8;66597:2;66577:9;:23::i;:::-;66570:30:::0;66244:364;-1:-1:-1;;;66244:364:0:o;39837:88::-;39882:4;39906:5;;;;;;;;;-1:-1:-1;;;;;39906:5:0;-1:-1:-1;;;;;39906:9:0;;:11;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;39906:11:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39906:11: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;39906:11:0;;;;;;;;59812:104;59903:5;;59885:14;;:23;;59812:104;:::o;59325:410::-;38762:5;;;;;;;;;-1:-1:-1;;;;;38762:5:0;-1:-1:-1;;;;;38762:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38762:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38762:32:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;38762:32:0;;;;;;;;;38740:114;;;;-1:-1:-1;;;38740:114:0;;;;;;;;;35701:8:::1;:6;:8::i;:::-;35700:9;35692:38;;;;-1:-1:-1::0;;;35692:38:0::1;;;;;;;;;59410:32:::2;59431:10;59410:20;:32::i;:::-;59409:33;59408:74;;;;59461:6;:4;:6::i;:::-;-1:-1:-1::0;;;;;59461:19:0::2;;:21;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::2;2:2;59461:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;59461:21: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;59461:21:0;;;;;;;;;-1:-1:-1::0;;;;;59447:35:0::2;:10;-1:-1:-1::0;;;;;59447:35:0::2;;59408:74;59400:121;;;;-1:-1:-1::0;;;59400:121:0::2;;;;;;;;;59532:14;59549:17;:15;:17::i;:::-;59532:34:::0;-1:-1:-1;59585:11:0;59577:49:::2;;;;-1:-1:-1::0;;;59577:49:0::2;;;;;;;;;59639:17;59649:6;59639:9;:17::i;:::-;59667:14;:12;:14::i;:::-;59708:10;-1:-1:-1::0;;;;;59699:28:0::2;;59720:6;59699:28;;;;;;;;;;;;;;;35741:1;59325:410::o:0;53793:163::-;53839:7;53877:16;:14;:16::i;:::-;53866:8;;:27;53859:34;;53793:163;:::o;58303:279::-;38037:5;;:28;;-1:-1:-1;;;38037:28:0;;:5;;;;-1:-1:-1;;;;;38037:5:0;;:16;;:28;;38054:10;;38037:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38037:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38037:28: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;38037:28:0;;;;;;;;;38015:111;;;;-1:-1:-1;;;38015:111:0;;;;;;;;;57040:6:::1;58403:7;:28;58381:129;;;;-1:-1:-1::0;;;58381:129:0::1;;;;;;;;;58521:6;:16:::0;;;58553:21:::1;::::0;::::1;::::0;::::1;::::0;58530:7;;58553:21:::1;;;;;;;;;;58303:279:::0;:::o;53600:96::-;53644:4;53668:15;:13;:15::i;:::-;:20;;-1:-1:-1;53600:96:0;:::o;40224:117::-;40276:7;40303:5;:3;:5::i;40046:96::-;40093:8;40121:5;;;;;;;;;-1:-1:-1;;;;;40121:5:0;-1:-1:-1;;;;;40121:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;57124:39:0;;;;:::o;58642:193::-;38037:5;;:28;;-1:-1:-1;;;38037:28:0;;:5;;;;-1:-1:-1;;;;;38037:5:0;;:16;;:28;;38054:10;;38037:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38037:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38037:28: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;38037:28:0;;;;;;;;;38015:111;;;;-1:-1:-1;;;38015:111:0;;;;;;;;;58738:15:::1;:34:::0;;;58788:39:::1;::::0;::::1;::::0;::::1;::::0;58756:16;;58788:39:::1;;43640:96:::0;43713:6;;:15;;;-1:-1:-1;;;43713:15:0;;;;43689:4;;-1:-1:-1;;;;;43713:6:0;;:13;;:15;;;;;;;;;;;;;;43689:4;43713:6;:15;;;2:2:-1;;;;27:1;24;17:12;2:2;43713:15:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43713:15: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;43713:15:0;;;;;;;;58898:125;38037:5;;:28;;-1:-1:-1;;;38037:28:0;;:5;;;;-1:-1:-1;;;;;38037:5:0;;:16;;:28;;38054:10;;38037:28;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;38037:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38037:28: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;38037:28:0;;;;;;;;;38015:111;;;;-1:-1:-1;;;38015:111:0;;;;;;;;;58991:24:::1;59004:10;58991:12;:24::i;56798:38::-:0;;;;:::o;60160:281::-;60253:19;;:::i;:::-;60294:9;:7;:9::i;:::-;60290:82;;;60327:33;60337:22;:20;:22::i;:::-;60327:5;:3;:5::i;:::-;:9;:33;:9;:33;:::i;:::-;60320:40;;;;60290:82;60389:44;60399:33;:31;:33::i;:::-;60389:5;:3;:5::i;56952:36::-;;;;:::o;39636:84::-;39682:5;39707;;;;-1:-1:-1;;;;;39707:5:0;;39636:84::o;56665:29::-;;;;:::o;61478:321::-;61590:19;;:::i;:::-;61627:22;61652:28;61671:8;61652:18;:28::i;:::-;61627:53;;61691:17;61711:22;61724:8;61711:12;:22::i;:::-;61691:42;;61751:40;61765:14;61781:9;61751:13;:40::i;:::-;61744:47;61478:321;-1:-1:-1;;;;61478:321:0:o;19007:295::-;19133:38;19149:12;19163:7;19133:15;:38::i;:::-;-1:-1:-1;19184:26:0;;;;:11;;:26;;;;;:::i;:::-;-1:-1:-1;19221:16:0;;;;:6;;:16;;;;;:::i;:::-;;19255:39;19272:12;19286:7;19255:39;;;;;;;;;;;;;;;;19007:295;;:::o;62753:112::-;62808:5;:14;;;62838:19;;;;;;62816:6;;62838:19;;36434:120;35978:8;:6;:8::i;:::-;35970:41;;;;-1:-1:-1;;;35970:41:0;;;;;;;;;36503:5:::1;36493:15:::0;;-1:-1:-1;;36493:15:0::1;::::0;;36524:22:::1;36533:12;:10;:12::i;:::-;36524:22;;;;;;;;;;;;;;;36434:120::o:0;62034:167::-;62130:7;62162:31;:19;62172:8;62162:5;:3;:5::i;:::-;:9;:19;:9;:19;:::i;:::-;:29;:31::i;64117:190::-;64219:7;64251:48;:36;64278:8;64251:22;:20;:22::i;66854:541::-;66983:17;67018:18;67039:22;67046:14;;67039:6;:22::i;:::-;67018:43;-1:-1:-1;67081:23:0;67107:42;67122:26;67018:43;;67122:26;:14;:26;:::i;:::-;67107:10;;:42;:14;:42;:::i;:::-;67081:68;;67160:16;67192:115;67270:22;:15;:20;:22::i;:::-;67245:1;67193:49;67221:20;:13;67228:5;;67221:6;:13::i;:::-;:18;:20::i;:::-;67193:23;:16;67214:1;67193:23;:20;:23;:::i;:::-;:27;:49;:27;:49;:::i;:::-;:53;;;;;;;67192:115;:59;:115;:::i;:::-;67160:147;;67325:42;67356:10;67349:1;67326:19;:8;:17;:19::i;:::-;:24;;67325:42;:30;:42;:::i;:::-;67318:49;66854:541;-1:-1:-1;;;;;66854:541:0:o;55333:107::-;55391:7;55423:1;55418;:6;;:14;;55431:1;55418:14;;;-1:-1:-1;55427:1:0;;55333:107;-1:-1:-1;55333:107:0:o;7081:118::-;7134:11;;:::i;:::-;-1:-1:-1;7170:21:0;;;;;;;;;6791:6;7170:21;;7081:118;:::o;9865:207::-;9974:11;;:::i;:::-;10010:54;;;;;;;;10024:37;10035:4;:10;;;6791:6;10053:1;:7;;;10024:10;:37::i;:::-;10010:54;;10003:61;9865:207;-1:-1:-1;;;9865:207:0:o;44138:127::-;44195:6;:25;;-1:-1:-1;;;;;;44195:25:0;-1:-1:-1;;;;;44195:25:0;;;;;;;;44236:21;;;;-1:-1:-1;;44236:21:0;44138:127;:::o;36175:118::-;35701:8;:6;:8::i;:::-;35700:9;35692:38;;;;-1:-1:-1;;;35692:38:0;;;;;;;;;36235:7:::1;:14:::0;;-1:-1:-1;;36235:14:0::1;36245:4;36235:14;::::0;;36265:20:::1;36272:12;:10;:12::i;1240:181::-:0;1298:7;1330:5;;;1354:6;;;;1346:46;;;;-1:-1:-1;;;1346:46:0;;;;;;;;62265:351;62350:17;62385:14;:12;:14::i;:::-;;62424:22;62437:8;62424:12;:22::i;:::-;62412:34;;62457:35;62482:9;62457:24;:35::i;:::-;62503:5;:3;:5::i;:::-;-1:-1:-1;;;;;62503:10:0;;62514:2;62518:9;62503:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;62503:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62503:25:0;;;;62555:2;-1:-1:-1;;;;;62546:33:0;;62559:8;62569:9;62546:33;;;;;;;;;;;;;;;;62265:351;;;;:::o;25838:422::-;26205:20;26244:8;;;25838:422::o;19441:288::-;16922:6;19495:19;19550:172;19570:6;:13;19566:17;;19550:172;;;19605:14;19645:11;19622:20;19632:6;19639:1;19632:9;;;;;;;;;;;;;;;;19622:5;:9;;:20;;;;:::i;:::-;:34;;;;;;19605:51;;19671:39;19687:6;19695:11;19707:1;19695:14;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19695:14:0;19671:15;:39::i;:::-;-1:-1:-1;19585:3:0;;19550:172;;;;19441:288;;:::o;62943:187::-;62999:13;:11;:13::i;:::-;62995:128;;;63029:12;:10;:12::i;:::-;63072:5;:3;:5::i;:::-;-1:-1:-1;;;;;63072:10:0;;63083;63095:15;;63072:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;63072:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;54863:127:0;54921:8;:20;;;54957:25;;;;;;54932:9;;54957:25;;63816:293;63871:19;;:::i;:::-;64081:6;;57040;;64053:48;;64067:20;;57040:6;64053:13;:48::i;:::-;64046:55;;;63816:293;:::o;9650:207::-;9759:11;;:::i;:::-;9795:54;;;;;;;;9809:37;9820:4;:10;;;9832:1;:7;;;6791:6;9809:10;:37::i;67456:242::-;67567:19;;:::i;:::-;67624:66;67638:29;:22;67645:14;;67638:6;:22::i;:29::-;67669:20;:13;67676:5;;67669:6;:13::i;:20::-;7466:11;;:::i;:::-;7502:39;;;;;;;;7516:22;7527:1;6791:6;7536:1;7516:10;:22::i;33816:106::-;33904:10;33816:106;:::o;8250:183::-;8355:11;;:::i;:::-;8391:34;;;;;;;;;8405:10;;8391:34;;8405:17;;8420:1;8405:17;:14;:17;:::i;10895:115::-;10982:10;;10955:7;;10982:20;;6791:6;10982:20;:14;:20;:::i;67889:97::-;67939:7;67966:12;:5;67976:1;67966:12;:9;:12;:::i;2594:471::-;2652:7;2897:6;2893:47;;-1:-1:-1;2927:1:0;2920:8;;2893:47;2964:5;;;2968:1;2964;:5;:1;2988:5;;;;;:10;2980:56;;;;-1:-1:-1;;;2980:56:0;;;;;;;;45582:103;45630:7;45657:20;45675:1;45657:17;:20::i;45246:328::-;45298:9;45328:1;45324;:5;45320:247;;;-1:-1:-1;45350:1:0;45386;45382;45378:5;;:9;45402:104;45413:1;45409;:5;45402:104;;;45439:1;45435:5;;45489:1;45483;45479;:5;45473:1;45469;:5;45464:1;:11;;;;;;:21;45463:27;;;;;;45459:31;;45402:104;;;45320:247;;;;45527:6;;45523:44;;-1:-1:-1;45554:1:0;45246:328;;;:::o;1704:136::-;1762:7;1789:43;1793:1;1796;1789:43;;;;;;;;;;;;;;;;;:3;:43::i;11067:225::-;11214:7;11246:38;11272:11;11246:21;:6;11257:9;11246:21;:10;:21;:::i;:::-;:25;:38;:25;:38;:::i;62624:121::-;62711:14;;:26;;62730:6;62711:26;:18;:26;:::i;:::-;62694:14;:43;-1:-1:-1;62624:121:0:o;67706:175::-;67819:54;;-1:-1:-1;;;67819:54:0;;-1:-1:-1;;;;;67819:31:0;;;;;67858:6;;67819:54;;67858:6;;67819:54;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;67819:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;67819:54:0;;;;;67706:175;;:::o;54623:232::-;54732:15;54720:9;:27;;;54820;;;;;;;;3541:132;3599:7;3626:39;3630:1;3633;3626:39;;;;;;;;;;;;;;;;;:3;:39::i;44626:326::-;44671:6;44698:1;44694;:5;44690:232;;;-1:-1:-1;44720:1:0;44753;44749;44745:5;;:9;44769:92;44780:1;44776;:5;44769:92;;;44806:1;44802:5;;44844:1;44839;44835;44831;:5;;;;;;:9;44830:15;;;;;;44826:19;;44769:92;;2143:192;2229:7;2265:12;2257:6;;;;2249:29;;;;-1:-1:-1;;;2249:29:0;;;;;;;;;;-1:-1:-1;;;2301:5:0;;;2143:192::o;4169:278::-;4255:7;4290:12;4283:5;4275:28;;;;-1:-1:-1;;;4275:28:0;;;;;;;;;;;4314:9;4330:1;4326;:5;;;;;;;4169:278;-1:-1:-1;;;;;4169:278:0:o;65357:2632::-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;65357:2632:0;-1:-1:-1;;;;;65357:2632:0;;;;;;;;;;;-1:-1:-1;65357:2632:0;;;;;;;-1:-1:-1;65357:2632:0;;;-1:-1:-1;65357:2632:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65357:2632:0;;;-1:-1:-1;65357:2632:0;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;;65357:2632:0;;;;;;;;;;;;;;;;;;;;;;;;;301:352:-1;;;431:3;424:4;416:6;412:17;408:27;398:2;;-1:-1;;439:12;398:2;-1:-1;469:20;;509:18;498:30;;495:2;;;-1:-1;;531:12;495:2;575:4;567:6;563:17;551:29;;626:3;575:4;;610:6;606:17;567:6;592:32;;589:41;586:2;;;643:1;;633:12;586:2;391:262;;;;;;1790:707;;1907:3;1900:4;1892:6;1888:17;1884:27;1874:2;;-1:-1;;1915:12;1874:2;1962:6;1949:20;1984:80;1999:64;2056:6;1999:64;;;1984:80;;;2092:21;;;1975:89;-1:-1;2136:4;2149:14;;;;2124:17;;;2238;;;2229:27;;;;2226:36;-1:-1;2223:2;;;2275:1;;2265:12;2223:2;2300:1;2285:206;2310:6;2307:1;2304:13;2285:206;;;3775:20;;2378:50;;2442:14;;;;2470;;;;2332:1;2325:9;2285:206;;;2289:14;;;;;1867:630;;;;;3986:241;;4090:2;4078:9;4069:7;4065:23;4061:32;4058:2;;;-1:-1;;4096:12;4058:2;85:6;72:20;97:33;124:5;97:33;;4234:263;;4349:2;4337:9;4328:7;4324:23;4320:32;4317:2;;;-1:-1;;4355:12;4317:2;226:6;220:13;238:33;265:5;238:33;;4504:366;;;4625:2;4613:9;4604:7;4600:23;4596:32;4593:2;;;-1:-1;;4631:12;4593:2;85:6;72:20;97:33;124:5;97:33;;;4683:63;4783:2;4822:22;;;;3775:20;;-1:-1;;;4587:283;4877:678;;;;;5068:2;5056:9;5047:7;5043:23;5039:32;5036:2;;;-1:-1;;5074:12;5036:2;5132:17;5119:31;5170:18;;5162:6;5159:30;5156:2;;;-1:-1;;5192:12;5156:2;5230:80;5302:7;5293:6;5282:9;5278:22;5230:80;;;5220:90;;-1:-1;5220:90;-1:-1;5375:2;5360:18;;5347:32;;-1:-1;5388:30;;;5385:2;;;-1:-1;;5421:12;5385:2;;5459:80;5531:7;5522:6;5511:9;5507:22;5459:80;;;5030:525;;;;-1:-1;5449:90;-1:-1;;;;5030:525;5562:638;;;5733:2;5721:9;5712:7;5708:23;5704:32;5701:2;;;-1:-1;;5739:12;5701:2;5797:17;5784:31;5835:18;;5827:6;5824:30;5821:2;;;-1:-1;;5857:12;5821:2;5948:6;5937:9;5933:22;796:3;789:4;781:6;777:17;773:27;763:2;;-1:-1;;804:12;763:2;851:6;838:20;824:34;;873:80;888:64;945:6;888:64;;873:80;959:16;995:6;988:5;981:21;1025:4;;1042:3;1038:14;1031:21;;1025:4;1017:6;1013:17;1147:3;1025:4;;1131:6;1127:17;1017:6;1118:27;;1115:36;1112:2;;;-1:-1;;1154:12;1112:2;-1:-1;1180:10;;1174:206;1199:6;1196:1;1193:13;1174:206;;;85:6;72:20;97:33;124:5;97:33;;;1267:50;;1221:1;1214:9;;;;;1331:14;;;;1359;;1174:206;;;-1:-1;5877:88;;-1:-1;6015:18;;6002:32;;-1:-1;;;6043:30;;;6040:2;;;-1:-1;;6076:12;6040:2;;6106:78;6176:7;6167:6;6156:9;6152:22;6106:78;;;6096:88;;;5695:505;;;;;;6207:257;;6319:2;6307:9;6298:7;6294:23;6290:32;6287:2;;;-1:-1;;6325:12;6287:2;2586:6;2580:13;32397:5;29824:13;29817:21;32375:5;32372:32;32362:2;;-1:-1;;32408:12;7069:283;;7194:2;7182:9;7173:7;7169:23;7165:32;7162:2;;;-1:-1;;7200:12;7162:2;3152:20;7194:2;3152:20;;;3775;;3230:75;;-1:-1;3237:16;7156:196;-1:-1;7156:196;7359:435;;;7497:9;7488:7;7484:23;7509:2;7484:23;7480:32;7477:2;;;-1:-1;;7515:12;7477:2;3480:4;3459:19;3455:30;3452:2;;;-1:-1;;3488:12;3452:2;;3516:20;3480:4;3516:20;;;3923:13;;3594:86;;3480:4;7746:22;;2580:13;3601:16;;-1:-1;29824:13;;29817:21;32372:32;;32362:2;;-1:-1;;32408:12;32362:2;7707:71;;;;7471:323;;;;;;7801:241;;7905:2;7893:9;7884:7;7880:23;7876:32;7873:2;;;-1:-1;;7911:12;7873:2;-1:-1;3775:20;;7867:175;-1:-1;7867:175;8049:263;;8164:2;8152:9;8143:7;8139:23;8135:32;8132:2;;;-1:-1;;8170:12;8132:2;-1:-1;3923:13;;8126:186;-1:-1;8126:186;8832:103;-1:-1;;;;;30137:54;8893:37;;8887:48;17340:213;-1:-1;;;;;30137:54;;;;8893:37;;17458:2;17443:18;;17429:124;17796:340;-1:-1;;;;;30137:54;;;;8762:58;;18122:2;18107:18;;17171:37;17950:2;17935:18;;17921:215;18474:620;18720:2;18734:47;;;28570:12;;18705:18;;;29233:19;;;18474:620;;29282:4;;29273:14;;;;28266;;;18474:620;9501:260;9526:6;9523:1;9520:13;9501:260;;;8407:46;8449:3;9593:6;9587:13;8407:46;;;8473:14;;;;28973;;;;9548:1;9541:9;9501:260;;;-1:-1;;;18941:20;;;18921:18;;;18914:48;28570:12;;29233:19;;;28266:14;;;;29273;;;-1:-1;10230:260;10255:6;10252:1;10249:13;10230:260;;;10316:13;;17171:37;;28973:14;;;;8655;;;;9548:1;10270:9;10230:260;;;-1:-1;18968:116;;18691:403;-1:-1;;;;;;;18691:403;19101:201;29824:13;;29817:21;10585:34;;19213:2;19198:18;;19184:118;20307:301;;20445:2;;20466:17;20459:47;11426:5;28570:12;29245:6;20445:2;20434:9;20430:18;29233:19;-1:-1;31883:101;31897:6;31894:1;31891:13;31883:101;;;31964:11;;;;;31958:18;31945:11;;;29273:14;31945:11;31938:39;31912:10;;31883:101;;;31999:6;31996:1;31993:13;31990:2;;;-1:-1;29273:14;32055:6;20434:9;32046:16;;32039:27;31990:2;-1:-1;32171:7;32155:14;-1:-1;;32151:28;11584:39;;;;29273:14;11584:39;;20416:192;-1:-1;;;20416:192;20615:407;20806:2;20820:47;;;20791:18;;;29233:19;11896:34;29273:14;;;11876:55;11950:12;;;20777:245;21029:407;21220:2;21234:47;;;12201:2;21205:18;;;29233:19;-1:-1;;;29273:14;;;12217:43;12279:12;;;21191:245;21443:407;21634:2;21648:47;;;12530:2;21619:18;;;29233:19;12566:34;29273:14;;;12546:55;-1:-1;;;12621:12;;;12614:29;12662:12;;;21605:245;21857:407;22048:2;22062:47;;;12913:2;22033:18;;;29233:19;12949:27;29273:14;;;12929:48;12996:12;;;22019:245;22271:407;22462:2;22476:47;;;13247:2;22447:18;;;29233:19;13283:34;29273:14;;;13263:55;-1:-1;;;13338:12;;;13331:43;13393:12;;;22433:245;22685:407;22876:2;22890:47;;;13644:2;22861:18;;;29233:19;13680:34;29273:14;;;13660:55;-1:-1;;;13735:12;;;13728:37;13784:12;;;22847:245;23099:407;23290:2;23304:47;;;14035:2;23275:18;;;29233:19;14071:29;29273:14;;;14051:50;14120:12;;;23261:245;23513:407;23704:2;23718:47;;;14371:2;23689:18;;;29233:19;-1:-1;;;29273:14;;;14387:39;14445:12;;;23675:245;23927:407;24118:2;24132:47;;;14696:2;24103:18;;;29233:19;14732:27;29273:14;;;14712:48;14779:12;;;24089:245;24341:407;24532:2;24546:47;;;15030:2;24517:18;;;29233:19;15066:34;29273:14;;;15046:55;-1:-1;;;15121:12;;;15114:25;15158:12;;;24503:245;24755:407;24946:2;24960:47;;;15409:2;24931:18;;;29233:19;15445:34;29273:14;;;15425:55;-1:-1;;;15500:12;;;15493:38;15550:12;;;24917:245;25169:407;25360:2;25374:47;;;15801:2;25345:18;;;29233:19;15837:34;29273:14;;;15817:55;-1:-1;;;15892:12;;;15885:25;15929:12;;;25331:245;25583:407;25774:2;25788:47;;;16180:2;25759:18;;;29233:19;16216:34;29273:14;;;16196:55;-1:-1;;;16271:12;;;16264:26;16309:12;;;25745:245;25997:407;26188:2;26202:47;;;16560:2;26173:18;;;29233:19;16596:34;29273:14;;;16576:55;16665:28;16651:12;;;16644:50;16713:12;;;26159:245;26411:297;16990:23;;17171:37;;26571:2;26556:18;;26542:166;26715:213;17171:37;;;26833:2;26818:18;;26804:124;26935:324;17171:37;;;27245:2;27230:18;;17171:37;27081:2;27066:18;;27052:207;27266:256;27328:2;27322:9;27354:17;;;27429:18;27414:34;;27450:22;;;27411:62;27408:2;;;27486:1;;27476:12;27408:2;27328;27495:22;27306:216;;-1:-1;27306:216;27529:304;;27688:18;27680:6;27677:30;27674:2;;;-1:-1;;27710:12;27674:2;-1:-1;27755:4;27743:17;;;27808:15;;27611:222;32192:117;-1:-1;;;;;30137:54;;32251:35;;32241:2;;32300:1;;32290:12
Swarm Source
ipfs://ef2fc7778055bb83b8e70d3d5fe27ed5a00dd55d39c82583d6b7966b11920a30
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.