Transactions
Token Transfers
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- CoverRouter
- Optimization enabled
- true
- Compiler version
- v0.7.5+commit.eb77ed08
- Optimization runs
- 200
- EVM Version
- istanbul
- Verified at
- 2026-04-22T10:20:58.087703Z
Constructor Arguments
436f766572526f757465723a2070726f746f636f6c466163746f72792069732030000000000000000000000000edfc81bf63527337cd2193925f9c0cf2d537acca0000000000000000000000009424b1412450d0f8fc2255faf6046b98213b76bd
Arg [0] (address) : 0x2070726f746f636f6c466163746f727920697320
Arg [1] (address) : 0x00edfc81bf63527337cd2193925f9c0cf2d537ac
contracts/CoverRouter.sol
// SPDX-License-Identifier: None
pragma solidity ^0.7.5;
import "./interfaces/IBFactory.sol";
import "./interfaces/IBPool.sol";
import "./interfaces/ICover.sol";
import "./interfaces/ICoverERC20.sol";
import "./interfaces/ICoverRouter.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/IProtocol.sol";
import "./utils/Ownable.sol";
import "./utils/SafeERC20.sol";
import "./utils/SafeMath.sol";
import "./Rollover.sol";
/**
* @title CoverRouter for Cover Protocol, handles balancer activities
* @author crypto-pumpkin@github
*/
contract CoverRouter is ICoverRouter, Ownable, Rollover {
using SafeERC20 for IBPool;
using SafeERC20 for ICoverERC20;
using SafeERC20 for IERC20;
using SafeMath for uint256;
event SwapFeeUpdate(uint256 _oldClaimSwapFee, uint256 _oldNoclaimSwapFee, uint256 _newClaimSwapFee, uint256 _newNoclaimSwapFee);
event CovTokenWeightsUpdate(uint256 _oldClaimWeight, uint256 _oldNoclaimWeight, uint256 _newClaimWeight, uint256 _newNoclaimWeight);
IBFactory public bFactory;
uint256 public constant TOTAL_WEIGHT = 50 ether;
uint256 public claimCovTokenWeight = 40 ether;
uint256 public noclaimCovTokenWeight = 49 ether;
uint256 public claimSwapFee = 0.03 ether;
uint256 public noclaimSwapFee = 0.01 ether;
mapping(bytes32 => address) private pools;
constructor(address _protocolFactory, IBFactory _bFactory) Rollover(_protocolFactory) {
require(address(_bFactory) != address(0), "CoverRouter: bFactory is 0");
bFactory = _bFactory;
}
function poolForPair(address _covToken, address _pairedToken) external override view returns (address) {
bytes32 pairKey = _pairKeyForPair(_covToken, _pairedToken);
return pools[pairKey];
}
/**
* @notice mint cover token and add liquidity into the balancer pools
* Capped by amount, claim and noclaim pairedToken amount
*/
function addCoverAndAddLiquidity(
IProtocol _protocol,
IERC20 _collateral,
uint48 _timestamp,
uint256 _amount,
IERC20 _pairedToken,
uint256 _claimPTAmt,
uint256 _noclaimPTAmt,
bool _addBuffer
) external override {
_validateProtocolLegitimacy(_protocol);
require(_amount > 0 && _claimPTAmt > 0 && _noclaimPTAmt > 0, "CoverRouter: amount is 0");
_collateral.safeTransferFrom(msg.sender, address(this), _amount);
_addCover(_protocol, address(_collateral), _timestamp, _collateral.balanceOf(address(this)));
ICover cover = ICover(_protocol.coverMap(address(_collateral), _timestamp));
_addLiquidityForCover(msg.sender, cover, _pairedToken, _claimPTAmt, _noclaimPTAmt, _addBuffer);
}
/// @notice rollover for self
function rolloverAndAddLiquidity(
ICover _cover,
uint48 _newTimestamp,
IERC20 _pairedToken,
uint256 _claimPTAmt,
uint256 _noclaimPTAmt,
bool _addBuffer
) external override {
_rolloverAccount(address(_cover), _newTimestamp, false);
// if has not reverted, gurranteed protocol is from Cover Protocol
IProtocol protocol = IProtocol(_cover.owner());
ICover newCover = ICover(protocol.coverMap(_cover.collateral(), _newTimestamp));
_addLiquidityForCover(msg.sender, newCover, _pairedToken, _claimPTAmt, _noclaimPTAmt, _addBuffer);
}
/// @notice remove liquidity for a covToken and transfer tokens back to sender
function removeLiquidity(ICoverERC20 _covToken, IERC20 _pairedToken, uint256 _bptAmount) external override {
require(_bptAmount > 0, "CoverRouter: insufficient covToken");
bytes32 pairKey = _pairKeyForPair(address(_covToken), address(_pairedToken));
IBPool pool = IBPool(pools[pairKey]);
require(pool.balanceOf(msg.sender) >= _bptAmount, "CoverRouter: insufficient BPT");
uint256[] memory minAmountsOut = new uint256[](2);
minAmountsOut[0] = 0;
minAmountsOut[1] = 0;
pool.safeTransferFrom(msg.sender, address(this), _bptAmount);
pool.exitPool(pool.balanceOf(address(this)), minAmountsOut);
_covToken.safeTransfer(msg.sender, _covToken.balanceOf(address(this)));
_pairedToken.safeTransfer(msg.sender, _pairedToken.balanceOf(address(this)));
emit RemoveLiquidity(msg.sender, address(pool));
}
/// @notice add double sided liquidity, there maybe tokens left after
function addLiquidity(
ICoverERC20 _covToken,
uint256 _covTokenAmount,
IERC20 _pairedToken,
uint256 _pairedTokenAmount,
bool _addBuffer
) external override {
require(_covToken.balanceOf(msg.sender) >= _covTokenAmount, "CoverRouter: insufficient covToken");
require(_pairedToken.balanceOf(msg.sender) >= _pairedTokenAmount, "CoverRouter: insufficient pairedToken");
_covToken.safeTransferFrom(msg.sender, address(this), _covTokenAmount);
_pairedToken.safeTransferFrom(msg.sender, address(this), _pairedTokenAmount);
_joinPoolAndTransferRemCovToken(msg.sender, _covToken, _pairedToken, _pairedToken.balanceOf(address(this)), _addBuffer);
_transferRem(msg.sender, _pairedToken);
}
function createNewPool(
ICoverERC20 _covToken,
uint256 _covTokenAmount,
IERC20 _pairedToken,
uint256 _pairedTokenAmount
) external override returns (address pool) {
require(address(_pairedToken) != address(_covToken), "CoverRouter: same token");
bytes32 pairKey = _pairKeyForPair(address(_covToken), address(_pairedToken));
require(pools[pairKey] == address(0), "CoverRouter: pool already exists");
_validCovToken(address(_covToken));
// Get the Cover contract from the token to check if its the claim or noclaim.
ICover cover = ICover(ICoverERC20(_covToken).owner());
bool isClaimPair = cover.claimCovToken() == _covToken;
_covToken.safeTransferFrom(msg.sender, address(this), _covTokenAmount);
_pairedToken.safeTransferFrom(msg.sender, address(this), _pairedTokenAmount);
pool = _createBalPoolAndTransferBpt(msg.sender, _covToken, _pairedToken, _pairedToken.balanceOf(address(this)), isClaimPair);
pools[pairKey] = pool;
_transferRem(msg.sender, _pairedToken);
_transferRem(msg.sender, _covToken);
}
function setSwapFee(uint256 _claimSwapFee, uint256 _noclaimSwapFee) external override onlyOwner {
require(_claimSwapFee > 0 && _noclaimSwapFee > 0, "CoverRouter: invalid fees");
emit SwapFeeUpdate(claimSwapFee, noclaimSwapFee, _claimSwapFee, _noclaimSwapFee);
claimSwapFee = _claimSwapFee;
noclaimSwapFee = _noclaimSwapFee;
}
function setCovTokenWeights(uint256 _claimCovTokenWeight, uint256 _noclaimCovTokenWeight) external override onlyOwner {
require(_claimCovTokenWeight < TOTAL_WEIGHT, "CoverRouter: invalid claim weight");
require(_noclaimCovTokenWeight < TOTAL_WEIGHT, "CoverRouter: invalid noclaim weight");
emit CovTokenWeightsUpdate(
claimCovTokenWeight,
noclaimCovTokenWeight,
_claimCovTokenWeight,
_noclaimCovTokenWeight
);
claimCovTokenWeight = _claimCovTokenWeight;
noclaimCovTokenWeight = _noclaimCovTokenWeight;
}
function setPoolForPair(address _covToken, address _pairedToken, address _newPool) public override onlyOwner {
_validCovToken(_covToken);
_validBalPoolTokens(_covToken, _pairedToken, IBPool(_newPool));
bytes32 pairKey = _pairKeyForPair(_covToken, _pairedToken);
pools[pairKey] = _newPool;
emit PoolUpdate(_covToken, _pairedToken, _newPool);
}
function setPoolsForPairs(address[] memory _covTokens, address[] memory _pairedTokens, address[] memory _newPools) external override onlyOwner {
require(_covTokens.length == _pairedTokens.length, "CoverRouter: Paired tokens length not equal");
require(_covTokens.length == _newPools.length, "CoverRouter: Pools length not equal");
for (uint256 i = 0; i < _covTokens.length; i++) {
setPoolForPair(_covTokens[i], _pairedTokens[i], _newPools[i]);
}
}
function _pairKeyForPair(address _covToken, address _pairedToken) internal view returns (bytes32 pairKey) {
(address token0, address token1) = _covToken < _pairedToken ? (_covToken, _pairedToken) : (_pairedToken, _covToken);
pairKey = keccak256(abi.encodePacked(
protocolFactory,
token0,
token1
));
}
function _getBptAmountOut(
IBPool pool,
address _covToken,
uint256 _covTokenAmount,
address _pairedToken,
uint256 _pairedTokenAmount,
bool _addBuffer
) internal view returns (uint256 bptAmountOut, uint256[] memory maxAmountsIn) {
uint256 poolAmountOutInCov = _covTokenAmount.mul(pool.totalSupply()).div(pool.getBalance(_covToken));
uint256 poolAmountOutInPaired = _pairedTokenAmount.mul(pool.totalSupply()).div(pool.getBalance(_pairedToken));
bptAmountOut = poolAmountOutInCov > poolAmountOutInPaired ? poolAmountOutInPaired : poolAmountOutInCov;
bptAmountOut = _addBuffer ? bptAmountOut.mul(99).div(100) : bptAmountOut;
address[] memory tokens = pool.getFinalTokens();
maxAmountsIn = new uint256[](2);
maxAmountsIn[0] = _covTokenAmount;
maxAmountsIn[1] = _pairedTokenAmount;
if (tokens[1] == _covToken) {
maxAmountsIn[0] = _pairedTokenAmount;
maxAmountsIn[1] = _covTokenAmount;
}
}
/// @notice make covToken is from Cover Protocol Factory
function _validCovToken(address _covToken) private view {
require(_covToken != address(0), "CoverRouter: covToken is 0 address");
ICover cover = ICover(ICoverERC20(_covToken).owner());
address tokenProtocolFactory = IProtocol(cover.owner()).owner();
require(tokenProtocolFactory == protocolFactory, "CoverRouter: wrong factory");
}
function _validBalPoolTokens(address _covToken, address _pairedToken, IBPool _pool) private view {
require(_pairedToken != _covToken, "CoverRouter: same token");
address[] memory tokens = _pool.getFinalTokens();
require(tokens.length == 2, "CoverRouter: Too many tokens in pool");
require((_covToken == tokens[0] && _pairedToken == tokens[1]) || (_pairedToken == tokens[0] && _covToken == tokens[1]), "CoverRouter: tokens don't match");
}
/// @dev add buffer support (1%) as suggested by balancer doc to help get tx through. https://docs.balancer.finance/smart-contracts/core-contracts/api#joinpool
function _joinPoolAndTransferRemCovToken(
address _account,
IERC20 _covToken,
IERC20 _pairedToken,
uint256 _pairedTokenAmount,
bool _addBuffer
) internal {
address poolAddr = pools[_pairKeyForPair(address(_covToken), address(_pairedToken))];
require(poolAddr != address(0), "CoverRouter: pool not found");
IBPool pool = IBPool(poolAddr);
uint256 covTokenAmount = _covToken.balanceOf(address(this));
(uint256 bptAmountOut, uint256[] memory maxAmountsIn) = _getBptAmountOut(pool, address(_covToken), covTokenAmount, address(_pairedToken), _pairedTokenAmount, _addBuffer);
_approve(_covToken, poolAddr, covTokenAmount);
_approve(_pairedToken, poolAddr, _pairedTokenAmount);
pool.joinPool(bptAmountOut, maxAmountsIn);
pool.safeTransfer(_account, pool.balanceOf(address(this)));
_transferRem(_account, _covToken);
emit AddLiquidity(_account, poolAddr);
}
function _transferRem(address _account, IERC20 token) internal {
uint256 rem = token.balanceOf(address(this));
if (rem > 0) {
token.safeTransfer(_account, rem);
}
}
function _receivePairdTokens(
address _account,
IERC20 _pairedToken,
uint256 _claimPTAmt,
uint256 _noclaimPTAmt
) internal returns (uint256 receivedClaimPTAmt, uint256 receivedNoclaimPTAmt) {
uint256 total = _claimPTAmt.add(_noclaimPTAmt);
_pairedToken.safeTransferFrom(_account, address(this), total);
uint256 bal = _pairedToken.balanceOf(address(this));
receivedClaimPTAmt = bal.mul(_claimPTAmt).div(total);
receivedNoclaimPTAmt = bal.mul(_noclaimPTAmt).div(total);
}
function _addLiquidityForCover(
address _account,
ICover _cover,
IERC20 _pairedToken,
uint256 _claimPTAmt,
uint256 _noclaimPTAmt,
bool _addBuffer
) private {
IERC20 claimCovToken = _cover.claimCovToken();
IERC20 noclaimCovToken = _cover.noclaimCovToken();
(uint256 claimPTAmt, uint256 noclaimPTAmt) = _receivePairdTokens(_account, _pairedToken, _claimPTAmt, _noclaimPTAmt);
_joinPoolAndTransferRemCovToken(_account, claimCovToken, _pairedToken, claimPTAmt, _addBuffer);
_joinPoolAndTransferRemCovToken(_account, noclaimCovToken, _pairedToken, noclaimPTAmt, _addBuffer);
_transferRem(_account, _pairedToken);
}
function _createBalPoolAndTransferBpt(
address _account,
IERC20 _covToken,
IERC20 _pairedToken,
uint256 _pairedTokenAmount,
bool _isClaimPair
) private returns (address poolAddr) {
IBPool pool = bFactory.newBPool();
poolAddr = address(pool);
uint256 _covTokenSwapFee = claimSwapFee;
uint256 _covTokenWeight = claimCovTokenWeight;
if (!_isClaimPair) {
_covTokenSwapFee = noclaimSwapFee;
_covTokenWeight = noclaimCovTokenWeight;
}
pool.setSwapFee(_covTokenSwapFee);
uint256 covTokenAmount = _covToken.balanceOf(address(this));
_approve(_covToken, poolAddr, covTokenAmount);
pool.bind(address(_covToken), covTokenAmount, _covTokenWeight);
_approve(_pairedToken, poolAddr, _pairedTokenAmount);
pool.bind(address(_pairedToken), _pairedTokenAmount, TOTAL_WEIGHT.sub(_covTokenWeight));
pool.finalize();
emit PoolUpdate(address(_covToken), address(_pairedToken), poolAddr);
pool.safeTransfer(_account, pool.balanceOf(address(this)));
}
}
/
// SPDX-License-Identifier: No License
pragma solidity ^0.7.3;
/**
* @dev ProtocolFactory contract interface. See {ProtocolFactory}.
* @author crypto-pumpkin@github
*/
interface IProtocolFactory {
function getCoverAddress(bytes32 _protocolName, uint48 _timestamp, address _collateral, uint256 _claimNonce) external view returns (address);
function getProtocolAddress(bytes32 _name) external view returns (address);
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.5;
import "./ICover.sol";
import "./ICoverERC20.sol";
import "./IERC20.sol";
import "./IProtocol.sol";
/**
* @title CoverRouter interface
* @author crypto-pumpkin@github
*/
interface ICoverRouter {
event PoolUpdate(address indexed covtoken, address indexed pairedToken, address indexed poolAddr);
event AddLiquidity(address indexed account, address indexed poolAddr);
event RemoveLiquidity(address indexed account, address indexed poolAddr);
function poolForPair(address _covToken, address _pairedToken) external view returns (address);
/// @notice _covTokenAmount + _pairedTokenAmount + XCovTokenWeight will set the initial price for the covToken
function createNewPool(ICoverERC20 _covToken, uint256 _covAmount, IERC20 _pairedToken, uint256 _pairedAmount) external returns (address);
/// @notice add double sided liquidity, there maybe token left after add liquidity
function addLiquidity(ICoverERC20 _covToken,uint256 _covTokenAmount, IERC20 _pairedToken, uint256 _pairedTokenAmount, bool _addBuffer) external;
function removeLiquidity(ICoverERC20 _covToken, IERC20 _pairedToken, uint256 _btpAmount) external;
function addCoverAndAddLiquidity(
IProtocol _protocol,
IERC20 _collateral,
uint48 _timestamp,
uint256 _amount,
IERC20 _pairedToken,
uint256 _claimPairedTokenAmount,
uint256 _noclaimPairedTokenAmount,
bool _addBuffer
) external;
function rolloverAndAddLiquidity(
ICover _cover,
uint48 _newTimestamp,
IERC20 _pairedToken,
uint256 _claimPairedTokenAmount,
uint256 _noclaimPairedTokenAmount,
bool _addBuffer
) external;
// owner only
function setPoolForPair(address _covToken, address _pairedToken, address _newPool) external;
function setPoolsForPairs(address[] memory _covTokens, address[] memory _pairedTokens, address[] memory _newPools) external;
function setCovTokenWeights(uint256 _claimCovTokenWeight, uint256 _noclaimCovTokenWeight) external;
function setSwapFee(uint256 _claimSwapFees, uint256 _noclaimSwapFees) external;
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.5;
import "./IERC20.sol";
interface ICoverERC20 is IERC20 {
function owner() external view returns (address);
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.5;
interface IRollover {
event RolloverCover(address indexed _account, address _protocol);
function rollover(address _cover, uint48 _newTimestamp) external;
}
/
// SPDX-License-Identifier: No License
pragma solidity ^0.7.3;
/**
* @dev Protocol contract interface. See {Protocol}.
* @author crypto-pumpkin@github
*/
interface IProtocol {
function owner() external view returns (address);
function active() external view returns (bool);
function name() external view returns (bytes32);
function claimNonce() external view returns (uint256);
/// @notice delay # of seconds for redeem with accepted claim, redeemCollateral is not affected
function claimRedeemDelay() external view returns (uint256);
/// @notice delay # of seconds for redeem without accepted claim, redeemCollateral is not affected
function noclaimRedeemDelay() external view returns (uint256);
function activeCovers(uint256 _index) external view returns (address);
function claimDetails(uint256 _claimNonce) external view returns (uint16 _payoutNumerator, uint16 _payoutDenominator, uint48 _incidentTimestamp, uint48 _timestamp);
function collateralStatusMap(address _collateral) external view returns (uint8 _status);
function expirationTimestampMap(uint48 _expirationTimestamp) external view returns (bytes32 _name, uint8 _status);
function coverMap(address _collateral, uint48 _expirationTimestamp) external view returns (address);
function collaterals(uint256 _index) external view returns (address);
function collateralsLength() external view returns (uint256);
function expirationTimestamps(uint256 _index) external view returns (uint48);
function expirationTimestampsLength() external view returns (uint256);
function activeCoversLength() external view returns (uint256);
function claimsLength() external view returns (uint256);
function addCover(address _collateral, uint48 _timestamp, uint256 _amount)
external returns (bool);
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.5;
import "./IBPool.sol";
interface IBFactory {
function newBPool() external returns (IBPool);
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.4;
/**
* @title Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function approve(address spender, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
function totalSupply() external view returns (uint256);
}
/
// SPDX-License-Identifier: No License
pragma solidity ^0.7.3;
import "./ICoverERC20.sol";
/**
* @title Cover contract interface. See {Cover}.
* @author crypto-pumpkin@github
*/
interface ICover {
function owner() external view returns (address);
function expirationTimestamp() external view returns (uint48);
function collateral() external view returns (address);
function claimCovToken() external view returns (ICoverERC20);
function noclaimCovToken() external view returns (ICoverERC20);
function claimNonce() external view returns (uint256);
function redeemClaim() external;
function redeemNoclaim() external;
function redeemCollateral(uint256 _amount) external;
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.5;
import "./IERC20.sol";
interface IBPool is IERC20 {
function getFinalTokens() external view returns(address[] memory);
function getDenormalizedWeight(address token) external view returns (uint256);
function setSwapFee(uint256 swapFee) external;
function setController(address controller) external;
function finalize() external;
function bind(address token, uint256 balance, uint256 denorm) external;
function getBalance(address token) external view returns (uint);
function joinPool(uint256 poolAmountOut, uint256[] calldata maxAmountsIn) external;
function exitPool(uint256 poolAmountIn, uint256[] calldata minAmountsOut) external;
}
/
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.5;
import "./SafeMath.sol";
import "./Address.sol";
import "../interfaces/IERC20.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 SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @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'
// solhint-disable-next-line max-line-length
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).add(value);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
/**
* @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
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.4;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.4;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
* @author crypto-pumpkin@github
*
* By initialization, the owner account will be the one that called initializeOwner. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev COVER: Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == msg.sender, "Ownable: caller is not the owner");
_;
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
/
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.4;
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) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/
// SPDX-License-Identifier: None
pragma solidity ^0.7.5;
import "./interfaces/ICover.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/IProtocolFactory.sol";
import "./interfaces/IProtocol.sol";
import "./interfaces/IRollover.sol";
import "./utils/SafeERC20.sol";
import "./utils/SafeMath.sol";
/**
* @title Rollover zap for Cover Protocol that auto redeems and rollover the coverage to the next cover, it does not sell or buy tokens for sender
* @author crypto-pumpkin@github
*/
contract Rollover is IRollover {
using SafeERC20 for IERC20;
using SafeMath for uint256;
address public protocolFactory;
constructor(address _protocolFactory) {
require(_protocolFactory != address(0), "CoverRouter: protocolFactory is 0");
protocolFactory = _protocolFactory;
}
/// @notice rollover for sender
function rollover(address _cover, uint48 _newTimestamp) external override {
_rolloverAccount(_cover, _newTimestamp, true);
}
/// @notice can only rollover to a future expiry once, expiries are limited and pre-set by Cover Protocol
function _rolloverAccount(
address _cover,
uint48 _newTimestamp,
bool _isLastStep
) internal {
ICover cover = ICover(_cover);
_validateCoverLegitimacy(cover);
uint48 expirationTimestamp = cover.expirationTimestamp();
require(expirationTimestamp < _newTimestamp && block.timestamp < _newTimestamp, "CoverRouter: invalid expiry");
IProtocol protocol = IProtocol(cover.owner());
bool acceptedClaim = cover.claimNonce() != protocol.claimNonce();
require(!acceptedClaim, "CoverRouter: there is an accepted claim");
(, uint8 expirationStatus) = protocol.expirationTimestampMap(_newTimestamp);
require(expirationStatus == 1, "CoverRouter: new timestamp is not active");
if (block.timestamp < expirationTimestamp) {
_redeemCollateral(cover, msg.sender);
} else {
require(block.timestamp >= uint256(expirationTimestamp).add(protocol.noclaimRedeemDelay()), "CoverRouter: not ready");
_redeemNoclaim(cover, msg.sender);
}
IERC20 collateral = IERC20(cover.collateral());
uint256 redeemedAmount = collateral.balanceOf(address(this));
_addCover(protocol, address(collateral), _newTimestamp, redeemedAmount);
emit RolloverCover(msg.sender, address(protocol));
if (_isLastStep) {
_sendCovTokensToAccount(protocol, address(collateral), _newTimestamp, msg.sender);
}
}
/// @notice appove spender contract to spend CoverRouter's tokens
function _approve(IERC20 _token, address _spender, uint256 _amount) internal {
if (_token.allowance(address(this), _spender) < _amount) {
_token.approve(_spender, _amount);
}
}
function _validateCoverLegitimacy(ICover _cover) internal view {
IProtocol _protocol = IProtocol(_cover.owner());
address realCoverAddress = IProtocolFactory(protocolFactory).getCoverAddress(_protocol.name(), _cover.expirationTimestamp(), _cover.collateral(), _cover.claimNonce());
require(address(_cover) == realCoverAddress, "CoverRouter: not legitimate cover");
}
function _validateProtocolLegitimacy(IProtocol _protocol) internal view {
address realProtocolAddress = IProtocolFactory(protocolFactory).getProtocolAddress(_protocol.name());
require(address(_protocol) == realProtocolAddress, "CoverRouter: not legitimate protocol address");
}
function _addCover(
IProtocol _protocol,
address _collateral,
uint48 _timestamp,
uint256 _amount
) internal {
_approve(IERC20(_collateral), address(_protocol), _amount);
// safe call to a protocol from Cover Protocol Factory, will revert if anything goes wrong
_protocol.addCover(_collateral, _timestamp, _amount);
}
function _sendCovTokensToAccount(
IProtocol protocol,
address _collateral,
uint48 _timestamp,
address _account
) private {
ICover newCover = ICover(protocol.coverMap(_collateral, _timestamp));
IERC20 newClaimCovToken = newCover.claimCovToken();
IERC20 newNoclaimCovToken = newCover.noclaimCovToken();
newClaimCovToken.safeTransfer(_account, newClaimCovToken.balanceOf(address(this)));
newNoclaimCovToken.safeTransfer(_account, newNoclaimCovToken.balanceOf(address(this)));
}
function _redeemCollateral(ICover cover, address _account) private {
// transfer CLAIM and NOCLAIM to contract
IERC20 claimCovToken = cover.claimCovToken();
IERC20 noclaimCovToken = cover.noclaimCovToken();
uint256 claimCovTokenBal = claimCovToken.balanceOf(_account);
uint256 noclaimCovTokenBal = noclaimCovToken.balanceOf(_account);
uint256 amount = (claimCovTokenBal > noclaimCovTokenBal) ? noclaimCovTokenBal : claimCovTokenBal;
require(amount > 0, "CoverRouter: insufficient covTokens");
claimCovToken.safeTransferFrom(_account, address(this), amount);
noclaimCovToken.safeTransferFrom(_account, address(this), amount);
// redeem collateral back to contract with CLAIM and NOCLAIM tokens
cover.redeemCollateral(amount);
}
function _redeemNoclaim(ICover cover, address _account) private {
// transfer CLAIM and NOCLAIM to contract
IERC20 noclaimCovToken = cover.noclaimCovToken();
uint256 amount = noclaimCovToken.balanceOf(_account);
require(amount > 0, "CoverRouter: insufficient NOCLAIM covTokens");
noclaimCovToken.safeTransferFrom(_account, address(this), amount);
// redeem collateral back to contract with NOCLAIM tokens
cover.redeemNoclaim();
}
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"istanbul","compilationTarget":{"contracts/CoverRouter.sol":"CoverRouter"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_protocolFactory","internalType":"address"},{"type":"address","name":"_bFactory","internalType":"contract IBFactory"}]},{"type":"event","name":"AddLiquidity","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"poolAddr","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"CovTokenWeightsUpdate","inputs":[{"type":"uint256","name":"_oldClaimWeight","internalType":"uint256","indexed":false},{"type":"uint256","name":"_oldNoclaimWeight","internalType":"uint256","indexed":false},{"type":"uint256","name":"_newClaimWeight","internalType":"uint256","indexed":false},{"type":"uint256","name":"_newNoclaimWeight","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PoolUpdate","inputs":[{"type":"address","name":"covtoken","internalType":"address","indexed":true},{"type":"address","name":"pairedToken","internalType":"address","indexed":true},{"type":"address","name":"poolAddr","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RemoveLiquidity","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"poolAddr","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RolloverCover","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"address","name":"_protocol","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"SwapFeeUpdate","inputs":[{"type":"uint256","name":"_oldClaimSwapFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"_oldNoclaimSwapFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"_newClaimSwapFee","internalType":"uint256","indexed":false},{"type":"uint256","name":"_newNoclaimSwapFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"TOTAL_WEIGHT","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addCoverAndAddLiquidity","inputs":[{"type":"address","name":"_protocol","internalType":"contract IProtocol"},{"type":"address","name":"_collateral","internalType":"contract IERC20"},{"type":"uint48","name":"_timestamp","internalType":"uint48"},{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"address","name":"_pairedToken","internalType":"contract IERC20"},{"type":"uint256","name":"_claimPTAmt","internalType":"uint256"},{"type":"uint256","name":"_noclaimPTAmt","internalType":"uint256"},{"type":"bool","name":"_addBuffer","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addLiquidity","inputs":[{"type":"address","name":"_covToken","internalType":"contract ICoverERC20"},{"type":"uint256","name":"_covTokenAmount","internalType":"uint256"},{"type":"address","name":"_pairedToken","internalType":"contract IERC20"},{"type":"uint256","name":"_pairedTokenAmount","internalType":"uint256"},{"type":"bool","name":"_addBuffer","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IBFactory"}],"name":"bFactory","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"claimCovTokenWeight","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"claimSwapFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"pool","internalType":"address"}],"name":"createNewPool","inputs":[{"type":"address","name":"_covToken","internalType":"contract ICoverERC20"},{"type":"uint256","name":"_covTokenAmount","internalType":"uint256"},{"type":"address","name":"_pairedToken","internalType":"contract IERC20"},{"type":"uint256","name":"_pairedTokenAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"noclaimCovTokenWeight","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"noclaimSwapFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"poolForPair","inputs":[{"type":"address","name":"_covToken","internalType":"address"},{"type":"address","name":"_pairedToken","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"protocolFactory","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeLiquidity","inputs":[{"type":"address","name":"_covToken","internalType":"contract ICoverERC20"},{"type":"address","name":"_pairedToken","internalType":"contract IERC20"},{"type":"uint256","name":"_bptAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rollover","inputs":[{"type":"address","name":"_cover","internalType":"address"},{"type":"uint48","name":"_newTimestamp","internalType":"uint48"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rolloverAndAddLiquidity","inputs":[{"type":"address","name":"_cover","internalType":"contract ICover"},{"type":"uint48","name":"_newTimestamp","internalType":"uint48"},{"type":"address","name":"_pairedToken","internalType":"contract IERC20"},{"type":"uint256","name":"_claimPTAmt","internalType":"uint256"},{"type":"uint256","name":"_noclaimPTAmt","internalType":"uint256"},{"type":"bool","name":"_addBuffer","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setCovTokenWeights","inputs":[{"type":"uint256","name":"_claimCovTokenWeight","internalType":"uint256"},{"type":"uint256","name":"_noclaimCovTokenWeight","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPoolForPair","inputs":[{"type":"address","name":"_covToken","internalType":"address"},{"type":"address","name":"_pairedToken","internalType":"address"},{"type":"address","name":"_newPool","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPoolsForPairs","inputs":[{"type":"address[]","name":"_covTokens","internalType":"address[]"},{"type":"address[]","name":"_pairedTokens","internalType":"address[]"},{"type":"address[]","name":"_newPools","internalType":"address[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSwapFee","inputs":[{"type":"uint256","name":"_claimSwapFee","internalType":"uint256"},{"type":"uint256","name":"_noclaimSwapFee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Contract Creation Code
0x608060405268022b1c8c1227a000006003556802a802f8630a240000600455666a94d74f430000600555662386f26fc100006006553480156200004157600080fd5b506040516200456e3803806200456e833981810160405260408110156200006757600080fd5b508051602090910151600080546001600160a01b031916331780825560405184926001600160a01b039290921691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160a01b038116620001025760405162461bcd60e51b81526004018080602001828103825260218152602001806200454d6021913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b03928316179055811662000172576040805162461bcd60e51b815260206004820152601a60248201527f436f766572526f757465723a2062466163746f72792069732030000000000000604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055506143aa80620001a36000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80638e7faac6116100ad578063d752fab211610071578063d752fab2146104ff578063e17c001714610535578063ed2a2f9d14610577578063f2fde38b1461057f578063f489048a146105a55761012c565b80638e7faac6146103b4578063983ae9f014610413578063a7a9744214610447578063c84df1e714610481578063ce4a7e07146104d15761012c565b80631efaaed3116100f45780631efaaed314610341578063335f5e23146103495780634be071b71461036c578063826e468d146103a45780638da5cb5b146103ac5761012c565b806304803501146101315780630a165940146102d85780630a81ac03146102fc5780630f4e9ef4146103165780631a610adf1461031e575b600080fd5b6102d66004803603606081101561014757600080fd5b810190602081018135600160201b81111561016157600080fd5b82018360208201111561017357600080fd5b803590602001918460208302840111600160201b8311171561019457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101e357600080fd5b8201836020820111156101f557600080fd5b803590602001918460208302840111600160201b8311171561021657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561026557600080fd5b82018360208201111561027757600080fd5b803590602001918460208302840111600160201b8311171561029857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506105ad945050505050565b005b6102e06106d8565b604080516001600160a01b039092168252519081900360200190f35b6103046106e7565b60408051918252519081900360200190f35b6103046106ed565b6102d66004803603604081101561033457600080fd5b50803590602001356106f3565b6103046107f9565b6102d66004803603604081101561035f57600080fd5b50803590602001356107ff565b6102d66004803603606081101561038257600080fd5b506001600160a01b038135811691602081013582169160409091013516610932565b610304610a03565b6102e0610a09565b6102d660048036036101008110156103cb57600080fd5b506001600160a01b038135811691602081013582169165ffffffffffff604083013516916060810135916080820135169060a08101359060c08101359060e001351515610a18565b6102d66004803603604081101561042957600080fd5b5080356001600160a01b0316906020013565ffffffffffff16610bcd565b6102e06004803603608081101561045d57600080fd5b506001600160a01b0381358116916020810135916040820135169060600135610bdd565b6102d6600480360360c081101561049757600080fd5b506001600160a01b03813581169165ffffffffffff602082013516916040820135169060608101359060808101359060a001351515610ea2565b6102e0600480360360408110156104e757600080fd5b506001600160a01b038135811691602001351661102c565b6102d66004803603606081101561051557600080fd5b506001600160a01b0381358116916020810135909116906040013561105b565b6102d6600480360360a081101561054b57600080fd5b506001600160a01b03813581169160208101359160408201351690606081013590608001351515611452565b610304611680565b6102d66004803603602081101561059557600080fd5b50356001600160a01b031661168d565b6102e061177a565b6000546001600160a01b031633146105fa576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b815183511461063a5760405162461bcd60e51b815260040180806020018281038252602b815260200180614245602b913960400191505060405180910390fd5b805183511461067a5760405162461bcd60e51b81526004018080602001828103825260238152602001806140fe6023913960400191505060405180910390fd5b60005b83518110156106d2576106ca84828151811061069557fe5b60200260200101518483815181106106a957fe5b60200260200101518484815181106106bd57fe5b6020026020010151610932565b60010161067d565b50505050565b6002546001600160a01b031681565b60045481565b60065481565b6000546001600160a01b03163314610740576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b6000821180156107505750600081115b6107a1576040805162461bcd60e51b815260206004820152601960248201527f436f766572526f757465723a20696e76616c6964206665657300000000000000604482015290519081900360640190fd5b60055460065460408051928352602083019190915281810184905260608201839052517f6c3641919c7e7fadf9da06cdd2d4270f1c0cf83d4fc2c28c928f896374ae51b59181900360800190a1600591909155600655565b60035481565b6000546001600160a01b0316331461084c576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b6802b5e3af16b188000082106108935760405162461bcd60e51b81526004018080602001828103825260218152602001806142246021913960400191505060405180910390fd5b6802b5e3af16b188000081106108da5760405162461bcd60e51b81526004018080602001828103825260238152602001806141216023913960400191505060405180910390fd5b60035460045460408051928352602083019190915281810184905260608201839052517fe147fe826286facb8be2363c3d6884d51a65abe111322ba19a37760e4d303bf49181900360800190a1600391909155600455565b6000546001600160a01b0316331461097f576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b61098883611789565b61099383838361197f565b600061099f8484611c2f565b60008181526007602052604080822080546001600160a01b0319166001600160a01b038781169182179092559151939450909286821692918816917f5fca47ff414ef8293a21309c713b121cde28499bcb7c8136c528933686d4889391a450505050565b60055481565b6000546001600160a01b031690565b610a2188611cb2565b600085118015610a315750600083115b8015610a3d5750600082115b610a8e576040805162461bcd60e51b815260206004820152601860248201527f436f766572526f757465723a20616d6f756e7420697320300000000000000000604482015290519081900360640190fd5b610aa36001600160a01b038816333088611df2565b610b278888888a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610af657600080fd5b505afa158015610b0a573d6000803e3d6000fd5b505050506040513d6020811015610b2057600080fd5b5051611e4c565b6000886001600160a01b031663ecd2bf9f89896040518363ffffffff1660e01b815260040180836001600160a01b031681526020018265ffffffffffff1681526020019250505060206040518083038186803b158015610b8657600080fd5b505afa158015610b9a573d6000803e3d6000fd5b505050506040513d6020811015610bb057600080fd5b50519050610bc2338287878787611ef0565b505050505050505050565b610bd98282600161200e565b5050565b6000846001600160a01b0316836001600160a01b03161415610c40576040805162461bcd60e51b815260206004820152601760248201527621b7bb32b92937baba32b91d1039b0b6b2903a37b5b2b760491b604482015290519081900360640190fd5b6000610c4c8685611c2f565b6000818152600760205260409020549091506001600160a01b031615610cb9576040805162461bcd60e51b815260206004820181905260248201527f436f766572526f757465723a20706f6f6c20616c726561647920657869737473604482015290519081900360640190fd5b610cc286611789565b6000866001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cfd57600080fd5b505afa158015610d11573d6000803e3d6000fd5b505050506040513d6020811015610d2757600080fd5b5051604080516320fc581560e21b815290519192506000916001600160a01b03808b1692908516916383f1605491600480820192602092909190829003018186803b158015610d7557600080fd5b505afa158015610d89573d6000803e3d6000fd5b505050506040513d6020811015610d9f57600080fd5b50516001600160a01b03908116919091149150610dc090891633308a611df2565b610dd56001600160a01b038716333088611df2565b610e5a338988896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e2857600080fd5b505afa158015610e3c573d6000803e3d6000fd5b505050506040513d6020811015610e5257600080fd5b505185612563565b600084815260076020526040902080546001600160a01b0319166001600160a01b0383161790559350610e8d3387612926565b610e973389612926565b505050949350505050565b610eae8686600061200e565b6000866001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee957600080fd5b505afa158015610efd573d6000803e3d6000fd5b505050506040513d6020811015610f1357600080fd5b50516040805163d8dfeb4560e01b815290519192506000916001600160a01b038085169263ecd2bf9f92918c169163d8dfeb4591600480820192602092909190829003018186803b158015610f6757600080fd5b505afa158015610f7b573d6000803e3d6000fd5b505050506040513d6020811015610f9157600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015265ffffffffffff8b166024830152516044808301926020929190829003018186803b158015610fe657600080fd5b505afa158015610ffa573d6000803e3d6000fd5b505050506040513d602081101561101057600080fd5b50519050611022338288888888611ef0565b5050505050505050565b6000806110398484611c2f565b6000908152600760205260409020546001600160a01b03169150505b92915050565b6000811161109a5760405162461bcd60e51b815260040180806020018281038252602281526020018061418e6022913960400191505060405180910390fd5b60006110a68484611c2f565b6000818152600760209081526040918290205482516370a0823160e01b815233600482015292519394506001600160a01b031692859284926370a0823192602480840193829003018186803b1580156110fe57600080fd5b505afa158015611112573d6000803e3d6000fd5b505050506040513d602081101561112857600080fd5b5051101561117d576040805162461bcd60e51b815260206004820152601d60248201527f436f766572526f757465723a20696e73756666696369656e7420425054000000604482015290519081900360640190fd5b60408051600280825260608083018452926020830190803683370190505090506000816000815181106111ac57fe5b6020026020010181815250506000816001815181106111c757fe5b60209081029190910101526111e76001600160a01b038316333087611df2565b604080516370a0823160e01b815230600482015290516001600160a01b0384169163b02f0b739183916370a08231916024808301926020929190829003018186803b15801561123557600080fd5b505afa158015611249573d6000803e3d6000fd5b505050506040513d602081101561125f57600080fd5b5051604080516001600160e01b031960e085901b168152600481018381526024820192835286516044830152865187939192606401906020858101910280838360005b838110156112ba5781810151838201526020016112a2565b505050509050019350505050600060405180830381600087803b1580156112e057600080fd5b505af11580156112f4573d6000803e3d6000fd5b5050505061138633876001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561134957600080fd5b505afa15801561135d573d6000803e3d6000fd5b505050506040513d602081101561137357600080fd5b50516001600160a01b03891691906129b9565b61141433866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156113d757600080fd5b505afa1580156113eb573d6000803e3d6000fd5b505050506040513d602081101561140157600080fd5b50516001600160a01b03881691906129b9565b6040516001600160a01b0383169033907fafb871ca9e6b62bccb0296a89bb4c91df027b7c71658274b06a098739d5b7bd490600090a3505050505050565b83856001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156114a057600080fd5b505afa1580156114b4573d6000803e3d6000fd5b505050506040513d60208110156114ca57600080fd5b505110156115095760405162461bcd60e51b815260040180806020018281038252602281526020018061418e6022913960400191505060405180910390fd5b81836001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561155757600080fd5b505afa15801561156b573d6000803e3d6000fd5b505050506040513d602081101561158157600080fd5b505110156115c05760405162461bcd60e51b81526004018080602001828103825260258152602001806142de6025913960400191505060405180910390fd5b6115d56001600160a01b038616333087611df2565b6115ea6001600160a01b038416333085611df2565b61166f338685866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561163d57600080fd5b505afa158015611651573d6000803e3d6000fd5b505050506040513d602081101561166757600080fd5b505185612a0b565b6116793384612926565b5050505050565b6802b5e3af16b188000081565b6000546001600160a01b031633146116da576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b6001600160a01b03811661171f5760405162461bcd60e51b81526004018080602001828103825260268152602001806141686026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b6001600160a01b0381166117ce5760405162461bcd60e51b81526004018080602001828103825260228152602001806142906022913960400191505060405180910390fd5b6000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561180957600080fd5b505afa15801561181d573d6000803e3d6000fd5b505050506040513d602081101561183357600080fd5b505160408051638da5cb5b60e01b815290519192506000916001600160a01b03841691638da5cb5b916004808301926020929190829003018186803b15801561187b57600080fd5b505afa15801561188f573d6000803e3d6000fd5b505050506040513d60208110156118a557600080fd5b505160408051638da5cb5b60e01b815290516001600160a01b0390921691638da5cb5b91600480820192602092909190829003018186803b1580156118e957600080fd5b505afa1580156118fd573d6000803e3d6000fd5b505050506040513d602081101561191357600080fd5b50516001549091506001600160a01b0380831691161461197a576040805162461bcd60e51b815260206004820152601a60248201527f436f766572526f757465723a2077726f6e6720666163746f7279000000000000604482015290519081900360640190fd5b505050565b826001600160a01b0316826001600160a01b031614156119e0576040805162461bcd60e51b815260206004820152601760248201527621b7bb32b92937baba32b91d1039b0b6b2903a37b5b2b760491b604482015290519081900360640190fd5b6060816001600160a01b031663be3bbd2e6040518163ffffffff1660e01b815260040160006040518083038186803b158015611a1b57600080fd5b505afa158015611a2f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611a5857600080fd5b8101908080516040519392919084600160201b821115611a7757600080fd5b908301906020820185811115611a8c57600080fd5b82518660208202830111600160201b82111715611aa857600080fd5b82525081516020918201928201910280838360005b83811015611ad5578181015183820152602001611abd565b5050505090500160405250505090508051600214611b245760405162461bcd60e51b81526004018080602001828103825260248152602001806141446024913960400191505060405180910390fd5b80600081518110611b3157fe5b60200260200101516001600160a01b0316846001600160a01b0316148015611b7e575080600181518110611b6157fe5b60200260200101516001600160a01b0316836001600160a01b0316145b80611bde575080600081518110611b9157fe5b60200260200101516001600160a01b0316836001600160a01b0316148015611bde575080600181518110611bc157fe5b60200260200101516001600160a01b0316846001600160a01b0316145b6106d2576040805162461bcd60e51b815260206004820152601f60248201527f436f766572526f757465723a20746f6b656e7320646f6e2774206d6174636800604482015290519081900360640190fd5b6000806000836001600160a01b0316856001600160a01b031610611c54578385611c57565b84845b600154604080516bffffffffffffffffffffffff19606093841b811660208084019190915295841b811660348301529390921b90921660488201528151603c818303018152605c909101909152805191012095945050505050565b6000600160009054906101000a90046001600160a01b03166001600160a01b0316636b3bcc60836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160206040518083038186803b158015611d1157600080fd5b505afa158015611d25573d6000803e3d6000fd5b505050506040513d6020811015611d3b57600080fd5b5051604080516001600160e01b031960e085901b1681526004810192909252516024808301926020929190829003018186803b158015611d7a57600080fd5b505afa158015611d8e573d6000803e3d6000fd5b505050506040513d6020811015611da457600080fd5b505190506001600160a01b0382811690821614610bd95760405162461bcd60e51b815260040180806020018281038252602c8152602001806142b2602c913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526106d2908590612c79565b611e57838583612d2a565b836001600160a01b03166372c896c38484846040518463ffffffff1660e01b815260040180846001600160a01b031681526020018365ffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015611ebe57600080fd5b505af1158015611ed2573d6000803e3d6000fd5b505050506040513d6020811015611ee857600080fd5b505050505050565b6000856001600160a01b03166383f160546040518163ffffffff1660e01b815260040160206040518083038186803b158015611f2b57600080fd5b505afa158015611f3f573d6000803e3d6000fd5b505050506040513d6020811015611f5557600080fd5b5051604080516391b0cd8160e01b815290519192506000916001600160a01b038916916391b0cd81916004808301926020929190829003018186803b158015611f9d57600080fd5b505afa158015611fb1573d6000803e3d6000fd5b505050506040513d6020811015611fc757600080fd5b50519050600080611fda8a898989612e2d565b91509150611feb8a858a8589612a0b565b611ff88a848a8489612a0b565b6120028a89612926565b50505050505050505050565b8261201881612f00565b6000816001600160a01b0316639f43ddd26040518163ffffffff1660e01b815260040160206040518083038186803b15801561205357600080fd5b505afa158015612067573d6000803e3d6000fd5b505050506040513d602081101561207d57600080fd5b5051905065ffffffffffff8085169082161080156120a257508365ffffffffffff1642105b6120f3576040805162461bcd60e51b815260206004820152601b60248201527f436f766572526f757465723a20696e76616c6964206578706972790000000000604482015290519081900360640190fd5b6000826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561212e57600080fd5b505afa158015612142573d6000803e3d6000fd5b505050506040513d602081101561215857600080fd5b50516040805163529096cd60e11b815290519192506000916001600160a01b0384169163a5212d9a916004808301926020929190829003018186803b1580156121a057600080fd5b505afa1580156121b4573d6000803e3d6000fd5b505050506040513d60208110156121ca57600080fd5b50516040805163529096cd60e11b815290516001600160a01b0387169163a5212d9a916004808301926020929190829003018186803b15801561220c57600080fd5b505afa158015612220573d6000803e3d6000fd5b505050506040513d602081101561223657600080fd5b505114801591506122785760405162461bcd60e51b815260040180806020018281038252602781526020018061434e6027913960400191505060405180910390fd5b6040805163aae7f44d60e01b815265ffffffffffff8816600482015281516000926001600160a01b0386169263aae7f44d9260248083019392829003018186803b1580156122c557600080fd5b505afa1580156122d9573d6000803e3d6000fd5b505050506040513d60408110156122ef57600080fd5b50602001519050600160ff8216146123385760405162461bcd60e51b81526004018080602001828103825260288152602001806141b06028913960400191505060405180910390fd5b8365ffffffffffff16421015612357576123528533613205565b612425565b6123ce836001600160a01b03166381c4fb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561239357600080fd5b505afa1580156123a7573d6000803e3d6000fd5b505050506040513d60208110156123bd57600080fd5b505165ffffffffffff8616906134bb565b42101561241b576040805162461bcd60e51b8152602060048201526016602482015275436f766572526f757465723a206e6f7420726561647960501b604482015290519081900360640190fd5b612425853361351c565b6000856001600160a01b031663d8dfeb456040518163ffffffff1660e01b815260040160206040518083038186803b15801561246057600080fd5b505afa158015612474573d6000803e3d6000fd5b505050506040513d602081101561248a57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156124d857600080fd5b505afa1580156124ec573d6000803e3d6000fd5b505050506040513d602081101561250257600080fd5b5051905061251285838b84611e4c565b604080516001600160a01b0387168152905133917f529945f1e4a9da7bf247c71ad6eb5d33dcefda12a2d82ca26995af3c6b67038c919081900360200190a287156120025761200285838b336136a1565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663d556c5dc6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156125b657600080fd5b505af11580156125ca573d6000803e3d6000fd5b505050506040513d60208110156125e057600080fd5b505160055460035491935083925090846125fd5750506006546004545b826001600160a01b03166334e19907836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561264357600080fd5b505af1158015612657573d6000803e3d6000fd5b505050506000886001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156126aa57600080fd5b505afa1580156126be573d6000803e3d6000fd5b505050506040513d60208110156126d457600080fd5b505190506126e3898683612d2a565b836001600160a01b031663e4e1e5388a83856040518463ffffffff1660e01b815260040180846001600160a01b031681526020018381526020018281526020019350505050600060405180830381600087803b15801561274257600080fd5b505af1158015612756573d6000803e3d6000fd5b50505050612765888689612d2a565b6001600160a01b03841663e4e1e53889896127896802b5e3af16b188000087613934565b6040518463ffffffff1660e01b815260040180846001600160a01b031681526020018381526020018281526020019350505050600060405180830381600087803b1580156127d657600080fd5b505af11580156127ea573d6000803e3d6000fd5b50505050836001600160a01b0316634bb278f36040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561282957600080fd5b505af115801561283d573d6000803e3d6000fd5b50505050846001600160a01b0316886001600160a01b03168a6001600160a01b03167f5fca47ff414ef8293a21309c713b121cde28499bcb7c8136c528933686d4889360405160405180910390a46129198a856001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156128dc57600080fd5b505afa1580156128f0573d6000803e3d6000fd5b505050506040513d602081101561290657600080fd5b50516001600160a01b03871691906129b9565b5050505095945050505050565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561297557600080fd5b505afa158015612989573d6000803e3d6000fd5b505050506040513d602081101561299f57600080fd5b50519050801561197a5761197a6001600160a01b03831684835b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261197a908490612c79565b600060076000612a1b8787611c2f565b81526020810191909152604001600020546001600160a01b0316905080612a89576040805162461bcd60e51b815260206004820152601b60248201527f436f766572526f757465723a20706f6f6c206e6f7420666f756e640000000000604482015290519081900360640190fd5b604080516370a0823160e01b8152306004820152905182916000916001600160a01b038916916370a08231916024808301926020929190829003018186803b158015612ad457600080fd5b505afa158015612ae8573d6000803e3d6000fd5b505050506040513d6020811015612afe57600080fd5b5051905060006060612b14848a858b8b8b613976565b91509150612b23898685612d2a565b612b2e888689612d2a565b604080516313da703560e21b815260048101848152602482019283528351604483015283516001600160a01b03881693634f69c0d49387938793909291606401906020808601910280838360005b83811015612b94578181015183820152602001612b7c565b505050509050019350505050600060405180830381600087803b158015612bba57600080fd5b505af1158015612bce573d6000803e3d6000fd5b50505050612c238a856001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156128dc57600080fd5b612c2d8a8a612926565b846001600160a01b03168a6001600160a01b03167f195e7e4b5fb5e54d74151a03265cb8bfad9ba51c66836062351f7a8f5251e3d560405160405180910390a350505050505050505050565b6060612cce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613d869092919063ffffffff16565b80519091501561197a57808060200190516020811015612ced57600080fd5b505161197a5760405162461bcd60e51b815260040180806020018281038252602a815260200180614324602a913960400191505060405180910390fd5b60408051636eb1769f60e11b81523060048201526001600160a01b0384811660248301529151839286169163dd62ed3e916044808301926020929190829003018186803b158015612d7a57600080fd5b505afa158015612d8e573d6000803e3d6000fd5b505050506040513d6020811015612da457600080fd5b5051101561197a57826001600160a01b031663095ea7b383836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612e0357600080fd5b505af1158015612e17573d6000803e3d6000fd5b505050506040513d602081101561167957600080fd5b60008080612e3b85856134bb565b9050612e526001600160a01b038716883084611df2565b6000866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612ea157600080fd5b505afa158015612eb5573d6000803e3d6000fd5b505050506040513d6020811015612ecb57600080fd5b50519050612ee382612edd8389613d9d565b90613df6565b9350612ef382612edd8388613d9d565b9250505094509492505050565b6000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612f3b57600080fd5b505afa158015612f4f573d6000803e3d6000fd5b505050506040513d6020811015612f6557600080fd5b5051600154604080516306fdde0360e01b815290519293506000926001600160a01b0392831692636b94e3be92908616916306fdde0391600480820192602092909190829003018186803b158015612fbc57600080fd5b505afa158015612fd0573d6000803e3d6000fd5b505050506040513d6020811015612fe657600080fd5b505160408051634fa1eee960e11b815290516001600160a01b03881691639f43ddd2916004808301926020929190829003018186803b15801561302857600080fd5b505afa15801561303c573d6000803e3d6000fd5b505050506040513d602081101561305257600080fd5b50516040805163d8dfeb4560e01b815290516001600160a01b0389169163d8dfeb45916004808301926020929190829003018186803b15801561309457600080fd5b505afa1580156130a8573d6000803e3d6000fd5b505050506040513d60208110156130be57600080fd5b50516040805163529096cd60e11b815290516001600160a01b038a169163a5212d9a916004808301926020929190829003018186803b15801561310057600080fd5b505afa158015613114573d6000803e3d6000fd5b505050506040513d602081101561312a57600080fd5b5051604080516001600160e01b031960e088901b168152600481019590955265ffffffffffff90931660248501526001600160a01b0390911660448401526064830152516084808301926020929190829003018186803b15801561318d57600080fd5b505afa1580156131a1573d6000803e3d6000fd5b505050506040513d60208110156131b757600080fd5b505190506001600160a01b038381169082161461197a5760405162461bcd60e51b81526004018080602001828103825260218152602001806143036021913960400191505060405180910390fd5b6000826001600160a01b03166383f160546040518163ffffffff1660e01b815260040160206040518083038186803b15801561324057600080fd5b505afa158015613254573d6000803e3d6000fd5b505050506040513d602081101561326a57600080fd5b5051604080516391b0cd8160e01b815290519192506000916001600160a01b038616916391b0cd81916004808301926020929190829003018186803b1580156132b257600080fd5b505afa1580156132c6573d6000803e3d6000fd5b505050506040513d60208110156132dc57600080fd5b5051604080516370a0823160e01b81526001600160a01b0386811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b15801561332e57600080fd5b505afa158015613342573d6000803e3d6000fd5b505050506040513d602081101561335857600080fd5b5051604080516370a0823160e01b81526001600160a01b0387811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b1580156133aa57600080fd5b505afa1580156133be573d6000803e3d6000fd5b505050506040513d60208110156133d457600080fd5b5051905060008183116133e757826133e9565b815b90506000811161342a5760405162461bcd60e51b81526004018080602001828103825260238152602001806140db6023913960400191505060405180910390fd5b61343f6001600160a01b038616873084611df2565b6134546001600160a01b038516873084611df2565b866001600160a01b031663bd37b775826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561349a57600080fd5b505af11580156134ae573d6000803e3d6000fd5b5050505050505050505050565b600082820183811015613515576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826001600160a01b03166391b0cd816040518163ffffffff1660e01b815260040160206040518083038186803b15801561355757600080fd5b505afa15801561356b573d6000803e3d6000fd5b505050506040513d602081101561358157600080fd5b5051604080516370a0823160e01b81526001600160a01b0385811660048301529151929350600092918416916370a0823191602480820192602092909190829003018186803b1580156135d357600080fd5b505afa1580156135e7573d6000803e3d6000fd5b505050506040513d60208110156135fd57600080fd5b505190508061363d5760405162461bcd60e51b815260040180806020018281038252602b8152602001806141d8602b913960400191505060405180910390fd5b6136526001600160a01b038316843084611df2565b836001600160a01b0316631c75d8806040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561368d57600080fd5b505af1158015611022573d6000803e3d6000fd5b6000846001600160a01b031663ecd2bf9f85856040518363ffffffff1660e01b815260040180836001600160a01b031681526020018265ffffffffffff1681526020019250505060206040518083038186803b15801561370057600080fd5b505afa158015613714573d6000803e3d6000fd5b505050506040513d602081101561372a57600080fd5b5051604080516320fc581560e21b815290519192506000916001600160a01b038416916383f16054916004808301926020929190829003018186803b15801561377257600080fd5b505afa158015613786573d6000803e3d6000fd5b505050506040513d602081101561379c57600080fd5b5051604080516391b0cd8160e01b815290519192506000916001600160a01b038516916391b0cd81916004808301926020929190829003018186803b1580156137e457600080fd5b505afa1580156137f8573d6000803e3d6000fd5b505050506040513d602081101561380e57600080fd5b5051604080516370a0823160e01b8152306004820152905191925061389d9186916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561386057600080fd5b505afa158015613874573d6000803e3d6000fd5b505050506040513d602081101561388a57600080fd5b50516001600160a01b03851691906129b9565b61392b84826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156138ee57600080fd5b505afa158015613902573d6000803e3d6000fd5b505050506040513d602081101561391857600080fd5b50516001600160a01b03841691906129b9565b50505050505050565b600061351583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613e38565b600060606000613a70896001600160a01b031663f8b2cb4f8a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156139cc57600080fd5b505afa1580156139e0573d6000803e3d6000fd5b505050506040513d60208110156139f657600080fd5b5051604080516318160ddd60e01b81529051612edd916001600160a01b038e16916318160ddd91600480820192602092909190829003018186803b158015613a3d57600080fd5b505afa158015613a51573d6000803e3d6000fd5b505050506040513d6020811015613a6757600080fd5b50518a90613d9d565b90506000613b688a6001600160a01b031663f8b2cb4f896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015613ac457600080fd5b505afa158015613ad8573d6000803e3d6000fd5b505050506040513d6020811015613aee57600080fd5b5051604080516318160ddd60e01b81529051612edd916001600160a01b038f16916318160ddd91600480820192602092909190829003018186803b158015613b3557600080fd5b505afa158015613b49573d6000803e3d6000fd5b505050506040513d6020811015613b5f57600080fd5b50518990613d9d565b9050808211613b775781613b79565b805b935084613b865783613b96565b613b966064612edd866063613d9d565b935060608a6001600160a01b031663be3bbd2e6040518163ffffffff1660e01b815260040160006040518083038186803b158015613bd357600080fd5b505afa158015613be7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613c1057600080fd5b8101908080516040519392919084600160201b821115613c2f57600080fd5b908301906020820185811115613c4457600080fd5b82518660208202830111600160201b82111715613c6057600080fd5b82525081516020918201928201910280838360005b83811015613c8d578181015183820152602001613c75565b505050509050016040525050509050600267ffffffffffffffff81118015613cb457600080fd5b50604051908082528060200260200182016040528015613cde578160200160208202803683370190505b5093508884600081518110613cef57fe5b6020026020010181815250508684600181518110613d0957fe5b602002602001018181525050896001600160a01b031681600181518110613d2c57fe5b60200260200101516001600160a01b03161415613d78578684600081518110613d5157fe5b6020026020010181815250508884600181518110613d6b57fe5b6020026020010181815250505b505050965096945050505050565b6060613d958484600085613ecf565b949350505050565b600082613dac57506000611055565b82820282848281613db957fe5b04146135155760405162461bcd60e51b81526004018080602001828103825260218152602001806142036021913960400191505060405180910390fd5b600061351583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061403c565b60008184841115613ec75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613e8c578181015183820152602001613e74565b50505050905090810190601f168015613eb95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060613eda856140a1565b613f2b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310613f6a5780518252601f199092019160209182019101613f4b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613fcc576040519150601f19603f3d011682016040523d82523d6000602084013e613fd1565b606091505b50915091508115613fe5579150613d959050565b805115613ff55780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315613e8c578181015183820152602001613e74565b6000818361408b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613e8c578181015183820152602001613e74565b50600083858161409757fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590613d9557505015159291505056fe436f766572526f757465723a20696e73756666696369656e7420636f76546f6b656e73436f766572526f757465723a20506f6f6c73206c656e677468206e6f7420657175616c436f766572526f757465723a20696e76616c6964206e6f636c61696d20776569676874436f766572526f757465723a20546f6f206d616e7920746f6b656e7320696e20706f6f6c4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373436f766572526f757465723a20696e73756666696369656e7420636f76546f6b656e436f766572526f757465723a206e65772074696d657374616d70206973206e6f7420616374697665436f766572526f757465723a20696e73756666696369656e74204e4f434c41494d20636f76546f6b656e73536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f766572526f757465723a20696e76616c696420636c61696d20776569676874436f766572526f757465723a2050616972656420746f6b656e73206c656e677468206e6f7420657175616c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f766572526f757465723a20636f76546f6b656e20697320302061646472657373436f766572526f757465723a206e6f74206c65676974696d6174652070726f746f636f6c2061646472657373436f766572526f757465723a20696e73756666696369656e7420706169726564546f6b656e436f766572526f757465723a206e6f74206c65676974696d61746520636f7665725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f766572526f757465723a20746865726520697320616e20616363657074656420636c61696da2646970667358221220f2f2829f172d108750745e20e625da71f8dfa3e1f66505afe9ebd7b43bb5e56c64736f6c63430007050033436f766572526f757465723a2070726f746f636f6c466163746f72792069732030000000000000000000000000edfc81bf63527337cd2193925f9c0cf2d537acca0000000000000000000000009424b1412450d0f8fc2255faf6046b98213b76bd
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80638e7faac6116100ad578063d752fab211610071578063d752fab2146104ff578063e17c001714610535578063ed2a2f9d14610577578063f2fde38b1461057f578063f489048a146105a55761012c565b80638e7faac6146103b4578063983ae9f014610413578063a7a9744214610447578063c84df1e714610481578063ce4a7e07146104d15761012c565b80631efaaed3116100f45780631efaaed314610341578063335f5e23146103495780634be071b71461036c578063826e468d146103a45780638da5cb5b146103ac5761012c565b806304803501146101315780630a165940146102d85780630a81ac03146102fc5780630f4e9ef4146103165780631a610adf1461031e575b600080fd5b6102d66004803603606081101561014757600080fd5b810190602081018135600160201b81111561016157600080fd5b82018360208201111561017357600080fd5b803590602001918460208302840111600160201b8311171561019457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b8111156101e357600080fd5b8201836020820111156101f557600080fd5b803590602001918460208302840111600160201b8311171561021657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561026557600080fd5b82018360208201111561027757600080fd5b803590602001918460208302840111600160201b8311171561029857600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506105ad945050505050565b005b6102e06106d8565b604080516001600160a01b039092168252519081900360200190f35b6103046106e7565b60408051918252519081900360200190f35b6103046106ed565b6102d66004803603604081101561033457600080fd5b50803590602001356106f3565b6103046107f9565b6102d66004803603604081101561035f57600080fd5b50803590602001356107ff565b6102d66004803603606081101561038257600080fd5b506001600160a01b038135811691602081013582169160409091013516610932565b610304610a03565b6102e0610a09565b6102d660048036036101008110156103cb57600080fd5b506001600160a01b038135811691602081013582169165ffffffffffff604083013516916060810135916080820135169060a08101359060c08101359060e001351515610a18565b6102d66004803603604081101561042957600080fd5b5080356001600160a01b0316906020013565ffffffffffff16610bcd565b6102e06004803603608081101561045d57600080fd5b506001600160a01b0381358116916020810135916040820135169060600135610bdd565b6102d6600480360360c081101561049757600080fd5b506001600160a01b03813581169165ffffffffffff602082013516916040820135169060608101359060808101359060a001351515610ea2565b6102e0600480360360408110156104e757600080fd5b506001600160a01b038135811691602001351661102c565b6102d66004803603606081101561051557600080fd5b506001600160a01b0381358116916020810135909116906040013561105b565b6102d6600480360360a081101561054b57600080fd5b506001600160a01b03813581169160208101359160408201351690606081013590608001351515611452565b610304611680565b6102d66004803603602081101561059557600080fd5b50356001600160a01b031661168d565b6102e061177a565b6000546001600160a01b031633146105fa576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b815183511461063a5760405162461bcd60e51b815260040180806020018281038252602b815260200180614245602b913960400191505060405180910390fd5b805183511461067a5760405162461bcd60e51b81526004018080602001828103825260238152602001806140fe6023913960400191505060405180910390fd5b60005b83518110156106d2576106ca84828151811061069557fe5b60200260200101518483815181106106a957fe5b60200260200101518484815181106106bd57fe5b6020026020010151610932565b60010161067d565b50505050565b6002546001600160a01b031681565b60045481565b60065481565b6000546001600160a01b03163314610740576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b6000821180156107505750600081115b6107a1576040805162461bcd60e51b815260206004820152601960248201527f436f766572526f757465723a20696e76616c6964206665657300000000000000604482015290519081900360640190fd5b60055460065460408051928352602083019190915281810184905260608201839052517f6c3641919c7e7fadf9da06cdd2d4270f1c0cf83d4fc2c28c928f896374ae51b59181900360800190a1600591909155600655565b60035481565b6000546001600160a01b0316331461084c576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b6802b5e3af16b188000082106108935760405162461bcd60e51b81526004018080602001828103825260218152602001806142246021913960400191505060405180910390fd5b6802b5e3af16b188000081106108da5760405162461bcd60e51b81526004018080602001828103825260238152602001806141216023913960400191505060405180910390fd5b60035460045460408051928352602083019190915281810184905260608201839052517fe147fe826286facb8be2363c3d6884d51a65abe111322ba19a37760e4d303bf49181900360800190a1600391909155600455565b6000546001600160a01b0316331461097f576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b61098883611789565b61099383838361197f565b600061099f8484611c2f565b60008181526007602052604080822080546001600160a01b0319166001600160a01b038781169182179092559151939450909286821692918816917f5fca47ff414ef8293a21309c713b121cde28499bcb7c8136c528933686d4889391a450505050565b60055481565b6000546001600160a01b031690565b610a2188611cb2565b600085118015610a315750600083115b8015610a3d5750600082115b610a8e576040805162461bcd60e51b815260206004820152601860248201527f436f766572526f757465723a20616d6f756e7420697320300000000000000000604482015290519081900360640190fd5b610aa36001600160a01b038816333088611df2565b610b278888888a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610af657600080fd5b505afa158015610b0a573d6000803e3d6000fd5b505050506040513d6020811015610b2057600080fd5b5051611e4c565b6000886001600160a01b031663ecd2bf9f89896040518363ffffffff1660e01b815260040180836001600160a01b031681526020018265ffffffffffff1681526020019250505060206040518083038186803b158015610b8657600080fd5b505afa158015610b9a573d6000803e3d6000fd5b505050506040513d6020811015610bb057600080fd5b50519050610bc2338287878787611ef0565b505050505050505050565b610bd98282600161200e565b5050565b6000846001600160a01b0316836001600160a01b03161415610c40576040805162461bcd60e51b815260206004820152601760248201527621b7bb32b92937baba32b91d1039b0b6b2903a37b5b2b760491b604482015290519081900360640190fd5b6000610c4c8685611c2f565b6000818152600760205260409020549091506001600160a01b031615610cb9576040805162461bcd60e51b815260206004820181905260248201527f436f766572526f757465723a20706f6f6c20616c726561647920657869737473604482015290519081900360640190fd5b610cc286611789565b6000866001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cfd57600080fd5b505afa158015610d11573d6000803e3d6000fd5b505050506040513d6020811015610d2757600080fd5b5051604080516320fc581560e21b815290519192506000916001600160a01b03808b1692908516916383f1605491600480820192602092909190829003018186803b158015610d7557600080fd5b505afa158015610d89573d6000803e3d6000fd5b505050506040513d6020811015610d9f57600080fd5b50516001600160a01b03908116919091149150610dc090891633308a611df2565b610dd56001600160a01b038716333088611df2565b610e5a338988896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e2857600080fd5b505afa158015610e3c573d6000803e3d6000fd5b505050506040513d6020811015610e5257600080fd5b505185612563565b600084815260076020526040902080546001600160a01b0319166001600160a01b0383161790559350610e8d3387612926565b610e973389612926565b505050949350505050565b610eae8686600061200e565b6000866001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee957600080fd5b505afa158015610efd573d6000803e3d6000fd5b505050506040513d6020811015610f1357600080fd5b50516040805163d8dfeb4560e01b815290519192506000916001600160a01b038085169263ecd2bf9f92918c169163d8dfeb4591600480820192602092909190829003018186803b158015610f6757600080fd5b505afa158015610f7b573d6000803e3d6000fd5b505050506040513d6020811015610f9157600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015265ffffffffffff8b166024830152516044808301926020929190829003018186803b158015610fe657600080fd5b505afa158015610ffa573d6000803e3d6000fd5b505050506040513d602081101561101057600080fd5b50519050611022338288888888611ef0565b5050505050505050565b6000806110398484611c2f565b6000908152600760205260409020546001600160a01b03169150505b92915050565b6000811161109a5760405162461bcd60e51b815260040180806020018281038252602281526020018061418e6022913960400191505060405180910390fd5b60006110a68484611c2f565b6000818152600760209081526040918290205482516370a0823160e01b815233600482015292519394506001600160a01b031692859284926370a0823192602480840193829003018186803b1580156110fe57600080fd5b505afa158015611112573d6000803e3d6000fd5b505050506040513d602081101561112857600080fd5b5051101561117d576040805162461bcd60e51b815260206004820152601d60248201527f436f766572526f757465723a20696e73756666696369656e7420425054000000604482015290519081900360640190fd5b60408051600280825260608083018452926020830190803683370190505090506000816000815181106111ac57fe5b6020026020010181815250506000816001815181106111c757fe5b60209081029190910101526111e76001600160a01b038316333087611df2565b604080516370a0823160e01b815230600482015290516001600160a01b0384169163b02f0b739183916370a08231916024808301926020929190829003018186803b15801561123557600080fd5b505afa158015611249573d6000803e3d6000fd5b505050506040513d602081101561125f57600080fd5b5051604080516001600160e01b031960e085901b168152600481018381526024820192835286516044830152865187939192606401906020858101910280838360005b838110156112ba5781810151838201526020016112a2565b505050509050019350505050600060405180830381600087803b1580156112e057600080fd5b505af11580156112f4573d6000803e3d6000fd5b5050505061138633876001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561134957600080fd5b505afa15801561135d573d6000803e3d6000fd5b505050506040513d602081101561137357600080fd5b50516001600160a01b03891691906129b9565b61141433866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156113d757600080fd5b505afa1580156113eb573d6000803e3d6000fd5b505050506040513d602081101561140157600080fd5b50516001600160a01b03881691906129b9565b6040516001600160a01b0383169033907fafb871ca9e6b62bccb0296a89bb4c91df027b7c71658274b06a098739d5b7bd490600090a3505050505050565b83856001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156114a057600080fd5b505afa1580156114b4573d6000803e3d6000fd5b505050506040513d60208110156114ca57600080fd5b505110156115095760405162461bcd60e51b815260040180806020018281038252602281526020018061418e6022913960400191505060405180910390fd5b81836001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561155757600080fd5b505afa15801561156b573d6000803e3d6000fd5b505050506040513d602081101561158157600080fd5b505110156115c05760405162461bcd60e51b81526004018080602001828103825260258152602001806142de6025913960400191505060405180910390fd5b6115d56001600160a01b038616333087611df2565b6115ea6001600160a01b038416333085611df2565b61166f338685866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561163d57600080fd5b505afa158015611651573d6000803e3d6000fd5b505050506040513d602081101561166757600080fd5b505185612a0b565b6116793384612926565b5050505050565b6802b5e3af16b188000081565b6000546001600160a01b031633146116da576040805162461bcd60e51b81526020600482018190526024820152600080516020614270833981519152604482015290519081900360640190fd5b6001600160a01b03811661171f5760405162461bcd60e51b81526004018080602001828103825260268152602001806141686026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b6001600160a01b0381166117ce5760405162461bcd60e51b81526004018080602001828103825260228152602001806142906022913960400191505060405180910390fd5b6000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561180957600080fd5b505afa15801561181d573d6000803e3d6000fd5b505050506040513d602081101561183357600080fd5b505160408051638da5cb5b60e01b815290519192506000916001600160a01b03841691638da5cb5b916004808301926020929190829003018186803b15801561187b57600080fd5b505afa15801561188f573d6000803e3d6000fd5b505050506040513d60208110156118a557600080fd5b505160408051638da5cb5b60e01b815290516001600160a01b0390921691638da5cb5b91600480820192602092909190829003018186803b1580156118e957600080fd5b505afa1580156118fd573d6000803e3d6000fd5b505050506040513d602081101561191357600080fd5b50516001549091506001600160a01b0380831691161461197a576040805162461bcd60e51b815260206004820152601a60248201527f436f766572526f757465723a2077726f6e6720666163746f7279000000000000604482015290519081900360640190fd5b505050565b826001600160a01b0316826001600160a01b031614156119e0576040805162461bcd60e51b815260206004820152601760248201527621b7bb32b92937baba32b91d1039b0b6b2903a37b5b2b760491b604482015290519081900360640190fd5b6060816001600160a01b031663be3bbd2e6040518163ffffffff1660e01b815260040160006040518083038186803b158015611a1b57600080fd5b505afa158015611a2f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611a5857600080fd5b8101908080516040519392919084600160201b821115611a7757600080fd5b908301906020820185811115611a8c57600080fd5b82518660208202830111600160201b82111715611aa857600080fd5b82525081516020918201928201910280838360005b83811015611ad5578181015183820152602001611abd565b5050505090500160405250505090508051600214611b245760405162461bcd60e51b81526004018080602001828103825260248152602001806141446024913960400191505060405180910390fd5b80600081518110611b3157fe5b60200260200101516001600160a01b0316846001600160a01b0316148015611b7e575080600181518110611b6157fe5b60200260200101516001600160a01b0316836001600160a01b0316145b80611bde575080600081518110611b9157fe5b60200260200101516001600160a01b0316836001600160a01b0316148015611bde575080600181518110611bc157fe5b60200260200101516001600160a01b0316846001600160a01b0316145b6106d2576040805162461bcd60e51b815260206004820152601f60248201527f436f766572526f757465723a20746f6b656e7320646f6e2774206d6174636800604482015290519081900360640190fd5b6000806000836001600160a01b0316856001600160a01b031610611c54578385611c57565b84845b600154604080516bffffffffffffffffffffffff19606093841b811660208084019190915295841b811660348301529390921b90921660488201528151603c818303018152605c909101909152805191012095945050505050565b6000600160009054906101000a90046001600160a01b03166001600160a01b0316636b3bcc60836001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160206040518083038186803b158015611d1157600080fd5b505afa158015611d25573d6000803e3d6000fd5b505050506040513d6020811015611d3b57600080fd5b5051604080516001600160e01b031960e085901b1681526004810192909252516024808301926020929190829003018186803b158015611d7a57600080fd5b505afa158015611d8e573d6000803e3d6000fd5b505050506040513d6020811015611da457600080fd5b505190506001600160a01b0382811690821614610bd95760405162461bcd60e51b815260040180806020018281038252602c8152602001806142b2602c913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526106d2908590612c79565b611e57838583612d2a565b836001600160a01b03166372c896c38484846040518463ffffffff1660e01b815260040180846001600160a01b031681526020018365ffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015611ebe57600080fd5b505af1158015611ed2573d6000803e3d6000fd5b505050506040513d6020811015611ee857600080fd5b505050505050565b6000856001600160a01b03166383f160546040518163ffffffff1660e01b815260040160206040518083038186803b158015611f2b57600080fd5b505afa158015611f3f573d6000803e3d6000fd5b505050506040513d6020811015611f5557600080fd5b5051604080516391b0cd8160e01b815290519192506000916001600160a01b038916916391b0cd81916004808301926020929190829003018186803b158015611f9d57600080fd5b505afa158015611fb1573d6000803e3d6000fd5b505050506040513d6020811015611fc757600080fd5b50519050600080611fda8a898989612e2d565b91509150611feb8a858a8589612a0b565b611ff88a848a8489612a0b565b6120028a89612926565b50505050505050505050565b8261201881612f00565b6000816001600160a01b0316639f43ddd26040518163ffffffff1660e01b815260040160206040518083038186803b15801561205357600080fd5b505afa158015612067573d6000803e3d6000fd5b505050506040513d602081101561207d57600080fd5b5051905065ffffffffffff8085169082161080156120a257508365ffffffffffff1642105b6120f3576040805162461bcd60e51b815260206004820152601b60248201527f436f766572526f757465723a20696e76616c6964206578706972790000000000604482015290519081900360640190fd5b6000826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561212e57600080fd5b505afa158015612142573d6000803e3d6000fd5b505050506040513d602081101561215857600080fd5b50516040805163529096cd60e11b815290519192506000916001600160a01b0384169163a5212d9a916004808301926020929190829003018186803b1580156121a057600080fd5b505afa1580156121b4573d6000803e3d6000fd5b505050506040513d60208110156121ca57600080fd5b50516040805163529096cd60e11b815290516001600160a01b0387169163a5212d9a916004808301926020929190829003018186803b15801561220c57600080fd5b505afa158015612220573d6000803e3d6000fd5b505050506040513d602081101561223657600080fd5b505114801591506122785760405162461bcd60e51b815260040180806020018281038252602781526020018061434e6027913960400191505060405180910390fd5b6040805163aae7f44d60e01b815265ffffffffffff8816600482015281516000926001600160a01b0386169263aae7f44d9260248083019392829003018186803b1580156122c557600080fd5b505afa1580156122d9573d6000803e3d6000fd5b505050506040513d60408110156122ef57600080fd5b50602001519050600160ff8216146123385760405162461bcd60e51b81526004018080602001828103825260288152602001806141b06028913960400191505060405180910390fd5b8365ffffffffffff16421015612357576123528533613205565b612425565b6123ce836001600160a01b03166381c4fb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561239357600080fd5b505afa1580156123a7573d6000803e3d6000fd5b505050506040513d60208110156123bd57600080fd5b505165ffffffffffff8616906134bb565b42101561241b576040805162461bcd60e51b8152602060048201526016602482015275436f766572526f757465723a206e6f7420726561647960501b604482015290519081900360640190fd5b612425853361351c565b6000856001600160a01b031663d8dfeb456040518163ffffffff1660e01b815260040160206040518083038186803b15801561246057600080fd5b505afa158015612474573d6000803e3d6000fd5b505050506040513d602081101561248a57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156124d857600080fd5b505afa1580156124ec573d6000803e3d6000fd5b505050506040513d602081101561250257600080fd5b5051905061251285838b84611e4c565b604080516001600160a01b0387168152905133917f529945f1e4a9da7bf247c71ad6eb5d33dcefda12a2d82ca26995af3c6b67038c919081900360200190a287156120025761200285838b336136a1565b600080600260009054906101000a90046001600160a01b03166001600160a01b031663d556c5dc6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156125b657600080fd5b505af11580156125ca573d6000803e3d6000fd5b505050506040513d60208110156125e057600080fd5b505160055460035491935083925090846125fd5750506006546004545b826001600160a01b03166334e19907836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561264357600080fd5b505af1158015612657573d6000803e3d6000fd5b505050506000886001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156126aa57600080fd5b505afa1580156126be573d6000803e3d6000fd5b505050506040513d60208110156126d457600080fd5b505190506126e3898683612d2a565b836001600160a01b031663e4e1e5388a83856040518463ffffffff1660e01b815260040180846001600160a01b031681526020018381526020018281526020019350505050600060405180830381600087803b15801561274257600080fd5b505af1158015612756573d6000803e3d6000fd5b50505050612765888689612d2a565b6001600160a01b03841663e4e1e53889896127896802b5e3af16b188000087613934565b6040518463ffffffff1660e01b815260040180846001600160a01b031681526020018381526020018281526020019350505050600060405180830381600087803b1580156127d657600080fd5b505af11580156127ea573d6000803e3d6000fd5b50505050836001600160a01b0316634bb278f36040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561282957600080fd5b505af115801561283d573d6000803e3d6000fd5b50505050846001600160a01b0316886001600160a01b03168a6001600160a01b03167f5fca47ff414ef8293a21309c713b121cde28499bcb7c8136c528933686d4889360405160405180910390a46129198a856001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156128dc57600080fd5b505afa1580156128f0573d6000803e3d6000fd5b505050506040513d602081101561290657600080fd5b50516001600160a01b03871691906129b9565b5050505095945050505050565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561297557600080fd5b505afa158015612989573d6000803e3d6000fd5b505050506040513d602081101561299f57600080fd5b50519050801561197a5761197a6001600160a01b03831684835b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261197a908490612c79565b600060076000612a1b8787611c2f565b81526020810191909152604001600020546001600160a01b0316905080612a89576040805162461bcd60e51b815260206004820152601b60248201527f436f766572526f757465723a20706f6f6c206e6f7420666f756e640000000000604482015290519081900360640190fd5b604080516370a0823160e01b8152306004820152905182916000916001600160a01b038916916370a08231916024808301926020929190829003018186803b158015612ad457600080fd5b505afa158015612ae8573d6000803e3d6000fd5b505050506040513d6020811015612afe57600080fd5b5051905060006060612b14848a858b8b8b613976565b91509150612b23898685612d2a565b612b2e888689612d2a565b604080516313da703560e21b815260048101848152602482019283528351604483015283516001600160a01b03881693634f69c0d49387938793909291606401906020808601910280838360005b83811015612b94578181015183820152602001612b7c565b505050509050019350505050600060405180830381600087803b158015612bba57600080fd5b505af1158015612bce573d6000803e3d6000fd5b50505050612c238a856001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156128dc57600080fd5b612c2d8a8a612926565b846001600160a01b03168a6001600160a01b03167f195e7e4b5fb5e54d74151a03265cb8bfad9ba51c66836062351f7a8f5251e3d560405160405180910390a350505050505050505050565b6060612cce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613d869092919063ffffffff16565b80519091501561197a57808060200190516020811015612ced57600080fd5b505161197a5760405162461bcd60e51b815260040180806020018281038252602a815260200180614324602a913960400191505060405180910390fd5b60408051636eb1769f60e11b81523060048201526001600160a01b0384811660248301529151839286169163dd62ed3e916044808301926020929190829003018186803b158015612d7a57600080fd5b505afa158015612d8e573d6000803e3d6000fd5b505050506040513d6020811015612da457600080fd5b5051101561197a57826001600160a01b031663095ea7b383836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612e0357600080fd5b505af1158015612e17573d6000803e3d6000fd5b505050506040513d602081101561167957600080fd5b60008080612e3b85856134bb565b9050612e526001600160a01b038716883084611df2565b6000866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612ea157600080fd5b505afa158015612eb5573d6000803e3d6000fd5b505050506040513d6020811015612ecb57600080fd5b50519050612ee382612edd8389613d9d565b90613df6565b9350612ef382612edd8388613d9d565b9250505094509492505050565b6000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612f3b57600080fd5b505afa158015612f4f573d6000803e3d6000fd5b505050506040513d6020811015612f6557600080fd5b5051600154604080516306fdde0360e01b815290519293506000926001600160a01b0392831692636b94e3be92908616916306fdde0391600480820192602092909190829003018186803b158015612fbc57600080fd5b505afa158015612fd0573d6000803e3d6000fd5b505050506040513d6020811015612fe657600080fd5b505160408051634fa1eee960e11b815290516001600160a01b03881691639f43ddd2916004808301926020929190829003018186803b15801561302857600080fd5b505afa15801561303c573d6000803e3d6000fd5b505050506040513d602081101561305257600080fd5b50516040805163d8dfeb4560e01b815290516001600160a01b0389169163d8dfeb45916004808301926020929190829003018186803b15801561309457600080fd5b505afa1580156130a8573d6000803e3d6000fd5b505050506040513d60208110156130be57600080fd5b50516040805163529096cd60e11b815290516001600160a01b038a169163a5212d9a916004808301926020929190829003018186803b15801561310057600080fd5b505afa158015613114573d6000803e3d6000fd5b505050506040513d602081101561312a57600080fd5b5051604080516001600160e01b031960e088901b168152600481019590955265ffffffffffff90931660248501526001600160a01b0390911660448401526064830152516084808301926020929190829003018186803b15801561318d57600080fd5b505afa1580156131a1573d6000803e3d6000fd5b505050506040513d60208110156131b757600080fd5b505190506001600160a01b038381169082161461197a5760405162461bcd60e51b81526004018080602001828103825260218152602001806143036021913960400191505060405180910390fd5b6000826001600160a01b03166383f160546040518163ffffffff1660e01b815260040160206040518083038186803b15801561324057600080fd5b505afa158015613254573d6000803e3d6000fd5b505050506040513d602081101561326a57600080fd5b5051604080516391b0cd8160e01b815290519192506000916001600160a01b038616916391b0cd81916004808301926020929190829003018186803b1580156132b257600080fd5b505afa1580156132c6573d6000803e3d6000fd5b505050506040513d60208110156132dc57600080fd5b5051604080516370a0823160e01b81526001600160a01b0386811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b15801561332e57600080fd5b505afa158015613342573d6000803e3d6000fd5b505050506040513d602081101561335857600080fd5b5051604080516370a0823160e01b81526001600160a01b0387811660048301529151929350600092918516916370a0823191602480820192602092909190829003018186803b1580156133aa57600080fd5b505afa1580156133be573d6000803e3d6000fd5b505050506040513d60208110156133d457600080fd5b5051905060008183116133e757826133e9565b815b90506000811161342a5760405162461bcd60e51b81526004018080602001828103825260238152602001806140db6023913960400191505060405180910390fd5b61343f6001600160a01b038616873084611df2565b6134546001600160a01b038516873084611df2565b866001600160a01b031663bd37b775826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561349a57600080fd5b505af11580156134ae573d6000803e3d6000fd5b5050505050505050505050565b600082820183811015613515576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826001600160a01b03166391b0cd816040518163ffffffff1660e01b815260040160206040518083038186803b15801561355757600080fd5b505afa15801561356b573d6000803e3d6000fd5b505050506040513d602081101561358157600080fd5b5051604080516370a0823160e01b81526001600160a01b0385811660048301529151929350600092918416916370a0823191602480820192602092909190829003018186803b1580156135d357600080fd5b505afa1580156135e7573d6000803e3d6000fd5b505050506040513d60208110156135fd57600080fd5b505190508061363d5760405162461bcd60e51b815260040180806020018281038252602b8152602001806141d8602b913960400191505060405180910390fd5b6136526001600160a01b038316843084611df2565b836001600160a01b0316631c75d8806040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561368d57600080fd5b505af1158015611022573d6000803e3d6000fd5b6000846001600160a01b031663ecd2bf9f85856040518363ffffffff1660e01b815260040180836001600160a01b031681526020018265ffffffffffff1681526020019250505060206040518083038186803b15801561370057600080fd5b505afa158015613714573d6000803e3d6000fd5b505050506040513d602081101561372a57600080fd5b5051604080516320fc581560e21b815290519192506000916001600160a01b038416916383f16054916004808301926020929190829003018186803b15801561377257600080fd5b505afa158015613786573d6000803e3d6000fd5b505050506040513d602081101561379c57600080fd5b5051604080516391b0cd8160e01b815290519192506000916001600160a01b038516916391b0cd81916004808301926020929190829003018186803b1580156137e457600080fd5b505afa1580156137f8573d6000803e3d6000fd5b505050506040513d602081101561380e57600080fd5b5051604080516370a0823160e01b8152306004820152905191925061389d9186916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561386057600080fd5b505afa158015613874573d6000803e3d6000fd5b505050506040513d602081101561388a57600080fd5b50516001600160a01b03851691906129b9565b61392b84826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156138ee57600080fd5b505afa158015613902573d6000803e3d6000fd5b505050506040513d602081101561391857600080fd5b50516001600160a01b03841691906129b9565b50505050505050565b600061351583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613e38565b600060606000613a70896001600160a01b031663f8b2cb4f8a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156139cc57600080fd5b505afa1580156139e0573d6000803e3d6000fd5b505050506040513d60208110156139f657600080fd5b5051604080516318160ddd60e01b81529051612edd916001600160a01b038e16916318160ddd91600480820192602092909190829003018186803b158015613a3d57600080fd5b505afa158015613a51573d6000803e3d6000fd5b505050506040513d6020811015613a6757600080fd5b50518a90613d9d565b90506000613b688a6001600160a01b031663f8b2cb4f896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015613ac457600080fd5b505afa158015613ad8573d6000803e3d6000fd5b505050506040513d6020811015613aee57600080fd5b5051604080516318160ddd60e01b81529051612edd916001600160a01b038f16916318160ddd91600480820192602092909190829003018186803b158015613b3557600080fd5b505afa158015613b49573d6000803e3d6000fd5b505050506040513d6020811015613b5f57600080fd5b50518990613d9d565b9050808211613b775781613b79565b805b935084613b865783613b96565b613b966064612edd866063613d9d565b935060608a6001600160a01b031663be3bbd2e6040518163ffffffff1660e01b815260040160006040518083038186803b158015613bd357600080fd5b505afa158015613be7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613c1057600080fd5b8101908080516040519392919084600160201b821115613c2f57600080fd5b908301906020820185811115613c4457600080fd5b82518660208202830111600160201b82111715613c6057600080fd5b82525081516020918201928201910280838360005b83811015613c8d578181015183820152602001613c75565b505050509050016040525050509050600267ffffffffffffffff81118015613cb457600080fd5b50604051908082528060200260200182016040528015613cde578160200160208202803683370190505b5093508884600081518110613cef57fe5b6020026020010181815250508684600181518110613d0957fe5b602002602001018181525050896001600160a01b031681600181518110613d2c57fe5b60200260200101516001600160a01b03161415613d78578684600081518110613d5157fe5b6020026020010181815250508884600181518110613d6b57fe5b6020026020010181815250505b505050965096945050505050565b6060613d958484600085613ecf565b949350505050565b600082613dac57506000611055565b82820282848281613db957fe5b04146135155760405162461bcd60e51b81526004018080602001828103825260218152602001806142036021913960400191505060405180910390fd5b600061351583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061403c565b60008184841115613ec75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613e8c578181015183820152602001613e74565b50505050905090810190601f168015613eb95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060613eda856140a1565b613f2b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310613f6a5780518252601f199092019160209182019101613f4b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613fcc576040519150601f19603f3d011682016040523d82523d6000602084013e613fd1565b606091505b50915091508115613fe5579150613d959050565b805115613ff55780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315613e8c578181015183820152602001613e74565b6000818361408b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613e8c578181015183820152602001613e74565b50600083858161409757fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590613d9557505015159291505056fe436f766572526f757465723a20696e73756666696369656e7420636f76546f6b656e73436f766572526f757465723a20506f6f6c73206c656e677468206e6f7420657175616c436f766572526f757465723a20696e76616c6964206e6f636c61696d20776569676874436f766572526f757465723a20546f6f206d616e7920746f6b656e7320696e20706f6f6c4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373436f766572526f757465723a20696e73756666696369656e7420636f76546f6b656e436f766572526f757465723a206e65772074696d657374616d70206973206e6f7420616374697665436f766572526f757465723a20696e73756666696369656e74204e4f434c41494d20636f76546f6b656e73536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f766572526f757465723a20696e76616c696420636c61696d20776569676874436f766572526f757465723a2050616972656420746f6b656e73206c656e677468206e6f7420657175616c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f766572526f757465723a20636f76546f6b656e20697320302061646472657373436f766572526f757465723a206e6f74206c65676974696d6174652070726f746f636f6c2061646472657373436f766572526f757465723a20696e73756666696369656e7420706169726564546f6b656e436f766572526f757465723a206e6f74206c65676974696d61746520636f7665725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564436f766572526f757465723a20746865726520697320616e20616363657074656420636c61696da2646970667358221220f2f2829f172d108750745e20e625da71f8dfa3e1f66505afe9ebd7b43bb5e56c64736f6c63430007050033