More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 356 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 15612177 | 713 days ago | IN | 0 ETH | 0.00127284 | ||||
Redeem | 15612168 | 713 days ago | IN | 0 ETH | 0.00120772 | ||||
Mint | 15611627 | 713 days ago | IN | 0 ETH | 0.00238769 | ||||
Redeem | 15584793 | 717 days ago | IN | 0 ETH | 0.00169542 | ||||
Redeem | 15583826 | 717 days ago | IN | 0 ETH | 0.00291404 | ||||
Redeem | 15582881 | 717 days ago | IN | 0 ETH | 0.00596363 | ||||
Redeem | 15579228 | 717 days ago | IN | 0 ETH | 0.00143734 | ||||
Redeem | 15578767 | 717 days ago | IN | 0 ETH | 0.00139738 | ||||
Redeem | 15578438 | 717 days ago | IN | 0 ETH | 0.00190508 | ||||
Redeem | 15577061 | 718 days ago | IN | 0 ETH | 0.00478291 | ||||
Redeem | 15577054 | 718 days ago | IN | 0 ETH | 0.00621023 | ||||
Redeem | 15576696 | 718 days ago | IN | 0 ETH | 0.00126634 | ||||
Redeem | 15576659 | 718 days ago | IN | 0 ETH | 0.00147899 | ||||
Redeem | 15576308 | 718 days ago | IN | 0 ETH | 0.00244913 | ||||
Redeem | 15575790 | 718 days ago | IN | 0 ETH | 0.00163992 | ||||
Redeem | 15575725 | 718 days ago | IN | 0 ETH | 0.00224274 | ||||
Redeem | 15575589 | 718 days ago | IN | 0 ETH | 0.00142368 | ||||
Redeem | 15575529 | 718 days ago | IN | 0 ETH | 0.00162407 | ||||
Redeem | 15574723 | 718 days ago | IN | 0 ETH | 0.00144804 | ||||
Redeem | 15559436 | 720 days ago | IN | 0 ETH | 0.00067061 | ||||
Redeem | 15554733 | 721 days ago | IN | 0 ETH | 0.00117342 | ||||
Redeem | 15548650 | 722 days ago | IN | 0 ETH | 0.0021585 | ||||
Redeem | 15530878 | 724 days ago | IN | 0 ETH | 0.00063287 | ||||
Redeem | 15529758 | 725 days ago | IN | 0 ETH | 0.00145175 | ||||
Redeem | 15527386 | 725 days ago | IN | 0 ETH | 0.00512727 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
FixedPricePSM
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.4; import "./PriceBoundPSM.sol"; contract FixedPricePSM is PriceBoundPSM { using Decimal for Decimal.D256; constructor( uint256 _floor, uint256 _ceiling, OracleParams memory _params, uint256 _mintFeeBasisPoints, uint256 _redeemFeeBasisPoints, uint256 _reservesThreshold, uint256 _feiLimitPerSecond, uint256 _mintingBufferCap, IERC20 _underlyingToken, IPCVDeposit _surplusTarget ) PriceBoundPSM( _floor, _ceiling, _params, _mintFeeBasisPoints, _redeemFeeBasisPoints, _reservesThreshold, _feiLimitPerSecond, _mintingBufferCap, _underlyingToken, _surplusTarget ) {} // ----------- Internal Methods ----------- /// @notice helper function to get mint amount out based on current market prices /// @dev will revert if price is outside of bounds and bounded PSM is being used function _getMintAmountOut(uint256 amountIn) internal virtual override view returns (uint256 amountFeiOut) { Decimal.D256 memory price = readOracle(); _validatePriceRange(price); amountFeiOut = Decimal.one() .mul(amountIn) .mul(Constants.BASIS_POINTS_GRANULARITY - mintFeeBasisPoints) .div(Constants.BASIS_POINTS_GRANULARITY) .asUint256(); } /// @notice helper function to get redeem amount out based on current market prices /// @dev will revert if price is outside of bounds and bounded PSM is being used function _getRedeemAmountOut(uint256 amountFeiIn) internal virtual override view returns (uint256 amountTokenOut) { Decimal.D256 memory price = readOracle(); _validatePriceRange(price); amountTokenOut = Decimal.one() .mul(amountFeiIn) .mul(Constants.BASIS_POINTS_GRANULARITY - redeemFeeBasisPoints) .div(Constants.BASIS_POINTS_GRANULARITY) .asUint256(); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./PegStabilityModule.sol"; import "./IPriceBound.sol"; /// @notice contract to create a price bound DAI PSM /// This contract will allow swaps when the price of DAI is between 98 cents and 1.02 by default /// These defaults are changeable by the admin and governance by calling floor and ceiling setters /// setOracleFloor and setOracleCeiling contract PriceBoundPSM is PegStabilityModule, IPriceBound { using Decimal for Decimal.D256; using SafeERC20 for IERC20; using SafeCast for *; /// @notice the default minimum acceptable oracle price floor is 98 cents uint256 public override floor; /// @notice the default maximum acceptable oracle price ceiling is $1.02 uint256 public override ceiling; /// @notice constructor /// @param _floor minimum acceptable oracle price /// @param _ceiling maximum acceptable oracle price /// @param _params PSM construction params constructor( uint256 _floor, uint256 _ceiling, OracleParams memory _params, uint256 _mintFeeBasisPoints, uint256 _redeemFeeBasisPoints, uint256 _reservesThreshold, uint256 _feiLimitPerSecond, uint256 _mintingBufferCap, IERC20 _underlyingToken, IPCVDeposit _surplusTarget ) PegStabilityModule( _params, _mintFeeBasisPoints, _redeemFeeBasisPoints, _reservesThreshold, _feiLimitPerSecond, _mintingBufferCap, _underlyingToken, _surplusTarget ) { _setCeilingBasisPoints(_ceiling); _setFloorBasisPoints(_floor); } /// @notice sets the floor price in BP function setOracleFloorBasisPoints(uint256 newFloorBasisPoints) external override onlyGovernorOrAdmin { _setFloorBasisPoints(newFloorBasisPoints); } /// @notice sets the ceiling price in BP function setOracleCeilingBasisPoints(uint256 newCeilingBasisPoints) external override onlyGovernorOrAdmin { _setCeilingBasisPoints(newCeilingBasisPoints); } function isPriceValid() external override view returns (bool) { return _validPrice(readOracle()); } /// @notice helper function to set the ceiling in basis points function _setCeilingBasisPoints(uint256 newCeilingBasisPoints) internal { require(newCeilingBasisPoints != 0, "PegStabilityModule: invalid ceiling"); require( Decimal.ratio(newCeilingBasisPoints, Constants.BASIS_POINTS_GRANULARITY) .greaterThan(Decimal.ratio(floor, Constants.BASIS_POINTS_GRANULARITY)), "PegStabilityModule: ceiling must be greater than floor" ); uint256 oldCeiling = ceiling; ceiling = newCeilingBasisPoints; emit OracleCeilingUpdate(oldCeiling, ceiling); } /// @notice helper function to set the floor in basis points function _setFloorBasisPoints(uint256 newFloorBasisPoints) internal { require(newFloorBasisPoints != 0, "PegStabilityModule: invalid floor"); require( Decimal.ratio(newFloorBasisPoints, Constants.BASIS_POINTS_GRANULARITY) .lessThan(Decimal.ratio(ceiling, Constants.BASIS_POINTS_GRANULARITY)), "PegStabilityModule: floor must be less than ceiling" ); uint256 oldFloor = floor; floor = newFloorBasisPoints; emit OracleFloorUpdate(oldFloor, floor); } /// @notice helper function to determine if price is within a valid range function _validPrice(Decimal.D256 memory price) internal view returns (bool valid) { valid = price.greaterThan(Decimal.ratio(floor, Constants.BASIS_POINTS_GRANULARITY)) && price.lessThan(Decimal.ratio(ceiling, Constants.BASIS_POINTS_GRANULARITY)); } /// @notice reverts if the price is greater than or equal to the ceiling or less than or equal to the floor function _validatePriceRange(Decimal.D256 memory price) internal view override { require(_validPrice(price), "PegStabilityModule: price out of bounds"); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./../pcv/PCVDeposit.sol"; import "./../fei/minter/RateLimitedMinter.sol"; import "./IPegStabilityModule.sol"; import "./../refs/OracleRef.sol"; import "../Constants.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract PegStabilityModule is IPegStabilityModule, RateLimitedMinter, OracleRef, PCVDeposit, ReentrancyGuard { using Decimal for Decimal.D256; using SafeCast for *; using SafeERC20 for IERC20; /// @notice the fee in basis points for selling asset into FEI uint256 public override mintFeeBasisPoints; /// @notice the fee in basis points for buying the asset for FEI uint256 public override redeemFeeBasisPoints; /// @notice the amount of reserves to be held for redemptions uint256 public override reservesThreshold; /// @notice the PCV deposit target IPCVDeposit public override surplusTarget; /// @notice the token this PSM will exchange for FEI /// This token will be set to WETH9 if the bonding curve accepts eth IERC20 public immutable override underlyingToken; /// @notice the max mint and redeem fee in basis points /// Governance can change this fee uint256 public override MAX_FEE = 300; /// @notice boolean switch that indicates whether redemptions are paused bool public redeemPaused; /// @notice event that is emitted when redemptions are paused event RedemptionsPaused(address account); /// @notice event that is emitted when redemptions are unpaused event RedemptionsUnpaused(address account); /// @notice boolean switch that indicates whether minting is paused bool public mintPaused; /// @notice event that is emitted when minting is paused event MintingPaused(address account); /// @notice event that is emitted when minting is unpaused event MintingUnpaused(address account); /// @notice struct for passing constructor parameters related to OracleRef struct OracleParams { address coreAddress; address oracleAddress; address backupOracle; int256 decimalsNormalizer; bool doInvert; } /// @notice constructor /// @param params PSM constructor parameter struct constructor( OracleParams memory params, uint256 _mintFeeBasisPoints, uint256 _redeemFeeBasisPoints, uint256 _reservesThreshold, uint256 _feiLimitPerSecond, uint256 _mintingBufferCap, IERC20 _underlyingToken, IPCVDeposit _surplusTarget ) OracleRef(params.coreAddress, params.oracleAddress, params.backupOracle, params.decimalsNormalizer, params.doInvert) /// rate limited minter passes false as the last param as there can be no partial mints RateLimitedMinter(_feiLimitPerSecond, _mintingBufferCap, false) { underlyingToken = _underlyingToken; _setReservesThreshold(_reservesThreshold); _setMintFee(_mintFeeBasisPoints); _setRedeemFee(_redeemFeeBasisPoints); _setSurplusTarget(_surplusTarget); _setContractAdminRole(keccak256("PSM_ADMIN_ROLE")); } /// @notice modifier that allows execution when redemptions are not paused modifier whileRedemptionsNotPaused { require(!redeemPaused, "PegStabilityModule: Redeem paused"); _; } /// @notice modifier that allows execution when minting is not paused modifier whileMintingNotPaused { require(!mintPaused, "PegStabilityModule: Minting paused"); _; } /// @notice set secondary pausable methods to paused function pauseRedeem() external isGovernorOrGuardianOrAdmin { redeemPaused = true; emit RedemptionsPaused(msg.sender); } /// @notice set secondary pausable methods to unpaused function unpauseRedeem() external isGovernorOrGuardianOrAdmin { redeemPaused = false; emit RedemptionsUnpaused(msg.sender); } /// @notice set secondary pausable methods to paused function pauseMint() external isGovernorOrGuardianOrAdmin { mintPaused = true; emit MintingPaused(msg.sender); } /// @notice set secondary pausable methods to unpaused function unpauseMint() external isGovernorOrGuardianOrAdmin { mintPaused = false; emit MintingUnpaused(msg.sender); } /// @notice withdraw assets from PSM to an external address function withdraw(address to, uint256 amount) external override virtual onlyPCVController { _withdrawERC20(address(underlyingToken), to, amount); } /// @notice set the mint fee vs oracle price in basis point terms function setMintFee(uint256 newMintFeeBasisPoints) external override onlyGovernorOrAdmin { _setMintFee(newMintFeeBasisPoints); } /// @notice set the redemption fee vs oracle price in basis point terms function setRedeemFee(uint256 newRedeemFeeBasisPoints) external override onlyGovernorOrAdmin { _setRedeemFee(newRedeemFeeBasisPoints); } /// @notice set the ideal amount of reserves for the contract to hold for redemptions function setReservesThreshold(uint256 newReservesThreshold) external override onlyGovernorOrAdmin { _setReservesThreshold(newReservesThreshold); } /// @notice set the target for sending surplus reserves function setSurplusTarget(IPCVDeposit newTarget) external override onlyGovernorOrAdmin { _setSurplusTarget(newTarget); } /// @notice set the mint fee vs oracle price in basis point terms function _setMintFee(uint256 newMintFeeBasisPoints) internal { require(newMintFeeBasisPoints <= MAX_FEE, "PegStabilityModule: Mint fee exceeds max fee"); uint256 _oldMintFee = mintFeeBasisPoints; mintFeeBasisPoints = newMintFeeBasisPoints; emit MintFeeUpdate(_oldMintFee, newMintFeeBasisPoints); } /// @notice internal helper function to set the redemption fee function _setRedeemFee(uint256 newRedeemFeeBasisPoints) internal { require(newRedeemFeeBasisPoints <= MAX_FEE, "PegStabilityModule: Redeem fee exceeds max fee"); uint256 _oldRedeemFee = redeemFeeBasisPoints; redeemFeeBasisPoints = newRedeemFeeBasisPoints; emit RedeemFeeUpdate(_oldRedeemFee, newRedeemFeeBasisPoints); } /// @notice helper function to set reserves threshold function _setReservesThreshold(uint256 newReservesThreshold) internal { require(newReservesThreshold > 0, "PegStabilityModule: Invalid new reserves threshold"); uint256 oldReservesThreshold = reservesThreshold; reservesThreshold = newReservesThreshold; emit ReservesThresholdUpdate(oldReservesThreshold, newReservesThreshold); } /// @notice helper function to set the surplus target function _setSurplusTarget(IPCVDeposit newSurplusTarget) internal { require(address(newSurplusTarget) != address(0), "PegStabilityModule: Invalid new surplus target"); IPCVDeposit oldTarget = surplusTarget; surplusTarget = newSurplusTarget; emit SurplusTargetUpdate(oldTarget, newSurplusTarget); } // ----------- Public State Changing API ----------- /// @notice send any surplus reserves to the PCV allocation function allocateSurplus() external override { int256 currentSurplus = reservesSurplus(); require(currentSurplus > 0, "PegStabilityModule: No surplus to allocate"); _allocate(currentSurplus.toUint256()); } /// @notice function to receive ERC20 tokens from external contracts function deposit() external override { int256 currentSurplus = reservesSurplus(); if (currentSurplus > 0) { _allocate(currentSurplus.toUint256()); } } /// @notice internal helper method to redeem fei in exchange for an external asset function _redeem( address to, uint256 amountFeiIn, uint256 minAmountOut ) internal virtual returns(uint256 amountOut) { updateOracle(); amountOut = _getRedeemAmountOut(amountFeiIn); require(amountOut >= minAmountOut, "PegStabilityModule: Redeem not enough out"); IERC20(fei()).safeTransferFrom(msg.sender, address(this), amountFeiIn); _transfer(to, amountOut); emit Redeem(to, amountFeiIn, amountOut); } /// @notice internal helper method to mint fei in exchange for an external asset function _mint( address to, uint256 amountIn, uint256 minAmountOut ) internal virtual returns(uint256 amountFeiOut) { updateOracle(); amountFeiOut = _getMintAmountOut(amountIn); require(amountFeiOut >= minAmountOut, "PegStabilityModule: Mint not enough out"); _transferFrom(msg.sender, address(this), amountIn); uint256 amountFeiToTransfer = Math.min(fei().balanceOf(address(this)), amountFeiOut); uint256 amountFeiToMint = amountFeiOut - amountFeiToTransfer; IERC20(fei()).safeTransfer(to, amountFeiToTransfer); if (amountFeiToMint > 0) { _mintFei(to, amountFeiToMint); } emit Mint(to, amountIn, amountFeiOut); } /// @notice function to redeem FEI for an underlying asset /// We do not burn Fei; this allows the contract's balance of Fei to be used before the buffer is used /// In practice, this helps prevent artificial cycling of mint-burn cycles and prevents a griefing vector. function redeem( address to, uint256 amountFeiIn, uint256 minAmountOut ) external virtual override nonReentrant whenNotPaused whileRedemptionsNotPaused returns (uint256 amountOut) { amountOut = _redeem(to, amountFeiIn, minAmountOut); } /// @notice function to buy FEI for an underlying asset /// We first transfer any contract-owned fei, then mint the remaining if necessary function mint( address to, uint256 amountIn, uint256 minAmountOut ) external virtual override nonReentrant whenNotPaused whileMintingNotPaused returns (uint256 amountFeiOut) { amountFeiOut = _mint(to, amountIn, minAmountOut); } // ----------- Public View-Only API ---------- /// @notice calculate the amount of FEI out for a given `amountIn` of underlying /// First get oracle price of token /// Then figure out how many dollars that amount in is worth by multiplying price * amount. /// ensure decimals are normalized if on underlying they are not 18 function getMintAmountOut(uint256 amountIn) public override view returns (uint256 amountFeiOut) { amountFeiOut = _getMintAmountOut(amountIn); } /// @notice calculate the amount of underlying out for a given `amountFeiIn` of FEI /// First get oracle price of token /// Then figure out how many dollars that amount in is worth by multiplying price * amount. /// ensure decimals are normalized if on underlying they are not 18 function getRedeemAmountOut(uint256 amountFeiIn) public override view returns (uint256 amountTokenOut) { amountTokenOut = _getRedeemAmountOut(amountFeiIn); } /// @notice the maximum mint amount out function getMaxMintAmountOut() external override view returns (uint256) { return fei().balanceOf(address(this)) + buffer(); } /// @notice a flag for whether the current balance is above (true) or below (false) the reservesThreshold function hasSurplus() external override view returns (bool) { return balance() > reservesThreshold; } /// @notice an integer representing the positive surplus or negative deficit of contract balance vs reservesThreshold function reservesSurplus() public override view returns (int256) { return balance().toInt256() - reservesThreshold.toInt256(); } /// @notice function from PCVDeposit that must be overriden function balance() public view override virtual returns(uint256) { return underlyingToken.balanceOf(address(this)); } /// @notice returns address of token this contracts balance is reported in function balanceReportedIn() external view override returns (address) { return address(underlyingToken); } /// @notice override default behavior of not checking fei balance function resistantBalanceAndFei() public view override returns(uint256, uint256) { return (balance(), feiBalance()); } // ----------- Internal Methods ----------- /// @notice helper function to get mint amount out based on current market prices /// @dev will revert if price is outside of bounds and bounded PSM is being used function _getMintAmountOut(uint256 amountIn) internal virtual view returns (uint256 amountFeiOut) { Decimal.D256 memory price = readOracle(); _validatePriceRange(price); Decimal.D256 memory adjustedAmountIn = price.mul(amountIn); amountFeiOut = adjustedAmountIn .mul(Constants.BASIS_POINTS_GRANULARITY - mintFeeBasisPoints) .div(Constants.BASIS_POINTS_GRANULARITY) .asUint256(); } /// @notice helper function to get redeem amount out based on current market prices /// @dev will revert if price is outside of bounds and bounded PSM is being used function _getRedeemAmountOut(uint256 amountFeiIn) internal virtual view returns (uint256 amountTokenOut) { Decimal.D256 memory price = readOracle(); _validatePriceRange(price); /// get amount of dollars being provided Decimal.D256 memory adjustedAmountIn = Decimal.from( amountFeiIn * (Constants.BASIS_POINTS_GRANULARITY - redeemFeeBasisPoints) / Constants.BASIS_POINTS_GRANULARITY ); /// now turn the dollars into the underlying token amounts /// dollars / price = how much token to pay out amountTokenOut = adjustedAmountIn.div(price).asUint256(); } /// @notice Allocates a portion of escrowed PCV to a target PCV deposit function _allocate(uint256 amount) internal { _transfer(address(surplusTarget), amount); surplusTarget.deposit(); emit AllocateSurplus(msg.sender, amount); } /// @notice transfer ERC20 token function _transfer(address to, uint256 amount) internal { SafeERC20.safeTransfer(underlyingToken, to, amount); } /// @notice transfer assets from user to this contract function _transferFrom(address from, address to, uint256 amount) internal { SafeERC20.safeTransferFrom(underlyingToken, from, to, amount); } /// @notice mint amount of FEI to the specified user on a rate limit function _mintFei(address to, uint256 amount) internal override(CoreRef, RateLimitedMinter) { super._mintFei(to, amount); } // ----------- Hooks ----------- /// @notice overriden function in the bounded PSM function _validatePriceRange(Decimal.D256 memory price) internal view virtual {} }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "../refs/CoreRef.sol"; import "./IPCVDeposit.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /// @title abstract contract for withdrawing ERC-20 tokens using a PCV Controller /// @author Fei Protocol abstract contract PCVDeposit is IPCVDeposit, CoreRef { using SafeERC20 for IERC20; /// @notice withdraw ERC20 from the contract /// @param token address of the ERC20 to send /// @param to address destination of the ERC20 /// @param amount quantity of ERC20 to send function withdrawERC20( address token, address to, uint256 amount ) public virtual override onlyPCVController { _withdrawERC20(token, to, amount); } function _withdrawERC20( address token, address to, uint256 amount ) internal { IERC20(token).safeTransfer(to, amount); emit WithdrawERC20(msg.sender, token, to, amount); } /// @notice withdraw ETH from the contract /// @param to address to send ETH /// @param amountOut amount of ETH to send function withdrawETH(address payable to, uint256 amountOut) external virtual override onlyPCVController { Address.sendValue(to, amountOut); emit WithdrawETH(msg.sender, to, amountOut); } function balance() public view virtual override returns(uint256); function resistantBalanceAndFei() public view virtual override returns(uint256, uint256) { return (balance(), 0); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./ICoreRef.sol"; import "@openzeppelin/contracts/security/Pausable.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 { ICore private _core; /// @notice a role used with a subset of governor permissions for this contract only bytes32 public override CONTRACT_ADMIN_ROLE; /// @notice boolean to check whether or not the contract has been initialized. /// cannot be initialized twice. bool private _initialized; constructor(address coreAddress) { _initialize(coreAddress); } /// @notice CoreRef constructor /// @param coreAddress Fei Core to reference function _initialize(address coreAddress) internal { require(!_initialized, "CoreRef: already initialized"); _initialized = true; _core = ICore(coreAddress); _setContractAdminRole(_core.GOVERN_ROLE()); } modifier ifMinterSelf() { if (_core.isMinter(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 onlyGovernorOrAdmin() { require( _core.isGovernor(msg.sender) || isContractAdmin(msg.sender), "CoreRef: Caller is not a governor or contract admin" ); _; } 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 isGovernorOrGuardianOrAdmin() { require( _core.isGovernor(msg.sender) || _core.isGuardian(msg.sender) || isContractAdmin(msg.sender), "CoreRef: Caller is not governor or guardian or admin"); _; } modifier onlyFei() { require(msg.sender == address(fei()), "CoreRef: Caller is not FEI"); _; } /// @notice set new Core reference address /// @param newCore the new core address function setCore(address newCore) external override onlyGovernor { require(newCore != address(0), "CoreRef: zero address"); address oldCore = address(_core); _core = ICore(newCore); emit CoreUpdate(oldCore, newCore); } /// @notice sets a new admin role for this contract function setContractAdminRole(bytes32 newContractAdminRole) external override onlyGovernor { _setContractAdminRole(newContractAdminRole); } /// @notice returns whether a given address has the admin role for this contract function isContractAdmin(address _admin) public view override returns (bool) { return _core.hasRole(CONTRACT_ADMIN_ROLE, _admin); } /// @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) { 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(address to, uint256 amount) internal virtual { if (amount != 0) { fei().mint(to, amount); } } function _setContractAdminRole(bytes32 newContractAdminRole) internal { bytes32 oldContractAdminRole = CONTRACT_ADMIN_ROLE; CONTRACT_ADMIN_ROLE = newContractAdminRole; emit ContractAdminRoleUpdate(oldContractAdminRole, newContractAdminRole); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "../core/ICore.sol"; /// @title CoreRef interface /// @author Fei Protocol interface ICoreRef { // ----------- Events ----------- event CoreUpdate(address indexed oldCore, address indexed newCore); event ContractAdminRoleUpdate(bytes32 indexed oldContractAdminRole, bytes32 indexed newContractAdminRole); // ----------- Governor only state changing api ----------- function setCore(address newCore) external; function setContractAdminRole(bytes32 newContractAdminRole) external; // ----------- Governor or Guardian only state changing api ----------- 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); function feiBalance() external view returns (uint256); function tribeBalance() external view returns (uint256); function CONTRACT_ADMIN_ROLE() external view returns (bytes32); function isContractAdmin(address admin) external view returns (bool); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./IPermissions.sol"; import "../fei/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 allocateTribe(address to, uint256 amount) external; // ----------- Getters ----------- function fei() external view returns (IFei); function tribe() external view returns (IERC20); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./IPermissionsRead.sol"; /// @title Permissions interface /// @author Fei Protocol interface IPermissions is IAccessControl, IPermissionsRead { // ----------- 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 GUARDIAN_ROLE() external view returns (bytes32); function GOVERN_ROLE() external view returns (bytes32); function BURNER_ROLE() external view returns (bytes32); function MINTER_ROLE() external view returns (bytes32); function PCV_CONTROLLER_ROLE() external view returns (bytes32); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; /// @title Permissions Read interface /// @author Fei Protocol interface IPermissionsRead { // ----------- 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); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title FEI stablecoin interface /// @author Fei Protocol interface IFei is IERC20 { // ----------- 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); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./IPCVDepositBalances.sol"; /// @title a PCV Deposit interface /// @author Fei Protocol interface IPCVDeposit is IPCVDepositBalances { // ----------- Events ----------- event Deposit(address indexed _from, uint256 _amount); event Withdrawal( address indexed _caller, address indexed _to, uint256 _amount ); event WithdrawERC20( address indexed _caller, address indexed _token, address indexed _to, uint256 _amount ); event WithdrawETH( address indexed _caller, address indexed _to, uint256 _amount ); // ----------- State changing api ----------- function deposit() external; // ----------- PCV Controller only state changing api ----------- function withdraw(address to, uint256 amount) external; function withdrawERC20(address token, address to, uint256 amount) external; function withdrawETH(address payable to, uint256 amount) external; }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; /// @title a PCV Deposit interface for only balance getters /// @author Fei Protocol interface IPCVDepositBalances { // ----------- Getters ----------- /// @notice gets the effective balance of "balanceReportedIn" token if the deposit were fully withdrawn function balance() external view returns (uint256); /// @notice gets the token address in which this deposit returns its balance function balanceReportedIn() external view returns (address); /// @notice gets the resistant token balance and protocol owned fei of this deposit function resistantBalanceAndFei() external view returns (uint256, uint256); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "../../utils/RateLimited.sol"; /// @title abstract contract for putting a rate limit on how fast a contract can mint FEI /// @author Fei Protocol abstract contract RateLimitedMinter is RateLimited { uint256 private constant MAX_FEI_LIMIT_PER_SECOND = 10_000e18; // 10000 FEI/s or ~860m FEI/day constructor( uint256 _feiLimitPerSecond, uint256 _mintingBufferCap, bool _doPartialMint ) RateLimited(MAX_FEI_LIMIT_PER_SECOND, _feiLimitPerSecond, _mintingBufferCap, _doPartialMint) {} /// @notice override the FEI minting behavior to enforce a rate limit function _mintFei(address to, uint256 amount) internal virtual override { uint256 mintAmount = _depleteBuffer(amount); super._mintFei(to, mintAmount); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "../refs/CoreRef.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; /// @title abstract contract for putting a rate limit on how fast a contract can perform an action e.g. Minting /// @author Fei Protocol abstract contract RateLimited is CoreRef { /// @notice maximum rate limit per second governance can set for this contract uint256 public immutable MAX_RATE_LIMIT_PER_SECOND; /// @notice the rate per second for this contract uint256 public rateLimitPerSecond; /// @notice the last time the buffer was used by the contract uint256 public lastBufferUsedTime; /// @notice the cap of the buffer that can be used at once uint256 public bufferCap; /// @notice a flag for whether to allow partial actions to complete if the buffer is less than amount bool public doPartialAction; /// @notice the buffer at the timestamp of lastBufferUsedTime uint256 private _bufferStored; event BufferUsed(uint256 amountUsed, uint256 bufferRemaining); event BufferCapUpdate(uint256 oldBufferCap, uint256 newBufferCap); event RateLimitPerSecondUpdate(uint256 oldRateLimitPerSecond, uint256 newRateLimitPerSecond); constructor(uint256 _maxRateLimitPerSecond, uint256 _rateLimitPerSecond, uint256 _bufferCap, bool _doPartialAction) { lastBufferUsedTime = block.timestamp; _setBufferCap(_bufferCap); _bufferStored = _bufferCap; require(_rateLimitPerSecond <= _maxRateLimitPerSecond, "RateLimited: rateLimitPerSecond too high"); _setRateLimitPerSecond(_rateLimitPerSecond); MAX_RATE_LIMIT_PER_SECOND = _maxRateLimitPerSecond; doPartialAction = _doPartialAction; } /// @notice set the rate limit per second function setRateLimitPerSecond(uint256 newRateLimitPerSecond) external virtual onlyGovernorOrAdmin { require(newRateLimitPerSecond <= MAX_RATE_LIMIT_PER_SECOND, "RateLimited: rateLimitPerSecond too high"); _updateBufferStored(); _setRateLimitPerSecond(newRateLimitPerSecond); } /// @notice set the buffer cap function setBufferCap(uint256 newBufferCap) external virtual onlyGovernorOrAdmin { _setBufferCap(newBufferCap); } /// @notice the amount of action used before hitting limit /// @dev replenishes at rateLimitPerSecond per second up to bufferCap function buffer() public view returns(uint256) { uint256 elapsed = block.timestamp - lastBufferUsedTime; return Math.min(_bufferStored + (rateLimitPerSecond * elapsed), bufferCap); } /** @notice the method that enforces the rate limit. Decreases buffer by "amount". If buffer is <= amount either 1. Does a partial mint by the amount remaining in the buffer or 2. Reverts Depending on whether doPartialAction is true or false */ function _depleteBuffer(uint256 amount) internal returns(uint256) { uint256 newBuffer = buffer(); uint256 usedAmount = amount; if (doPartialAction && usedAmount > newBuffer) { usedAmount = newBuffer; } require(newBuffer != 0, "RateLimited: no rate limit buffer"); require(usedAmount <= newBuffer, "RateLimited: rate limit hit"); _bufferStored = newBuffer - usedAmount; lastBufferUsedTime = block.timestamp; emit BufferUsed(usedAmount, _bufferStored); return usedAmount; } function _setRateLimitPerSecond(uint256 newRateLimitPerSecond) internal { uint256 oldRateLimitPerSecond = rateLimitPerSecond; rateLimitPerSecond = newRateLimitPerSecond; emit RateLimitPerSecondUpdate(oldRateLimitPerSecond, newRateLimitPerSecond); } function _setBufferCap(uint256 newBufferCap) internal { _updateBufferStored(); uint256 oldBufferCap = bufferCap; bufferCap = newBufferCap; emit BufferCapUpdate(oldBufferCap, newBufferCap); } function _resetBuffer() internal { _bufferStored = bufferCap; } function _updateBufferStored() internal { _bufferStored = buffer(); lastBufferUsedTime = block.timestamp; } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../pcv/IPCVDeposit.sol"; /** * @title Fei Peg Stability Module * @author Fei Protocol * @notice The Fei PSM is a contract which holds a reserve of assets in order to exchange FEI at $1 of underlying assets with a fee. * `mint()` - buy FEI for $1 of underlying tokens * `redeem()` - sell FEI back for $1 of the same * * The contract has a reservesThreshold() of underlying meant to stand ready for redemptions. Any surplus reserves can be sent into the PCV using `allocateSurplus()` * * The contract is a * PCVDeposit - to track reserves * OracleRef - to determine price of underlying, and * RateLimitedMinter - to stop infinite mints and related issues (but this is in the implementation due to inheritance-linearization difficulties) * * Inspired by MakerDAO PSM, code written without reference */ interface IPegStabilityModule { // ----------- Public State Changing API ----------- /// @notice mint `amountFeiOut` FEI to address `to` for `amountIn` underlying tokens /// @dev see getMintAmountOut() to pre-calculate amount out function mint(address to, uint256 amountIn, uint256 minAmountOut) external returns (uint256 amountFeiOut); /// @notice redeem `amountFeiIn` FEI for `amountOut` underlying tokens and send to address `to` /// @dev see getRedeemAmountOut() to pre-calculate amount out function redeem(address to, uint256 amountFeiIn, uint256 minAmountOut) external returns (uint256 amountOut); /// @notice send any surplus reserves to the PCV allocation function allocateSurplus() external; // ----------- Governor or Admin Only State Changing API ----------- /// @notice set the mint fee vs oracle price in basis point terms function setMintFee(uint256 newMintFeeBasisPoints) external; /// @notice set the redemption fee vs oracle price in basis point terms function setRedeemFee(uint256 newRedeemFeeBasisPoints) external; /// @notice set the ideal amount of reserves for the contract to hold for redemptions function setReservesThreshold(uint256 newReservesThreshold) external; /// @notice set the target for sending surplus reserves function setSurplusTarget(IPCVDeposit newTarget) external; // ----------- Getters ----------- /// @notice calculate the amount of FEI out for a given `amountIn` of underlying function getMintAmountOut(uint256 amountIn) external view returns (uint256 amountFeiOut); /// @notice calculate the amount of underlying out for a given `amountFeiIn` of FEI function getRedeemAmountOut(uint256 amountFeiIn) external view returns (uint256 amountOut); /// @notice the maximum mint amount out function getMaxMintAmountOut() external view returns(uint256); /// @notice a flag for whether the current balance is above (true) or below and equal (false) to the reservesThreshold function hasSurplus() external view returns (bool); /// @notice an integer representing the positive surplus or negative deficit of contract balance vs reservesThreshold function reservesSurplus() external view returns (int256); /// @notice the ideal amount of reserves for the contract to hold for redemptions function reservesThreshold() external view returns (uint256); /// @notice the mint fee vs oracle price in basis point terms function mintFeeBasisPoints() external view returns (uint256); /// @notice the redemption fee vs oracle price in basis point terms function redeemFeeBasisPoints() external view returns (uint256); /// @notice the underlying token exchanged for FEI function underlyingToken() external view returns (IERC20); /// @notice the PCV deposit target to send surplus reserves function surplusTarget() external view returns (IPCVDeposit); /// @notice the max mint and redeem fee in basis points function MAX_FEE() external view returns (uint256); // ----------- Events ----------- /// @notice event emitted when excess PCV is allocated event AllocateSurplus(address indexed caller, uint256 amount); /// @notice event emitted when a new max fee is set event MaxFeeUpdate(uint256 oldMaxFee, uint256 newMaxFee); /// @notice event emitted when a new mint fee is set event MintFeeUpdate(uint256 oldMintFee, uint256 newMintFee); /// @notice event emitted when a new redeem fee is set event RedeemFeeUpdate(uint256 oldRedeemFee, uint256 newRedeemFee); /// @notice event emitted when reservesThreshold is updated event ReservesThresholdUpdate(uint256 oldReservesThreshold, uint256 newReservesThreshold); /// @notice event emitted when surplus target is updated event SurplusTargetUpdate(IPCVDeposit oldTarget, IPCVDeposit newTarget); /// @notice event emitted upon a redemption event Redeem(address to, uint256 amountFeiIn, uint256 amountAssetOut); /// @notice event emitted when fei gets minted event Mint(address to, uint256 amountIn, uint256 amountFeiOut); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./IOracleRef.sol"; import "./CoreRef.sol"; import "@openzeppelin/contracts/utils/math/SafeCast.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.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; using SafeCast for int256; /// @notice the oracle reference by the contract IOracle public override oracle; /// @notice the backup oracle reference by the contract IOracle public override backupOracle; /// @notice number of decimals to scale oracle price by, i.e. multiplying by 10^(decimalsNormalizer) int256 public override decimalsNormalizer; bool public override doInvert; /// @notice OracleRef constructor /// @param _core Fei Core to reference /// @param _oracle oracle to reference /// @param _backupOracle backup oracle to reference /// @param _decimalsNormalizer number of decimals to normalize the oracle feed if necessary /// @param _doInvert invert the oracle price if this flag is on constructor(address _core, address _oracle, address _backupOracle, int256 _decimalsNormalizer, bool _doInvert) CoreRef(_core) { _setOracle(_oracle); if (_backupOracle != address(0) && _backupOracle != _oracle) { _setBackupOracle(_backupOracle); } _setDoInvert(_doInvert); _setDecimalsNormalizer(_decimalsNormalizer); } /// @notice sets the referenced oracle /// @param newOracle the new oracle to reference function setOracle(address newOracle) external override onlyGovernor { _setOracle(newOracle); } /// @notice sets the flag for whether to invert or not /// @param newDoInvert the new flag for whether to invert function setDoInvert(bool newDoInvert) external override onlyGovernor { _setDoInvert(newDoInvert); } /// @notice sets the new decimalsNormalizer /// @param newDecimalsNormalizer the new decimalsNormalizer function setDecimalsNormalizer(int256 newDecimalsNormalizer) external override onlyGovernor { _setDecimalsNormalizer(newDecimalsNormalizer); } /// @notice sets the referenced backup oracle /// @param newBackupOracle the new backup oracle to reference function setBackupOracle(address newBackupOracle) external override onlyGovernorOrAdmin { _setBackupOracle(newBackupOracle); } /// @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 function updateOracle() public override { 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 readOracle() public view override returns (Decimal.D256 memory) { (Decimal.D256 memory _peg, bool valid) = oracle.read(); if (!valid && address(backupOracle) != address(0)) { (_peg, valid) = backupOracle.read(); } require(valid, "OracleRef: oracle invalid"); // Scale the oracle price by token decimals delta if necessary uint256 scalingFactor; if (decimalsNormalizer < 0) { scalingFactor = 10 ** (-1 * decimalsNormalizer).toUint256(); _peg = _peg.div(scalingFactor); } else { scalingFactor = 10 ** decimalsNormalizer.toUint256(); _peg = _peg.mul(scalingFactor); } // Invert the oracle price if necessary if (doInvert) { _peg = invert(_peg); } return _peg; } function _setOracle(address newOracle) internal { require(newOracle != address(0), "OracleRef: zero address"); address oldOracle = address(oracle); oracle = IOracle(newOracle); emit OracleUpdate(oldOracle, newOracle); } // Supports zero address if no backup function _setBackupOracle(address newBackupOracle) internal { address oldBackupOracle = address(backupOracle); backupOracle = IOracle(newBackupOracle); emit BackupOracleUpdate(oldBackupOracle, newBackupOracle); } function _setDoInvert(bool newDoInvert) internal { bool oldDoInvert = doInvert; doInvert = newDoInvert; if (oldDoInvert != newDoInvert) { _setDecimalsNormalizer( -1 * decimalsNormalizer); } emit InvertUpdate(oldDoInvert, newDoInvert); } function _setDecimalsNormalizer(int256 newDecimalsNormalizer) internal { int256 oldDecimalsNormalizer = decimalsNormalizer; decimalsNormalizer = newDecimalsNormalizer; emit DecimalsNormalizerUpdate(oldDecimalsNormalizer, newDecimalsNormalizer); } function _setDecimalsNormalizerFromToken(address token) internal { int256 feiDecimals = 18; int256 _decimalsNormalizer = feiDecimals - int256(uint256(IERC20Metadata(token).decimals())); if (doInvert) { _decimalsNormalizer = -1 * _decimalsNormalizer; } _setDecimalsNormalizer(_decimalsNormalizer); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "../oracle/IOracle.sol"; /// @title OracleRef interface /// @author Fei Protocol interface IOracleRef { // ----------- Events ----------- event OracleUpdate(address indexed oldOracle, address indexed newOracle); event InvertUpdate(bool oldDoInvert, bool newDoInvert); event DecimalsNormalizerUpdate(int256 oldDecimalsNormalizer, int256 newDecimalsNormalizer); event BackupOracleUpdate(address indexed oldBackupOracle, address indexed newBackupOracle); // ----------- State changing API ----------- function updateOracle() external; // ----------- Governor only state changing API ----------- function setOracle(address newOracle) external; function setBackupOracle(address newBackupOracle) external; function setDecimalsNormalizer(int256 newDecimalsNormalizer) external; function setDoInvert(bool newDoInvert) external; // ----------- Getters ----------- function oracle() external view returns (IOracle); function backupOracle() external view returns (IOracle); function doInvert() external view returns (bool); function decimalsNormalizer() external view returns (int256); function readOracle() external view returns (Decimal.D256 memory); function invert(Decimal.D256 calldata price) external pure returns (Decimal.D256 memory); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; 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; // ----------- Getters ----------- function read() external view returns (Decimal.D256 memory, bool); function isOutdated() external view returns (bool); }
/* 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.8.4; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /** * @title Decimal * @author dYdX * * Library that defines a fixed-point number with 18 decimal places. */ library Decimal { using SafeMath for uint256; // ============ Constants ============ uint256 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; } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; import "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol"; library Constants { /// @notice the denominator for basis points granularity (10,000) uint256 public constant BASIS_POINTS_GRANULARITY = 10_000; uint256 public constant ONE_YEAR = 365.25 days; /// @notice WETH9 address IWETH public constant WETH = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); /// @notice USD stand-in address address public constant USD = 0x1111111111111111111111111111111111111111; /// @notice Wei per ETH, i.e. 10**18 uint256 public constant ETH_GRANULARITY = 1e18; /// @notice number of decimals in ETH, 18 uint256 public constant ETH_DECIMALS = 18; }
pragma solidity ^0.8.4; interface IPriceBound { // ----------- Events ----------- /// @notice event emitted when minimum floor price is updated event OracleFloorUpdate(uint256 oldFloor, uint256 newFloor); /// @notice event emitted when maximum ceiling price is updated event OracleCeilingUpdate(uint256 oldCeiling, uint256 newCeiling); // ----------- Governor or admin only state changing api ----------- /// @notice sets the floor price in BP function setOracleFloorBasisPoints(uint256 newFloor) external; /// @notice sets the ceiling price in BP function setOracleCeilingBasisPoints(uint256 newCeiling) external; // ----------- Getters ----------- /// @notice get the floor price in basis points function floor() external view returns(uint256); /// @notice get the ceiling price in basis points function ceiling() external view returns(uint256); /// @notice return wether the current oracle price is valid or not function isPriceValid() external view returns(bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/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 is Context { /** * @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() { _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()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^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 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 { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @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. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol) pragma solidity ^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 { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @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 <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(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 <= type(uint64).max, "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 <= type(uint32).max, "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 <= type(uint16).max, "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 <= type(uint8).max, "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 >= type(int128).min && value <= type(int128).max, "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 >= type(int64).min && value <= type(int64).max, "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 >= type(int32).min && value <= type(int32).max, "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 >= type(int16).min && value <= type(int16).max, "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 >= type(int8).min && value <= type(int8).max, "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) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
{ "metadata": { "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_floor","type":"uint256"},{"internalType":"uint256","name":"_ceiling","type":"uint256"},{"components":[{"internalType":"address","name":"coreAddress","type":"address"},{"internalType":"address","name":"oracleAddress","type":"address"},{"internalType":"address","name":"backupOracle","type":"address"},{"internalType":"int256","name":"decimalsNormalizer","type":"int256"},{"internalType":"bool","name":"doInvert","type":"bool"}],"internalType":"struct PegStabilityModule.OracleParams","name":"_params","type":"tuple"},{"internalType":"uint256","name":"_mintFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_redeemFeeBasisPoints","type":"uint256"},{"internalType":"uint256","name":"_reservesThreshold","type":"uint256"},{"internalType":"uint256","name":"_feiLimitPerSecond","type":"uint256"},{"internalType":"uint256","name":"_mintingBufferCap","type":"uint256"},{"internalType":"contract IERC20","name":"_underlyingToken","type":"address"},{"internalType":"contract IPCVDeposit","name":"_surplusTarget","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AllocateSurplus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldBackupOracle","type":"address"},{"indexed":true,"internalType":"address","name":"newBackupOracle","type":"address"}],"name":"BackupOracleUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldBufferCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBufferCap","type":"uint256"}],"name":"BufferCapUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountUsed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bufferRemaining","type":"uint256"}],"name":"BufferUsed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"oldContractAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newContractAdminRole","type":"bytes32"}],"name":"ContractAdminRoleUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldCore","type":"address"},{"indexed":true,"internalType":"address","name":"newCore","type":"address"}],"name":"CoreUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int256","name":"oldDecimalsNormalizer","type":"int256"},{"indexed":false,"internalType":"int256","name":"newDecimalsNormalizer","type":"int256"}],"name":"DecimalsNormalizerUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"oldDoInvert","type":"bool"},{"indexed":false,"internalType":"bool","name":"newDoInvert","type":"bool"}],"name":"InvertUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMaxFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxFee","type":"uint256"}],"name":"MaxFeeUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountFeiOut","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMintFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMintFee","type":"uint256"}],"name":"MintFeeUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"MintingPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"MintingUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCeiling","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCeiling","type":"uint256"}],"name":"OracleCeilingUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFloor","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFloor","type":"uint256"}],"name":"OracleFloorUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOracle","type":"address"},{"indexed":true,"internalType":"address","name":"newOracle","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":false,"internalType":"uint256","name":"oldRateLimitPerSecond","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRateLimitPerSecond","type":"uint256"}],"name":"RateLimitPerSecondUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountFeiIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountAssetOut","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldRedeemFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRedeemFee","type":"uint256"}],"name":"RedeemFeeUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"RedemptionsPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"RedemptionsUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldReservesThreshold","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newReservesThreshold","type":"uint256"}],"name":"ReservesThresholdUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IPCVDeposit","name":"oldTarget","type":"address"},{"indexed":false,"internalType":"contract IPCVDeposit","name":"newTarget","type":"address"}],"name":"SurplusTargetUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"WithdrawERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"WithdrawETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"CONTRACT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RATE_LIMIT_PER_SECOND","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allocateSurplus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"backupOracle","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceReportedIn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bufferCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ceiling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"core","outputs":[{"internalType":"contract ICore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalsNormalizer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"doInvert","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doPartialAction","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"floor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxMintAmountOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"getMintAmountOut","outputs":[{"internalType":"uint256","name":"amountFeiOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountFeiIn","type":"uint256"}],"name":"getRedeemAmountOut","outputs":[{"internalType":"uint256","name":"amountTokenOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSurplus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"_admin","type":"address"}],"name":"isContractAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPriceValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBufferUsedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"amountFeiOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPaused","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":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rateLimitPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"readOracle","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":"amountFeiIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservesSurplus","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservesThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"resistantBalanceAndFei","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newBackupOracle","type":"address"}],"name":"setBackupOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newBufferCap","type":"uint256"}],"name":"setBufferCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newContractAdminRole","type":"bytes32"}],"name":"setContractAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCore","type":"address"}],"name":"setCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"newDecimalsNormalizer","type":"int256"}],"name":"setDecimalsNormalizer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newDoInvert","type":"bool"}],"name":"setDoInvert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintFeeBasisPoints","type":"uint256"}],"name":"setMintFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCeilingBasisPoints","type":"uint256"}],"name":"setOracleCeilingBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFloorBasisPoints","type":"uint256"}],"name":"setOracleFloorBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRateLimitPerSecond","type":"uint256"}],"name":"setRateLimitPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRedeemFeeBasisPoints","type":"uint256"}],"name":"setRedeemFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newReservesThreshold","type":"uint256"}],"name":"setReservesThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPCVDeposit","name":"newTarget","type":"address"}],"name":"setSurplusTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"surplusTarget","outputs":[{"internalType":"contract IPCVDeposit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tribe","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tribeBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"underlyingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405261012c6011553480156200001757600080fd5b5060405162004fc538038062004fc58339810160408190526200003a9162000ccc565b8989898989898989898987878787878787878760000151886020015189604001518a606001518b608001518888600069021e19e0c9bab24000008383838b60008060006101000a81548160ff021916908315150217905550620000a3816200025160201b60201c565b5042600455620000b38262000353565b6007829055838311156200011f5760405162461bcd60e51b815260206004820152602860248201527f526174654c696d697465643a20726174654c696d69745065725365636f6e64206044820152670e8dede40d0d2ced60c31b60648201526084015b60405180910390fd5b6200012a83620003a3565b60809390935250506006805460ff191691151591909117905550620001539150859050620003e2565b6001600160a01b038316158015906200017e5750836001600160a01b0316836001600160a01b031614155b156200018f576200018f836200048c565b6200019a81620004de565b620001a58262000552565b50506001600c555050506001600160a01b03821660a052620001c78562000591565b620001d2876200062c565b620001dd86620006d4565b620001e8816200077e565b620002137f1749ca1ca3564d20da6efea465c2a5ae869a9e4b006da7035e688beb14d704e062000837565b50505050505050506200022c896200087060201b60201c565b620002378a620009ca565b505050505050505050505050505050505050505062000f2d565b60025460ff1615620002a65760405162461bcd60e51b815260206004820152601c60248201527f436f72655265663a20616c726561647920696e697469616c697a656400000000604482015260640162000116565b60028054600160ff1990911617905560008054610100600160a81b0319166101006001600160a01b038481168202929092179283905560408051631c5bfa2360e11b81529051620003509492909204909216916338b7f4469160048083019260209291908290030181865afa15801562000324573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200034a919062000df2565b62000837565b50565b6200035d62000b22565b600580549082905560408051828152602081018490527f52d0e582769dcd1e242b38b9a795ef4699f2eca0f23b1d8f94368efb27bcd5ff91015b60405180910390a15050565b600380549082905560408051828152602081018490527fc1d6758c9eb8ba949914722321f508e4cd1e14d3ff96773ef5950336d8a2c63a910162000397565b6001600160a01b0381166200043a5760405162461bcd60e51b815260206004820152601760248201527f4f7261636c655265663a207a65726f2061646472657373000000000000000000604482015260640162000116565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f93450534569bdbb3109b44eef77c9b236897f4caa4f201be10252d6462a5693790600090a35050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f492cc1f8400b642b4e56de46ed10d314a49bf3e0594c43e2e5947c1e1733645b90600090a35050565b600b805482151560ff198216811790925560ff169081151514620005185762000518600a5460001962000512919062000e22565b62000552565b60408051821515815283151560208201527f16b9ae7ca814a6dfd3357b20f33bcc7c194676988d5da46846628da394df8ab3910162000397565b600a80549082905560408051828152602081018490527fc45ec9015c033bb1ee553a67346dd851062dddce070a6dddb7616e5d7595bcc2910162000397565b60008111620005ed5760405162461bcd60e51b8152602060048201526032602482015260008051602062004fa58339815191526044820152711c995cd95c9d995cc81d1a1c995cda1bdb1960721b606482015260840162000116565b600f80549082905560408051828152602081018490527f11f873e0db7952f2f3eab9ad99121a8661e39c5cb67d33d51665f9f3e75d799e910162000397565b601154811115620006955760405162461bcd60e51b815260206004820152602c60248201527f50656753746162696c6974794d6f64756c653a204d696e74206665652065786360448201526b65656473206d61782066656560a01b606482015260840162000116565b600d80549082905560408051828152602081018490527f06255fba5f99bcc77a5d27ee1222dd110e196ad4cfba488e1fceccbec8dedc68910162000397565b6011548111156200073f5760405162461bcd60e51b815260206004820152602e60248201527f50656753746162696c6974794d6f64756c653a2052656465656d20666565206560448201526d786365656473206d61782066656560901b606482015260840162000116565b600e80549082905560408051828152602081018490527f288d91cad90f9c412f12c0869aa634660d8403c9590aa55fd5035212c6f98c95910162000397565b6001600160a01b038116620007dc5760405162461bcd60e51b815260206004820152602e602482015260008051602062004fa583398151915260448201526d1cdd5c9c1b1d5cc81d185c99d95d60921b606482015260840162000116565b601080546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f70dc5d19a845312f7e3a89f1894fe84155cbd0a1f8434ebf02d9de842d982325910162000397565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b80620008cb5760405162461bcd60e51b815260206004820152602360248201527f50656753746162696c6974794d6f64756c653a20696e76616c6964206365696c604482015262696e6760e81b606482015260840162000116565b62000917620008ea60135461271062000b3560201b620023e31760201c565b620009038361271062000b3560201b620023e31760201c565b62000b7560201b620024191790919060201c565b6200098b5760405162461bcd60e51b815260206004820152603660248201527f50656753746162696c6974794d6f64756c653a206365696c696e67206d75737460448201527f2062652067726561746572207468616e20666c6f6f7200000000000000000000606482015260840162000116565b601480549082905560408051828152602081018490527f15ddf2d8b0f5def2d9096715ee6dbe8646cd0a5c0225c781525b943244e1a7a3910162000397565b8062000a235760405162461bcd60e51b815260206004820152602160248201527f50656753746162696c6974794d6f64756c653a20696e76616c696420666c6f6f6044820152603960f91b606482015260840162000116565b62000a6f62000a4260145461271062000b3560201b620023e31760201c565b62000a5b8361271062000b3560201b620023e31760201c565b62000b8d60201b6200242f1790919060201c565b62000ae35760405162461bcd60e51b815260206004820152603360248201527f50656753746162696c6974794d6f64756c653a20666c6f6f72206d757374206260448201527f65206c657373207468616e206365696c696e6700000000000000000000000000606482015260840162000116565b601380549082905560408051828152602081018490527fa91829da8506bd47a58affb492ad10b559a97ce6fefc606c084df3d22f83dd90910162000397565b62000b2c62000ba3565b60075542600455565b604080516020810190915260008152604051806020016040528062000b6a85670de0b6b3a76400008662000bf560201b60201c565b905290505b92915050565b600062000b83838362000c32565b6002149392505050565b600062000b9b838362000c32565b159392505050565b6000806004544262000bb6919062000eb3565b905062000bef8160035462000bcc919062000ecd565b60075462000bdb919062000eef565b60055462000c6860201b620024431760201c565b91505090565b600062000c2a8262000c16858762000c8260201b6200245b1790919060201c565b62000c9060201b620024671790919060201c565b949350505050565b80518251600091141562000c495750600162000b6f565b815183511162000c5b57600062000c5e565b60025b60ff169392505050565b600081831062000c79578162000c7b565b825b9392505050565b600062000c7b828462000ecd565b600062000c7b828462000f0a565b80516001600160a01b038116811462000cb657600080fd5b919050565b8051801515811462000cb657600080fd5b6000806000806000806000806000808a8c036101c081121562000cee57600080fd5b8b519a5060208c0151995060a0603f198201121562000d0c57600080fd5b5060405160a081016001600160401b038111828210171562000d3e57634e487b7160e01b600052604160045260246000fd5b806040525062000d5160408d0162000c9e565b815262000d6160608d0162000c9e565b602082015262000d7460808d0162000c9e565b604082015260a08c0151606082015262000d9160c08d0162000cbb565b60808201528098505060e08b015196506101008b015195506101208b015194506101408b015193506101608b0151925062000dd06101808c0162000c9e565b915062000de16101a08c0162000c9e565b90509295989b9194979a5092959850565b60006020828403121562000e0557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60006001600160ff1b038184138284138082168684048611161562000e4b5762000e4b62000e0c565b600160ff1b600087128281168783058912161562000e6d5762000e6d62000e0c565b6000871292508782058712848416161562000e8c5762000e8c62000e0c565b8785058712818416161562000ea55762000ea562000e0c565b505050929093029392505050565b60008282101562000ec85762000ec862000e0c565b500390565b600081600019048311821515161562000eea5762000eea62000e0c565b500290565b6000821982111562000f055762000f0562000e0c565b500190565b60008262000f2857634e487b7160e01b600052601260045260246000fd5b500490565b60805160a05161402862000f7d6000396000818161044f015281816104b001528181611cc001528181612339015281816134850152613556015260008181610709015261194501526140286000f3fe608060405234801561001057600080fd5b50600436106103f15760003560e01c80637e4831d311610215578063ba82051b11610125578063d3488442116100b8578063eddd0d9c11610087578063eddd0d9c146107be578063f2f4eb26146107d1578063f3fef3a3146107e7578063fc81a12a146107fa578063ff2ca34c1461080d57600080fd5b8063d348844214610788578063d6f124f01461079b578063e3d91a89146107a3578063edaafe20146107b657600080fd5b8063cf63fc63116100f4578063cf63fc6314610758578063d01b3de014610765578063d0e30db01461076d578063d2808cbd1461077557600080fd5b8063ba82051b1461072b578063bc063e1a14610734578063bf8c8e9e1461073d578063cd85cdb51461075057600080fd5b80639a9ba4da116101a8578063b490589711610177578063b4905897146106d9578063b69ef8a8146106e1578063b7ad9f12146106e9578063b86677fe146106fc578063b91628951461070457600080fd5b80639a9ba4da146106b4578063ab1d1e74146106bc578063af3345d1146106c4578063b235d468146106cc57600080fd5b80638f9e7f32116101e45780638f9e7f321461068757806390e3ea5c1461069a57806393c61130146106a35780639635f75f146106ac57600080fd5b80637e4831d3146106475780638000963014610659578063836efd311461066c5780638456cb591461067f57600080fd5b806340695363116103105780635d841af5116102a35780636e791c83116102725780636e791c83146105fc57806373ab1ddd1461060f578063753ed1bd146106185780637adbf973146106215780637dc0d1d01461063457600080fd5b80635d841af5146105c65780635e3b96ef146105d957806367a33d7d146105ec5780636b6dff0a146105f457600080fd5b80634951fcd4116102df5780634951fcd4146105825780635936b6371461059f5780635c975abb146105b25780635c9ffc6e146105bd57600080fd5b8063406953631461054a57806342501e011461055357806344004cc11461055c5780634782f7791461056f57600080fd5b80632495a5991161038857806332ec84d21161035757806332ec84d21461050b5780633611956c146105135780633be8261b1461052b5780633f4ba83a1461054257600080fd5b80632495a599146104ab57806325498401146104d25780632b83cccd146104e55780632ee2820b146104f857600080fd5b80630c68f63b116103c45780630c68f63b1461044d578063156e29f6146104875780631a8bd2da1461049a5780631da03312146104a257600080fd5b806303bd9edd146103f6578063077e5fe31461040b57806309debcec146104315780630ae7a8ed14610444575b600080fd5b610409610404366004613965565b61081a565b005b61041e610419366004613965565b6108bb565b6040519081526020015b60405180910390f35b61040961043f366004613965565b6108cc565b61041e60055481565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610428565b61041e610495366004613993565b610970565b610409610a68565b61041e60015481565b61046f7f000000000000000000000000000000000000000000000000000000000000000081565b6104096104e03660046139c8565b610bba565b61041e6104f3366004613993565b610c5e565b610409610506366004613965565b610d43565b610409610de7565b61051b610f35565b6040519015158152602001610428565b610533610f4c565b60405190518152602001610428565b61040961112e565b61041e60135481565b61041e60035481565b61040961056a3660046139e5565b61123a565b61040961057d366004613a26565b6112d6565b61058a6113b0565b60408051928352602083019190915201610428565b6104096105ad366004613a60565b6113cb565b60005460ff1661051b565b61041e600f5481565b6104096105d4366004613965565b611460565b60105461046f906001600160a01b031681565b61041e611504565b61041e61152b565b61053361060a366004613a7d565b6115a0565b61041e600a5481565b61041e60145481565b61040961062f3660046139c8565b6115d6565b60085461046f906001600160a01b031681565b60125461051b90610100900460ff1681565b6104096106673660046139c8565b61166b565b60095461046f906001600160a01b031681565b61040961179e565b610409610695366004613965565b6118a8565b61041e600d5481565b61041e60045481565b6104096119d5565b61046f611a55565b61041e611acd565b610409611b53565b60125461051b9060ff1681565b61041e611c9e565b61041e611ca8565b6104096106f7366004613965565b611cf7565b61046f611d9b565b61041e7f000000000000000000000000000000000000000000000000000000000000000081565b61041e600e5481565b61041e60115481565b61040961074b3660046139c8565b611def565b610409611e93565b60065461051b9060ff1681565b61051b611fe3565b610409611ff6565b610409610783366004613965565b612017565b610409610796366004613965565b6120bb565b610409612150565b61041e6107b1366004613965565b6121ba565b61041e6121c5565b6104096107cc366004613965565b612204565b60005461010090046001600160a01b031661046f565b6104096107f5366004613a26565b6122a8565b61051b6108083660046139c8565b612363565b600b5461051b9060ff1681565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610866573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088a9190613acd565b6108af5760405162461bcd60e51b81526004016108a690613aea565b60405180910390fd5b6108b881612473565b50565b60006108c6826124b9565b92915050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610918573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093c9190613acd565b8061094b575061094b33612363565b6109675760405162461bcd60e51b81526004016108a690613b2b565b6108b881612529565b60006002600c5414156109c55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a6565b6002600c5560005460ff16156109ed5760405162461bcd60e51b81526004016108a690613b7e565b601254610100900460ff1615610a505760405162461bcd60e51b815260206004820152602260248201527f50656753746162696c6974794d6f64756c653a204d696e74696e672070617573604482015261195960f21b60648201526084016108a6565b610a5b848484612649565b6001600c55949350505050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190613acd565b80610b4e5750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015610b2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4e9190613acd565b80610b5d5750610b5d33612363565b610b795760405162461bcd60e51b81526004016108a690613ba8565b6012805461ff00191690556040513381527fd772a9007742ba57886abe6ba82f5094ce4eaa4c1564be00395e5eb5cbc1298d906020015b60405180910390a1565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2a9190613acd565b80610c395750610c3933612363565b610c555760405162461bcd60e51b81526004016108a690613b2b565b6108b8816127d6565b60006002600c541415610cb35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a6565b6002600c5560005460ff1615610cdb5760405162461bcd60e51b81526004016108a690613b7e565b60125460ff1615610d385760405162461bcd60e51b815260206004820152602160248201527f50656753746162696c6974794d6f64756c653a2052656465656d2070617573656044820152601960fa1b60648201526084016108a6565b610a5b848484612828565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610d8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db39190613acd565b80610dc25750610dc233612363565b610dde5760405162461bcd60e51b81526004016108a690613b2b565b6108b88161291a565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610e33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e579190613acd565b80610ecd5750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015610ea9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecd9190613acd565b80610edc5750610edc33612363565b610ef85760405162461bcd60e51b81526004016108a690613ba8565b6012805460ff191660011790556040513381527f7dbbd5642e73390b48a9065df0cff2dcd86b417c0148e685cc921737630c848c90602001610bb0565b6000610f47610f42610f4c565b6129c3565b905090565b604080516020810190915260008152600854604080516315f789a960e21b8152815160009384936001600160a01b03909116926357de26a492600480830193928290030181865afa158015610fa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc99190613bfc565b9150915080158015610fe557506009546001600160a01b031615155b1561105b57600954604080516315f789a960e21b815281516001600160a01b03909316926357de26a4926004808401939192918290030181865afa158015611031573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110559190613bfc565b90925090505b806110a85760405162461bcd60e51b815260206004820152601960248201527f4f7261636c655265663a206f7261636c6520696e76616c69640000000000000060448201526064016108a6565b600080600a5412156110ea576110cc600a546000196110c79190613c89565b6129fc565b6110d790600a613df2565b90506110e38382612a52565b925061110f565b6110f5600a546129fc565b61110090600a613df2565b905061110c8382612a7a565b92505b600b5460ff161561112657611123836115a0565b92505b509092915050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa15801561117a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119e9190613acd565b806112145750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa1580156111f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112149190613acd565b6112305760405162461bcd60e51b81526004016108a690613dfe565b611238612aa2565b565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa158015611286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112aa9190613acd565b6112c65760405162461bcd60e51b81526004016108a690613e4b565b6112d1838383612b30565b505050565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa158015611322573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113469190613acd565b6113625760405162461bcd60e51b81526004016108a690613e4b565b61136c8282612ba0565b6040518181526001600160a01b0383169033907f6b1f4ce962fec27598edceab6195c77516c3df32025eaf0c38d0d4009ac3bd489060200160405180910390a35050565b6000806113bb611ca8565b6113c3611c9e565b915091509091565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611417573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143b9190613acd565b6114575760405162461bcd60e51b81526004016108a690613aea565b6108b881612cb9565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156114ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d09190613acd565b806114df57506114df33612363565b6114fb5760405162461bcd60e51b81526004016108a690613b2b565b6108b881612d27565b6000611511600f54612dce565b61152161151c611ca8565b612dce565b610f479190613e92565b6000611535611d9b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a08231906024015b602060405180830381865afa15801561157c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f479190613ed1565b6040805160208082018352600080835283518083018552528251908101909252670de0b6b3a76400008252906108c69083612e38565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116469190613acd565b6116625760405162461bcd60e51b81526004016108a690613aea565b6108b881612e6d565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156116b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116db9190613acd565b6116f75760405162461bcd60e51b81526004016108a690613aea565b6001600160a01b0381166117455760405162461bcd60e51b8152602060048201526015602482015274436f72655265663a207a65726f206164647265737360581b60448201526064016108a6565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f9209b7c8c06dcfd261686a663e7c55989337b18d59da5433c6f2835fb697092091a35050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156117ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180e9190613acd565b806118845750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015611860573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118849190613acd565b6118a05760405162461bcd60e51b81526004016108a690613dfe565b611238612f15565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156118f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119189190613acd565b80611927575061192733612363565b6119435760405162461bcd60e51b81526004016108a690613b2b565b7f00000000000000000000000000000000000000000000000000000000000000008111156119c45760405162461bcd60e51b815260206004820152602860248201527f526174654c696d697465643a20726174654c696d69745065725365636f6e64206044820152670e8dede40d0d2ced60c31b60648201526084016108a6565b6119cc612f6d565b6108b881612f7e565b60006119df611504565b905060008113611a445760405162461bcd60e51b815260206004820152602a60248201527f50656753746162696c6974794d6f64756c653a204e6f20737572706c757320746044820152696f20616c6c6f6361746560b01b60648201526084016108a6565b6108b8611a50826129fc565b612fbc565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639a9ba4da6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f479190613eea565b6000611ad76121c5565b611adf611a55565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611b25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b499190613ed1565b610f479190613f07565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc39190613acd565b80611c395750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015611c15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c399190613acd565b80611c485750611c4833612363565b611c645760405162461bcd60e51b81526004016108a690613ba8565b6012805460ff191690556040513381527f52199c9a84e8137486458d9d5d47455ac6a123b345ff11204badf27318dafdf190602001610bb0565b6000611535611a55565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240161155f565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611d43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d679190613acd565b80611d765750611d7633612363565b611d925760405162461bcd60e51b81526004016108a690613b2b565b6108b881613072565b60008060019054906101000a90046001600160a01b03166001600160a01b031663b86677fe6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aa9573d6000803e3d6000fd5b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611e3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5f9190613acd565b80611e6e5750611e6e33612363565b611e8a5760405162461bcd60e51b81526004016108a690613b2b565b6108b881613197565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611edf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f039190613acd565b80611f795750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015611f55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f799190613acd565b80611f885750611f8833612363565b611fa45760405162461bcd60e51b81526004016108a690613ba8565b6012805461ff0019166101001790556040513381527f35365f539a67058ad0735a24a50fe45b0ee05207919e9f4a2f60d855f55e0c0e90602001610bb0565b6000600f54611ff0611ca8565b11905090565b6000612000611504565b905060008113156108b8576108b8611a50826129fc565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015612063573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120879190613acd565b80612096575061209633612363565b6120b25760405162461bcd60e51b81526004016108a690613b2b565b6108b88161325e565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015612107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212b9190613acd565b6121475760405162461bcd60e51b81526004016108a690613aea565b6108b8816132a4565b600860009054906101000a90046001600160a01b03166001600160a01b031663a2e620456040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156121a057600080fd5b505af11580156121b4573d6000803e3d6000fd5b50505050565b60006108c6826132dd565b600080600454426121d69190613f1f565b90506121fe816003546121e99190613f36565b6007546121f69190613f07565b600554612443565b91505090565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015612250573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122749190613acd565b80612283575061228333612363565b61229f5760405162461bcd60e51b81526004016108a690613b2b565b6108b88161330f565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa1580156122f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123189190613acd565b6123345760405162461bcd60e51b81526004016108a690613e4b565b61235f7f00000000000000000000000000000000000000000000000000000000000000008383612b30565b5050565b60008054600154604051632474521560e21b815260048101919091526001600160a01b038481166024830152610100909204909116906391d1485490604401602060405180830381865afa1580156123bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c69190613acd565b604080516020810190915260008152604051806020016040528061241085670de0b6b3a7640000866133b4565b90529392505050565b600061242583836133d2565b6002149392505050565b600061243b83836133d2565b159392505050565b60008183106124525781612454565b825b9392505050565b60006124548284613f36565b60006124548284613f55565b600a80549082905560408051828152602081018490527fc45ec9015c033bb1ee553a67346dd851062dddce070a6dddb7616e5d7595bcc291015b60405180910390a15050565b6000806124c4610f4c565b90506124cf81613404565b61245461252461271061251e600e546127106124eb9190613f1f565b61251888612518604080516020808201835260009091528151908101909152670de0b6b3a7640000815290565b90612a7a565b90612a52565b613469565b806125805760405162461bcd60e51b815260206004820152602160248201527f50656753746162696c6974794d6f64756c653a20696e76616c696420666c6f6f6044820152603960f91b60648201526084016108a6565b6125a36125916014546127106123e3565b61259d836127106123e3565b9061242f565b61260b5760405162461bcd60e51b815260206004820152603360248201527f50656753746162696c6974794d6f64756c653a20666c6f6f72206d757374206260448201527265206c657373207468616e206365696c696e6760681b60648201526084016108a6565b601380549082905560408051828152602081018490527fa91829da8506bd47a58affb492ad10b559a97ce6fefc606c084df3d22f83dd9091016124ad565b6000612653612150565b61265c836132dd565b9050818110156126be5760405162461bcd60e51b815260206004820152602760248201527f50656753746162696c6974794d6f64756c653a204d696e74206e6f7420656e6f6044820152661d59da081bdd5d60ca1b60648201526084016108a6565b6126c9333085613480565b60006127466126d6611a55565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa15801561271c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127409190613ed1565b83612443565b905060006127548284613f1f565b90506127738683612763611a55565b6001600160a01b031691906134ac565b801561278357612783868261350f565b604080516001600160a01b0388168152602081018790529081018490527f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f9060600160405180910390a150509392505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f492cc1f8400b642b4e56de46ed10d314a49bf3e0594c43e2e5947c1e1733645b90600090a35050565b6000612832612150565b61283b836124b9565b90508181101561289f5760405162461bcd60e51b815260206004820152602960248201527f50656753746162696c6974794d6f64756c653a2052656465656d206e6f7420656044820152681b9bdd59da081bdd5d60ba1b60648201526084016108a6565b6128be3330856128ad611a55565b6001600160a01b0316929190613519565b6128c88482613551565b604080516001600160a01b0386168152602081018590529081018290527fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929906060015b60405180910390a19392505050565b600081116129855760405162461bcd60e51b815260206004820152603260248201527f50656753746162696c6974794d6f64756c653a20496e76616c6964206e6577206044820152711c995cd95c9d995cc81d1a1c995cda1bdb1960721b60648201526084016108a6565b600f80549082905560408051828152602081018490527f11f873e0db7952f2f3eab9ad99121a8661e39c5cb67d33d51665f9f3e75d799e91016124ad565b60006129dd6129d66013546127106123e3565b8390612419565b80156108c657506108c66129f56014546127106123e3565b839061242f565b600080821215612a4e5760405162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f73697469766560448201526064016108a6565b5090565b6040805160208101909152600081526040805160208101909152835181906124109085612467565b604080516020810190915260008152604080516020810190915283518190612410908561245b565b60005460ff16612aeb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108a6565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001610bb0565b612b446001600160a01b03841683836134ac565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f08c1fcaf583c2b413bb27833685230422583405ae651b6d53e2053bf75bd074084604051612b9391815260200190565b60405180910390a4505050565b80471015612bf05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108a6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612c3d576040519150601f19603f3d011682016040523d82523d6000602084013e612c42565b606091505b50509050806112d15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108a6565b600b805482151560ff198216811790925560ff169081151514612cee57612cee600a54600019612ce99190613c89565b612473565b60408051821515815283151560208201527f16b9ae7ca814a6dfd3357b20f33bcc7c194676988d5da46846628da394df8ab391016124ad565b601154811115612d905760405162461bcd60e51b815260206004820152602e60248201527f50656753746162696c6974794d6f64756c653a2052656465656d20666565206560448201526d786365656473206d61782066656560901b60648201526084016108a6565b600e80549082905560408051828152602081018490527f288d91cad90f9c412f12c0869aa634660d8403c9590aa55fd5035212c6f98c9591016124ad565b60006001600160ff1b03821115612a4e5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b60648201526084016108a6565b60408051602081019091526000815260405180602001604052806124108560000151670de0b6b3a764000086600001516133b4565b6001600160a01b038116612ec35760405162461bcd60e51b815260206004820152601760248201527f4f7261636c655265663a207a65726f206164647265737300000000000000000060448201526064016108a6565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f93450534569bdbb3109b44eef77c9b236897f4caa4f201be10252d6462a5693790600090a35050565b60005460ff1615612f385760405162461bcd60e51b81526004016108a690613b7e565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612b183390565b612f756121c5565b60075542600455565b600380549082905560408051828152602081018490527fc1d6758c9eb8ba949914722321f508e4cd1e14d3ff96773ef5950336d8a2c63a91016124ad565b601054612fd2906001600160a01b031682613551565b601060009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561302257600080fd5b505af1158015613036573d6000803e3d6000fd5b50506040518381523392507f26b1c64768593a5154cde08c3114534f1c582b6cb597bd6c0c29587f48c2004f915060200160405180910390a250565b806130cb5760405162461bcd60e51b815260206004820152602360248201527f50656753746162696c6974794d6f64756c653a20696e76616c6964206365696c604482015262696e6760e81b60648201526084016108a6565b6130ee6130dc6013546127106123e3565b6130e8836127106123e3565b90612419565b6131595760405162461bcd60e51b815260206004820152603660248201527f50656753746162696c6974794d6f64756c653a206365696c696e67206d7573746044820152751031329033b932b0ba32b9103a3430b710333637b7b960511b60648201526084016108a6565b601480549082905560408051828152602081018490527f15ddf2d8b0f5def2d9096715ee6dbe8646cd0a5c0225c781525b943244e1a7a391016124ad565b6001600160a01b0381166132045760405162461bcd60e51b815260206004820152602e60248201527f50656753746162696c6974794d6f64756c653a20496e76616c6964206e65772060448201526d1cdd5c9c1b1d5cc81d185c99d95d60921b60648201526084016108a6565b601080546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f70dc5d19a845312f7e3a89f1894fe84155cbd0a1f8434ebf02d9de842d98232591016124ad565b613266612f6d565b600580549082905560408051828152602081018490527f52d0e582769dcd1e242b38b9a795ef4699f2eca0f23b1d8f94368efb27bcd5ff91016124ad565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b6000806132e8610f4c565b90506132f381613404565b61245461252461271061251e600d546127106124eb9190613f1f565b6011548111156133765760405162461bcd60e51b815260206004820152602c60248201527f50656753746162696c6974794d6f64756c653a204d696e74206665652065786360448201526b65656473206d61782066656560a01b60648201526084016108a6565b600d80549082905560408051828152602081018490527f06255fba5f99bcc77a5d27ee1222dd110e196ad4cfba488e1fceccbec8dedc6891016124ad565b60006133ca826133c4868661245b565b90612467565b949350505050565b8051825160009114156133e7575060016108c6565b81518351116133f75760006133fa565b60025b60ff169392505050565b61340d816129c3565b6108b85760405162461bcd60e51b815260206004820152602760248201527f50656753746162696c6974794d6f64756c653a207072696365206f7574206f6660448201526620626f756e647360c81b60648201526084016108a6565b80516000906108c690670de0b6b3a7640000612467565b6112d17f0000000000000000000000000000000000000000000000000000000000000000848484613519565b6040516001600160a01b0383166024820152604481018290526112d190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261357c565b61235f828261364e565b6040516001600160a01b03808516602483015283166044820152606481018290526121b49085906323b872dd60e01b906084016134d8565b61235f7f000000000000000000000000000000000000000000000000000000000000000083836134ac565b60006135d1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136659092919063ffffffff16565b8051909150156112d157808060200190518101906135ef9190613acd565b6112d15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108a6565b600061365982613674565b90506112d1838261378e565b60606133ca8484600085613804565b60008061367f6121c5565b600654909150839060ff16801561369557508181115b1561369d5750805b816136f45760405162461bcd60e51b815260206004820152602160248201527f526174654c696d697465643a206e6f2072617465206c696d69742062756666656044820152603960f91b60648201526084016108a6565b818111156137445760405162461bcd60e51b815260206004820152601b60248201527f526174654c696d697465643a2072617465206c696d697420686974000000000060448201526064016108a6565b61374e8183613f1f565b6007819055426004556040805183815260208101929092527fc89b99870f6dd9f35bdd8bada9a4e2a6ba2862d2b5be9eaf54f6b8a6987368fe910161290b565b801561235f5761379c611a55565b6040516340c10f1960e01b81526001600160a01b0384811660048301526024820184905291909116906340c10f1990604401600060405180830381600087803b1580156137e857600080fd5b505af11580156137fc573d6000803e3d6000fd5b505050505050565b6060824710156138655760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108a6565b843b6138b35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108a6565b600080866001600160a01b031685876040516138cf9190613fa3565b60006040518083038185875af1925050503d806000811461390c576040519150601f19603f3d011682016040523d82523d6000602084013e613911565b606091505b509150915061392182828661392c565b979650505050505050565b6060831561393b575081612454565b82511561394b5782518084602001fd5b8160405162461bcd60e51b81526004016108a69190613fbf565b60006020828403121561397757600080fd5b5035919050565b6001600160a01b03811681146108b857600080fd5b6000806000606084860312156139a857600080fd5b83356139b38161397e565b95602085013595506040909401359392505050565b6000602082840312156139da57600080fd5b81356124548161397e565b6000806000606084860312156139fa57600080fd5b8335613a058161397e565b92506020840135613a158161397e565b929592945050506040919091013590565b60008060408385031215613a3957600080fd5b8235613a448161397e565b946020939093013593505050565b80151581146108b857600080fd5b600060208284031215613a7257600080fd5b813561245481613a52565b600060208284031215613a8f57600080fd5b6040516020810181811067ffffffffffffffff82111715613ac057634e487b7160e01b600052604160045260246000fd5b6040529135825250919050565b600060208284031215613adf57600080fd5b815161245481613a52565b60208082526021908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f6040820152603960f91b606082015260800190565b60208082526033908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f604082015272391037b91031b7b73a3930b1ba1030b236b4b760691b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526034908201527f436f72655265663a2043616c6c6572206973206e6f7420676f7665726e6f722060408201527337b91033bab0b93234b0b71037b91030b236b4b760611b606082015260800190565b6000808284036040811215613c1057600080fd5b6020811215613c1e57600080fd5b506040516020810181811067ffffffffffffffff82111715613c5057634e487b7160e01b600052604160045260246000fd5b604052835181526020840151909250613c6881613a52565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b60006001600160ff1b0381841382841380821686840486111615613caf57613caf613c73565b600160ff1b6000871282811687830589121615613cce57613cce613c73565b60008712925087820587128484161615613cea57613cea613c73565b87850587128184161615613d0057613d00613c73565b505050929093029392505050565b600181815b80851115613d49578160001904821115613d2f57613d2f613c73565b80851615613d3c57918102915b93841c9390800290613d13565b509250929050565b600082613d60575060016108c6565b81613d6d575060006108c6565b8160018114613d835760028114613d8d57613da9565b60019150506108c6565b60ff841115613d9e57613d9e613c73565b50506001821b6108c6565b5060208310610133831016604e8410600b8410161715613dcc575081810a6108c6565b613dd68383613d0e565b8060001904821115613dea57613dea613c73565b029392505050565b60006124548383613d51565b6020808252602d908201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160408201526c371037b91033b7bb32b93737b960991b606082015260800190565b60208082526027908201527f436f72655265663a2043616c6c6572206973206e6f7420612050435620636f6e6040820152663a3937b63632b960c91b606082015260800190565b60008083128015600160ff1b850184121615613eb057613eb0613c73565b6001600160ff1b0384018313811615613ecb57613ecb613c73565b50500390565b600060208284031215613ee357600080fd5b5051919050565b600060208284031215613efc57600080fd5b81516124548161397e565b60008219821115613f1a57613f1a613c73565b500190565b600082821015613f3157613f31613c73565b500390565b6000816000190483118215151615613f5057613f50613c73565b500290565b600082613f7257634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015613f92578181015183820152602001613f7a565b838111156121b45750506000910152565b60008251613fb5818460208701613f77565b9190910192915050565b6020815260008251806020840152613fde816040850160208701613f77565b601f01601f1916919091016040019291505056fea2646970667358221220f7f8f0501bce20db39452b518a49902b8ed58c3fb4b5b47201e4a9392981563464736f6c634300080a003350656753746162696c6974794d6f64756c653a20496e76616c6964206e6577200000000000000000000000000000000000000000000000000000000000002616000000000000000000000000000000000000000000000000000000000000280a0000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b9000000000000000000000000231ada12e273edf3fa54cbd90c5c1a73129d5bb9000000000000000000000000231ada12e273edf3fa54cbd90c5c1a73129d5bb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000108b2a2c2802909400000000000000000000000000000000000000000000000000021e19e0c9bab2400000000000000000000000000000000000000000000000108b2a2c280290940000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000e0f73b8d76d2ad33492f995af218b03564b8ce20
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103f15760003560e01c80637e4831d311610215578063ba82051b11610125578063d3488442116100b8578063eddd0d9c11610087578063eddd0d9c146107be578063f2f4eb26146107d1578063f3fef3a3146107e7578063fc81a12a146107fa578063ff2ca34c1461080d57600080fd5b8063d348844214610788578063d6f124f01461079b578063e3d91a89146107a3578063edaafe20146107b657600080fd5b8063cf63fc63116100f4578063cf63fc6314610758578063d01b3de014610765578063d0e30db01461076d578063d2808cbd1461077557600080fd5b8063ba82051b1461072b578063bc063e1a14610734578063bf8c8e9e1461073d578063cd85cdb51461075057600080fd5b80639a9ba4da116101a8578063b490589711610177578063b4905897146106d9578063b69ef8a8146106e1578063b7ad9f12146106e9578063b86677fe146106fc578063b91628951461070457600080fd5b80639a9ba4da146106b4578063ab1d1e74146106bc578063af3345d1146106c4578063b235d468146106cc57600080fd5b80638f9e7f32116101e45780638f9e7f321461068757806390e3ea5c1461069a57806393c61130146106a35780639635f75f146106ac57600080fd5b80637e4831d3146106475780638000963014610659578063836efd311461066c5780638456cb591461067f57600080fd5b806340695363116103105780635d841af5116102a35780636e791c83116102725780636e791c83146105fc57806373ab1ddd1461060f578063753ed1bd146106185780637adbf973146106215780637dc0d1d01461063457600080fd5b80635d841af5146105c65780635e3b96ef146105d957806367a33d7d146105ec5780636b6dff0a146105f457600080fd5b80634951fcd4116102df5780634951fcd4146105825780635936b6371461059f5780635c975abb146105b25780635c9ffc6e146105bd57600080fd5b8063406953631461054a57806342501e011461055357806344004cc11461055c5780634782f7791461056f57600080fd5b80632495a5991161038857806332ec84d21161035757806332ec84d21461050b5780633611956c146105135780633be8261b1461052b5780633f4ba83a1461054257600080fd5b80632495a599146104ab57806325498401146104d25780632b83cccd146104e55780632ee2820b146104f857600080fd5b80630c68f63b116103c45780630c68f63b1461044d578063156e29f6146104875780631a8bd2da1461049a5780631da03312146104a257600080fd5b806303bd9edd146103f6578063077e5fe31461040b57806309debcec146104315780630ae7a8ed14610444575b600080fd5b610409610404366004613965565b61081a565b005b61041e610419366004613965565b6108bb565b6040519081526020015b60405180910390f35b61040961043f366004613965565b6108cc565b61041e60055481565b7f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f5b6040516001600160a01b039091168152602001610428565b61041e610495366004613993565b610970565b610409610a68565b61041e60015481565b61046f7f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f81565b6104096104e03660046139c8565b610bba565b61041e6104f3366004613993565b610c5e565b610409610506366004613965565b610d43565b610409610de7565b61051b610f35565b6040519015158152602001610428565b610533610f4c565b60405190518152602001610428565b61040961112e565b61041e60135481565b61041e60035481565b61040961056a3660046139e5565b61123a565b61040961057d366004613a26565b6112d6565b61058a6113b0565b60408051928352602083019190915201610428565b6104096105ad366004613a60565b6113cb565b60005460ff1661051b565b61041e600f5481565b6104096105d4366004613965565b611460565b60105461046f906001600160a01b031681565b61041e611504565b61041e61152b565b61053361060a366004613a7d565b6115a0565b61041e600a5481565b61041e60145481565b61040961062f3660046139c8565b6115d6565b60085461046f906001600160a01b031681565b60125461051b90610100900460ff1681565b6104096106673660046139c8565b61166b565b60095461046f906001600160a01b031681565b61040961179e565b610409610695366004613965565b6118a8565b61041e600d5481565b61041e60045481565b6104096119d5565b61046f611a55565b61041e611acd565b610409611b53565b60125461051b9060ff1681565b61041e611c9e565b61041e611ca8565b6104096106f7366004613965565b611cf7565b61046f611d9b565b61041e7f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b61041e600e5481565b61041e60115481565b61040961074b3660046139c8565b611def565b610409611e93565b60065461051b9060ff1681565b61051b611fe3565b610409611ff6565b610409610783366004613965565b612017565b610409610796366004613965565b6120bb565b610409612150565b61041e6107b1366004613965565b6121ba565b61041e6121c5565b6104096107cc366004613965565b612204565b60005461010090046001600160a01b031661046f565b6104096107f5366004613a26565b6122a8565b61051b6108083660046139c8565b612363565b600b5461051b9060ff1681565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610866573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088a9190613acd565b6108af5760405162461bcd60e51b81526004016108a690613aea565b60405180910390fd5b6108b881612473565b50565b60006108c6826124b9565b92915050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610918573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093c9190613acd565b8061094b575061094b33612363565b6109675760405162461bcd60e51b81526004016108a690613b2b565b6108b881612529565b60006002600c5414156109c55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a6565b6002600c5560005460ff16156109ed5760405162461bcd60e51b81526004016108a690613b7e565b601254610100900460ff1615610a505760405162461bcd60e51b815260206004820152602260248201527f50656753746162696c6974794d6f64756c653a204d696e74696e672070617573604482015261195960f21b60648201526084016108a6565b610a5b848484612649565b6001600c55949350505050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190613acd565b80610b4e5750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015610b2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4e9190613acd565b80610b5d5750610b5d33612363565b610b795760405162461bcd60e51b81526004016108a690613ba8565b6012805461ff00191690556040513381527fd772a9007742ba57886abe6ba82f5094ce4eaa4c1564be00395e5eb5cbc1298d906020015b60405180910390a1565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2a9190613acd565b80610c395750610c3933612363565b610c555760405162461bcd60e51b81526004016108a690613b2b565b6108b8816127d6565b60006002600c541415610cb35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a6565b6002600c5560005460ff1615610cdb5760405162461bcd60e51b81526004016108a690613b7e565b60125460ff1615610d385760405162461bcd60e51b815260206004820152602160248201527f50656753746162696c6974794d6f64756c653a2052656465656d2070617573656044820152601960fa1b60648201526084016108a6565b610a5b848484612828565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610d8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db39190613acd565b80610dc25750610dc233612363565b610dde5760405162461bcd60e51b81526004016108a690613b2b565b6108b88161291a565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015610e33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e579190613acd565b80610ecd5750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015610ea9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecd9190613acd565b80610edc5750610edc33612363565b610ef85760405162461bcd60e51b81526004016108a690613ba8565b6012805460ff191660011790556040513381527f7dbbd5642e73390b48a9065df0cff2dcd86b417c0148e685cc921737630c848c90602001610bb0565b6000610f47610f42610f4c565b6129c3565b905090565b604080516020810190915260008152600854604080516315f789a960e21b8152815160009384936001600160a01b03909116926357de26a492600480830193928290030181865afa158015610fa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc99190613bfc565b9150915080158015610fe557506009546001600160a01b031615155b1561105b57600954604080516315f789a960e21b815281516001600160a01b03909316926357de26a4926004808401939192918290030181865afa158015611031573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110559190613bfc565b90925090505b806110a85760405162461bcd60e51b815260206004820152601960248201527f4f7261636c655265663a206f7261636c6520696e76616c69640000000000000060448201526064016108a6565b600080600a5412156110ea576110cc600a546000196110c79190613c89565b6129fc565b6110d790600a613df2565b90506110e38382612a52565b925061110f565b6110f5600a546129fc565b61110090600a613df2565b905061110c8382612a7a565b92505b600b5460ff161561112657611123836115a0565b92505b509092915050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa15801561117a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119e9190613acd565b806112145750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa1580156111f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112149190613acd565b6112305760405162461bcd60e51b81526004016108a690613dfe565b611238612aa2565b565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa158015611286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112aa9190613acd565b6112c65760405162461bcd60e51b81526004016108a690613e4b565b6112d1838383612b30565b505050565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa158015611322573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113469190613acd565b6113625760405162461bcd60e51b81526004016108a690613e4b565b61136c8282612ba0565b6040518181526001600160a01b0383169033907f6b1f4ce962fec27598edceab6195c77516c3df32025eaf0c38d0d4009ac3bd489060200160405180910390a35050565b6000806113bb611ca8565b6113c3611c9e565b915091509091565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611417573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143b9190613acd565b6114575760405162461bcd60e51b81526004016108a690613aea565b6108b881612cb9565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156114ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d09190613acd565b806114df57506114df33612363565b6114fb5760405162461bcd60e51b81526004016108a690613b2b565b6108b881612d27565b6000611511600f54612dce565b61152161151c611ca8565b612dce565b610f479190613e92565b6000611535611d9b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a08231906024015b602060405180830381865afa15801561157c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f479190613ed1565b6040805160208082018352600080835283518083018552528251908101909252670de0b6b3a76400008252906108c69083612e38565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116469190613acd565b6116625760405162461bcd60e51b81526004016108a690613aea565b6108b881612e6d565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156116b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116db9190613acd565b6116f75760405162461bcd60e51b81526004016108a690613aea565b6001600160a01b0381166117455760405162461bcd60e51b8152602060048201526015602482015274436f72655265663a207a65726f206164647265737360581b60448201526064016108a6565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f9209b7c8c06dcfd261686a663e7c55989337b18d59da5433c6f2835fb697092091a35050565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156117ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180e9190613acd565b806118845750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015611860573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118849190613acd565b6118a05760405162461bcd60e51b81526004016108a690613dfe565b611238612f15565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa1580156118f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119189190613acd565b80611927575061192733612363565b6119435760405162461bcd60e51b81526004016108a690613b2b565b7f00000000000000000000000000000000000000000000021e19e0c9bab24000008111156119c45760405162461bcd60e51b815260206004820152602860248201527f526174654c696d697465643a20726174654c696d69745065725365636f6e64206044820152670e8dede40d0d2ced60c31b60648201526084016108a6565b6119cc612f6d565b6108b881612f7e565b60006119df611504565b905060008113611a445760405162461bcd60e51b815260206004820152602a60248201527f50656753746162696c6974794d6f64756c653a204e6f20737572706c757320746044820152696f20616c6c6f6361746560b01b60648201526084016108a6565b6108b8611a50826129fc565b612fbc565b60008060019054906101000a90046001600160a01b03166001600160a01b0316639a9ba4da6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f479190613eea565b6000611ad76121c5565b611adf611a55565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611b25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b499190613ed1565b610f479190613f07565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc39190613acd565b80611c395750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015611c15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c399190613acd565b80611c485750611c4833612363565b611c645760405162461bcd60e51b81526004016108a690613ba8565b6012805460ff191690556040513381527f52199c9a84e8137486458d9d5d47455ac6a123b345ff11204badf27318dafdf190602001610bb0565b6000611535611a55565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f6001600160a01b0316906370a082319060240161155f565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611d43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d679190613acd565b80611d765750611d7633612363565b611d925760405162461bcd60e51b81526004016108a690613b2b565b6108b881613072565b60008060019054906101000a90046001600160a01b03166001600160a01b031663b86677fe6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611aa9573d6000803e3d6000fd5b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611e3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5f9190613acd565b80611e6e5750611e6e33612363565b611e8a5760405162461bcd60e51b81526004016108a690613b2b565b6108b881613197565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015611edf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f039190613acd565b80611f795750600054604051630c68ba2160e01b81523360048201526101009091046001600160a01b031690630c68ba2190602401602060405180830381865afa158015611f55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f799190613acd565b80611f885750611f8833612363565b611fa45760405162461bcd60e51b81526004016108a690613ba8565b6012805461ff0019166101001790556040513381527f35365f539a67058ad0735a24a50fe45b0ee05207919e9f4a2f60d855f55e0c0e90602001610bb0565b6000600f54611ff0611ca8565b11905090565b6000612000611504565b905060008113156108b8576108b8611a50826129fc565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015612063573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120879190613acd565b80612096575061209633612363565b6120b25760405162461bcd60e51b81526004016108a690613b2b565b6108b88161325e565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015612107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212b9190613acd565b6121475760405162461bcd60e51b81526004016108a690613aea565b6108b8816132a4565b600860009054906101000a90046001600160a01b03166001600160a01b031663a2e620456040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156121a057600080fd5b505af11580156121b4573d6000803e3d6000fd5b50505050565b60006108c6826132dd565b600080600454426121d69190613f1f565b90506121fe816003546121e99190613f36565b6007546121f69190613f07565b600554612443565b91505090565b600054604051631c86b03760e31b81523360048201526101009091046001600160a01b03169063e43581b890602401602060405180830381865afa158015612250573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122749190613acd565b80612283575061228333612363565b61229f5760405162461bcd60e51b81526004016108a690613b2b565b6108b88161330f565b6000546040516330c34a1f60e11b81523360048201526101009091046001600160a01b031690636186943e90602401602060405180830381865afa1580156122f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123189190613acd565b6123345760405162461bcd60e51b81526004016108a690613e4b565b61235f7f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f8383612b30565b5050565b60008054600154604051632474521560e21b815260048101919091526001600160a01b038481166024830152610100909204909116906391d1485490604401602060405180830381865afa1580156123bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c69190613acd565b604080516020810190915260008152604051806020016040528061241085670de0b6b3a7640000866133b4565b90529392505050565b600061242583836133d2565b6002149392505050565b600061243b83836133d2565b159392505050565b60008183106124525781612454565b825b9392505050565b60006124548284613f36565b60006124548284613f55565b600a80549082905560408051828152602081018490527fc45ec9015c033bb1ee553a67346dd851062dddce070a6dddb7616e5d7595bcc291015b60405180910390a15050565b6000806124c4610f4c565b90506124cf81613404565b61245461252461271061251e600e546127106124eb9190613f1f565b61251888612518604080516020808201835260009091528151908101909152670de0b6b3a7640000815290565b90612a7a565b90612a52565b613469565b806125805760405162461bcd60e51b815260206004820152602160248201527f50656753746162696c6974794d6f64756c653a20696e76616c696420666c6f6f6044820152603960f91b60648201526084016108a6565b6125a36125916014546127106123e3565b61259d836127106123e3565b9061242f565b61260b5760405162461bcd60e51b815260206004820152603360248201527f50656753746162696c6974794d6f64756c653a20666c6f6f72206d757374206260448201527265206c657373207468616e206365696c696e6760681b60648201526084016108a6565b601380549082905560408051828152602081018490527fa91829da8506bd47a58affb492ad10b559a97ce6fefc606c084df3d22f83dd9091016124ad565b6000612653612150565b61265c836132dd565b9050818110156126be5760405162461bcd60e51b815260206004820152602760248201527f50656753746162696c6974794d6f64756c653a204d696e74206e6f7420656e6f6044820152661d59da081bdd5d60ca1b60648201526084016108a6565b6126c9333085613480565b60006127466126d6611a55565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa15801561271c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127409190613ed1565b83612443565b905060006127548284613f1f565b90506127738683612763611a55565b6001600160a01b031691906134ac565b801561278357612783868261350f565b604080516001600160a01b0388168152602081018790529081018490527f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f9060600160405180910390a150509392505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f492cc1f8400b642b4e56de46ed10d314a49bf3e0594c43e2e5947c1e1733645b90600090a35050565b6000612832612150565b61283b836124b9565b90508181101561289f5760405162461bcd60e51b815260206004820152602960248201527f50656753746162696c6974794d6f64756c653a2052656465656d206e6f7420656044820152681b9bdd59da081bdd5d60ba1b60648201526084016108a6565b6128be3330856128ad611a55565b6001600160a01b0316929190613519565b6128c88482613551565b604080516001600160a01b0386168152602081018590529081018290527fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929906060015b60405180910390a19392505050565b600081116129855760405162461bcd60e51b815260206004820152603260248201527f50656753746162696c6974794d6f64756c653a20496e76616c6964206e6577206044820152711c995cd95c9d995cc81d1a1c995cda1bdb1960721b60648201526084016108a6565b600f80549082905560408051828152602081018490527f11f873e0db7952f2f3eab9ad99121a8661e39c5cb67d33d51665f9f3e75d799e91016124ad565b60006129dd6129d66013546127106123e3565b8390612419565b80156108c657506108c66129f56014546127106123e3565b839061242f565b600080821215612a4e5760405162461bcd60e51b815260206004820181905260248201527f53616665436173743a2076616c7565206d75737420626520706f73697469766560448201526064016108a6565b5090565b6040805160208101909152600081526040805160208101909152835181906124109085612467565b604080516020810190915260008152604080516020810190915283518190612410908561245b565b60005460ff16612aeb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108a6565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001610bb0565b612b446001600160a01b03841683836134ac565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f08c1fcaf583c2b413bb27833685230422583405ae651b6d53e2053bf75bd074084604051612b9391815260200190565b60405180910390a4505050565b80471015612bf05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108a6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612c3d576040519150601f19603f3d011682016040523d82523d6000602084013e612c42565b606091505b50509050806112d15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108a6565b600b805482151560ff198216811790925560ff169081151514612cee57612cee600a54600019612ce99190613c89565b612473565b60408051821515815283151560208201527f16b9ae7ca814a6dfd3357b20f33bcc7c194676988d5da46846628da394df8ab391016124ad565b601154811115612d905760405162461bcd60e51b815260206004820152602e60248201527f50656753746162696c6974794d6f64756c653a2052656465656d20666565206560448201526d786365656473206d61782066656560901b60648201526084016108a6565b600e80549082905560408051828152602081018490527f288d91cad90f9c412f12c0869aa634660d8403c9590aa55fd5035212c6f98c9591016124ad565b60006001600160ff1b03821115612a4e5760405162461bcd60e51b815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604482015267371034b73a191a9b60c11b60648201526084016108a6565b60408051602081019091526000815260405180602001604052806124108560000151670de0b6b3a764000086600001516133b4565b6001600160a01b038116612ec35760405162461bcd60e51b815260206004820152601760248201527f4f7261636c655265663a207a65726f206164647265737300000000000000000060448201526064016108a6565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f93450534569bdbb3109b44eef77c9b236897f4caa4f201be10252d6462a5693790600090a35050565b60005460ff1615612f385760405162461bcd60e51b81526004016108a690613b7e565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612b183390565b612f756121c5565b60075542600455565b600380549082905560408051828152602081018490527fc1d6758c9eb8ba949914722321f508e4cd1e14d3ff96773ef5950336d8a2c63a91016124ad565b601054612fd2906001600160a01b031682613551565b601060009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561302257600080fd5b505af1158015613036573d6000803e3d6000fd5b50506040518381523392507f26b1c64768593a5154cde08c3114534f1c582b6cb597bd6c0c29587f48c2004f915060200160405180910390a250565b806130cb5760405162461bcd60e51b815260206004820152602360248201527f50656753746162696c6974794d6f64756c653a20696e76616c6964206365696c604482015262696e6760e81b60648201526084016108a6565b6130ee6130dc6013546127106123e3565b6130e8836127106123e3565b90612419565b6131595760405162461bcd60e51b815260206004820152603660248201527f50656753746162696c6974794d6f64756c653a206365696c696e67206d7573746044820152751031329033b932b0ba32b9103a3430b710333637b7b960511b60648201526084016108a6565b601480549082905560408051828152602081018490527f15ddf2d8b0f5def2d9096715ee6dbe8646cd0a5c0225c781525b943244e1a7a391016124ad565b6001600160a01b0381166132045760405162461bcd60e51b815260206004820152602e60248201527f50656753746162696c6974794d6f64756c653a20496e76616c6964206e65772060448201526d1cdd5c9c1b1d5cc81d185c99d95d60921b60648201526084016108a6565b601080546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f70dc5d19a845312f7e3a89f1894fe84155cbd0a1f8434ebf02d9de842d98232591016124ad565b613266612f6d565b600580549082905560408051828152602081018490527f52d0e582769dcd1e242b38b9a795ef4699f2eca0f23b1d8f94368efb27bcd5ff91016124ad565b6001805490829055604051829082907f29ddd278ef9169e35aa84e424b39048b89af9c0b50f85497e40f97dff6946cf590600090a35050565b6000806132e8610f4c565b90506132f381613404565b61245461252461271061251e600d546127106124eb9190613f1f565b6011548111156133765760405162461bcd60e51b815260206004820152602c60248201527f50656753746162696c6974794d6f64756c653a204d696e74206665652065786360448201526b65656473206d61782066656560a01b60648201526084016108a6565b600d80549082905560408051828152602081018490527f06255fba5f99bcc77a5d27ee1222dd110e196ad4cfba488e1fceccbec8dedc6891016124ad565b60006133ca826133c4868661245b565b90612467565b949350505050565b8051825160009114156133e7575060016108c6565b81518351116133f75760006133fa565b60025b60ff169392505050565b61340d816129c3565b6108b85760405162461bcd60e51b815260206004820152602760248201527f50656753746162696c6974794d6f64756c653a207072696365206f7574206f6660448201526620626f756e647360c81b60648201526084016108a6565b80516000906108c690670de0b6b3a7640000612467565b6112d17f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f848484613519565b6040516001600160a01b0383166024820152604481018290526112d190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261357c565b61235f828261364e565b6040516001600160a01b03808516602483015283166044820152606481018290526121b49085906323b872dd60e01b906084016134d8565b61235f7f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f83836134ac565b60006135d1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136659092919063ffffffff16565b8051909150156112d157808060200190518101906135ef9190613acd565b6112d15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108a6565b600061365982613674565b90506112d1838261378e565b60606133ca8484600085613804565b60008061367f6121c5565b600654909150839060ff16801561369557508181115b1561369d5750805b816136f45760405162461bcd60e51b815260206004820152602160248201527f526174654c696d697465643a206e6f2072617465206c696d69742062756666656044820152603960f91b60648201526084016108a6565b818111156137445760405162461bcd60e51b815260206004820152601b60248201527f526174654c696d697465643a2072617465206c696d697420686974000000000060448201526064016108a6565b61374e8183613f1f565b6007819055426004556040805183815260208101929092527fc89b99870f6dd9f35bdd8bada9a4e2a6ba2862d2b5be9eaf54f6b8a6987368fe910161290b565b801561235f5761379c611a55565b6040516340c10f1960e01b81526001600160a01b0384811660048301526024820184905291909116906340c10f1990604401600060405180830381600087803b1580156137e857600080fd5b505af11580156137fc573d6000803e3d6000fd5b505050505050565b6060824710156138655760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108a6565b843b6138b35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108a6565b600080866001600160a01b031685876040516138cf9190613fa3565b60006040518083038185875af1925050503d806000811461390c576040519150601f19603f3d011682016040523d82523d6000602084013e613911565b606091505b509150915061392182828661392c565b979650505050505050565b6060831561393b575081612454565b82511561394b5782518084602001fd5b8160405162461bcd60e51b81526004016108a69190613fbf565b60006020828403121561397757600080fd5b5035919050565b6001600160a01b03811681146108b857600080fd5b6000806000606084860312156139a857600080fd5b83356139b38161397e565b95602085013595506040909401359392505050565b6000602082840312156139da57600080fd5b81356124548161397e565b6000806000606084860312156139fa57600080fd5b8335613a058161397e565b92506020840135613a158161397e565b929592945050506040919091013590565b60008060408385031215613a3957600080fd5b8235613a448161397e565b946020939093013593505050565b80151581146108b857600080fd5b600060208284031215613a7257600080fd5b813561245481613a52565b600060208284031215613a8f57600080fd5b6040516020810181811067ffffffffffffffff82111715613ac057634e487b7160e01b600052604160045260246000fd5b6040529135825250919050565b600060208284031215613adf57600080fd5b815161245481613a52565b60208082526021908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f6040820152603960f91b606082015260800190565b60208082526033908201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f604082015272391037b91031b7b73a3930b1ba1030b236b4b760691b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526034908201527f436f72655265663a2043616c6c6572206973206e6f7420676f7665726e6f722060408201527337b91033bab0b93234b0b71037b91030b236b4b760611b606082015260800190565b6000808284036040811215613c1057600080fd5b6020811215613c1e57600080fd5b506040516020810181811067ffffffffffffffff82111715613c5057634e487b7160e01b600052604160045260246000fd5b604052835181526020840151909250613c6881613a52565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b60006001600160ff1b0381841382841380821686840486111615613caf57613caf613c73565b600160ff1b6000871282811687830589121615613cce57613cce613c73565b60008712925087820587128484161615613cea57613cea613c73565b87850587128184161615613d0057613d00613c73565b505050929093029392505050565b600181815b80851115613d49578160001904821115613d2f57613d2f613c73565b80851615613d3c57918102915b93841c9390800290613d13565b509250929050565b600082613d60575060016108c6565b81613d6d575060006108c6565b8160018114613d835760028114613d8d57613da9565b60019150506108c6565b60ff841115613d9e57613d9e613c73565b50506001821b6108c6565b5060208310610133831016604e8410600b8410161715613dcc575081810a6108c6565b613dd68383613d0e565b8060001904821115613dea57613dea613c73565b029392505050565b60006124548383613d51565b6020808252602d908201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160408201526c371037b91033b7bb32b93737b960991b606082015260800190565b60208082526027908201527f436f72655265663a2043616c6c6572206973206e6f7420612050435620636f6e6040820152663a3937b63632b960c91b606082015260800190565b60008083128015600160ff1b850184121615613eb057613eb0613c73565b6001600160ff1b0384018313811615613ecb57613ecb613c73565b50500390565b600060208284031215613ee357600080fd5b5051919050565b600060208284031215613efc57600080fd5b81516124548161397e565b60008219821115613f1a57613f1a613c73565b500190565b600082821015613f3157613f31613c73565b500390565b6000816000190483118215151615613f5057613f50613c73565b500290565b600082613f7257634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015613f92578181015183820152602001613f7a565b838111156121b45750506000910152565b60008251613fb5818460208701613f77565b9190910192915050565b6020815260008251806020840152613fde816040850160208701613f77565b601f01601f1916919091016040019291505056fea2646970667358221220f7f8f0501bce20db39452b518a49902b8ed58c3fb4b5b47201e4a9392981563464736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000002616000000000000000000000000000000000000000000000000000000000000280a0000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b9000000000000000000000000231ada12e273edf3fa54cbd90c5c1a73129d5bb9000000000000000000000000231ada12e273edf3fa54cbd90c5c1a73129d5bb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000108b2a2c2802909400000000000000000000000000000000000000000000000000021e19e0c9bab2400000000000000000000000000000000000000000000000108b2a2c280290940000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000e0f73b8d76d2ad33492f995af218b03564b8ce20
-----Decoded View---------------
Arg [0] : _floor (uint256): 9750
Arg [1] : _ceiling (uint256): 10250
Arg [2] : _params (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [3] : _mintFeeBasisPoints (uint256): 0
Arg [4] : _redeemFeeBasisPoints (uint256): 10
Arg [5] : _reservesThreshold (uint256): 20000000000000000000000000
Arg [6] : _feiLimitPerSecond (uint256): 10000000000000000000000
Arg [7] : _mintingBufferCap (uint256): 20000000000000000000000000
Arg [8] : _underlyingToken (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F
Arg [9] : _surplusTarget (address): 0xe0f73b8d76D2Ad33492F995af218b03564b8Ce20
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002616
Arg [1] : 000000000000000000000000000000000000000000000000000000000000280a
Arg [2] : 0000000000000000000000008d5ed43dca8c2f7dfb20cf7b53cc7e593635d7b9
Arg [3] : 000000000000000000000000231ada12e273edf3fa54cbd90c5c1a73129d5bb9
Arg [4] : 000000000000000000000000231ada12e273edf3fa54cbd90c5c1a73129d5bb9
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [9] : 000000000000000000000000000000000000000000108b2a2c28029094000000
Arg [10] : 00000000000000000000000000000000000000000000021e19e0c9bab2400000
Arg [11] : 000000000000000000000000000000000000000000108b2a2c28029094000000
Arg [12] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [13] : 000000000000000000000000e0f73b8d76d2ad33492f995af218b03564b8ce20
Deployed Bytecode Sourcemap
56:1963:11:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2187:154:19;;;;;;:::i;:::-;;:::i;:::-;;11105:169:14;;;;;;:::i;:::-;;:::i;:::-;;;529:25:37;;;517:2;502:18;11105:169:14;;;;;;;;1725:160:15;;;;;;:::i;:::-;;:::i;743:24:20:-;;;;;;12242:118:14;12337:15;12242:118;;;-1:-1:-1;;;;;729:32:37;;;711:51;;699:2;684:18;12242:118:14;565:203:37;10030:267:14;;;;;;:::i;:::-;;:::i;4331:137::-;;;:::i;455:43:16:-;;;;;;1157:48:14;;;;;2462:138:19;;;;;;:::i;:::-;;:::i;9602:275:14:-;;;;;;:::i;:::-;;:::i;5239:158::-;;;;;;:::i;:::-;;:::i;3721:140::-;;;:::i;2110:111:15:-;;;:::i;:::-;;;2119:14:37;;2112:22;2094:41;;2082:2;2067:18;2110:111:15;1954:187:37;3257:849:19;;;:::i;:::-;;;2352:13:37;;2334:32;;2322:2;2307:18;3257:849:19;2146:226:37;3623:85:16;;;:::i;660:29:15:-;;;;;;534:33:20;;;;;;592:184:10;;;;;;:::i;:::-;;:::i;1136:206::-;;;;;;:::i;:::-;;:::i;12436:128:14:-;;;:::i;:::-;;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;;3313:18;12436:128:14;3166:248:37;1957:112:19;;;;;;:::i;:::-;;:::i;1098:84:23:-;1145:4;1168:7;;;1098:84;;892:41:14;;;;;;4995:148;;;;;;:::i;:::-;;:::i;979:41::-;;;;;-1:-1:-1;;;;;979:41:14;;;11818:140;;;:::i;4580:119:16:-;;;:::i;2781:178:19:-;;;;;;:::i;:::-;;:::i;819:41::-;;;;;;773:31:15;;;;;;1723:107:19;;;;;;:::i;:::-;;:::i;574:30::-;;;;;-1:-1:-1;;;;;574:30:19;;;1769:22:14;;;;;;;;;;;;2733:254:16;;;;;;:::i;:::-;;:::i;671:36:19:-;;;;;-1:-1:-1;;;;;671:36:19;;;3487:81:16;;;:::i;1821:314:20:-;;;;;;:::i;:::-;;:::i;657:42:14:-;;;;;;640:33:20;;;;;;7389:234:14;;;:::i;4010:86:16:-;;;:::i;11324:137:14:-;;;:::i;3926:145::-;;;:::i;1432:24::-;;;;;;;;;4383:115:16;;;:::i;12028:129:14:-;;;:::i;1936:168:15:-;;;;;;:::i;:::-;;:::i;4213:92:16:-;;;:::i;423:50:20:-;;;;;775:44:14;;;;;;1311:37;;;;;;5463:132;;;;;;:::i;:::-;;:::i;4134:::-;;;:::i;880:27:20:-;;;;;;;;;11577:113:14;;;:::i;7702:190::-;;;:::i;2176:125:20:-;;;;;;:::i;:::-;;:::i;3049:151:16:-;;;;;;:::i;:::-;;:::i;3011:72:19:-;;;:::i;10648:155:14:-;;;;;;:::i;:::-;;:::i;2444:203:20:-;;;:::i;4773:140:14:-;;;;;;:::i;:::-;;:::i;3815:82:16:-;3861:5;3885;;;;-1:-1:-1;;;;;3885:5:16;3815:82;;4538:159:14;;;;;;:::i;:::-;;:::i;3291:143:16:-;;;;;;:::i;:::-;;:::i;867:29:19:-;;;;;;;;;2187:154;1898:5:16;;:28;;-1:-1:-1;;;1898:28:16;;1915:10;1898:28;;;711:51:37;1898:5:16;;;;-1:-1:-1;;;;;1898:5:16;;:16;;684:18:37;;1898:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1877:108;;;;-1:-1:-1;;;1877:108:16;;;;;;;:::i;:::-;;;;;;;;;2289:45:19::1;2312:21;2289:22;:45::i;:::-;2187:154:::0;:::o;11105:169:14:-;11184:22;11235:32;11255:11;11235:19;:32::i;:::-;11218:49;11105:169;-1:-1:-1;;11105:169:14:o;1725:160:15:-;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;1837:41:15::1;1858:19;1837:20;:41::i;10030:267:14:-:0;10210:20;1744:1:24;2325:7;;:19;;2317:63;;;;-1:-1:-1;;;2317:63:24;;7444:2:37;2317:63:24;;;7426:21:37;7483:2;7463:18;;;7456:30;7522:33;7502:18;;;7495:61;7573:18;;2317:63:24;7242:355:37;2317:63:24;1744:1;2455:7;:18;1145:4:23;1168:7;;;1411:9:::1;1403:38;;;;-1:-1:-1::0;;;1403:38:23::1;;;;;;;:::i;:::-;3591:10:14::2;::::0;::::2;::::0;::::2;;;3590:11;3582:58;;;::::0;-1:-1:-1;;;3582:58:14;;8149:2:37;3582:58:14::2;::::0;::::2;8131:21:37::0;8188:2;8168:18;;;8161:30;8227:34;8207:18;;;8200:62;-1:-1:-1;;;8278:18:37;;;8271:32;8320:19;;3582:58:14::2;7947:398:37::0;3582:58:14::2;10257:33:::3;10263:2;10267:8;10277:12;10257:5;:33::i;:::-;1701:1:24::0;2628:7;:22;10242:48:14;10030:267;-1:-1:-1;;;;10030:267:14:o;4331:137::-;2312:5:16;;:28;;-1:-1:-1;;;2312:28:16;;2329:10;2312:28;;;711:51:37;2312:5:16;;;;-1:-1:-1;;;;;2312:5:16;;:16;;684:18:37;;2312:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:72;;;-1:-1:-1;2356:5:16;;:28;;-1:-1:-1;;;2356:28:16;;2373:10;2356:28;;;711:51:37;2356:5:16;;;;-1:-1:-1;;;;;2356:5:16;;:16;;684:18:37;;2356:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2312:116;;;;2401:27;2417:10;2401:15;:27::i;:::-;2291:207;;;;-1:-1:-1;;;2291:207:16;;;;;;;:::i;:::-;4401:10:14::1;:18:::0;;-1:-1:-1;;4401:18:14::1;::::0;;4434:27:::1;::::0;4450:10:::1;711:51:37::0;;4434:27:14::1;::::0;699:2:37;684:18;4434:27:14::1;;;;;;;;4331:137::o:0;2462:138:19:-;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;2560:33:19::1;2577:15;2560:16;:33::i;9602:275:14:-:0;9791:17;1744:1:24;2325:7;;:19;;2317:63;;;;-1:-1:-1;;;2317:63:24;;7444:2:37;2317:63:24;;;7426:21:37;7483:2;7463:18;;;7456:30;7522:33;7502:18;;;7495:61;7573:18;;2317:63:24;7242:355:37;2317:63:24;1744:1;2455:7;:18;1145:4:23;1168:7;;;1411:9:::1;1403:38;;;;-1:-1:-1::0;;;1403:38:23::1;;;;;;;:::i;:::-;3393:12:14::2;::::0;::::2;;3392:13;3384:59;;;::::0;-1:-1:-1;;;3384:59:14;;8973:2:37;3384:59:14::2;::::0;::::2;8955:21:37::0;9012:2;8992:18;;;8985:30;9051:34;9031:18;;;9024:62;-1:-1:-1;;;9102:18:37;;;9095:31;9143:19;;3384:59:14::2;8771:397:37::0;3384:59:14::2;9832:38:::3;9840:2;9844:11;9857:12;9832:7;:38::i;5239:158::-:0;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;5347:43:14::1;5369:20;5347:21;:43::i;3721:140::-:0;2312:5:16;;:28;;-1:-1:-1;;;2312:28:16;;2329:10;2312:28;;;711:51:37;2312:5:16;;;;-1:-1:-1;;;;;2312:5:16;;:16;;684:18:37;;2312:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:72;;;-1:-1:-1;2356:5:16;;:28;;-1:-1:-1;;;2356:28:16;;2373:10;2356:28;;;711:51:37;2356:5:16;;;;-1:-1:-1;;;;;2356:5:16;;:16;;684:18:37;;2356:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2312:116;;;;2401:27;2417:10;2401:15;:27::i;:::-;2291:207;;;;-1:-1:-1;;;2291:207:16;;;;;;;:::i;:::-;3791:12:14::1;:19:::0;;-1:-1:-1;;3791:19:14::1;3806:4;3791:19;::::0;;3825:29:::1;::::0;3843:10:::1;711:51:37::0;;3825:29:14::1;::::0;699:2:37;684:18;3825:29:14::1;565:203:37::0;2110:111:15;2166:4;2189:25;2201:12;:10;:12::i;:::-;2189:11;:25::i;:::-;2182:32;;2110:111;:::o;3257:849:19:-;-1:-1:-1;;;;;;;;;;;;3381:6:19;;:13;;;-1:-1:-1;;;3381:13:19;;;;3341:24;;;;-1:-1:-1;;;;;3381:6:19;;;;:11;;:13;;;;;;;;;;;:6;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3340:54;;;;3409:5;3408:6;:45;;;;-1:-1:-1;3426:12:19;;-1:-1:-1;;;;;3426:12:19;3418:35;;3408:45;3404:111;;;3485:12;;:19;;;-1:-1:-1;;;3485:19:19;;;;-1:-1:-1;;;;;3485:12:19;;;;:17;;:19;;;;;;;;;;;;;:12;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3469:35;;-1:-1:-1;3469:35:19;-1:-1:-1;3404:111:19;3532:5;3524:43;;;;-1:-1:-1;;;3524:43:19;;10104:2:37;3524:43:19;;;10086:21:37;10143:2;10123:18;;;10116:30;10182:27;10162:18;;;10155:55;10227:18;;3524:43:19;9902:349:37;3524:43:19;3649:21;3705:1;3684:18;;:22;3680:283;;;3744:37;3750:18;;-1:-1:-1;;3745:23:19;;;;:::i;:::-;3744:35;:37::i;:::-;3738:43;;:2;:43;:::i;:::-;3722:59;-1:-1:-1;3802:23:19;:4;3722:59;3802:8;:23::i;:::-;3795:30;;3680:283;;;3878:30;:18;;:28;:30::i;:::-;3872:36;;:2;:36;:::i;:::-;3856:52;-1:-1:-1;3929:23:19;:4;3856:52;3929:8;:23::i;:::-;3922:30;;3680:283;4025:8;;;;4021:58;;;4056:12;4063:4;4056:6;:12::i;:::-;4049:19;;4021:58;-1:-1:-1;4095:4:19;;3257:849;-1:-1:-1;;3257:849:19:o;3623:85:16:-;2074:5;;:28;;-1:-1:-1;;;2074:28:16;;2091:10;2074:28;;;711:51:37;2074:5:16;;;;-1:-1:-1;;;;;2074:5:16;;:16;;684:18:37;;2074:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:73;;;-1:-1:-1;2119:5:16;;:28;;-1:-1:-1;;;2119:28:16;;2136:10;2119:28;;;711:51:37;2119:5:16;;;;-1:-1:-1;;;;;2119:5:16;;:16;;684:18:37;;2119:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2053:165;;;;-1:-1:-1;;;2053:165:16;;;;;;;:::i;:::-;3691:10:::1;:8;:10::i;:::-;3623:85::o:0;592:184:10:-;1487:5:16;;:33;;-1:-1:-1;;;1487:33:16;;1509:10;1487:33;;;711:51:37;1487:5:16;;;;-1:-1:-1;;;;;1487:5:16;;:21;;684:18:37;;1487:33:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1466:119;;;;-1:-1:-1;;;1466:119:16;;;;;;;:::i;:::-;736:33:10::1;751:5;758:2;762:6;736:14;:33::i;:::-;592:184:::0;;;:::o;1136:206::-;1487:5:16;;:33;;-1:-1:-1;;;1487:33:16;;1509:10;1487:33;;;711:51:37;1487:5:16;;;;-1:-1:-1;;;;;1487:5:16;;:21;;684:18:37;;1487:33:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1466:119;;;;-1:-1:-1;;;1466:119:16;;;;;;;:::i;:::-;1250:32:10::1;1268:2;1272:9;1250:17;:32::i;:::-;1297:38;::::0;529:25:37;;;-1:-1:-1;;;;;1297:38:10;::::1;::::0;1309:10:::1;::::0;1297:38:::1;::::0;517:2:37;502:18;1297:38:10::1;;;;;;;1136:206:::0;;:::o;12436:128:14:-;12499:7;12508;12533:9;:7;:9::i;:::-;12544:12;:10;:12::i;:::-;12525:32;;;;12436:128;;:::o;1957:112:19:-;1898:5:16;;:28;;-1:-1:-1;;;1898:28:16;;1915:10;1898:28;;;711:51:37;1898:5:16;;;;-1:-1:-1;;;;;1898:5:16;;:16;;684:18:37;;1898:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1877:108;;;;-1:-1:-1;;;1877:108:16;;;;;;;:::i;:::-;2037:25:19::1;2050:11;2037:12;:25::i;4995:148:14:-:0;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;5098:38:14::1;5112:23;5098:13;:38::i;11818:140::-:0;11875:6;11923:28;:17;;:26;:28::i;:::-;11900:20;:9;:7;:9::i;:::-;:18;:20::i;:::-;:51;;;;:::i;4580:119:16:-;4634:7;4660;:5;:7::i;:::-;:32;;-1:-1:-1;;;4660:32:16;;4686:4;4660:32;;;711:51:37;-1:-1:-1;;;;;4660:17:16;;;;;;;684:18:37;;4660:32:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;2781:178:19:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;1348:21:4;;;;;;;;993:6;1348:21;;-1:-1:-1;2928:24:19;;2946:5;2928:17;:24::i;1723:107::-;1898:5:16;;:28;;-1:-1:-1;;;1898:28:16;;1915:10;1898:28;;;711:51:37;1898:5:16;;;;-1:-1:-1;;;;;1898:5:16;;:16;;684:18:37;;1898:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1877:108;;;;-1:-1:-1;;;1877:108:16;;;;;;;:::i;:::-;1802:21:19::1;1813:9;1802:10;:21::i;2733:254:16:-:0;1898:5;;:28;;-1:-1:-1;;;1898:28:16;;1915:10;1898:28;;;711:51:37;1898:5:16;;;;-1:-1:-1;;;;;1898:5:16;;:16;;684:18:37;;1898:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1877:108;;;;-1:-1:-1;;;1877:108:16;;;;;;;:::i;:::-;-1:-1:-1;;;;;2816:21:16;::::1;2808:55;;;::::0;-1:-1:-1;;;2808:55:16;;13805:2:37;2808:55:16::1;::::0;::::1;13787:21:37::0;13844:2;13824:18;;;13817:30;-1:-1:-1;;;13863:18:37;;;13856:51;13924:18;;2808:55:16::1;13603:345:37::0;2808:55:16::1;2873:15;2899:5:::0;;-1:-1:-1;;;;;2915:22:16;;::::1;2899:5;2915:22:::0;;::::1;-1:-1:-1::0;;;;;;2915:22:16;::::1;;::::0;;2952:28:::1;::::0;2899:5;::::1;::::0;;;::::1;::::0;2915:22;;2899:5;;2952:28:::1;::::0;::::1;2798:189;2733:254:::0;:::o;3487:81::-;2074:5;;:28;;-1:-1:-1;;;2074:28:16;;2091:10;2074:28;;;711:51:37;2074:5:16;;;;-1:-1:-1;;;;;2074:5:16;;:16;;684:18:37;;2074:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:73;;;-1:-1:-1;2119:5:16;;:28;;-1:-1:-1;;;2119:28:16;;2136:10;2119:28;;;711:51:37;2119:5:16;;;;-1:-1:-1;;;;;2119:5:16;;:16;;684:18:37;;2119:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2053:165;;;;-1:-1:-1;;;2053:165:16;;;;;;;:::i;:::-;3553:8:::1;:6;:8::i;1821:314:20:-:0;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;1963:25:20::1;1938:21;:50;;1930:103;;;::::0;-1:-1:-1;;;1930:103:20;;14155:2:37;1930:103:20::1;::::0;::::1;14137:21:37::0;14194:2;14174:18;;;14167:30;14233:34;14213:18;;;14206:62;-1:-1:-1;;;14284:18:37;;;14277:38;14332:19;;1930:103:20::1;13953:404:37::0;1930:103:20::1;2043:21;:19;:21::i;:::-;2083:45;2106:21;2083:22;:45::i;7389:234:14:-:0;7444:21;7468:17;:15;:17::i;:::-;7444:41;;7520:1;7503:14;:18;7495:73;;;;-1:-1:-1;;;7495:73:14;;14564:2:37;7495:73:14;;;14546:21:37;14603:2;14583:18;;;14576:30;14642:34;14622:18;;;14615:62;-1:-1:-1;;;14693:18:37;;;14686:40;14743:19;;7495:73:14;14362:406:37;7495:73:14;7579:37;7589:26;:14;:24;:26::i;:::-;7579:9;:37::i;4010:86:16:-;4055:4;4078:5;;;;;;;;;-1:-1:-1;;;;;4078:5:16;-1:-1:-1;;;;;4078:9:16;;:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;11324:137:14:-;11387:7;11446:8;:6;:8::i;:::-;11413:5;:3;:5::i;:::-;:30;;-1:-1:-1;;;11413:30:14;;11437:4;11413:30;;;711:51:37;-1:-1:-1;;;;;11413:15:14;;;;;;;684:18:37;;11413:30:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;;:::i;3926:145::-;2312:5:16;;:28;;-1:-1:-1;;;2312:28:16;;2329:10;2312:28;;;711:51:37;2312:5:16;;;;-1:-1:-1;;;;;2312:5:16;;:16;;684:18:37;;2312:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:72;;;-1:-1:-1;2356:5:16;;:28;;-1:-1:-1;;;2356:28:16;;2373:10;2356:28;;;711:51:37;2356:5:16;;;;-1:-1:-1;;;;;2356:5:16;;:16;;684:18:37;;2356:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2312:116;;;;2401:27;2417:10;2401:15;:27::i;:::-;2291:207;;;;-1:-1:-1;;;2291:207:16;;;;;;;:::i;:::-;3998:12:14::1;:20:::0;;-1:-1:-1;;3998:20:14::1;::::0;;4033:31:::1;::::0;4053:10:::1;711:51:37::0;;4033:31:14::1;::::0;699:2:37;684:18;4033:31:14::1;565:203:37::0;4383:115:16;4435:7;4461:5;:3;:5::i;12028:129:14:-;12110:40;;-1:-1:-1;;;12110:40:14;;12144:4;12110:40;;;711:51:37;12084:7:14;;12110:15;-1:-1:-1;;;;;12110:25:14;;;;684:18:37;;12110:40:14;565:203:37;1936:168:15;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;2052:45:15::1;2075:21;2052:22;:45::i;4213:92:16:-:0;4260:6;4285:5;;;;;;;;;-1:-1:-1;;;;;4285:5:16;-1:-1:-1;;;;;4285:11:16;;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5463:132:14;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;5560:28:14::1;5578:9;5560:17;:28::i;4134:132::-:0;2312:5:16;;:28;;-1:-1:-1;;;2312:28:16;;2329:10;2312:28;;;711:51:37;2312:5:16;;;;-1:-1:-1;;;;;2312:5:16;;:16;;684:18:37;;2312:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:72;;;-1:-1:-1;2356:5:16;;:28;;-1:-1:-1;;;2356:28:16;;2373:10;2356:28;;;711:51:37;2356:5:16;;;;-1:-1:-1;;;;;2356:5:16;;:16;;684:18:37;;2356:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2312:116;;;;2401:27;2417:10;2401:15;:27::i;:::-;2291:207;;;;-1:-1:-1;;;2291:207:16;;;;;;;:::i;:::-;4202:10:14::1;:17:::0;;-1:-1:-1;;4202:17:14::1;;;::::0;;4234:25:::1;::::0;4248:10:::1;711:51:37::0;;4234:25:14::1;::::0;699:2:37;684:18;4234:25:14::1;565:203:37::0;11577:113:14;11631:4;11666:17;;11654:9;:7;:9::i;:::-;:29;11647:36;;11577:113;:::o;7702:190::-;7749:21;7773:17;:15;:17::i;:::-;7749:41;;7821:1;7804:14;:18;7800:86;;;7838:37;7848:26;:14;:24;:26::i;2176:125:20:-;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;2267:27:20::1;2281:12;2267:13;:27::i;3049:151:16:-:0;1898:5;;:28;;-1:-1:-1;;;1898:28:16;;1915:10;1898:28;;;711:51:37;1898:5:16;;;;-1:-1:-1;;;;;1898:5:16;;:16;;684:18:37;;1898:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1877:108;;;;-1:-1:-1;;;1877:108:16;;;;;;;:::i;:::-;3150:43:::1;3172:20;3150:21;:43::i;3011:72:19:-:0;3061:6;;;;;;;;;-1:-1:-1;;;;;3061:6:19;-1:-1:-1;;;;;3061:13:19;;:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3011:72::o;10648:155:14:-;10722:20;10769:27;10787:8;10769:17;:27::i;2444:203:20:-;2482:7;2502:15;2538:18;;2520:15;:36;;;;:::i;:::-;2502:54;;2573:67;2620:7;2599:18;;:28;;;;:::i;:::-;2582:13;;:46;;;;:::i;:::-;2630:9;;2573:8;:67::i;:::-;2566:74;;;2444:203;:::o;4773:140:14:-;1671:5:16;;:28;;-1:-1:-1;;;1671:28:16;;1688:10;1671:28;;;711:51:37;1671:5:16;;;;-1:-1:-1;;;;;1671:5:16;;:16;;684:18:37;;1671:28:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:71;;;;1715:27;1731:10;1715:15;:27::i;:::-;1650:169;;;;-1:-1:-1;;;1650:169:16;;;;;;;:::i;:::-;4872:34:14::1;4884:21;4872:11;:34::i;4538:159::-:0;1487:5:16;;:33;;-1:-1:-1;;;1487:33:16;;1509:10;1487:33;;;711:51:37;1487:5:16;;;;-1:-1:-1;;;;;1487:5:16;;:21;;684:18:37;;1487:33:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1466:119;;;;-1:-1:-1;;;1466:119:16;;;;;;;:::i;:::-;4638:52:14::1;4661:15;4679:2;4683:6;4638:14;:52::i;:::-;4538:159:::0;;:::o;3291:143:16:-;3362:4;3385:5;;;3399:19;3385:42;;-1:-1:-1;;;3385:42:16;;;;;15922:25:37;;;;-1:-1:-1;;;;;15983:32:37;;;15963:18;;;15956:60;3385:5:16;;;;;;;;:13;;15895:18:37;;3385:42:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1531:174:4:-;-1:-1:-1;;;;;;;;;;;;1659:39:4;;;;;;;;1673:22;1684:1;993:6;1693:1;1673:10;:22::i;:::-;1659:39;;1652:46;1531:174;-1:-1:-1;;;1531:174:4:o;4229:130::-;4306:4;4329:18;4339:4;4345:1;4329:9;:18::i;:::-;4351:1;4329:23;;4229:130;-1:-1:-1;;;4229:130:4:o;4365:127::-;4439:4;4462:18;4472:4;4478:1;4462:9;:18::i;:::-;:23;;4365:127;-1:-1:-1;;;4365:127:4:o;446:104:33:-;504:7;534:1;530;:5;:13;;542:1;530:13;;;538:1;530:13;523:20;446:104;-1:-1:-1;;;446:104:33:o;3451:96:35:-;3509:7;3535:5;3539:1;3535;:5;:::i;3836:96::-;3894:7;3920:5;3924:1;3920;:5;:::i;4969:274:19:-;5081:18;;;5109:42;;;;5166:70;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;5166:70:19;;3313:18:37;5166:70:19;;;;;;;;5040:203;4969:274;:::o;1585:432:11:-;1675:22;1709:25;1737:12;:10;:12::i;:::-;1709:40;;1759:26;1779:5;1759:19;:26::i;:::-;1813:197;:172;279:6:0;1813:119:11;1911:20;;279:6:0;1874:57:11;;;;:::i;:::-;1813:43;1844:11;1813:13;-1:-1:-1;;;;;;;;;;;;;1348:21:4;;;;;;;;993:6;1348:21;;;1264:112;1813:13:11;:30;;:43::i;:119::-;:136;;:172::i;:::-;:195;:197::i;2933:540:15:-;3019:24;3011:70;;;;-1:-1:-1;;;3011:70:15;;16700:2:37;3011:70:15;;;16682:21:37;16739:2;16719:18;;;16712:30;16778:34;16758:18;;;16751:62;-1:-1:-1;;;16829:18:37;;;16822:31;16870:19;;3011:70:15;16498:397:37;3011:70:15;3112:156;3209:58;3223:7;;279:6:0;3209:13:15;:58::i;:::-;3112:70;3126:19;279:6:0;3112:13:15;:70::i;:::-;:96;;:156::i;:::-;3091:254;;;;-1:-1:-1;;;3091:254:15;;17102:2:37;3091:254:15;;;17084:21:37;17141:2;17121:18;;;17114:30;17180:34;17160:18;;;17153:62;-1:-1:-1;;;17231:18:37;;;17224:49;17290:19;;3091:254:15;16900:415:37;3091:254:15;3374:5;;;3389:27;;;;3432:34;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;3432::15;;3313:18:37;3432:34:15;3166:248:37;8563:751:14;8685:20;8717:14;:12;:14::i;:::-;8757:27;8775:8;8757:17;:27::i;:::-;8742:42;;8818:12;8802;:28;;8794:80;;;;-1:-1:-1;;;8794:80:14;;17522:2:37;8794:80:14;;;17504:21:37;17561:2;17541:18;;;17534:30;17600:34;17580:18;;;17573:62;-1:-1:-1;;;17651:18:37;;;17644:37;17698:19;;8794:80:14;17320:403:37;8794:80:14;8885:50;8899:10;8919:4;8926:8;8885:13;:50::i;:::-;8946:27;8976:54;8985:5;:3;:5::i;:::-;:30;;-1:-1:-1;;;8985:30:14;;9009:4;8985:30;;;711:51:37;-1:-1:-1;;;;;8985:15:14;;;;;;;684:18:37;;8985:30:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9017:12;8976:8;:54::i;:::-;8946:84;-1:-1:-1;9040:23:14;9066:34;8946:84;9066:12;:34;:::i;:::-;9040:60;;9111:51;9138:2;9142:19;9118:5;:3;:5::i;:::-;-1:-1:-1;;;;;9111:26:14;;:51;:26;:51::i;:::-;9177:19;;9173:79;;9212:29;9221:2;9225:15;9212:8;:29::i;:::-;9275:32;;;-1:-1:-1;;;;;17948:32:37;;17930:51;;18012:2;17997:18;;17990:34;;;18040:18;;;18033:34;;;9275:32:14;;17918:2:37;17903:18;9275:32:14;;;;;;;8707:607;;8563:751;;;;;:::o;4415:240:19:-;4519:12;;;-1:-1:-1;;;;;4542:39:19;;;-1:-1:-1;;;;;;4542:39:19;;;;;;;4596:52;;4519:12;;;4542:39;4519:12;;4596:52;;4485:23;;4596:52;4475:180;4415:240;:::o;7985:487:14:-;8112:17;8141:14;:12;:14::i;:::-;8178:32;8198:11;8178:19;:32::i;:::-;8166:44;;8241:12;8228:9;:25;;8220:79;;;;-1:-1:-1;;;8220:79:14;;18280:2:37;8220:79:14;;;18262:21:37;18319:2;18299:18;;;18292:30;18358:34;18338:18;;;18331:62;-1:-1:-1;;;18409:18:37;;;18402:39;18458:19;;8220:79:14;18078:405:37;8220:79:14;8310:70;8341:10;8361:4;8368:11;8317:5;:3;:5::i;:::-;-1:-1:-1;;;;;8310:30:14;;:70;;:30;:70::i;:::-;8391:24;8401:2;8405:9;8391;:24::i;:::-;8431:34;;;-1:-1:-1;;;;;17948:32:37;;17930:51;;18012:2;17997:18;;17990:34;;;18040:18;;;18033:34;;;8431::14;;17918:2:37;17903:18;8431:34:14;;;;;;;;7985:487;;;;;:::o;6498:365::-;6609:1;6586:20;:24;6578:87;;;;-1:-1:-1;;;6578:87:14;;18690:2:37;6578:87:14;;;18672:21:37;18729:2;18709:18;;;18702:30;18768:34;18748:18;;;18741:62;-1:-1:-1;;;18819:18:37;;;18812:48;18877:19;;6578:87:14;18488:414:37;6578:87:14;6706:17;;;6733:40;;;;6789:67;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;6789:67:14;;3313:18:37;6789:67:14;3166:248:37;3557:273:15;3628:10;3658:75;3676:56;3690:5;;279:6:0;3676:13:15;:56::i;:::-;3658:5;;:17;:75::i;:::-;:165;;;;;3749:74;3764:58;3778:7;;279:6:0;3764:13:15;:58::i;:::-;3749:5;;:14;:74::i;4343:168:34:-;4399:7;4435:1;4426:5;:10;;4418:55;;;;-1:-1:-1;;;4418:55:34;;19109:2:37;4418:55:34;;;19091:21:37;;;19128:18;;;19121:30;19187:34;19167:18;;;19160:62;19239:18;;4418:55:34;18907:356:37;4418:55:34;-1:-1:-1;4498:5:34;4343:168::o;2548:174:4:-;-1:-1:-1;;;;;;;;;;;;2681:34:4;;;;;;;;;2695:10;;2681:34;;2695:17;;2710:1;2695:14;:17::i;2368:174::-;-1:-1:-1;;;;;;;;;;;;2501:34:4;;;;;;;;;2515:10;;2501:34;;2515:17;;2530:1;2515:14;:17::i;2110:117:23:-;1145:4;1168:7;;;1669:41;;;;-1:-1:-1;;;1669:41:23;;19470:2:37;1669:41:23;;;19452:21:37;19509:2;19489:18;;;19482:30;-1:-1:-1;;;19528:18:37;;;19521:50;19588:18;;1669:41:23;19268:344:37;1669:41:23;2178:5:::1;2168:15:::0;;-1:-1:-1;;2168:15:23::1;::::0;;2198:22:::1;719:10:29::0;2207:12:23::1;2198:22;::::0;-1:-1:-1;;;;;729:32:37;;;711:51;;699:2;684:18;2198:22:23::1;565:203:37::0;782:216:10;894:38;-1:-1:-1;;;;;894:26:10;;921:2;925:6;894:26;:38::i;:::-;980:2;-1:-1:-1;;;;;947:44:10;973:5;-1:-1:-1;;;;;947:44:10;961:10;-1:-1:-1;;;;;947:44:10;;984:6;947:44;;;;529:25:37;;517:2;502:18;;383:177;947:44:10;;;;;;;;782:216;;;:::o;2065:312:28:-;2179:6;2154:21;:31;;2146:73;;;;-1:-1:-1;;;2146:73:28;;19819:2:37;2146:73:28;;;19801:21:37;19858:2;19838:18;;;19831:30;19897:31;19877:18;;;19870:59;19946:18;;2146:73:28;19617:353:37;2146:73:28;2231:12;2249:9;-1:-1:-1;;;;;2249:14:28;2271:6;2249:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2230:52;;;2300:7;2292:78;;;;-1:-1:-1;;;2292:78:28;;20387:2:37;2292:78:28;;;20369:21:37;20426:2;20406:18;;;20399:30;20465:34;20445:18;;;20438:62;20536:28;20516:18;;;20509:56;20582:19;;2292:78:28;20185:422:37;4661:302:19;4739:8;;;4757:22;;;-1:-1:-1;;4757:22:19;;;;;;;4739:8;;;4802:26;;;;4798:105;;4844:48;4873:18;;-1:-1:-1;;4868:23:19;;;;:::i;:::-;4844:22;:48::i;:::-;4918:38;;;20799:14:37;;20792:22;20774:41;;20858:14;;20851:22;20846:2;20831:18;;20824:50;4918:38:19;;20747:18:37;4918:38:19;20612:268:37;6078:356:14;6188:7;;6161:23;:34;;6153:93;;;;-1:-1:-1;;;6153:93:14;;21087:2:37;6153:93:14;;;21069:21:37;21126:2;21106:18;;;21099:30;21165:34;21145:18;;;21138:62;-1:-1:-1;;;21216:18:37;;;21209:44;21270:19;;6153:93:14;20885:410:37;6153:93:14;6280:20;;;6310:46;;;;6372:55;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;6372:55:14;;3313:18:37;6372:55:14;3166:248:37;7518:297:34;7574:6;-1:-1:-1;;;;;7699:5:34;:34;;7691:87;;;;-1:-1:-1;;;7691:87:34;;21502:2:37;7691:87:34;;;21484:21:37;21541:2;21521:18;;;21514:30;21580:34;21560:18;;;21553:62;-1:-1:-1;;;21631:18:37;;;21624:38;21679:19;;7691:87:34;21300:404:37;3896:198:4;-1:-1:-1;;;;;;;;;;;;4033:54:4;;;;;;;;4047:37;4058:4;:10;;;993:6;4076:1;:7;;;4047:10;:37::i;4112:255:19:-;-1:-1:-1;;;;;4178:23:19;;4170:59;;;;-1:-1:-1;;;4170:59:19;;21911:2:37;4170:59:19;;;21893:21:37;21950:2;21930:18;;;21923:30;21989:25;21969:18;;;21962:53;22032:18;;4170:59:19;21709:347:37;4170:59:19;4267:6;;;-1:-1:-1;;;;;4284:27:19;;;-1:-1:-1;;;;;;4284:27:19;;;;;;;4326:34;;4267:6;;;4284:27;4267:6;;4326:34;;4239:17;;4326:34;4160:207;4112:255;:::o;1863:115:23:-;1145:4;1168:7;;;1411:9;1403:38;;;;-1:-1:-1;;;1403:38:23;;;;;;;:::i;:::-;1922:7:::1;:14:::0;;-1:-1:-1;;1922:14:23::1;1932:4;1922:14;::::0;;1951:20:::1;1958:12;719:10:29::0;;640:96;4133:127:20;4199:8;:6;:8::i;:::-;4183:13;:24;4238:15;4217:18;:36;4133:127::o;3535:277::-;3649:18;;;3677:42;;;;3735:70;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;3735:70:20;;3313:18:37;3735:70:20;3166:248:37;14138:186:14;14210:13;;14192:41;;-1:-1:-1;;;;;14210:13:14;14226:6;14192:9;:41::i;:::-;14243:13;;;;;;;;;-1:-1:-1;;;;;14243:13:14;-1:-1:-1;;;;;14243:21:14;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14282:35:14;;529:25:37;;;14298:10:14;;-1:-1:-1;14282:35:14;;-1:-1:-1;517:2:37;502:18;14282:35:14;;;;;;;14138:186;:::o;2294:568:15:-;2384:26;2376:74;;;;-1:-1:-1;;;2376:74:15;;22263:2:37;2376:74:15;;;22245:21:37;22302:2;22282:18;;;22275:30;22341:34;22321:18;;;22314:62;-1:-1:-1;;;22392:18:37;;;22385:33;22435:19;;2376:74:15;22061:399:37;2376:74:15;2481:159;2583:56;2597:5;;279:6:0;2583:13:15;:56::i;:::-;2481:72;2495:21;279:6:0;2481:13:15;:72::i;:::-;:101;;:159::i;:::-;2460:260;;;;-1:-1:-1;;;2460:260:15;;22667:2:37;2460:260:15;;;22649:21:37;22706:2;22686:18;;;22679:30;22745:34;22725:18;;;22718:62;-1:-1:-1;;;22796:18:37;;;22789:52;22858:19;;2460:260:15;22465:418:37;2460:260:15;2751:7;;;2768:31;;;;2815:40;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;2815:40:15;;3313:18:37;2815:40:15;3166:248:37;6927:334:14;-1:-1:-1;;;;;7011:39:14;;7003:98;;;;-1:-1:-1;;;7003:98:14;;23090:2:37;7003:98:14;;;23072:21:37;23129:2;23109:18;;;23102:30;23168:34;23148:18;;;23141:62;-1:-1:-1;;;23219:18:37;;;23212:44;23273:19;;7003:98:14;22888:410:37;7003:98:14;7135:13;;;-1:-1:-1;;;;;7158:32:14;;;-1:-1:-1;;;;;;7158:32:14;;;;;;;7206:48;;;7135:13;;;;23553:34:37;;;23618:2;23603:18;;23596:43;;;;7206:48:14;;23488:18:37;7206:48:14;23303:342:37;3818:228:20;3882:21;:19;:21::i;:::-;3937:9;;;3956:24;;;;3996:43;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;3996:43:20;;3313:18:37;3996:43:20;3166:248:37;4934:271:16;5045:19;;;5074:42;;;;5131:67;;5096:20;;5045:19;;5131:67;;5014:28;;5131:67;5004:201;4934:271;:::o;988:418:11:-;1073:20;1105:25;1133:12;:10;:12::i;:::-;1105:40;;1155:26;1175:5;1155:19;:26::i;:::-;1207:192;:167;279:6:0;1207:114:11;1302:18;;279:6:0;1265:55:11;;;;:::i;5671:334:14:-;5775:7;;5750:21;:32;;5742:89;;;;-1:-1:-1;;;5742:89:14;;23852:2:37;5742:89:14;;;23834:21:37;23891:2;23871:18;;;23864:30;23930:34;23910:18;;;23903:62;-1:-1:-1;;;23981:18:37;;;23974:42;24033:19;;5742:89:14;23650:408:37;5742:89:14;5863:18;;;5891:42;;;;5949:49;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;5949:49:14;;3313:18:37;5949:49:14;3166:248:37;5057:215:4;5197:7;5227:38;5253:11;5227:21;:6;5238:9;5227:10;:21::i;:::-;:25;;:38::i;:::-;5220:45;5057:215;-1:-1:-1;;;;5057:215:4:o;5278:233::-;5421:7;;5410;;5383;;5410:18;5406:57;;;-1:-1:-1;5451:1:4;5444:8;;5406:57;5489:7;;5479;;:17;:25;;5503:1;5479:25;;;5499:1;5479:25;5472:32;;;5278:233;-1:-1:-1;;;5278:233:4:o;3948:166:15:-;4045:18;4057:5;4045:11;:18::i;:::-;4037:70;;;;-1:-1:-1;;;4037:70:15;;24265:2:37;4037:70:15;;;24247:21:37;24304:2;24284:18;;;24277:30;24343:34;24323:18;;;24316:62;-1:-1:-1;;;24394:18:37;;;24387:37;24441:19;;4037:70:15;24063:403:37;4891:113:4;4977:10;;4951:7;;4977:20;;993:6;4977:14;:20::i;14556:152:14:-;14640:61;14667:15;14684:4;14690:2;14694:6;14640:26;:61::i;701:205:27:-;840:58;;-1:-1:-1;;;;;24663:32:37;;840:58:27;;;24645:51:37;24712:18;;;24705:34;;;813:86:27;;833:5;;-1:-1:-1;;;863:23:27;24618:18:37;;840:58:27;;;;-1:-1:-1;;840:58:27;;;;;;;;;;;;;;-1:-1:-1;;;;;840:58:27;-1:-1:-1;;;;;;840:58:27;;;;;;;;;;813:19;:86::i;14787:135:14:-;14889:26;14904:2;14908:6;14889:14;:26::i;912:241:27:-;1077:68;;-1:-1:-1;;;;;25008:15:37;;;1077:68:27;;;24990:34:37;25060:15;;25040:18;;;25033:43;25092:18;;;25085:34;;;1050:96:27;;1070:5;;-1:-1:-1;;;1100:27:27;24925:18:37;;1077:68:27;24750:375:37;14367:124:14;14433:51;14456:15;14473:2;14477:6;14433:22;:51::i;3207:706:27:-;3626:23;3652:69;3680:4;3652:69;;;;;;;;;;;;;;;;;3660:5;-1:-1:-1;;;;;3652:27:27;;;:69;;;;;:::i;:::-;3735:17;;3626:95;;-1:-1:-1;3735:21:27;3731:176;;3830:10;3819:30;;;;;;;;;;;;:::i;:::-;3811:85;;;;-1:-1:-1;;;3811:85:27;;25332:2:37;3811:85:27;;;25314:21:37;25371:2;25351:18;;;25344:30;25410:34;25390:18;;;25383:62;-1:-1:-1;;;25461:18:37;;;25454:40;25511:19;;3811:85:27;25130:406:37;694:172:6;776:18;797:22;812:6;797:14;:22::i;:::-;776:43;;829:30;844:2;848:10;829:14;:30::i;3514:223:28:-;3647:12;3678:52;3700:6;3708:4;3714:1;3717:12;3678:21;:52::i;2948:581:20:-;3005:7;3024:17;3044:8;:6;:8::i;:::-;3112:15;;3024:28;;-1:-1:-1;3092:6:20;;3112:15;;:41;;;;;3144:9;3131:10;:22;3112:41;3108:94;;;-1:-1:-1;3182:9:20;3108:94;3220:14;3212:60;;;;-1:-1:-1;;;3212:60:20;;25743:2:37;3212:60:20;;;25725:21:37;25782:2;25762:18;;;25755:30;25821:34;25801:18;;;25794:62;-1:-1:-1;;;25872:18:37;;;25865:31;25913:19;;3212:60:20;25541:397:37;3212:60:20;3304:9;3290:10;:23;;3282:63;;;;-1:-1:-1;;;3282:63:20;;26145:2:37;3282:63:20;;;26127:21:37;26184:2;26164:18;;;26157:30;26223:29;26203:18;;;26196:57;26270:18;;3282:63:20;25943:351:37;3282:63:20;3372:22;3384:10;3372:9;:22;:::i;:::-;3356:13;:38;;;3426:15;3405:18;:36;3457:37;;;3340:25:37;;;3396:2;3381:18;;3374:34;;;;3457:37:20;;3313:18:37;3457:37:20;3166:248:37;4785:143:16;4862:11;;4858:64;;4889:5;:3;:5::i;:::-;:22;;-1:-1:-1;;;4889:22:16;;-1:-1:-1;;;;;24663:32:37;;;4889:22:16;;;24645:51:37;24712:18;;;24705:34;;;4889:10:16;;;;;;;24618:18:37;;4889:22:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4785:143;;:::o;4601:499:28:-;4766:12;4823:5;4798:21;:30;;4790:81;;;;-1:-1:-1;;;4790:81:28;;26501:2:37;4790:81:28;;;26483:21:37;26540:2;26520:18;;;26513:30;26579:34;26559:18;;;26552:62;-1:-1:-1;;;26630:18:37;;;26623:36;26676:19;;4790:81:28;26299:402:37;4790:81:28;1087:20;;4881:60;;;;-1:-1:-1;;;4881:60:28;;26908:2:37;4881:60:28;;;26890:21:37;26947:2;26927:18;;;26920:30;26986:31;26966:18;;;26959:59;27035:18;;4881:60:28;26706:353:37;4881:60:28;4953:12;4967:23;4994:6;-1:-1:-1;;;;;4994:11:28;5013:5;5020:4;4994:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4952:73;;;;5042:51;5059:7;5068:10;5080:12;5042:16;:51::i;:::-;5035:58;4601:499;-1:-1:-1;;;;;;;4601:499:28:o;7214:692::-;7360:12;7388:7;7384:516;;;-1:-1:-1;7418:10:28;7411:17;;7384:516;7529:17;;:21;7525:365;;7723:10;7717:17;7783:15;7770:10;7766:2;7762:19;7755:44;7525:365;7862:12;7855:20;;-1:-1:-1;;;7855:20:28;;;;;;;;:::i;14:179:37:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;-1:-1:-1;164:23:37;;14:179;-1:-1:-1;14:179:37:o;773:131::-;-1:-1:-1;;;;;848:31:37;;838:42;;828:70;;894:1;891;884:12;909:383;986:6;994;1002;1055:2;1043:9;1034:7;1030:23;1026:32;1023:52;;;1071:1;1068;1061:12;1023:52;1110:9;1097:23;1129:31;1154:5;1129:31;:::i;:::-;1179:5;1231:2;1216:18;;1203:32;;-1:-1:-1;1282:2:37;1267:18;;;1254:32;;909:383;-1:-1:-1;;;909:383:37:o;1702:247::-;1761:6;1814:2;1802:9;1793:7;1789:23;1785:32;1782:52;;;1830:1;1827;1820:12;1782:52;1869:9;1856:23;1888:31;1913:5;1888:31;:::i;2377:456::-;2454:6;2462;2470;2523:2;2511:9;2502:7;2498:23;2494:32;2491:52;;;2539:1;2536;2529:12;2491:52;2578:9;2565:23;2597:31;2622:5;2597:31;:::i;:::-;2647:5;-1:-1:-1;2704:2:37;2689:18;;2676:32;2717:33;2676:32;2717:33;:::i;:::-;2377:456;;2769:7;;-1:-1:-1;;;2823:2:37;2808:18;;;;2795:32;;2377:456::o;2838:323::-;2914:6;2922;2975:2;2963:9;2954:7;2950:23;2946:32;2943:52;;;2991:1;2988;2981:12;2943:52;3030:9;3017:23;3049:31;3074:5;3049:31;:::i;:::-;3099:5;3151:2;3136:18;;;;3123:32;;-1:-1:-1;;;2838:323:37:o;3419:118::-;3505:5;3498:13;3491:21;3484:5;3481:32;3471:60;;3527:1;3524;3517:12;3542:241;3598:6;3651:2;3639:9;3630:7;3626:23;3622:32;3619:52;;;3667:1;3664;3657:12;3619:52;3706:9;3693:23;3725:28;3747:5;3725:28;:::i;4195:531::-;4275:6;4328:2;4316:9;4307:7;4303:23;4299:32;4296:52;;;4344:1;4341;4334:12;4296:52;4377:2;4371:9;4419:2;4411:6;4407:15;4488:6;4476:10;4473:22;4452:18;4440:10;4437:34;4434:62;4431:185;;;4538:10;4533:3;4529:20;4526:1;4519:31;4573:4;4570:1;4563:15;4601:4;4598:1;4591:15;4431:185;4632:2;4625:22;4671:23;;4656:39;;-1:-1:-1;4663:6:37;4195:531;-1:-1:-1;4195:531:37:o;6170:245::-;6237:6;6290:2;6278:9;6269:7;6265:23;6261:32;6258:52;;;6306:1;6303;6296:12;6258:52;6338:9;6332:16;6357:28;6379:5;6357:28;:::i;6420:397::-;6622:2;6604:21;;;6661:2;6641:18;;;6634:30;6700:34;6695:2;6680:18;;6673:62;-1:-1:-1;;;6766:2:37;6751:18;;6744:31;6807:3;6792:19;;6420:397::o;6822:415::-;7024:2;7006:21;;;7063:2;7043:18;;;7036:30;7102:34;7097:2;7082:18;;7075:62;-1:-1:-1;;;7168:2:37;7153:18;;7146:49;7227:3;7212:19;;6822:415::o;7602:340::-;7804:2;7786:21;;;7843:2;7823:18;;;7816:30;-1:-1:-1;;;7877:2:37;7862:18;;7855:46;7933:2;7918:18;;7602:340::o;8350:416::-;8552:2;8534:21;;;8591:2;8571:18;;;8564:30;8630:34;8625:2;8610:18;;8603:62;-1:-1:-1;;;8696:2:37;8681:18;;8674:50;8756:3;8741:19;;8350:416::o;9173:724::-;9270:6;9278;9322:9;9313:7;9309:23;9352:2;9348;9344:11;9341:31;;;9368:1;9365;9358:12;9341:31;9392:4;9388:2;9384:13;9381:33;;;9410:1;9407;9400:12;9381:33;;9443:2;9437:9;9485:4;9477:6;9473:17;9556:6;9544:10;9541:22;9520:18;9508:10;9505:34;9502:62;9499:185;;;9606:10;9601:3;9597:20;9594:1;9587:31;9641:4;9638:1;9631:15;9669:4;9666:1;9659:15;9499:185;9700:2;9693:22;9739:16;;9724:32;;9824:4;9809:20;;9803:27;9731:6;;-1:-1:-1;9839:28:37;9803:27;9839:28;:::i;:::-;9886:5;9876:15;;;9173:724;;;;;:::o;10256:127::-;10317:10;10312:3;10308:20;10305:1;10298:31;10348:4;10345:1;10338:15;10372:4;10369:1;10362:15;10388:553;10427:7;-1:-1:-1;;;;;10497:9:37;;;10525;;;10550:11;;;10569:10;;;10563:17;;10546:35;10543:61;;;10584:18;;:::i;:::-;-1:-1:-1;;;10660:1:37;10653:9;;10678:11;;;10698;;;10691:19;;10674:37;10671:63;;;10714:18;;:::i;:::-;10760:1;10757;10753:9;10743:19;;10807:1;10803:2;10798:11;10795:1;10791:19;10786:2;10782;10778:11;10774:37;10771:63;;;10814:18;;:::i;:::-;10879:1;10875:2;10870:11;10867:1;10863:19;10858:2;10854;10850:11;10846:37;10843:63;;;10886:18;;:::i;:::-;-1:-1:-1;;;10926:9:37;;;;;10388:553;-1:-1:-1;;;10388:553:37:o;10946:422::-;11035:1;11078:5;11035:1;11092:270;11113:7;11103:8;11100:21;11092:270;;;11172:4;11168:1;11164:6;11160:17;11154:4;11151:27;11148:53;;;11181:18;;:::i;:::-;11231:7;11221:8;11217:22;11214:55;;;11251:16;;;;11214:55;11330:22;;;;11290:15;;;;11092:270;;;11096:3;10946:422;;;;;:::o;11373:806::-;11422:5;11452:8;11442:80;;-1:-1:-1;11493:1:37;11507:5;;11442:80;11541:4;11531:76;;-1:-1:-1;11578:1:37;11592:5;;11531:76;11623:4;11641:1;11636:59;;;;11709:1;11704:130;;;;11616:218;;11636:59;11666:1;11657:10;;11680:5;;;11704:130;11741:3;11731:8;11728:17;11725:43;;;11748:18;;:::i;:::-;-1:-1:-1;;11804:1:37;11790:16;;11819:5;;11616:218;;11918:2;11908:8;11905:16;11899:3;11893:4;11890:13;11886:36;11880:2;11870:8;11867:16;11862:2;11856:4;11853:12;11849:35;11846:77;11843:159;;;-1:-1:-1;11955:19:37;;;11987:5;;11843:159;12034:34;12059:8;12053:4;12034:34;:::i;:::-;12104:6;12100:1;12096:6;12092:19;12083:7;12080:32;12077:58;;;12115:18;;:::i;:::-;12153:20;;11373:806;-1:-1:-1;;;11373:806:37:o;12184:131::-;12244:5;12273:36;12300:8;12294:4;12273:36;:::i;12320:409::-;12522:2;12504:21;;;12561:2;12541:18;;;12534:30;12600:34;12595:2;12580:18;;12573:62;-1:-1:-1;;;12666:2:37;12651:18;;12644:43;12719:3;12704:19;;12320:409::o;12734:403::-;12936:2;12918:21;;;12975:2;12955:18;;;12948:30;13014:34;13009:2;12994:18;;12987:62;-1:-1:-1;;;13080:2:37;13065:18;;13058:37;13127:3;13112:19;;12734:403::o;13142:267::-;13181:4;13210:9;;;13235:10;;-1:-1:-1;;;13254:19:37;;13247:27;;13231:44;13228:70;;;13278:18;;:::i;:::-;-1:-1:-1;;;;;13325:27:37;;13318:35;;13310:44;;13307:70;;;13357:18;;:::i;:::-;-1:-1:-1;;13394:9:37;;13142:267::o;13414:184::-;13484:6;13537:2;13525:9;13516:7;13512:23;13508:32;13505:52;;;13553:1;13550;13543:12;13505:52;-1:-1:-1;13576:16:37;;13414:184;-1:-1:-1;13414:184:37:o;14773:263::-;14855:6;14908:2;14896:9;14887:7;14883:23;14879:32;14876:52;;;14924:1;14921;14914:12;14876:52;14956:9;14950:16;14975:31;15000:5;14975:31;:::i;15041:128::-;15081:3;15112:1;15108:6;15105:1;15102:13;15099:39;;;15118:18;;:::i;:::-;-1:-1:-1;15154:9:37;;15041:128::o;15445:125::-;15485:4;15513:1;15510;15507:8;15504:34;;;15518:18;;:::i;:::-;-1:-1:-1;15555:9:37;;15445:125::o;15575:168::-;15615:7;15681:1;15677;15673:6;15669:14;15666:1;15663:21;15658:1;15651:9;15644:17;15640:45;15637:71;;;15688:18;;:::i;:::-;-1:-1:-1;15728:9:37;;15575:168::o;16027:217::-;16067:1;16093;16083:132;;16137:10;16132:3;16128:20;16125:1;16118:31;16172:4;16169:1;16162:15;16200:4;16197:1;16190:15;16083:132;-1:-1:-1;16229:9:37;;16027:217::o;27064:258::-;27136:1;27146:113;27160:6;27157:1;27154:13;27146:113;;;27236:11;;;27230:18;27217:11;;;27210:39;27182:2;27175:10;27146:113;;;27277:6;27274:1;27271:13;27268:48;;;-1:-1:-1;;27312:1:37;27294:16;;27287:27;27064:258::o;27327:274::-;27456:3;27494:6;27488:13;27510:53;27556:6;27551:3;27544:4;27536:6;27532:17;27510:53;:::i;:::-;27579:16;;;;;27327:274;-1:-1:-1;;27327:274:37:o;27606:383::-;27755:2;27744:9;27737:21;27718:4;27787:6;27781:13;27830:6;27825:2;27814:9;27810:18;27803:34;27846:66;27905:6;27900:2;27889:9;27885:18;27880:2;27872:6;27868:15;27846:66;:::i;:::-;27973:2;27952:15;-1:-1:-1;;27948:29:37;27933:45;;;;27980:2;27929:54;;27606:383;-1:-1:-1;;27606:383:37:o
Swarm Source
ipfs://f7f8f0501bce20db39452b518a49902b8ed58c3fb4b5b47201e4a93929815634
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.