Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
StakingV2Controller
Compiler Version
v0.7.3+commit.9bfce1f6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* Copyright (C) 2020 InsurAce.io This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.7.3; import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol"; import {Constant} from "../common/Constant.sol"; import {ISecurityMatrix} from "../secmatrix/ISecurityMatrix.sol"; import {IStakersPoolV2} from "../pool/IStakersPoolV2.sol"; import {ILPToken} from "../token/ILPToken.sol"; import {IStakingV2Controller} from "./IStakingV2Controller.sol"; import {Math} from "../common/Math.sol"; import {ICapitalPool} from "../pool/ICapitalPool.sol"; contract StakingV2Controller is IStakingV2Controller, OwnableUpgradeable, PausableUpgradeable, ReentrancyGuardUpgradeable { using SafeERC20Upgradeable for IERC20Upgradeable; using SafeMathUpgradeable for uint256; using AddressUpgradeable for address; function initializeStakingV2Controller() public initializer { __Ownable_init(); __Pausable_init(); __ReentrancyGuard_init(); } address public stakersPoolV2; address public feePool; // _token => _lpToken mapping(address => address) public tokenToLPTokenMap; uint256 public mapCounter; // _token => staking info mapping(address => uint256) public minStakeAmtPT; mapping(address => uint256) public minUnstakeAmtPT; mapping(address => uint256) public maxUnstakeAmtPT; mapping(address => uint256) public unstakeLockBlkPT; uint256 public constant G_WITHDRAW_FEE_BASE = 10000; mapping(address => uint256) public withdrawFeePT; address public securityMatrix; address public capitalPool; mapping(address => uint256) public totalStakedCapPT; mapping(address => uint256) public perAccountCapPT; function setup( address _securityMatrix, address _stakersPoolV2, address _feePool, address _capitalPool ) external onlyOwner { require(_securityMatrix != address(0), "S:1"); require(_stakersPoolV2 != address(0), "S:2"); require(_feePool != address(0), "S:3"); require(_capitalPool != address(0), "S:4"); securityMatrix = _securityMatrix; stakersPoolV2 = _stakersPoolV2; feePool = _feePool; capitalPool = _capitalPool; } modifier allowedCaller() { require((ISecurityMatrix(securityMatrix).isAllowdCaller(address(this), _msgSender())) || (_msgSender() == owner()), "allowedCaller"); _; } modifier onlyAllowedToken(address _token) { address lpToken = tokenToLPTokenMap[_token]; require(lpToken != address(0), "onlyAllowedToken"); _; } function setTokenToLPTokenMap(address _token, address _lpToken) external onlyOwner { require(_token != address(0), "STTLPTM:1"); tokenToLPTokenMap[_token] = _lpToken; } function setMapCounter(uint256 _mapCounter) external onlyOwner { mapCounter = _mapCounter; } function setStakeInfo( address _token, uint256 _minStakeAmt, uint256 _minUnstakeAmt, uint256 _maxUnstakeAmt, uint256 _unstakeLockBlk, uint256 _withdrawFee ) external onlyOwner onlyAllowedToken(_token) { require(_token != address(0), "SSI:1"); minStakeAmtPT[_token] = _minStakeAmt; require(_minUnstakeAmt < _maxUnstakeAmt, "SSI:2"); minUnstakeAmtPT[_token] = _minUnstakeAmt; maxUnstakeAmtPT[_token] = _maxUnstakeAmt; unstakeLockBlkPT[_token] = _unstakeLockBlk; withdrawFeePT[_token] = _withdrawFee; } function setStakeCap( address _token, uint256 _totalStakedCapPT, uint256 _perAccountCapPT ) external onlyOwner onlyAllowedToken(_token) { totalStakedCapPT[_token] = _totalStakedCapPT; perAccountCapPT[_token] = _perAccountCapPT; } // pause function pauseAll() external onlyOwner whenNotPaused { _pause(); } function unPauseAll() external onlyOwner whenPaused { _unpause(); } event StakeTokensEvent(address indexed _from, address indexed _lpToken, uint256 _deltaAmt, uint256 _balance); function stakeTokens(uint256 _amount, address _token) external payable override whenNotPaused nonReentrant onlyAllowedToken(_token) { require(minStakeAmtPT[_token] <= _amount, "ST:1"); address lpToken = tokenToLPTokenMap[_token]; IStakersPoolV2(stakersPoolV2).reCalcPoolPT(lpToken); IStakersPoolV2(stakersPoolV2).settlePendingRewards(_msgSender(), lpToken); if (_token == Constant.BCNATIVETOKENADDRESS) { require(_amount <= msg.value, "ST:2"); } else { require(IERC20Upgradeable(_token).balanceOf(_msgSender()) >= _amount, "ST:3"); uint256 allowanceAmt = IERC20Upgradeable(_token).allowance(_msgSender(), address(this)); require(allowanceAmt >= _amount, "ST:4"); IERC20Upgradeable(_token).safeTransferFrom(_msgSender(), address(this), _amount); } // eth/lpeth = constant = _amount/lpTokenAmount uint256 lpTokenAmount = _amount; uint256 stakedTokenAmt = IStakersPoolV2(stakersPoolV2).getStakedAmountPT(_token); if (stakedTokenAmt > 0) { lpTokenAmount = _amount.mul(IERC20Upgradeable(lpToken).totalSupply()).div(stakedTokenAmt); require(lpTokenAmount != 0, "ST:5"); } if (_token == Constant.BCNATIVETOKENADDRESS) { IStakersPoolV2(stakersPoolV2).addStkAmount{value: _amount}(_token, _amount); } else { IERC20Upgradeable(_token).safeTransfer(stakersPoolV2, _amount); IStakersPoolV2(stakersPoolV2).addStkAmount(_token, _amount); } uint256 poolRewardPerLPToken = IStakersPoolV2(stakersPoolV2).getPoolRewardPerLPToken(lpToken); ILPToken(lpToken).mint(_msgSender(), lpTokenAmount, poolRewardPerLPToken); uint256 lpTokenAmtAfterStaked = IERC20Upgradeable(lpToken).balanceOf(_msgSender()); require(stakedTokenAmt.add(_amount) <= totalStakedCapPT[_token], "ST:6"); uint256 tokenAmtAfterStaked = lpTokenAmtAfterStaked.mul(stakedTokenAmt.add(_amount)).div(IERC20Upgradeable(lpToken).totalSupply()); require(tokenAmtAfterStaked <= perAccountCapPT[_token], "ST:7"); emit StakeTokensEvent(_msgSender(), lpToken, lpTokenAmount, IERC20Upgradeable(lpToken).balanceOf(_msgSender())); } // propose unstake event ProposeUnstakeEvent(address indexed _from, address indexed _token, uint256 _deltaAmt); function proposeUnstake(uint256 _amount, address _token) external override nonReentrant whenNotPaused onlyAllowedToken(_token) { require(minUnstakeAmtPT[_token] <= _amount && maxUnstakeAmtPT[_token] >= _amount, "PU:1"); address lpToken = tokenToLPTokenMap[_token]; // eth/lpeth = constant = _amount/lpTokenAmount uint256 proposeUnstakeLP = _amount; require(IStakersPoolV2(stakersPoolV2).getStakedAmountPT(_token) != 0, "PU:2"); proposeUnstakeLP = _amount.mul(IERC20Upgradeable(lpToken).totalSupply()).div(IStakersPoolV2(stakersPoolV2).getStakedAmountPT(_token)); require(proposeUnstakeLP != 0, "PU:3"); ILPToken(lpToken).proposeToBurn(_msgSender(), proposeUnstakeLP, unstakeLockBlkPT[_token]); emit ProposeUnstakeEvent(_msgSender(), lpToken, proposeUnstakeLP); } // Withdraw related event WithdrawTokensEvent(address indexed _from, address indexed _token, uint256 _deltaAmt, uint256 _balance); function withdrawTokens(uint256 _amount, address _token) external override nonReentrant whenNotPaused onlyAllowedToken(_token) { require(_amount > 0, "WT:1"); address lpToken = tokenToLPTokenMap[_token]; IStakersPoolV2(stakersPoolV2).reCalcPoolPT(lpToken); IStakersPoolV2(stakersPoolV2).settlePendingRewards(_msgSender(), lpToken); // eth/lpeth = constant = _amount/lpTokenAmount uint256 unstakeLP = _amount; require(IStakersPoolV2(stakersPoolV2).getStakedAmountPT(_token) != 0, "WT:2"); unstakeLP = _amount.mul(IERC20Upgradeable(lpToken).totalSupply()).div(IStakersPoolV2(stakersPoolV2).getStakedAmountPT(_token)); require(unstakeLP != 0, "WT:3"); uint256 withdrawAmtAfterFee = _amount.mul(G_WITHDRAW_FEE_BASE.sub(withdrawFeePT[_token])).div(G_WITHDRAW_FEE_BASE); IStakersPoolV2(stakersPoolV2).withdrawTokens(_msgSender(), withdrawAmtAfterFee, _token, feePool, _amount.sub(withdrawAmtAfterFee)); uint256 poolRewardPerLPToken = IStakersPoolV2(stakersPoolV2).getPoolRewardPerLPToken(lpToken); ILPToken(lpToken).burn(_msgSender(), unstakeLP, poolRewardPerLPToken); // check the free capacity if the withdrawed token is in the capital pool if (ICapitalPool(capitalPool).hasTokenInStakersPool(_token)) { (uint256 btFreeCapacity, ) = ICapitalPool(capitalPool).getCapacityInfo(); require(btFreeCapacity != 0, "WT:4"); } emit WithdrawTokensEvent(_msgSender(), lpToken, unstakeLP, IERC20Upgradeable(lpToken).balanceOf(_msgSender())); } event UnlockRewardsFromPoolsEvent(address indexed _to, address indexed _token, uint256 _amount); function unlockRewardsFromPoolsByController( address _staker, address _to, address[] memory _tokenList ) external override allowedCaller whenNotPaused nonReentrant returns (uint256) { uint256 delta = _unlockRewardsFromPools(_staker, _to, _tokenList); return delta; } function _unlockRewardsFromPools( address staker, address _to, address[] memory _tokenList ) private returns (uint256) { require(_to != address(0), "_URFP:1"); require(_tokenList.length <= mapCounter, "_URFP:2"); uint256 totalHarvestedAmt = 0; for (uint256 i = 0; i < _tokenList.length; i++) { address token = _tokenList[i]; address lpToken = tokenToLPTokenMap[token]; require(lpToken != address(0), "_URFP:3"); if (IERC20Upgradeable(lpToken).balanceOf(staker) != 0) { IStakersPoolV2(stakersPoolV2).reCalcPoolPT(lpToken); IStakersPoolV2(stakersPoolV2).settlePendingRewards(staker, lpToken); } uint256 harvestedAmt = IStakersPoolV2(stakersPoolV2).harvestRewards(staker, lpToken, _to); totalHarvestedAmt = totalHarvestedAmt.add(harvestedAmt); if (IERC20Upgradeable(lpToken).balanceOf(staker) != 0) { uint256 poolRewardPerLPToken = IStakersPoolV2(stakersPoolV2).getPoolRewardPerLPToken(lpToken); ILPToken(lpToken).mint(staker, 0, poolRewardPerLPToken); } emit UnlockRewardsFromPoolsEvent(staker, token, harvestedAmt); } return totalHarvestedAmt; } function showRewardsFromPools(address[] memory _tokenList) external view override returns (uint256) { require(_tokenList.length <= mapCounter, "SRFP:1"); uint256 totalRewards = 0; for (uint256 i = 0; i < _tokenList.length; i++) { address token = _tokenList[i]; address lpToken = tokenToLPTokenMap[token]; require(lpToken != address(0), "SRFP:2"); uint256 pendingRewards = IStakersPoolV2(stakersPoolV2).showPendingRewards(_msgSender(), lpToken); uint256 harvestRewards = IStakersPoolV2(stakersPoolV2).showHarvestRewards(_msgSender(), lpToken); totalRewards = totalRewards.add(pendingRewards).add(harvestRewards); } return totalRewards; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20Upgradeable.sol"; import "../../math/SafeMathUpgradeable.sol"; import "../../utils/AddressUpgradeable.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 SafeERC20Upgradeable { using SafeMathUpgradeable for uint256; using AddressUpgradeable for address; function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable 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(IERC20Upgradeable 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: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMathUpgradeable { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { 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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/Initializable.sol"; /** * @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. * * By default, the owner account will be the one that deploys the contract. 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. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @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; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./ContextUpgradeable.sol"; import "../proxy/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal initializer { __Context_init_unchained(); __Pausable_init_unchained(); } function __Pausable_init_unchained() internal initializer { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal initializer { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal initializer { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } uint256[49] private __gap; }
/* Copyright (C) 2020 InsurAce.io This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.7.3; library Constant { // the standard 10**18 Amount Multiplier uint256 public constant MULTIPLIERX10E18 = 10**18; // the valid ETH and DAI addresses (Rinkeby, TBD: Mainnet) address public constant BCNATIVETOKENADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE); // product status enumerations uint256 public constant PRODUCTSTATUS_ENABLED = 1; uint256 public constant PRODUCTSTATUS_DISABLED = 2; // the cover status enumerations uint256 public constant COVERSTATUS_ACTIVE = 0; uint256 public constant COVERSTATUS_EXPIRED = 1; uint256 public constant COVERSTATUS_CLAIMINPROGRESS = 2; uint256 public constant COVERSTATUS_CLAIMDONE = 3; // the claim status enumerations uint256 public constant CLAIMSTATUS_SUBMITTED = 0; uint256 public constant CLAIMSTATUS_INVESTIGATING = 1; uint256 public constant CLAIMSTATUS_PREPAREFORVOTING = 2; uint256 public constant CLAIMSTATUS_VOTING = 3; uint256 public constant CLAIMSTATUS_VOTINGCOMPLETED = 4; uint256 public constant CLAIMSTATUS_ABDISCRETION = 5; uint256 public constant CLAIMSTATUS_COMPLAINING = 6; uint256 public constant CLAIMSTATUS_COMPLAININGCOMPLETED = 7; uint256 public constant CLAIMSTATUS_ACCEPTED = 8; uint256 public constant CLAIMSTATUS_REJECTED = 9; uint256 public constant CLAIMSTATUS_PAYOUTREADY = 10; uint256 public constant CLAIMSTATUS_PAID = 11; // the voting outcome status enumerations uint256 public constant OUTCOMESTATUS_NONE = 0; uint256 public constant OUTCOMESTATUS_ACCEPTED = 1; uint256 public constant OUTCOMESTATUS_REJECTED = 2; // 1inch address public constant ONEINCH_OPEN_SPLIT_ADDRESS = address(0xC586BeF4a0992C495Cf22e1aeEE4E446CECDee0E); // uniswap address public constant UNISWAPV2_ROUTER_ADDRESS = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); }
/* Copyright (C) 2020 InsurAce.io This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.7.3; interface ISecurityMatrix { function isAllowdCaller(address _callee, address _caller) external view returns (bool); }
/* Copyright (C) 2020 InsurAce.io This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.7.3; interface IStakersPoolV2 { function addStkAmount(address _token, uint256 _amount) external payable; function withdrawTokens( address payable _to, uint256 _amount, address _token, address _feePool, uint256 _fee ) external; function reCalcPoolPT(address _lpToken) external; function settlePendingRewards(address _account, address _lpToken) external; function harvestRewards( address _account, address _lpToken, address _to ) external returns (uint256); function getPoolRewardPerLPToken(address _lpToken) external view returns (uint256); function getStakedAmountPT(address _token) external view returns (uint256); function showPendingRewards(address _account, address _lpToken) external view returns (uint256); function showHarvestRewards(address _account, address _lpToken) external view returns (uint256); function claimPayout( address _fromToken, address _paymentToken, uint256 _settleAmtPT, address _claimToSettlementPool, uint256 _claimId, uint256 _fromRate, uint256 _toRate ) external; }
/* Copyright (C) 2020 InsurAce.io This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.7.3; interface ILPToken { function proposeToBurn( address _account, uint256 _amount, uint256 _blockWeight ) external; function mint( address _account, uint256 _amount, uint256 _poolRewardPerLPToken ) external; function rewardDebtOf(address _account) external view returns (uint256); function burnableAmtOf(address _account) external view returns (uint256); function burn( address _account, uint256 _amount, uint256 _poolRewardPerLPToken ) external; }
/* Copyright (C) 2020 InsurAce.io This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.7.3; interface IStakingV2Controller { function stakeTokens(uint256 _amount, address _token) external payable; function proposeUnstake(uint256 _amount, address _token) external; function withdrawTokens(uint256 _amount, address _token) external; function unlockRewardsFromPoolsByController( address staker, address _to, address[] memory _tokenList ) external returns (uint256); function showRewardsFromPools(address[] memory _tokenList) external view returns (uint256); }
/* Copyright (C) 2020 InsurAce.io This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.7.3; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; // a library for performing various math operations library Math { using SafeMathUpgradeable for uint256; function max(uint256 x, uint256 y) internal pure returns (uint256) { return x < y ? y : x; } function min(uint256 x, uint256 y) internal pure returns (uint256) { return x < y ? x : y; } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y.div(2).add(1); while (x < z) { z = x; x = (y.div(x).add(x)).div(2); } } else if (y != 0) { z = 1; } } // power private function function pow(uint256 _base, uint256 _exponent) internal pure returns (uint256) { if (_exponent == 0) { return 1; } else if (_exponent == 1) { return _base; } else if (_base == 0 && _exponent != 0) { return 0; } else { uint256 z = _base; for (uint256 i = 1; i < _exponent; i++) { z = z.mul(_base); } return z; } } }
/* Copyright (C) 2020 InsurAce.io This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ */ // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.7.3; interface ICapitalPool { function canBuyCoverPerProduct( uint256 _productId, uint256 _amount, address _token ) external view returns (bool); function canBuyCover(uint256 _amount, address _token) external view returns (bool); function buyCoverPerProduct( uint256 _productId, uint256 _amount, address _token ) external; function hasTokenInStakersPool(address _token) external view returns (bool); function getCapacityInfo() external view returns (uint256, uint256); function settlePaymentForClaim( address _token, uint256 _amount, uint256 _claimId ) external; function getStakingPercentageX10000() external view returns (uint256); function getTVLinBaseToken() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; import "../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_deltaAmt","type":"uint256"}],"name":"ProposeUnstakeEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_deltaAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_balance","type":"uint256"}],"name":"StakeTokensEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"UnlockRewardsFromPoolsEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_deltaAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_balance","type":"uint256"}],"name":"WithdrawTokensEvent","type":"event"},{"inputs":[],"name":"G_WITHDRAW_FEE_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"capitalPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initializeStakingV2Controller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mapCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxUnstakeAmtPT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minStakeAmtPT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minUnstakeAmtPT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"perAccountCapPT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"proposeUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"securityMatrix","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mapCounter","type":"uint256"}],"name":"setMapCounter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_totalStakedCapPT","type":"uint256"},{"internalType":"uint256","name":"_perAccountCapPT","type":"uint256"}],"name":"setStakeCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_minStakeAmt","type":"uint256"},{"internalType":"uint256","name":"_minUnstakeAmt","type":"uint256"},{"internalType":"uint256","name":"_maxUnstakeAmt","type":"uint256"},{"internalType":"uint256","name":"_unstakeLockBlk","type":"uint256"},{"internalType":"uint256","name":"_withdrawFee","type":"uint256"}],"name":"setStakeInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_lpToken","type":"address"}],"name":"setTokenToLPTokenMap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_securityMatrix","type":"address"},{"internalType":"address","name":"_stakersPoolV2","type":"address"},{"internalType":"address","name":"_feePool","type":"address"},{"internalType":"address","name":"_capitalPool","type":"address"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokenList","type":"address[]"}],"name":"showRewardsFromPools","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"stakeTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"stakersPoolV2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenToLPTokenMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalStakedCapPT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unPauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"address[]","name":"_tokenList","type":"address[]"}],"name":"unlockRewardsFromPoolsByController","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unstakeLockBlkPT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawFeePT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613d8c806100206000396000f3fe6080604052600436106101d85760003560e01c80638da5cb5b11610102578063b870029c11610095578063dc7894c211610064578063dc7894c214610791578063f2fde38b146107c4578063f9bdf82f146107f7578063faf295ca1461080c576101d8565b8063b870029c1461064e578063bf766f5c14610663578063d5c71c371461069e578063d7269dc314610767576101d8565b8063a651cd25116100d1578063a651cd2514610594578063abd915d7146105c7578063ae2e933b146105fa578063b6b2b3761461060f576101d8565b80638da5cb5b1461046957806390323f871461047e578063929a6ee3146104b157806397dad231146104e4576101d8565b806353482d921161017a5780635bfb7508116101495780635bfb7508146103e35780635c975abb146103f8578063715018a6146104215780637a5e7bdb14610436576101d8565b806353482d92146102f957806354c35a3c1461034a578063595c6a67146103955780635ace4df7146103aa576101d8565b806330144f96116101b657806330144f9614610247578063398d92bb146102785780633a59cfee146102b15780634f4133e8146102e4576101d8565b806307c97ffb146101dd5780630bea440d146101f457806324a1799414610220575b600080fd5b3480156101e957600080fd5b506101f261083f565b005b6101f26004803603604081101561020a57600080fd5b50803590602001356001600160a01b03166108fb565b34801561022c57600080fd5b50610235611351565b60408051918252519081900360200190f35b34801561025357600080fd5b5061025c611357565b604080516001600160a01b039092168252519081900360200190f35b34801561028457600080fd5b506101f26004803603604081101561029b57600080fd5b50803590602001356001600160a01b0316611366565b3480156102bd57600080fd5b50610235600480360360208110156102d457600080fd5b50356001600160a01b0316611b78565b3480156102f057600080fd5b50610235611b8a565b34801561030557600080fd5b506101f2600480360360c081101561031c57600080fd5b506001600160a01b038135169060208101359060408101359060608101359060808101359060a00135611b90565b34801561035657600080fd5b506101f26004803603608081101561036d57600080fd5b506001600160a01b038135811691602081013582169160408201358116916060013516611d33565b3480156103a157600080fd5b506101f2611ee9565b3480156103b657600080fd5b506101f2600480360360408110156103cd57600080fd5b50803590602001356001600160a01b0316611fa0565b3480156103ef57600080fd5b5061025c61235a565b34801561040457600080fd5b5061040d612369565b604080519115158252519081900360200190f35b34801561042d57600080fd5b506101f2612372565b34801561044257600080fd5b506102356004803603602081101561045957600080fd5b50356001600160a01b031661241e565b34801561047557600080fd5b5061025c612430565b34801561048a57600080fd5b50610235600480360360208110156104a157600080fd5b50356001600160a01b031661243f565b3480156104bd57600080fd5b50610235600480360360208110156104d457600080fd5b50356001600160a01b0316612451565b3480156104f057600080fd5b506102356004803603602081101561050757600080fd5b81019060208101813564010000000081111561052257600080fd5b82018360208201111561053457600080fd5b8035906020019184602083028401116401000000008311171561055657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612463945050505050565b3480156105a057600080fd5b50610235600480360360208110156105b757600080fd5b50356001600160a01b0316612685565b3480156105d357600080fd5b5061025c600480360360208110156105ea57600080fd5b50356001600160a01b0316612697565b34801561060657600080fd5b5061025c6126b2565b34801561061b57600080fd5b506101f26004803603606081101561063257600080fd5b506001600160a01b0381351690602081013590604001356126c1565b34801561065a57600080fd5b5061025c6127af565b34801561066f57600080fd5b506101f26004803603604081101561068657600080fd5b506001600160a01b03813581169160200135166127be565b3480156106aa57600080fd5b50610235600480360360608110156106c157600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156106f557600080fd5b82018360208201111561070757600080fd5b8035906020019184602083028401116401000000008311171561072957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612895945050505050565b34801561077357600080fd5b506101f26004803603602081101561078a57600080fd5b5035612a49565b34801561079d57600080fd5b50610235600480360360208110156107b457600080fd5b50356001600160a01b0316612ab0565b3480156107d057600080fd5b506101f2600480360360208110156107e757600080fd5b50356001600160a01b0316612ac2565b34801561080357600080fd5b506101f2612bc5565b34801561081857600080fd5b506102356004803603602081101561082f57600080fd5b50356001600160a01b0316612c7f565b610847612c91565b6001600160a01b0316610858612430565b6001600160a01b0316146108a1576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6108a9612369565b6108f1576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6108f9612c95565b565b610903612369565b15610948576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6002609754141561098e576040805162461bcd60e51b815260206004820152601f6024820152600080516020613c52833981519152604482015290519081900360640190fd5b60026097556001600160a01b03808216600090815260cb6020526040902054829116806109f5576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b6001600160a01b038316600090815260cd6020526040902054841015610a4b576040805162461bcd60e51b8152602060048083019190915260248201526353543a3160e01b604482015290519081900360640190fd5b6001600160a01b03808416600090815260cb60205260408082205460c954825163411c050960e11b8152918516600483018190529251929416926382380a129260248084019382900301818387803b158015610aa657600080fd5b505af1158015610aba573d6000803e3d6000fd5b505060c9546001600160a01b0316915063d21df2309050610ad9612c91565b836040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015610b2957600080fd5b505af1158015610b3d573d6000803e3d6000fd5b505050506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610ba95734851115610ba4576040805162461bcd60e51b8152602060048083019190915260248201526329aa1d1960e11b604482015290519081900360640190fd5b610d58565b84846001600160a01b03166370a08231610bc1612c91565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610bfe57600080fd5b505afa158015610c12573d6000803e3d6000fd5b505050506040513d6020811015610c2857600080fd5b50511015610c66576040805162461bcd60e51b8152602060048083019190915260248201526353543a3360e01b604482015290519081900360640190fd5b6000846001600160a01b031663dd62ed3e610c7f612c91565b306040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015610ccd57600080fd5b505afa158015610ce1573d6000803e3d6000fd5b505050506040513d6020811015610cf757600080fd5b5051905085811015610d39576040805162461bcd60e51b8152602060048083019190915260248201526314d50e8d60e21b604482015290519081900360640190fd5b610d56610d44612c91565b6001600160a01b038716903089612d35565b505b60c9546040805162d0331760e71b81526001600160a01b0387811660048301529151889360009316916368198b80916024808301926020929190829003018186803b158015610da657600080fd5b505afa158015610dba573d6000803e3d6000fd5b505050506040513d6020811015610dd057600080fd5b505190508015610e9057610e5381610e4d856001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e1a57600080fd5b505afa158015610e2e573d6000803e3d6000fd5b505050506040513d6020811015610e4457600080fd5b50518a90612d95565b90612df7565b915081610e90576040805162461bcd60e51b8152602060048083019190915260248201526353543a3560e01b604482015290519081900360640190fd5b6001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610f2b5760c95460408051631e27076960e31b81526001600160a01b038981166004830152602482018b90529151919092169163f1383b48918a9160448082019260009290919082900301818588803b158015610f0d57600080fd5b505af1158015610f21573d6000803e3d6000fd5b5050505050610fb3565b60c954610f45906001600160a01b03888116911689612e5e565b60c95460408051631e27076960e31b81526001600160a01b038981166004830152602482018b90529151919092169163f1383b4891604480830192600092919082900301818387803b158015610f9a57600080fd5b505af1158015610fae573d6000803e3d6000fd5b505050505b60c95460408051638385310960e01b81526001600160a01b03868116600483015291516000939290921691638385310991602480820192602092909190829003018186803b15801561100457600080fd5b505afa158015611018573d6000803e3d6000fd5b505050506040513d602081101561102e57600080fd5b505190506001600160a01b03841663156e29f6611049612c91565b85846040518463ffffffff1660e01b815260040180846001600160a01b031681526020018381526020018281526020019350505050600060405180830381600087803b15801561109857600080fd5b505af11580156110ac573d6000803e3d6000fd5b505050506000846001600160a01b03166370a082316110c9612c91565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561110657600080fd5b505afa15801561111a573d6000803e3d6000fd5b505050506040513d602081101561113057600080fd5b50516001600160a01b038916600090815260d46020526040902054909150611158848b612eb5565b1115611194576040805162461bcd60e51b8152602060048083019190915260248201526329aa1d1b60e11b604482015290519081900360640190fd5b6000611212866001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111d257600080fd5b505afa1580156111e6573d6000803e3d6000fd5b505050506040513d60208110156111fc57600080fd5b5051610e4d61120b878e612eb5565b8590612d95565b6001600160a01b038a16600090815260d5602052604090205490915081111561126b576040805162461bcd60e51b8152602060048083019190915260248201526353543a3760e01b604482015290519081900360640190fd5b856001600160a01b031661127d612c91565b6001600160a01b03167fdb7745108083769a4794a21441acbf3b96b8730eefe20d644b7bb5501ebcd88787896001600160a01b03166370a082316112bf612c91565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156112fc57600080fd5b505afa158015611310573d6000803e3d6000fd5b505050506040513d602081101561132657600080fd5b50516040805192835260208301919091528051918290030190a3505060016097555050505050505050565b61271081565b60c9546001600160a01b031681565b600260975414156113ac576040805162461bcd60e51b815260206004820152601f6024820152600080516020613c52833981519152604482015290519081900360640190fd5b60026097556113b9612369565b156113fe576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001600160a01b03808216600090815260cb602052604090205482911680611460576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b6000841161149e576040805162461bcd60e51b8152602060048083019190915260248201526357543a3160e01b604482015290519081900360640190fd5b6001600160a01b03808416600090815260cb60205260408082205460c954825163411c050960e11b8152918516600483018190529251929416926382380a129260248084019382900301818387803b1580156114f957600080fd5b505af115801561150d573d6000803e3d6000fd5b505060c9546001600160a01b0316915063d21df230905061152c612c91565b836040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801561157c57600080fd5b505af1158015611590573d6000803e3d6000fd5b505060c9546040805162d0331760e71b81526001600160a01b03898116600483015291518a95509190921692506368198b8091602480820192602092909190829003018186803b1580156115e357600080fd5b505afa1580156115f7573d6000803e3d6000fd5b505050506040513d602081101561160d57600080fd5b5051611649576040805162461bcd60e51b815260206004808301919091526024820152632baa1d1960e11b604482015290519081900360640190fd5b60c9546040805162d0331760e71b81526001600160a01b038881166004830152915161173e9392909216916368198b8091602480820192602092909190829003018186803b15801561169a57600080fd5b505afa1580156116ae573d6000803e3d6000fd5b505050506040513d60208110156116c457600080fd5b5051604080516318160ddd60e01b81529051610e4d916001600160a01b038716916318160ddd91600480820192602092909190829003018186803b15801561170b57600080fd5b505afa15801561171f573d6000803e3d6000fd5b505050506040513d602081101561173557600080fd5b50518990612d95565b90508061177b576040805162461bcd60e51b8152602060048083019190915260248201526357543a3360e01b604482015290519081900360640190fd5b6001600160a01b038516600090815260d160205260408120546117b29061271090610e4d906117ab908390612f0f565b8a90612d95565b60c9549091506001600160a01b031663f4e6ae326117ce612c91565b60ca5484908a906001600160a01b03166117e88d84612f0f565b6040518663ffffffff1660e01b815260040180866001600160a01b03168152602001858152602001846001600160a01b03168152602001836001600160a01b0316815260200182815260200195505050505050600060405180830381600087803b15801561185557600080fd5b505af1158015611869573d6000803e3d6000fd5b505060c95460408051638385310960e01b81526001600160a01b038881166004830152915160009550919092169250638385310991602480820192602092909190829003018186803b1580156118be57600080fd5b505afa1580156118d2573d6000803e3d6000fd5b505050506040513d60208110156118e857600080fd5b505190506001600160a01b03841663f5298aca611903612c91565b85846040518463ffffffff1660e01b815260040180846001600160a01b031681526020018381526020018281526020019350505050600060405180830381600087803b15801561195257600080fd5b505af1158015611966573d6000803e3d6000fd5b505060d3546040805163626c66cb60e01b81526001600160a01b038c81166004830152915191909216935063626c66cb92506024808301926020929190829003018186803b1580156119b757600080fd5b505afa1580156119cb573d6000803e3d6000fd5b505050506040513d60208110156119e157600080fd5b505115611a945760d354604080516358deb88960e01b815281516000936001600160a01b0316926358deb8899260048082019391829003018186803b158015611a2957600080fd5b505afa158015611a3d573d6000803e3d6000fd5b505050506040513d6040811015611a5357600080fd5b5051905080611a92576040805162461bcd60e51b8152602060048083019190915260248201526315d50e8d60e21b604482015290519081900360640190fd5b505b836001600160a01b0316611aa6612c91565b6001600160a01b03167f422dc9e6f41f87353df15c9b9b95fd2419876ddcd727afca7743bd4d1ea01f6e85876001600160a01b03166370a08231611ae8612c91565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b2557600080fd5b505afa158015611b39573d6000803e3d6000fd5b505050506040513d6020811015611b4f57600080fd5b50516040805192835260208301919091528051918290030190a350506001609755505050505050565b60cf6020526000908152604090205481565b60cc5481565b611b98612c91565b6001600160a01b0316611ba9612430565b6001600160a01b031614611bf2576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b03808716600090815260cb602052604090205487911680611c54576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b6001600160a01b038816611c97576040805162461bcd60e51b81526020600482015260056024820152645353493a3160d81b604482015290519081900360640190fd5b6001600160a01b038816600090815260cd60205260409020879055848610611cee576040805162461bcd60e51b815260206004820152600560248201526429a9a49d1960d91b604482015290519081900360640190fd5b50506001600160a01b03909516600090815260ce602090815260408083209590955560cf81528482209390935560d083528381209190915560d1909152209190915550565b611d3b612c91565b6001600160a01b0316611d4c612430565b6001600160a01b031614611d95576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b038416611dd6576040805162461bcd60e51b8152602060048201526003602482015262533a3160e81b604482015290519081900360640190fd5b6001600160a01b038316611e17576040805162461bcd60e51b8152602060048201526003602482015262299d1960e91b604482015290519081900360640190fd5b6001600160a01b038216611e58576040805162461bcd60e51b8152602060048201526003602482015262533a3360e81b604482015290519081900360640190fd5b6001600160a01b038116611e99576040805162461bcd60e51b815260206004820152600360248201526214ce8d60ea1b604482015290519081900360640190fd5b60d280546001600160a01b039586166001600160a01b03199182161790915560c980549486169482169490941790935560ca80549285169284169290921790915560d38054919093169116179055565b611ef1612c91565b6001600160a01b0316611f02612430565b6001600160a01b031614611f4b576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b611f53612369565b15611f98576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6108f9612f6c565b60026097541415611fe6576040805162461bcd60e51b815260206004820152601f6024820152600080516020613c52833981519152604482015290519081900360640190fd5b6002609755611ff3612369565b15612038576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001600160a01b03808216600090815260cb60205260409020548291168061209a576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b6001600160a01b038316600090815260ce602052604090205484108015906120da57506001600160a01b038316600090815260cf60205260409020548411155b612114576040805162461bcd60e51b8152602060048083019190915260248201526350553a3160e01b604482015290519081900360640190fd5b6001600160a01b03808416600081815260cb60209081526040918290205460c954835162d0331760e71b8152600481019590955292519085169489949316926368198b80926024808301939192829003018186803b15801561217557600080fd5b505afa158015612189573d6000803e3d6000fd5b505050506040513d602081101561219f57600080fd5b50516121db576040805162461bcd60e51b81526020600480830191909152602482015263282a9d1960e11b604482015290519081900360640190fd5b60c9546040805162d0331760e71b81526001600160a01b038881166004830152915161222c9392909216916368198b8091602480820192602092909190829003018186803b15801561169a57600080fd5b905080612269576040805162461bcd60e51b8152602060048083019190915260248201526350553a3360e01b604482015290519081900360640190fd5b816001600160a01b03166387c19009612280612c91565b6001600160a01b03808916600090815260d060205260408082205481516001600160e01b031960e088901b168152949093166004850152602484018790526044840192909252905160648084019382900301818387803b1580156122e357600080fd5b505af11580156122f7573d6000803e3d6000fd5b50505050816001600160a01b031661230d612c91565b6001600160a01b03167f200de5d70cb7c9ffe693f6174b7dca1b3738a251565a7623f438c11a4b007bd2836040518082815260200191505060405180910390a35050600160975550505050565b60d3546001600160a01b031681565b60655460ff1690565b61237a612c91565b6001600160a01b031661238b612430565b6001600160a01b0316146123d4576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b60cd6020526000908152604090205481565b6033546001600160a01b031690565b60d46020526000908152604090205481565b60ce6020526000908152604090205481565b600060cc54825111156124a6576040805162461bcd60e51b8152602060048201526006602482015265535246503a3160d01b604482015290519081900360640190fd5b6000805b835181101561267e5760008482815181106124c157fe5b6020908102919091018101516001600160a01b03808216600090815260cb9093526040909220549092501680612527576040805162461bcd60e51b815260206004820152600660248201526529a923281d1960d11b604482015290519081900360640190fd5b60c9546000906001600160a01b031663231c336e612543612c91565b846040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561259157600080fd5b505afa1580156125a5573d6000803e3d6000fd5b505050506040513d60208110156125bb57600080fd5b505160c9549091506000906001600160a01b0316630402d2256125dc612c91565b856040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561262a57600080fd5b505afa15801561263e573d6000803e3d6000fd5b505050506040513d602081101561265457600080fd5b5051905061266c816126668885612eb5565b90612eb5565b955050600190930192506124aa915050565b5092915050565b60d56020526000908152604090205481565b60cb602052600090815260409020546001600160a01b031681565b60ca546001600160a01b031681565b6126c9612c91565b6001600160a01b03166126da612430565b6001600160a01b031614612723576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b03808416600090815260cb602052604090205484911680612785576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b50506001600160a01b03909216600090815260d4602090815260408083209390935560d590522055565b60d2546001600160a01b031681565b6127c6612c91565b6001600160a01b03166127d7612430565b6001600160a01b031614612820576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b038216612867576040805162461bcd60e51b81526020600482015260096024820152685354544c50544d3a3160b81b604482015290519081900360640190fd5b6001600160a01b03918216600090815260cb6020526040902080546001600160a01b03191691909216179055565b60d2546000906001600160a01b0316632a1450ea306128b2612c91565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156128ff57600080fd5b505afa158015612913573d6000803e3d6000fd5b505050506040513d602081101561292957600080fd5b5051806129555750612939612430565b6001600160a01b031661294a612c91565b6001600160a01b0316145b612996576040805162461bcd60e51b815260206004820152600d60248201526c30b63637bbb2b221b0b63632b960991b604482015290519081900360640190fd5b61299e612369565b156129e3576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60026097541415612a29576040805162461bcd60e51b815260206004820152601f6024820152600080516020613c52833981519152604482015290519081900360640190fd5b60026097556000612a3b858585612fef565b600160975595945050505050565b612a51612c91565b6001600160a01b0316612a62612430565b6001600160a01b031614612aab576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b60cc55565b60d06020526000908152604090205481565b612aca612c91565b6001600160a01b0316612adb612430565b6001600160a01b031614612b24576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b038116612b695760405162461bcd60e51b8152600401808060200182810382526026815260200180613c726026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1680612bde5750612bde6134b9565b80612bec575060005460ff16155b612c275760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015612c52576000805460ff1961ff0019909116610100171660011790555b612c5a6134ca565b612c62613567565b612c6a613604565b8015612c7c576000805461ff00191690555b50565b60d16020526000908152604090205481565b3390565b612c9d612369565b612ce5576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612d18612c91565b604080516001600160a01b039092168252519081900360200190a1565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612d8f908590613699565b50505050565b600082612da457506000612df1565b82820282848281612db157fe5b0414612dee5760405162461bcd60e51b8152600401808060200182810382526021815260200180613cec6021913960400191505060405180910390fd5b90505b92915050565b6000808211612e4d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612e5657fe5b049392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612eb0908490613699565b505050565b600082820183811015612dee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115612f66576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b612f74612369565b15612fb9576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d18612c91565b60006001600160a01b038316613036576040805162461bcd60e51b81526020600482015260076024820152665f555246503a3160c81b604482015290519081900360640190fd5b60cc5482511115613078576040805162461bcd60e51b81526020600482015260076024820152662faaa923281d1960c91b604482015290519081900360640190fd5b6000805b83518110156134ae57600084828151811061309357fe5b6020908102919091018101516001600160a01b03808216600090815260cb90935260409092205490925016806130fa576040805162461bcd60e51b81526020600482015260076024820152665f555246503a3360c81b604482015290519081900360640190fd5b806001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561314757600080fd5b505afa15801561315b573d6000803e3d6000fd5b505050506040513d602081101561317157600080fd5b50511561324d5760c9546040805163411c050960e11b81526001600160a01b038481166004830152915191909216916382380a1291602480830192600092919082900301818387803b1580156131c657600080fd5b505af11580156131da573d6000803e3d6000fd5b505060c95460408051630d21df2360e41b81526001600160a01b038d811660048301528681166024830152915191909216935063d21df2309250604480830192600092919082900301818387803b15801561323457600080fd5b505af1158015613248573d6000803e3d6000fd5b505050505b60c95460408051639e9df5d760e01b81526001600160a01b038b8116600483015284811660248301528a8116604483015291516000939290921691639e9df5d79160648082019260209290919082900301818787803b1580156132af57600080fd5b505af11580156132c3573d6000803e3d6000fd5b505050506040513d60208110156132d957600080fd5b505190506132e78582612eb5565b9450816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561333657600080fd5b505afa15801561334a573d6000803e3d6000fd5b505050506040513d602081101561336057600080fd5b5051156134585760c95460408051638385310960e01b81526001600160a01b03858116600483015291516000939290921691638385310991602480820192602092909190829003018186803b1580156133b857600080fd5b505afa1580156133cc573d6000803e3d6000fd5b505050506040513d60208110156133e257600080fd5b505160408051630ab714fb60e11b81526001600160a01b038d8116600483015260006024830181905260448301859052925193945086169263156e29f69260648084019391929182900301818387803b15801561343e57600080fd5b505af1158015613452573d6000803e3d6000fd5b50505050505b826001600160a01b0316896001600160a01b03167ffd23f4e95e7c61bcc50c97b29c0573e8ea5176be3f3ce3282fe8fb122e967767836040518082815260200191505060405180910390a350505060010161307c565b5090505b9392505050565b60006134c43061374a565b15905090565b600054610100900460ff16806134e357506134e36134b9565b806134f1575060005460ff16155b61352c5760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015613557576000805460ff1961ff0019909116610100171660011790555b61355f613750565b612c6a6137f0565b600054610100900460ff168061358057506135806134b9565b8061358e575060005460ff16155b6135c95760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff161580156135f4576000805460ff1961ff0019909116610100171660011790555b6135fc613750565b612c6a6138e9565b600054610100900460ff168061361d575061361d6134b9565b8061362b575060005460ff16155b6136665760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015613691576000805460ff1961ff0019909116610100171660011790555b612c6a613994565b60606136ee826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613a3a9092919063ffffffff16565b805190915015612eb05780806020019051602081101561370d57600080fd5b5051612eb05760405162461bcd60e51b815260040180806020018281038252602a815260200180613d2d602a913960400191505060405180910390fd5b3b151590565b600054610100900460ff168061376957506137696134b9565b80613777575060005460ff16155b6137b25760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015612c6a576000805460ff1961ff0019909116610100171660011790558015612c7c576000805461ff001916905550565b600054610100900460ff168061380957506138096134b9565b80613817575060005460ff16155b6138525760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff1615801561387d576000805460ff1961ff0019909116610100171660011790555b6000613887612c91565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015612c7c576000805461ff001916905550565b600054610100900460ff168061390257506139026134b9565b80613910575060005460ff16155b61394b5760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015613976576000805460ff1961ff0019909116610100171660011790555b6065805460ff191690558015612c7c576000805461ff001916905550565b600054610100900460ff16806139ad57506139ad6134b9565b806139bb575060005460ff16155b6139f65760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015613a21576000805460ff1961ff0019909116610100171660011790555b60016097558015612c7c576000805461ff001916905550565b6060613a498484600085613a51565b949350505050565b606082471015613a925760405162461bcd60e51b8152600401808060200182810382526026815260200180613c986026913960400191505060405180910390fd5b613a9b8561374a565b613aec576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310613b2b5780518252601f199092019160209182019101613b0c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613b8d576040519150601f19603f3d011682016040523d82523d6000602084013e613b92565b606091505b5091509150613ba2828286613bad565b979650505050505050565b60608315613bbc5750816134b2565b825115613bcc5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613c16578181015183820152602001613bfe565b50505050905090810190601f168015613c435780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212207c47b3b029219515261e6e514fb020217b363e176cafb39074bb61e2d7fa033b64736f6c63430007030033
Deployed Bytecode
0x6080604052600436106101d85760003560e01c80638da5cb5b11610102578063b870029c11610095578063dc7894c211610064578063dc7894c214610791578063f2fde38b146107c4578063f9bdf82f146107f7578063faf295ca1461080c576101d8565b8063b870029c1461064e578063bf766f5c14610663578063d5c71c371461069e578063d7269dc314610767576101d8565b8063a651cd25116100d1578063a651cd2514610594578063abd915d7146105c7578063ae2e933b146105fa578063b6b2b3761461060f576101d8565b80638da5cb5b1461046957806390323f871461047e578063929a6ee3146104b157806397dad231146104e4576101d8565b806353482d921161017a5780635bfb7508116101495780635bfb7508146103e35780635c975abb146103f8578063715018a6146104215780637a5e7bdb14610436576101d8565b806353482d92146102f957806354c35a3c1461034a578063595c6a67146103955780635ace4df7146103aa576101d8565b806330144f96116101b657806330144f9614610247578063398d92bb146102785780633a59cfee146102b15780634f4133e8146102e4576101d8565b806307c97ffb146101dd5780630bea440d146101f457806324a1799414610220575b600080fd5b3480156101e957600080fd5b506101f261083f565b005b6101f26004803603604081101561020a57600080fd5b50803590602001356001600160a01b03166108fb565b34801561022c57600080fd5b50610235611351565b60408051918252519081900360200190f35b34801561025357600080fd5b5061025c611357565b604080516001600160a01b039092168252519081900360200190f35b34801561028457600080fd5b506101f26004803603604081101561029b57600080fd5b50803590602001356001600160a01b0316611366565b3480156102bd57600080fd5b50610235600480360360208110156102d457600080fd5b50356001600160a01b0316611b78565b3480156102f057600080fd5b50610235611b8a565b34801561030557600080fd5b506101f2600480360360c081101561031c57600080fd5b506001600160a01b038135169060208101359060408101359060608101359060808101359060a00135611b90565b34801561035657600080fd5b506101f26004803603608081101561036d57600080fd5b506001600160a01b038135811691602081013582169160408201358116916060013516611d33565b3480156103a157600080fd5b506101f2611ee9565b3480156103b657600080fd5b506101f2600480360360408110156103cd57600080fd5b50803590602001356001600160a01b0316611fa0565b3480156103ef57600080fd5b5061025c61235a565b34801561040457600080fd5b5061040d612369565b604080519115158252519081900360200190f35b34801561042d57600080fd5b506101f2612372565b34801561044257600080fd5b506102356004803603602081101561045957600080fd5b50356001600160a01b031661241e565b34801561047557600080fd5b5061025c612430565b34801561048a57600080fd5b50610235600480360360208110156104a157600080fd5b50356001600160a01b031661243f565b3480156104bd57600080fd5b50610235600480360360208110156104d457600080fd5b50356001600160a01b0316612451565b3480156104f057600080fd5b506102356004803603602081101561050757600080fd5b81019060208101813564010000000081111561052257600080fd5b82018360208201111561053457600080fd5b8035906020019184602083028401116401000000008311171561055657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612463945050505050565b3480156105a057600080fd5b50610235600480360360208110156105b757600080fd5b50356001600160a01b0316612685565b3480156105d357600080fd5b5061025c600480360360208110156105ea57600080fd5b50356001600160a01b0316612697565b34801561060657600080fd5b5061025c6126b2565b34801561061b57600080fd5b506101f26004803603606081101561063257600080fd5b506001600160a01b0381351690602081013590604001356126c1565b34801561065a57600080fd5b5061025c6127af565b34801561066f57600080fd5b506101f26004803603604081101561068657600080fd5b506001600160a01b03813581169160200135166127be565b3480156106aa57600080fd5b50610235600480360360608110156106c157600080fd5b6001600160a01b0382358116926020810135909116918101906060810160408201356401000000008111156106f557600080fd5b82018360208201111561070757600080fd5b8035906020019184602083028401116401000000008311171561072957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612895945050505050565b34801561077357600080fd5b506101f26004803603602081101561078a57600080fd5b5035612a49565b34801561079d57600080fd5b50610235600480360360208110156107b457600080fd5b50356001600160a01b0316612ab0565b3480156107d057600080fd5b506101f2600480360360208110156107e757600080fd5b50356001600160a01b0316612ac2565b34801561080357600080fd5b506101f2612bc5565b34801561081857600080fd5b506102356004803603602081101561082f57600080fd5b50356001600160a01b0316612c7f565b610847612c91565b6001600160a01b0316610858612430565b6001600160a01b0316146108a1576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6108a9612369565b6108f1576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6108f9612c95565b565b610903612369565b15610948576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6002609754141561098e576040805162461bcd60e51b815260206004820152601f6024820152600080516020613c52833981519152604482015290519081900360640190fd5b60026097556001600160a01b03808216600090815260cb6020526040902054829116806109f5576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b6001600160a01b038316600090815260cd6020526040902054841015610a4b576040805162461bcd60e51b8152602060048083019190915260248201526353543a3160e01b604482015290519081900360640190fd5b6001600160a01b03808416600090815260cb60205260408082205460c954825163411c050960e11b8152918516600483018190529251929416926382380a129260248084019382900301818387803b158015610aa657600080fd5b505af1158015610aba573d6000803e3d6000fd5b505060c9546001600160a01b0316915063d21df2309050610ad9612c91565b836040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015610b2957600080fd5b505af1158015610b3d573d6000803e3d6000fd5b505050506001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610ba95734851115610ba4576040805162461bcd60e51b8152602060048083019190915260248201526329aa1d1960e11b604482015290519081900360640190fd5b610d58565b84846001600160a01b03166370a08231610bc1612c91565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610bfe57600080fd5b505afa158015610c12573d6000803e3d6000fd5b505050506040513d6020811015610c2857600080fd5b50511015610c66576040805162461bcd60e51b8152602060048083019190915260248201526353543a3360e01b604482015290519081900360640190fd5b6000846001600160a01b031663dd62ed3e610c7f612c91565b306040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015610ccd57600080fd5b505afa158015610ce1573d6000803e3d6000fd5b505050506040513d6020811015610cf757600080fd5b5051905085811015610d39576040805162461bcd60e51b8152602060048083019190915260248201526314d50e8d60e21b604482015290519081900360640190fd5b610d56610d44612c91565b6001600160a01b038716903089612d35565b505b60c9546040805162d0331760e71b81526001600160a01b0387811660048301529151889360009316916368198b80916024808301926020929190829003018186803b158015610da657600080fd5b505afa158015610dba573d6000803e3d6000fd5b505050506040513d6020811015610dd057600080fd5b505190508015610e9057610e5381610e4d856001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e1a57600080fd5b505afa158015610e2e573d6000803e3d6000fd5b505050506040513d6020811015610e4457600080fd5b50518a90612d95565b90612df7565b915081610e90576040805162461bcd60e51b8152602060048083019190915260248201526353543a3560e01b604482015290519081900360640190fd5b6001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610f2b5760c95460408051631e27076960e31b81526001600160a01b038981166004830152602482018b90529151919092169163f1383b48918a9160448082019260009290919082900301818588803b158015610f0d57600080fd5b505af1158015610f21573d6000803e3d6000fd5b5050505050610fb3565b60c954610f45906001600160a01b03888116911689612e5e565b60c95460408051631e27076960e31b81526001600160a01b038981166004830152602482018b90529151919092169163f1383b4891604480830192600092919082900301818387803b158015610f9a57600080fd5b505af1158015610fae573d6000803e3d6000fd5b505050505b60c95460408051638385310960e01b81526001600160a01b03868116600483015291516000939290921691638385310991602480820192602092909190829003018186803b15801561100457600080fd5b505afa158015611018573d6000803e3d6000fd5b505050506040513d602081101561102e57600080fd5b505190506001600160a01b03841663156e29f6611049612c91565b85846040518463ffffffff1660e01b815260040180846001600160a01b031681526020018381526020018281526020019350505050600060405180830381600087803b15801561109857600080fd5b505af11580156110ac573d6000803e3d6000fd5b505050506000846001600160a01b03166370a082316110c9612c91565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561110657600080fd5b505afa15801561111a573d6000803e3d6000fd5b505050506040513d602081101561113057600080fd5b50516001600160a01b038916600090815260d46020526040902054909150611158848b612eb5565b1115611194576040805162461bcd60e51b8152602060048083019190915260248201526329aa1d1b60e11b604482015290519081900360640190fd5b6000611212866001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111d257600080fd5b505afa1580156111e6573d6000803e3d6000fd5b505050506040513d60208110156111fc57600080fd5b5051610e4d61120b878e612eb5565b8590612d95565b6001600160a01b038a16600090815260d5602052604090205490915081111561126b576040805162461bcd60e51b8152602060048083019190915260248201526353543a3760e01b604482015290519081900360640190fd5b856001600160a01b031661127d612c91565b6001600160a01b03167fdb7745108083769a4794a21441acbf3b96b8730eefe20d644b7bb5501ebcd88787896001600160a01b03166370a082316112bf612c91565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156112fc57600080fd5b505afa158015611310573d6000803e3d6000fd5b505050506040513d602081101561132657600080fd5b50516040805192835260208301919091528051918290030190a3505060016097555050505050505050565b61271081565b60c9546001600160a01b031681565b600260975414156113ac576040805162461bcd60e51b815260206004820152601f6024820152600080516020613c52833981519152604482015290519081900360640190fd5b60026097556113b9612369565b156113fe576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001600160a01b03808216600090815260cb602052604090205482911680611460576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b6000841161149e576040805162461bcd60e51b8152602060048083019190915260248201526357543a3160e01b604482015290519081900360640190fd5b6001600160a01b03808416600090815260cb60205260408082205460c954825163411c050960e11b8152918516600483018190529251929416926382380a129260248084019382900301818387803b1580156114f957600080fd5b505af115801561150d573d6000803e3d6000fd5b505060c9546001600160a01b0316915063d21df230905061152c612c91565b836040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801561157c57600080fd5b505af1158015611590573d6000803e3d6000fd5b505060c9546040805162d0331760e71b81526001600160a01b03898116600483015291518a95509190921692506368198b8091602480820192602092909190829003018186803b1580156115e357600080fd5b505afa1580156115f7573d6000803e3d6000fd5b505050506040513d602081101561160d57600080fd5b5051611649576040805162461bcd60e51b815260206004808301919091526024820152632baa1d1960e11b604482015290519081900360640190fd5b60c9546040805162d0331760e71b81526001600160a01b038881166004830152915161173e9392909216916368198b8091602480820192602092909190829003018186803b15801561169a57600080fd5b505afa1580156116ae573d6000803e3d6000fd5b505050506040513d60208110156116c457600080fd5b5051604080516318160ddd60e01b81529051610e4d916001600160a01b038716916318160ddd91600480820192602092909190829003018186803b15801561170b57600080fd5b505afa15801561171f573d6000803e3d6000fd5b505050506040513d602081101561173557600080fd5b50518990612d95565b90508061177b576040805162461bcd60e51b8152602060048083019190915260248201526357543a3360e01b604482015290519081900360640190fd5b6001600160a01b038516600090815260d160205260408120546117b29061271090610e4d906117ab908390612f0f565b8a90612d95565b60c9549091506001600160a01b031663f4e6ae326117ce612c91565b60ca5484908a906001600160a01b03166117e88d84612f0f565b6040518663ffffffff1660e01b815260040180866001600160a01b03168152602001858152602001846001600160a01b03168152602001836001600160a01b0316815260200182815260200195505050505050600060405180830381600087803b15801561185557600080fd5b505af1158015611869573d6000803e3d6000fd5b505060c95460408051638385310960e01b81526001600160a01b038881166004830152915160009550919092169250638385310991602480820192602092909190829003018186803b1580156118be57600080fd5b505afa1580156118d2573d6000803e3d6000fd5b505050506040513d60208110156118e857600080fd5b505190506001600160a01b03841663f5298aca611903612c91565b85846040518463ffffffff1660e01b815260040180846001600160a01b031681526020018381526020018281526020019350505050600060405180830381600087803b15801561195257600080fd5b505af1158015611966573d6000803e3d6000fd5b505060d3546040805163626c66cb60e01b81526001600160a01b038c81166004830152915191909216935063626c66cb92506024808301926020929190829003018186803b1580156119b757600080fd5b505afa1580156119cb573d6000803e3d6000fd5b505050506040513d60208110156119e157600080fd5b505115611a945760d354604080516358deb88960e01b815281516000936001600160a01b0316926358deb8899260048082019391829003018186803b158015611a2957600080fd5b505afa158015611a3d573d6000803e3d6000fd5b505050506040513d6040811015611a5357600080fd5b5051905080611a92576040805162461bcd60e51b8152602060048083019190915260248201526315d50e8d60e21b604482015290519081900360640190fd5b505b836001600160a01b0316611aa6612c91565b6001600160a01b03167f422dc9e6f41f87353df15c9b9b95fd2419876ddcd727afca7743bd4d1ea01f6e85876001600160a01b03166370a08231611ae8612c91565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b2557600080fd5b505afa158015611b39573d6000803e3d6000fd5b505050506040513d6020811015611b4f57600080fd5b50516040805192835260208301919091528051918290030190a350506001609755505050505050565b60cf6020526000908152604090205481565b60cc5481565b611b98612c91565b6001600160a01b0316611ba9612430565b6001600160a01b031614611bf2576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b03808716600090815260cb602052604090205487911680611c54576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b6001600160a01b038816611c97576040805162461bcd60e51b81526020600482015260056024820152645353493a3160d81b604482015290519081900360640190fd5b6001600160a01b038816600090815260cd60205260409020879055848610611cee576040805162461bcd60e51b815260206004820152600560248201526429a9a49d1960d91b604482015290519081900360640190fd5b50506001600160a01b03909516600090815260ce602090815260408083209590955560cf81528482209390935560d083528381209190915560d1909152209190915550565b611d3b612c91565b6001600160a01b0316611d4c612430565b6001600160a01b031614611d95576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b038416611dd6576040805162461bcd60e51b8152602060048201526003602482015262533a3160e81b604482015290519081900360640190fd5b6001600160a01b038316611e17576040805162461bcd60e51b8152602060048201526003602482015262299d1960e91b604482015290519081900360640190fd5b6001600160a01b038216611e58576040805162461bcd60e51b8152602060048201526003602482015262533a3360e81b604482015290519081900360640190fd5b6001600160a01b038116611e99576040805162461bcd60e51b815260206004820152600360248201526214ce8d60ea1b604482015290519081900360640190fd5b60d280546001600160a01b039586166001600160a01b03199182161790915560c980549486169482169490941790935560ca80549285169284169290921790915560d38054919093169116179055565b611ef1612c91565b6001600160a01b0316611f02612430565b6001600160a01b031614611f4b576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b611f53612369565b15611f98576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6108f9612f6c565b60026097541415611fe6576040805162461bcd60e51b815260206004820152601f6024820152600080516020613c52833981519152604482015290519081900360640190fd5b6002609755611ff3612369565b15612038576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001600160a01b03808216600090815260cb60205260409020548291168061209a576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b6001600160a01b038316600090815260ce602052604090205484108015906120da57506001600160a01b038316600090815260cf60205260409020548411155b612114576040805162461bcd60e51b8152602060048083019190915260248201526350553a3160e01b604482015290519081900360640190fd5b6001600160a01b03808416600081815260cb60209081526040918290205460c954835162d0331760e71b8152600481019590955292519085169489949316926368198b80926024808301939192829003018186803b15801561217557600080fd5b505afa158015612189573d6000803e3d6000fd5b505050506040513d602081101561219f57600080fd5b50516121db576040805162461bcd60e51b81526020600480830191909152602482015263282a9d1960e11b604482015290519081900360640190fd5b60c9546040805162d0331760e71b81526001600160a01b038881166004830152915161222c9392909216916368198b8091602480820192602092909190829003018186803b15801561169a57600080fd5b905080612269576040805162461bcd60e51b8152602060048083019190915260248201526350553a3360e01b604482015290519081900360640190fd5b816001600160a01b03166387c19009612280612c91565b6001600160a01b03808916600090815260d060205260408082205481516001600160e01b031960e088901b168152949093166004850152602484018790526044840192909252905160648084019382900301818387803b1580156122e357600080fd5b505af11580156122f7573d6000803e3d6000fd5b50505050816001600160a01b031661230d612c91565b6001600160a01b03167f200de5d70cb7c9ffe693f6174b7dca1b3738a251565a7623f438c11a4b007bd2836040518082815260200191505060405180910390a35050600160975550505050565b60d3546001600160a01b031681565b60655460ff1690565b61237a612c91565b6001600160a01b031661238b612430565b6001600160a01b0316146123d4576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b60cd6020526000908152604090205481565b6033546001600160a01b031690565b60d46020526000908152604090205481565b60ce6020526000908152604090205481565b600060cc54825111156124a6576040805162461bcd60e51b8152602060048201526006602482015265535246503a3160d01b604482015290519081900360640190fd5b6000805b835181101561267e5760008482815181106124c157fe5b6020908102919091018101516001600160a01b03808216600090815260cb9093526040909220549092501680612527576040805162461bcd60e51b815260206004820152600660248201526529a923281d1960d11b604482015290519081900360640190fd5b60c9546000906001600160a01b031663231c336e612543612c91565b846040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561259157600080fd5b505afa1580156125a5573d6000803e3d6000fd5b505050506040513d60208110156125bb57600080fd5b505160c9549091506000906001600160a01b0316630402d2256125dc612c91565b856040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561262a57600080fd5b505afa15801561263e573d6000803e3d6000fd5b505050506040513d602081101561265457600080fd5b5051905061266c816126668885612eb5565b90612eb5565b955050600190930192506124aa915050565b5092915050565b60d56020526000908152604090205481565b60cb602052600090815260409020546001600160a01b031681565b60ca546001600160a01b031681565b6126c9612c91565b6001600160a01b03166126da612430565b6001600160a01b031614612723576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b03808416600090815260cb602052604090205484911680612785576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca0b63637bbb2b22a37b5b2b760811b604482015290519081900360640190fd5b50506001600160a01b03909216600090815260d4602090815260408083209390935560d590522055565b60d2546001600160a01b031681565b6127c6612c91565b6001600160a01b03166127d7612430565b6001600160a01b031614612820576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b038216612867576040805162461bcd60e51b81526020600482015260096024820152685354544c50544d3a3160b81b604482015290519081900360640190fd5b6001600160a01b03918216600090815260cb6020526040902080546001600160a01b03191691909216179055565b60d2546000906001600160a01b0316632a1450ea306128b2612c91565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156128ff57600080fd5b505afa158015612913573d6000803e3d6000fd5b505050506040513d602081101561292957600080fd5b5051806129555750612939612430565b6001600160a01b031661294a612c91565b6001600160a01b0316145b612996576040805162461bcd60e51b815260206004820152600d60248201526c30b63637bbb2b221b0b63632b960991b604482015290519081900360640190fd5b61299e612369565b156129e3576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60026097541415612a29576040805162461bcd60e51b815260206004820152601f6024820152600080516020613c52833981519152604482015290519081900360640190fd5b60026097556000612a3b858585612fef565b600160975595945050505050565b612a51612c91565b6001600160a01b0316612a62612430565b6001600160a01b031614612aab576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b60cc55565b60d06020526000908152604090205481565b612aca612c91565b6001600160a01b0316612adb612430565b6001600160a01b031614612b24576040805162461bcd60e51b81526020600482018190526024820152600080516020613d0d833981519152604482015290519081900360640190fd5b6001600160a01b038116612b695760405162461bcd60e51b8152600401808060200182810382526026815260200180613c726026913960400191505060405180910390fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff1680612bde5750612bde6134b9565b80612bec575060005460ff16155b612c275760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015612c52576000805460ff1961ff0019909116610100171660011790555b612c5a6134ca565b612c62613567565b612c6a613604565b8015612c7c576000805461ff00191690555b50565b60d16020526000908152604090205481565b3390565b612c9d612369565b612ce5576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612d18612c91565b604080516001600160a01b039092168252519081900360200190a1565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612d8f908590613699565b50505050565b600082612da457506000612df1565b82820282848281612db157fe5b0414612dee5760405162461bcd60e51b8152600401808060200182810382526021815260200180613cec6021913960400191505060405180910390fd5b90505b92915050565b6000808211612e4d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612e5657fe5b049392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612eb0908490613699565b505050565b600082820183811015612dee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115612f66576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b612f74612369565b15612fb9576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d18612c91565b60006001600160a01b038316613036576040805162461bcd60e51b81526020600482015260076024820152665f555246503a3160c81b604482015290519081900360640190fd5b60cc5482511115613078576040805162461bcd60e51b81526020600482015260076024820152662faaa923281d1960c91b604482015290519081900360640190fd5b6000805b83518110156134ae57600084828151811061309357fe5b6020908102919091018101516001600160a01b03808216600090815260cb90935260409092205490925016806130fa576040805162461bcd60e51b81526020600482015260076024820152665f555246503a3360c81b604482015290519081900360640190fd5b806001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561314757600080fd5b505afa15801561315b573d6000803e3d6000fd5b505050506040513d602081101561317157600080fd5b50511561324d5760c9546040805163411c050960e11b81526001600160a01b038481166004830152915191909216916382380a1291602480830192600092919082900301818387803b1580156131c657600080fd5b505af11580156131da573d6000803e3d6000fd5b505060c95460408051630d21df2360e41b81526001600160a01b038d811660048301528681166024830152915191909216935063d21df2309250604480830192600092919082900301818387803b15801561323457600080fd5b505af1158015613248573d6000803e3d6000fd5b505050505b60c95460408051639e9df5d760e01b81526001600160a01b038b8116600483015284811660248301528a8116604483015291516000939290921691639e9df5d79160648082019260209290919082900301818787803b1580156132af57600080fd5b505af11580156132c3573d6000803e3d6000fd5b505050506040513d60208110156132d957600080fd5b505190506132e78582612eb5565b9450816001600160a01b03166370a082318a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561333657600080fd5b505afa15801561334a573d6000803e3d6000fd5b505050506040513d602081101561336057600080fd5b5051156134585760c95460408051638385310960e01b81526001600160a01b03858116600483015291516000939290921691638385310991602480820192602092909190829003018186803b1580156133b857600080fd5b505afa1580156133cc573d6000803e3d6000fd5b505050506040513d60208110156133e257600080fd5b505160408051630ab714fb60e11b81526001600160a01b038d8116600483015260006024830181905260448301859052925193945086169263156e29f69260648084019391929182900301818387803b15801561343e57600080fd5b505af1158015613452573d6000803e3d6000fd5b50505050505b826001600160a01b0316896001600160a01b03167ffd23f4e95e7c61bcc50c97b29c0573e8ea5176be3f3ce3282fe8fb122e967767836040518082815260200191505060405180910390a350505060010161307c565b5090505b9392505050565b60006134c43061374a565b15905090565b600054610100900460ff16806134e357506134e36134b9565b806134f1575060005460ff16155b61352c5760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015613557576000805460ff1961ff0019909116610100171660011790555b61355f613750565b612c6a6137f0565b600054610100900460ff168061358057506135806134b9565b8061358e575060005460ff16155b6135c95760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff161580156135f4576000805460ff1961ff0019909116610100171660011790555b6135fc613750565b612c6a6138e9565b600054610100900460ff168061361d575061361d6134b9565b8061362b575060005460ff16155b6136665760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015613691576000805460ff1961ff0019909116610100171660011790555b612c6a613994565b60606136ee826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613a3a9092919063ffffffff16565b805190915015612eb05780806020019051602081101561370d57600080fd5b5051612eb05760405162461bcd60e51b815260040180806020018281038252602a815260200180613d2d602a913960400191505060405180910390fd5b3b151590565b600054610100900460ff168061376957506137696134b9565b80613777575060005460ff16155b6137b25760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015612c6a576000805460ff1961ff0019909116610100171660011790558015612c7c576000805461ff001916905550565b600054610100900460ff168061380957506138096134b9565b80613817575060005460ff16155b6138525760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff1615801561387d576000805460ff1961ff0019909116610100171660011790555b6000613887612c91565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015612c7c576000805461ff001916905550565b600054610100900460ff168061390257506139026134b9565b80613910575060005460ff16155b61394b5760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015613976576000805460ff1961ff0019909116610100171660011790555b6065805460ff191690558015612c7c576000805461ff001916905550565b600054610100900460ff16806139ad57506139ad6134b9565b806139bb575060005460ff16155b6139f65760405162461bcd60e51b815260040180806020018281038252602e815260200180613cbe602e913960400191505060405180910390fd5b600054610100900460ff16158015613a21576000805460ff1961ff0019909116610100171660011790555b60016097558015612c7c576000805461ff001916905550565b6060613a498484600085613a51565b949350505050565b606082471015613a925760405162461bcd60e51b8152600401808060200182810382526026815260200180613c986026913960400191505060405180910390fd5b613a9b8561374a565b613aec576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310613b2b5780518252601f199092019160209182019101613b0c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613b8d576040519150601f19603f3d011682016040523d82523d6000602084013e613b92565b606091505b5091509150613ba2828286613bad565b979650505050505050565b60608315613bbc5750816134b2565b825115613bcc5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613c16578181015183820152602001613bfe565b50505050905090810190601f168015613c435780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212207c47b3b029219515261e6e514fb020217b363e176cafb39074bb61e2d7fa033b64736f6c63430007030033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.