Source Code
Overview
GLMR Balance
GLMR Value
$0.00Latest 25 from a total of 756 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Swap From Base | 2584936 | 1134 days ago | IN | 0 GLMR | 0.03754718 | ||||
| Swap To Base | 2309064 | 1173 days ago | IN | 0 GLMR | 0.02873444 | ||||
| Swap To Base | 2308988 | 1173 days ago | IN | 0 GLMR | 0.02873251 | ||||
| Swap From Base | 1669740 | 1264 days ago | IN | 0 GLMR | 0.03475755 | ||||
| Swap From Base | 1650996 | 1267 days ago | IN | 0 GLMR | 0.0958599 | ||||
| Add Liquidity | 1382345 | 1306 days ago | IN | 0 GLMR | 0.03845023 | ||||
| Swap From Base | 1276512 | 1322 days ago | IN | 0 GLMR | 0.03393551 | ||||
| Swap From Base | 1253037 | 1325 days ago | IN | 0 GLMR | 0.03537873 | ||||
| Swap From Base | 1214076 | 1331 days ago | IN | 0 GLMR | 0.03538066 | ||||
| Swap From Base | 1208687 | 1332 days ago | IN | 0 GLMR | 0.03561462 | ||||
| Swap From Base | 1206722 | 1332 days ago | IN | 0 GLMR | 0.03537873 | ||||
| Swap From Base | 1205052 | 1333 days ago | IN | 0 GLMR | 0.0356136 | ||||
| Swap From Base | 1202432 | 1333 days ago | IN | 0 GLMR | 0.03561462 | ||||
| Swap From Base | 1202402 | 1333 days ago | IN | 0 GLMR | 0.03555139 | ||||
| Swap From Base | 1198890 | 1333 days ago | IN | 0 GLMR | 0.03555331 | ||||
| Swap From Base | 1197593 | 1334 days ago | IN | 0 GLMR | 0.03555331 | ||||
| Swap From Base | 1197522 | 1334 days ago | IN | 0 GLMR | 0.03555139 | ||||
| Swap From Base | 1195519 | 1334 days ago | IN | 0 GLMR | 0.03561462 | ||||
| Swap From Base | 1195476 | 1334 days ago | IN | 0 GLMR | 0.03555139 | ||||
| Swap From Base | 1191020 | 1335 days ago | IN | 0 GLMR | 0.03475948 | ||||
| Swap From Base | 1190701 | 1335 days ago | IN | 0 GLMR | 0.03537873 | ||||
| Swap From Base | 1189904 | 1335 days ago | IN | 0 GLMR | 0.03538066 | ||||
| Swap From Base | 1188220 | 1335 days ago | IN | 0 GLMR | 0.03555139 | ||||
| Swap From Base | 1187831 | 1335 days ago | IN | 0 GLMR | 0.03555331 | ||||
| Swap From Base | 1185655 | 1335 days ago | IN | 0 GLMR | 0.03538066 |
View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x2a24f3bC...B8BD17d79 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
StableSwapRouter
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "../interfaces/IStableSwap.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract StableSwapRouter {
using SafeERC20 for IERC20;
function convert(
IStableSwap fromPool,
IStableSwap toPool,
uint256 amount,
uint256 minToMint,
uint256 deadline
) external returns (uint256) {
uint256 fromPoolLength = fromPool.getNumberOfTokens();
uint256 toPoolLength = toPool.getNumberOfTokens();
require(address(fromPool) != address(toPool), "fromPool = toPool");
require(fromPoolLength == toPoolLength, "poolTokensLengthMissmatch");
IERC20 fromToken = fromPool.getLpToken();
IERC20 toToken = toPool.getLpToken();
uint256[] memory min_amounts = new uint256[](fromPoolLength);
// validate token
for (uint8 i = 0; i < fromPoolLength; i++) {
IERC20 coin = fromPool.getToken(i);
toPool.getTokenIndex(address(coin));
}
fromToken.transferFrom(msg.sender, address(this), amount);
fromToken.safeIncreaseAllowance(address(fromPool), amount);
fromPool.removeLiquidity(amount, min_amounts, deadline);
uint256[] memory meta_amounts = new uint256[](toPoolLength);
for (uint8 i = 0; i < toPoolLength; i++) {
IERC20 coin = toPool.getToken(i);
uint256 addBalance = coin.balanceOf(address(this));
coin.safeIncreaseAllowance(address(toPool), addBalance);
meta_amounts[i] = addBalance;
}
toPool.addLiquidity(meta_amounts, minToMint, deadline);
uint256 lpAmount = toToken.balanceOf(address(this));
toToken.transfer(msg.sender, lpAmount);
return lpAmount;
}
function addLiquidity(
IStableSwap pool,
IStableSwap basePool,
uint256[] memory meta_amounts,
uint256[] memory base_amounts,
uint256 minToMint,
uint256 deadline
) external returns (uint256) {
IERC20 token = IERC20(pool.getLpToken());
IERC20 base_lp = IERC20(basePool.getLpToken());
require(base_amounts.length == basePool.getNumberOfTokens(), "invalidBaseAmountsLength");
require(meta_amounts.length == pool.getNumberOfTokens(), "invalidMetaAmountsLength");
bool deposit_base = false;
for (uint8 i = 0; i < base_amounts.length; i++) {
uint256 amount = base_amounts[i];
if (amount > 0) {
deposit_base = true;
IERC20 coin = basePool.getToken(i);
uint256 transferred = transferIn(coin, msg.sender, amount);
coin.safeIncreaseAllowance(address(basePool), transferred);
base_amounts[i] = transferred;
}
}
uint256 base_lp_received;
if (deposit_base) {
base_lp_received = basePool.addLiquidity(base_amounts, 0, deadline);
}
for (uint8 i = 0; i < meta_amounts.length; i++) {
IERC20 coin = pool.getToken(i);
uint256 transferred;
if (address(coin) == address(base_lp)) {
transferred = base_lp_received;
} else if (meta_amounts[i] > 0) {
transferred = transferIn(coin, msg.sender, meta_amounts[i]);
}
meta_amounts[i] = transferred;
if (transferred > 0) {
coin.safeIncreaseAllowance(address(pool), transferred);
}
}
uint256 base_lp_prior = base_lp.balanceOf(address(this));
pool.addLiquidity(meta_amounts, minToMint, deadline);
if (deposit_base) {
require((base_lp.balanceOf(address(this)) + base_lp_received) == base_lp_prior, "invalidBasePool");
}
uint256 lpAmount = token.balanceOf(address(this));
token.transfer(msg.sender, lpAmount);
return lpAmount;
}
function removeLiquidity(
IStableSwap pool,
IStableSwap basePool,
uint256 _amount,
uint256[] calldata min_amounts_meta,
uint256[] calldata min_amounts_base,
uint256 deadline
) external returns (uint256[] memory amounts, uint256[] memory base_amounts) {
IERC20 token = pool.getLpToken();
IERC20 baseToken = basePool.getLpToken();
token.transferFrom(msg.sender, address(this), _amount);
token.safeIncreaseAllowance(address(pool), _amount);
pool.removeLiquidity(_amount, min_amounts_meta, deadline);
uint256 _base_amount = baseToken.balanceOf(address(this));
baseToken.safeIncreaseAllowance(address(basePool), _base_amount);
basePool.removeLiquidity(_base_amount, min_amounts_base, deadline);
// Transfer all coins out
amounts = new uint256[](pool.getNumberOfTokens());
for (uint8 i = 0; i < pool.getNumberOfTokens(); i++) {
IERC20 coin = pool.getToken(i);
amounts[i] = coin.balanceOf(address(this));
if (amounts[i] > 0) {
coin.safeTransfer(msg.sender, amounts[i]);
}
}
base_amounts = new uint256[](basePool.getNumberOfTokens());
for (uint8 i = 0; i < basePool.getNumberOfTokens(); i++) {
IERC20 coin = basePool.getToken(i);
base_amounts[i] = coin.balanceOf(address(this));
if (base_amounts[i] > 0) {
coin.safeTransfer(msg.sender, base_amounts[i]);
}
}
}
function removeBaseLiquidityOneToken(
IStableSwap pool,
IStableSwap basePool,
uint256 _token_amount,
uint8 i,
uint256 _min_amount,
uint256 deadline
) external returns (uint256) {
IERC20 token = pool.getLpToken();
IERC20 baseToken = basePool.getLpToken();
uint8 baseTokenIndex = pool.getTokenIndex(address(baseToken));
token.transferFrom(msg.sender, address(this), _token_amount);
token.approve(address(pool), _token_amount);
pool.removeLiquidityOneToken(_token_amount, baseTokenIndex, 0, deadline);
uint256 _base_amount = baseToken.balanceOf(address(this));
baseToken.approve(address(basePool), _base_amount);
basePool.removeLiquidityOneToken(_base_amount, i, _min_amount, deadline);
IERC20 coin = basePool.getToken(i);
uint256 coin_amount = coin.balanceOf(address(this));
coin.safeTransfer(msg.sender, coin_amount);
return coin_amount;
}
function swapFromBase(
IStableSwap pool,
IStableSwap basePool,
uint8 tokenIndexFrom,
uint8 tokenIndexTo,
uint256 dx,
uint256 minDy,
uint256 deadline
) external returns (uint256) {
IERC20 baseToken = basePool.getLpToken();
uint8 baseTokenIndex = pool.getTokenIndex(address(baseToken));
uint256[] memory base_amounts = new uint256[](basePool.getNumberOfTokens());
base_amounts[tokenIndexFrom] = dx;
IERC20 coin = basePool.getToken(tokenIndexFrom);
coin.safeTransferFrom(msg.sender, address(this), dx);
coin.safeIncreaseAllowance(address(basePool), dx);
uint256 baseLpAmount = basePool.addLiquidity(base_amounts, 0, deadline);
if (baseTokenIndex != tokenIndexTo) {
baseToken.safeIncreaseAllowance(address(pool), baseLpAmount);
pool.swap(baseTokenIndex, tokenIndexTo, baseLpAmount, minDy, deadline);
}
IERC20 coinTo = pool.getToken(tokenIndexTo);
uint256 amountOut = coinTo.balanceOf(address(this));
coinTo.safeTransfer(msg.sender, amountOut);
return amountOut;
}
function swapToBase(
IStableSwap pool,
IStableSwap basePool,
uint8 tokenIndexFrom,
uint8 tokenIndexTo,
uint256 dx,
uint256 minDy,
uint256 deadline
) external returns (uint256) {
IERC20 baseToken = basePool.getLpToken();
uint8 baseTokenIndex = pool.getTokenIndex(address(baseToken));
IERC20 coin = pool.getToken(tokenIndexFrom);
coin.safeTransferFrom(msg.sender, address(this), dx);
uint256 tokenLPAmount = dx;
if (baseTokenIndex != tokenIndexFrom) {
coin.safeIncreaseAllowance(address(pool), dx);
tokenLPAmount = pool.swap(tokenIndexFrom, baseTokenIndex, dx, 0, deadline);
}
baseToken.safeIncreaseAllowance(address(basePool), tokenLPAmount);
basePool.removeLiquidityOneToken(tokenLPAmount, tokenIndexTo, minDy, deadline);
IERC20 coinTo = basePool.getToken(tokenIndexTo);
uint256 amountOut = coinTo.balanceOf(address(this));
coinTo.safeTransfer(msg.sender, amountOut);
return amountOut;
}
// =========== VIEW ===========
function calculateConvert(
IStableSwap fromPool,
IStableSwap toPool,
uint256 amount
) external view returns (uint256) {
uint256 fromPoolLength = fromPool.getNumberOfTokens();
uint256[] memory amounts = fromPool.calculateRemoveLiquidity(amount);
uint256[] memory meta_amounts = new uint256[](fromPoolLength);
for (uint8 i = 0; i < fromPoolLength; i++) {
IERC20 fromCoin = fromPool.getToken(i);
uint256 toCoinIndex = toPool.getTokenIndex(address(fromCoin));
meta_amounts[toCoinIndex] = amounts[i];
}
return toPool.calculateTokenAmount(meta_amounts, true);
}
function calculateTokenAmount(
IStableSwap pool,
IStableSwap basePool,
uint256[] memory meta_amounts,
uint256[] memory base_amounts,
bool is_deposit
) external view returns (uint256) {
IERC20 baseToken = basePool.getLpToken();
uint8 baseTokenIndex = pool.getTokenIndex(address(baseToken));
uint256 _base_tokens = basePool.calculateTokenAmount(base_amounts, is_deposit);
meta_amounts[baseTokenIndex] = meta_amounts[baseTokenIndex] + _base_tokens;
return pool.calculateTokenAmount(meta_amounts, is_deposit);
}
function calculateRemoveLiquidity(
IStableSwap pool,
IStableSwap basePool,
uint256 amount
) external view returns (uint256[] memory meta_amounts, uint256[] memory base_amounts) {
IERC20 baseToken = basePool.getLpToken();
uint8 baseTokenIndex = pool.getTokenIndex(address(baseToken));
meta_amounts = pool.calculateRemoveLiquidity(amount);
uint256 lpAmount = meta_amounts[baseTokenIndex];
meta_amounts[baseTokenIndex] = 0;
base_amounts = basePool.calculateRemoveLiquidity(lpAmount);
}
function calculateRemoveBaseLiquidityOneToken(
IStableSwap pool,
IStableSwap basePool,
uint256 _token_amount,
uint8 iBase
) external view returns (uint256 availableTokenAmount) {
IERC20 baseToken = basePool.getLpToken();
uint8 baseTokenIndex = pool.getTokenIndex(address(baseToken));
uint256 _base_tokens = pool.calculateRemoveLiquidityOneToken(_token_amount, baseTokenIndex);
availableTokenAmount = basePool.calculateRemoveLiquidityOneToken(_base_tokens, iBase);
}
function calculateSwapFromBase(
IStableSwap pool,
IStableSwap basePool,
uint8 tokenIndexFrom,
uint8 tokenIndexTo,
uint256 dx
) external view returns (uint256) {
IERC20 baseToken = basePool.getLpToken();
uint8 baseTokenIndex = pool.getTokenIndex(address(baseToken));
uint256[] memory base_amounts = new uint256[](basePool.getNumberOfTokens());
base_amounts[tokenIndexFrom] = dx;
uint256 baseLpAmount = basePool.calculateTokenAmount(base_amounts, true);
if (baseTokenIndex == tokenIndexTo) {
return baseLpAmount;
}
return pool.calculateSwap(baseTokenIndex, tokenIndexTo, baseLpAmount);
}
function calculateSwapToBase(
IStableSwap pool,
IStableSwap basePool,
uint8 tokenIndexFrom,
uint8 tokenIndexTo,
uint256 dx
) external view returns (uint256) {
IERC20 baseToken = basePool.getLpToken();
uint8 baseTokenIndex = pool.getTokenIndex(address(baseToken));
uint256 tokenLPAmount = dx;
if (baseTokenIndex != tokenIndexFrom) {
tokenLPAmount = pool.calculateSwap(tokenIndexFrom, baseTokenIndex, dx);
}
return basePool.calculateRemoveLiquidityOneToken(tokenLPAmount, tokenIndexTo);
}
function transferIn(
IERC20 token,
address from,
uint256 amount
) internal returns (uint256 transferred) {
uint256 prior_balance = token.balanceOf(address(this));
token.safeTransferFrom(from, address(this), amount);
transferred = token.balanceOf(address(this)) - prior_balance;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IStableSwap {
/// EVENTS
event AddLiquidity(
address indexed provider,
uint256[] tokenAmounts,
uint256[] fees,
uint256 invariant,
uint256 tokenSupply
);
event TokenExchange(
address indexed buyer,
uint256 soldId,
uint256 tokensSold,
uint256 boughtId,
uint256 tokensBought
);
event RemoveLiquidity(address indexed provider, uint256[] tokenAmounts, uint256[] fees, uint256 tokenSupply);
event RemoveLiquidityOne(address indexed provider, uint256 tokenIndex, uint256 tokenAmount, uint256 coinAmount);
event RemoveLiquidityImbalance(
address indexed provider,
uint256[] tokenAmounts,
uint256[] fees,
uint256 invariant,
uint256 tokenSupply
);
event RampA(uint256 oldA, uint256 newA, uint256 initialTime, uint256 futureTime);
event StopRampA(uint256 A, uint256 timestamp);
event NewFee(uint256 fee, uint256 adminFee);
event CollectProtocolFee(address token, uint256 amount);
event FeeControllerChanged(address newController);
event FeeDistributorChanged(address newController);
// pool data view functions
function getLpToken() external view returns (IERC20 lpToken);
function getA() external view returns (uint256);
function getAPrecise() external view returns (uint256);
function getToken(uint8 index) external view returns (IERC20);
function getTokens() external view returns (IERC20[] memory);
function getTokenIndex(address tokenAddress) external view returns (uint8);
function getTokenBalance(uint8 index) external view returns (uint256);
function getTokenBalances() external view returns (uint256[] memory);
function getNumberOfTokens() external view returns (uint256);
function getVirtualPrice() external view returns (uint256);
function calculateTokenAmount(uint256[] calldata amounts, bool deposit) external view returns (uint256);
function calculateSwap(
uint8 tokenIndexFrom,
uint8 tokenIndexTo,
uint256 dx
) external view returns (uint256);
function calculateRemoveLiquidity(uint256 amount) external view returns (uint256[] memory);
function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex)
external
view
returns (uint256 availableTokenAmount);
function getAdminBalances() external view returns (uint256[] memory adminBalances);
function getAdminBalance(uint8 index) external view returns (uint256);
// state modifying functions
function swap(
uint8 tokenIndexFrom,
uint8 tokenIndexTo,
uint256 dx,
uint256 minDy,
uint256 deadline
) external returns (uint256);
function addLiquidity(
uint256[] calldata amounts,
uint256 minToMint,
uint256 deadline
) external returns (uint256);
function removeLiquidity(
uint256 amount,
uint256[] calldata minAmounts,
uint256 deadline
) external returns (uint256[] memory);
function removeLiquidityOneToken(
uint256 tokenAmount,
uint8 tokenIndex,
uint256 minAmount,
uint256 deadline
) external returns (uint256);
function removeLiquidityImbalance(
uint256[] calldata amounts,
uint256 maxBurnAmount,
uint256 deadline
) external returns (uint256);
function withdrawAdminFee() external;
}{
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint256[]","name":"meta_amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"base_amounts","type":"uint256[]"},{"internalType":"uint256","name":"minToMint","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"fromPool","type":"address"},{"internalType":"contract IStableSwap","name":"toPool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateConvert","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint256","name":"_token_amount","type":"uint256"},{"internalType":"uint8","name":"iBase","type":"uint8"}],"name":"calculateRemoveBaseLiquidityOneToken","outputs":[{"internalType":"uint256","name":"availableTokenAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateRemoveLiquidity","outputs":[{"internalType":"uint256[]","name":"meta_amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"base_amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint8","name":"tokenIndexFrom","type":"uint8"},{"internalType":"uint8","name":"tokenIndexTo","type":"uint8"},{"internalType":"uint256","name":"dx","type":"uint256"}],"name":"calculateSwapFromBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint8","name":"tokenIndexFrom","type":"uint8"},{"internalType":"uint8","name":"tokenIndexTo","type":"uint8"},{"internalType":"uint256","name":"dx","type":"uint256"}],"name":"calculateSwapToBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint256[]","name":"meta_amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"base_amounts","type":"uint256[]"},{"internalType":"bool","name":"is_deposit","type":"bool"}],"name":"calculateTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"fromPool","type":"address"},{"internalType":"contract IStableSwap","name":"toPool","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minToMint","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"convert","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint256","name":"_token_amount","type":"uint256"},{"internalType":"uint8","name":"i","type":"uint8"},{"internalType":"uint256","name":"_min_amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeBaseLiquidityOneToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256[]","name":"min_amounts_meta","type":"uint256[]"},{"internalType":"uint256[]","name":"min_amounts_base","type":"uint256[]"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"base_amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint8","name":"tokenIndexFrom","type":"uint8"},{"internalType":"uint8","name":"tokenIndexTo","type":"uint8"},{"internalType":"uint256","name":"dx","type":"uint256"},{"internalType":"uint256","name":"minDy","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapFromBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStableSwap","name":"pool","type":"address"},{"internalType":"contract IStableSwap","name":"basePool","type":"address"},{"internalType":"uint8","name":"tokenIndexFrom","type":"uint8"},{"internalType":"uint8","name":"tokenIndexTo","type":"uint8"},{"internalType":"uint256","name":"dx","type":"uint256"},{"internalType":"uint256","name":"minDy","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapToBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x608060405234801561001057600080fd5b50614656806100206000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063643abb8611610071578063643abb861461015057806377269e291461016357806379701821146101765780638a311c5714610189578063998cae471461019c578063ff969322146101af57600080fd5b80630c8b2216146100b95780630d6307eb146100e357806324a5bf21146101045780633214b8c91461011757806338c789731461012a57806354681c411461013d575b600080fd5b6100cc6100c736600461406f565b6101c2565b6040516100da9291906143de565b60405180910390f35b6100f66100f1366004613fd8565b610420565b6040519081526020016100da565b6100cc6101123660046140af565b610ca4565b6100f6610125366004614257565b6115ad565b6100f66101383660046142ba565b6117cd565b6100f661014b3660046141a1565b611cc0565b6100f661015e36600461406f565b611eca565b6100f6610171366004613f3e565b61221d565b6100f6610184366004614151565b612426565b6100f6610197366004614257565b612c2e565b6100f66101aa3660046141f3565b612f4a565b6100f66101bd3660046142ba565b6134ff565b6060806000846001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561020057600080fd5b505afa158015610214573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102389190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918816906366c0bd249060240160206040518083038186803b15801561027f57600080fd5b505afa158015610293573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b79190614348565b60405163797d695b60e11b8152600481018790529091506001600160a01b0388169063f2fad2b69060240160006040518083038186803b1580156102fa57600080fd5b505afa15801561030e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103369190810190613e74565b93506000848260ff168151811061035d57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858360ff168151811061038c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260405163797d695b60e11b8152600481018290526001600160a01b0388169063f2fad2b69060240160006040518083038186803b1580156103d757600080fd5b505afa1580156103eb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104139190810190613e74565b9350505050935093915050565b600080876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561045c57600080fd5b505afa158015610470573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104949190613f22565b90506000876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b1580156104d157600080fd5b505afa1580156104e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105099190613f22565b9050876001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561054457600080fd5b505afa158015610558573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057c9190614330565b8651146105d05760405162461bcd60e51b815260206004820152601860248201527f696e76616c696442617365416d6f756e74734c656e677468000000000000000060448201526064015b60405180910390fd5b886001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561060957600080fd5b505afa15801561061d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106419190614330565b8751146106905760405162461bcd60e51b815260206004820152601860248201527f696e76616c69644d657461416d6f756e74734c656e677468000000000000000060448201526064016105c7565b6000805b87518160ff1610156107c3576000888260ff16815181106106c557634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008111156107b05760405162415c3360e91b815260ff83166004820152600193506000906001600160a01b038d16906382b866009060240160206040518083038186803b15801561072057600080fd5b505afa158015610734573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107589190613f22565b9050600061076782338561390c565b905061077d6001600160a01b0383168e83613a22565b808b8560ff16815181106107a157634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050505b50806107bb8161459f565b915050610694565b506000811561085257604051634d49e87d60e01b81526001600160a01b038b1690634d49e87d906107fd908b906000908b90600401614427565b602060405180830381600087803b15801561081757600080fd5b505af115801561082b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084f9190614330565b90505b60005b89518160ff1610156109cb5760405162415c3360e91b815260ff821660048201526000906001600160a01b038e16906382b866009060240160206040518083038186803b1580156108a557600080fd5b505afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd9190613f22565b90506000856001600160a01b0316826001600160a01b0316141561090257508261096d565b60008c8460ff168151811061092757634e487b7160e01b600052603260045260246000fd5b6020026020010151111561096d5761096a82338e8660ff168151811061095d57634e487b7160e01b600052603260045260246000fd5b602002602001015161390c565b90505b808c8460ff168151811061099157634e487b7160e01b600052603260045260246000fd5b602090810291909101015280156109b6576109b66001600160a01b0383168f83613a22565b505080806109c39061459f565b915050610855565b506040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015610a0e57600080fd5b505afa158015610a22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a469190614330565b604051634d49e87d60e01b81529091506001600160a01b038d1690634d49e87d90610a79908d908c908c90600401614427565b602060405180830381600087803b158015610a9357600080fd5b505af1158015610aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acb9190614330565b508215610b96576040516370a0823160e01b8152306004820152819083906001600160a01b038716906370a082319060240160206040518083038186803b158015610b1557600080fd5b505afa158015610b29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4d9190614330565b610b579190614544565b14610b965760405162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a5910985cd9541bdbdb608a1b60448201526064016105c7565b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a082319060240160206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190614330565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0387169063a9059cbb90604401602060405180830381600087803b158015610c5b57600080fd5b505af1158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190613f06565b509c9b505050505050505050505050565b60608060008a6001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015610ce257600080fd5b505afa158015610cf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1a9190613f22565b905060008a6001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015610d5757600080fd5b505afa158015610d6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8f9190613f22565b6040516323b872dd60e01b81529091506001600160a01b038316906323b872dd90610dc290339030908f906004016143ba565b602060405180830381600087803b158015610ddc57600080fd5b505af1158015610df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e149190613f06565b50610e296001600160a01b0383168d8c613a22565b60405163031cd52b60e41b81526001600160a01b038d16906331cd52b090610e5b908d908d908d908b9060040161447f565b600060405180830381600087803b158015610e7557600080fd5b505af1158015610e89573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610eb19190810190613e74565b506040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610ef457600080fd5b505afa158015610f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2c9190614330565b9050610f426001600160a01b0383168d83613a22565b60405163031cd52b60e41b81526001600160a01b038d16906331cd52b090610f749084908c908c908c9060040161447f565b600060405180830381600087803b158015610f8e57600080fd5b505af1158015610fa2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fca9190810190613e74565b508c6001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561100457600080fd5b505afa158015611018573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103c9190614330565b6001600160401b0381111561106157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561108a578160200160208202803683370190505b50945060005b8d6001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b1580156110c957600080fd5b505afa1580156110dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111019190614330565b8160ff1610156112c95760008e6001600160a01b03166382b86600836040518263ffffffff1660e01b8152600401611142919060ff91909116815260200190565b60206040518083038186803b15801561115a57600080fd5b505afa15801561116e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111929190613f22565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a082319060240160206040518083038186803b1580156111d457600080fd5b505afa1580156111e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120c9190614330565b878360ff168151811061122f57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000878360ff168151811061126057634e487b7160e01b600052603260045260246000fd5b602002602001015111156112b6576112b633888460ff168151811061129557634e487b7160e01b600052603260045260246000fd5b6020026020010151836001600160a01b0316613b1c9092919063ffffffff16565b50806112c18161459f565b915050611090565b508b6001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561130357600080fd5b505afa158015611317573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133b9190614330565b6001600160401b0381111561136057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611389578160200160208202803683370190505b50935060005b8c6001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b1580156113c857600080fd5b505afa1580156113dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114009190614330565b8160ff16101561159c5760405162415c3360e91b815260ff821660048201526000906001600160a01b038f16906382b866009060240160206040518083038186803b15801561144e57600080fd5b505afa158015611462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114869190613f22565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a082319060240160206040518083038186803b1580156114c857600080fd5b505afa1580156114dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115009190614330565b868360ff168151811061152357634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000868360ff168151811061155457634e487b7160e01b600052603260045260246000fd5b602002602001015111156115895761158933878460ff168151811061129557634e487b7160e01b600052603260045260246000fd5b50806115948161459f565b91505061138f565b505050509850989650505050505050565b600080856001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b1580156115e957600080fd5b505afa1580156115fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116219190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918916906366c0bd249060240160206040518083038186803b15801561166857600080fd5b505afa15801561167c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a09190614348565b90508360ff8083169088161461173c5760405163a95b089f60e01b815260ff808916600483015283166024820152604481018690526001600160a01b038a169063a95b089f9060640160206040518083038186803b15801561170157600080fd5b505afa158015611715573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117399190614330565b90505b60405163342a87a160e01b81526004810182905260ff871660248201526001600160a01b0389169063342a87a1906044015b60206040518083038186803b15801561178657600080fd5b505afa15801561179a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117be9190614330565b93505050505b95945050505050565b600080876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561180957600080fd5b505afa15801561181d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118419190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918b16906366c0bd249060240160206040518083038186803b15801561188857600080fd5b505afa15801561189c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c09190614348565b90506000896001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b1580156118fd57600080fd5b505afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119359190614330565b6001600160401b0381111561195a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611983578160200160208202803683370190505b50905086818a60ff16815181106119aa57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260405162415c3360e91b815260ff8a1660048201526000906001600160a01b038c16906382b866009060240160206040518083038186803b1580156119f957600080fd5b505afa158015611a0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a319190613f22565b9050611a486001600160a01b03821633308b613b51565b611a5c6001600160a01b0382168c8a613a22565b604051634d49e87d60e01b81526000906001600160a01b038d1690634d49e87d90611a8f90869085908c90600401614427565b602060405180830381600087803b158015611aa957600080fd5b505af1158015611abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae19190614330565b90508960ff168460ff1614611b9f57611b046001600160a01b0386168e83613a22565b6040516348b4aac360e11b815260ff80861660048301528b1660248201526044810182905260648101899052608481018890526001600160a01b038e169063916955869060a401602060405180830381600087803b158015611b6557600080fd5b505af1158015611b79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9d9190614330565b505b60405162415c3360e91b815260ff8b1660048201526000906001600160a01b038f16906382b866009060240160206040518083038186803b158015611be357600080fd5b505afa158015611bf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1b9190613f22565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b158015611c6057600080fd5b505afa158015611c74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c989190614330565b9050611cae6001600160a01b0383163383613b1c565b9e9d5050505050505050505050505050565b600080846001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015611cfc57600080fd5b505afa158015611d10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d349190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918816906366c0bd249060240160206040518083038186803b158015611d7b57600080fd5b505afa158015611d8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db39190614348565b60405163342a87a160e01b81526004810187905260ff821660248201529091506000906001600160a01b0389169063342a87a19060440160206040518083038186803b158015611e0257600080fd5b505afa158015611e16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3a9190614330565b60405163342a87a160e01b81526004810182905260ff871660248201529091506001600160a01b0388169063342a87a19060440160206040518083038186803b158015611e8657600080fd5b505afa158015611e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebe9190614330565b98975050505050505050565b600080846001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b158015611f0657600080fd5b505afa158015611f1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3e9190614330565b60405163797d695b60e11b8152600481018590529091506000906001600160a01b0387169063f2fad2b69060240160006040518083038186803b158015611f8457600080fd5b505afa158015611f98573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fc09190810190613e74565b90506000826001600160401b03811115611fea57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612013578160200160208202803683370190505b50905060005b838160ff1610156121905760405162415c3360e91b815260ff821660048201526000906001600160a01b038a16906382b866009060240160206040518083038186803b15801561206857600080fd5b505afa15801561207c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a09190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918a16906366c0bd249060240160206040518083038186803b1580156120e757600080fd5b505afa1580156120fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211f9190614348565b60ff169050848360ff168151811061214757634e487b7160e01b600052603260045260246000fd5b602002602001015184828151811061216f57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050505080806121889061459f565b915050612019565b50604051637355940360e11b81526001600160a01b0387169063e6ab2806906121c0908490600190600401614403565b60206040518083038186803b1580156121d857600080fd5b505afa1580156121ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122109190614330565b93505050505b9392505050565b600080856001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561225957600080fd5b505afa15801561226d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122919190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918916906366c0bd249060240160206040518083038186803b1580156122d857600080fd5b505afa1580156122ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123109190614348565b90506000876001600160a01b031663e6ab280687876040518363ffffffff1660e01b8152600401612342929190614403565b60206040518083038186803b15801561235a57600080fd5b505afa15801561236e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123929190614330565b905080878360ff16815181106123b857634e487b7160e01b600052603260045260246000fd5b60200260200101516123ca9190614544565b878360ff16815181106123ed57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152604051637355940360e11b81526001600160a01b038a169063e6ab28069061176e908a908990600401614403565b600080866001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561246257600080fd5b505afa158015612476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249a9190614330565b90506000866001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b1580156124d757600080fd5b505afa1580156124eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250f9190614330565b9050866001600160a01b0316886001600160a01b031614156125675760405162461bcd60e51b8152602060048201526011602482015270199c9bdb541bdbdb080f481d1bd41bdbdb607a1b60448201526064016105c7565b8082146125b65760405162461bcd60e51b815260206004820152601960248201527f706f6f6c546f6b656e734c656e6774684d6973736d617463680000000000000060448201526064016105c7565b6000886001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b1580156125f157600080fd5b505afa158015612605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126299190613f22565b90506000886001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561266657600080fd5b505afa15801561267a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269e9190613f22565b90506000846001600160401b038111156126c857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156126f1578160200160208202803683370190505b50905060005b858160ff1610156128105760405162415c3360e91b815260ff821660048201526000906001600160a01b038e16906382b866009060240160206040518083038186803b15801561274657600080fd5b505afa15801561275a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277e9190613f22565b6040516319b02f4960e21b81526001600160a01b038083166004830152919250908d16906366c0bd249060240160206040518083038186803b1580156127c357600080fd5b505afa1580156127d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127fb9190614348565b505080806128089061459f565b9150506126f7565b506040516323b872dd60e01b81526001600160a01b038416906323b872dd9061284190339030908e906004016143ba565b602060405180830381600087803b15801561285b57600080fd5b505af115801561286f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128939190613f06565b506128a86001600160a01b0384168c8b613a22565b60405163031cd52b60e41b81526001600160a01b038c16906331cd52b0906128d8908c9085908c906004016144c8565b600060405180830381600087803b1580156128f257600080fd5b505af1158015612906573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261292e9190810190613e74565b506000846001600160401b0381111561295757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612980578160200160208202803683370190505b50905060005b858160ff161015612ae55760405162415c3360e91b815260ff821660048201526000906001600160a01b038e16906382b866009060240160206040518083038186803b1580156129d557600080fd5b505afa1580156129e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0d9190613f22565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b158015612a5257600080fd5b505afa158015612a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a8a9190614330565b9050612aa06001600160a01b0383168f83613a22565b80848460ff1681518110612ac457634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050508080612add9061459f565b915050612986565b50604051634d49e87d60e01b81526001600160a01b038c1690634d49e87d90612b169084908d908d90600401614427565b602060405180830381600087803b158015612b3057600080fd5b505af1158015612b44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b689190614330565b506040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015612bab57600080fd5b505afa158015612bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be39190614330565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0385169063a9059cbb90604401602060405180830381600087803b158015610c5b57600080fd5b600080856001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015612c6a57600080fd5b505afa158015612c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca29190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918916906366c0bd249060240160206040518083038186803b158015612ce957600080fd5b505afa158015612cfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d219190614348565b90506000876001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b158015612d5e57600080fd5b505afa158015612d72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d969190614330565b6001600160401b03811115612dbb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612de4578160200160208202803683370190505b50905084818860ff1681518110612e0b57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152604051637355940360e11b81526000906001600160a01b038a169063e6ab280690612e48908590600190600401614403565b60206040518083038186803b158015612e6057600080fd5b505afa158015612e74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e989190614330565b90508660ff168360ff161415612eb35793506117c492505050565b60405163a95b089f60e01b815260ff808516600483015288166024820152604481018290526001600160a01b038b169063a95b089f9060640160206040518083038186803b158015612f0457600080fd5b505afa158015612f18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3c9190614330565b9a9950505050505050505050565b600080876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015612f8657600080fd5b505afa158015612f9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fbe9190613f22565b90506000876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015612ffb57600080fd5b505afa15801561300f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130339190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918b16906366c0bd249060240160206040518083038186803b15801561307a57600080fd5b505afa15801561308e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130b29190614348565b6040516323b872dd60e01b81529091506001600160a01b038416906323b872dd906130e590339030908d906004016143ba565b602060405180830381600087803b1580156130ff57600080fd5b505af1158015613113573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131379190613f06565b5060405163095ea7b360e01b81526001600160a01b038b81166004830152602482018a905284169063095ea7b390604401602060405180830381600087803b15801561318257600080fd5b505af1158015613196573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131ba9190613f06565b506040516301f1d0ab60e51b81526004810189905260ff8216602482015260006044820152606481018690526001600160a01b038b1690633e3a156090608401602060405180830381600087803b15801561321457600080fd5b505af1158015613228573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061324c9190614330565b506040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561328f57600080fd5b505afa1580156132a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132c79190614330565b60405163095ea7b360e01b81526001600160a01b038c81166004830152602482018390529192509084169063095ea7b390604401602060405180830381600087803b15801561331557600080fd5b505af1158015613329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061334d9190613f06565b506040516301f1d0ab60e51b81526004810182905260ff8916602482015260448101889052606481018790526001600160a01b038b1690633e3a156090608401602060405180830381600087803b1580156133a757600080fd5b505af11580156133bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133df9190614330565b5060405162415c3360e91b815260ff891660048201526000906001600160a01b038c16906382b866009060240160206040518083038186803b15801561342457600080fd5b505afa158015613438573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061345c9190613f22565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156134a157600080fd5b505afa1580156134b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d99190614330565b90506134ef6001600160a01b0383163383613b1c565b9c9b505050505050505050505050565b600080876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561353b57600080fd5b505afa15801561354f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135739190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918b16906366c0bd249060240160206040518083038186803b1580156135ba57600080fd5b505afa1580156135ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135f29190614348565b60405162415c3360e91b815260ff8a1660048201529091506000906001600160a01b038c16906382b866009060240160206040518083038186803b15801561363957600080fd5b505afa15801561364d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136719190613f22565b90506136886001600160a01b03821633308a613b51565b8660ff838116908b1614613746576136aa6001600160a01b0383168d8a613a22565b6040516348b4aac360e11b815260ff808c166004830152841660248201526044810189905260006064820152608481018790526001600160a01b038d169063916955869060a401602060405180830381600087803b15801561370b57600080fd5b505af115801561371f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137439190614330565b90505b61375a6001600160a01b0385168c83613a22565b6040516301f1d0ab60e51b81526004810182905260ff8a16602482015260448101889052606481018790526001600160a01b038c1690633e3a156090608401602060405180830381600087803b1580156137b357600080fd5b505af11580156137c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137eb9190614330565b5060405162415c3360e91b815260ff8a1660048201526000906001600160a01b038d16906382b866009060240160206040518083038186803b15801561383057600080fd5b505afa158015613844573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138689190613f22565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156138ad57600080fd5b505afa1580156138c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138e59190614330565b90506138fb6001600160a01b0383163383613b1c565b9d9c50505050505050505050505050565b6040516370a0823160e01b815230600482015260009081906001600160a01b038616906370a082319060240160206040518083038186803b15801561395057600080fd5b505afa158015613964573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139889190614330565b905061399f6001600160a01b038616853086613b51565b6040516370a0823160e01b815230600482015281906001600160a01b038716906370a082319060240160206040518083038186803b1580156139e057600080fd5b505afa1580156139f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a189190614330565b6117c4919061455c565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015613a6e57600080fd5b505afa158015613a82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613aa69190614330565b613ab09190614544565b6040516001600160a01b038516602482015260448101829052909150613b1690859063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613b72565b50505050565b6040516001600160a01b038316602482015260448101829052613b4c90849063a9059cbb60e01b90606401613adf565b505050565b613b16846323b872dd60e01b858585604051602401613adf939291906143ba565b6000613bc7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613c449092919063ffffffff16565b805190915015613b4c5780806020019051810190613be59190613f06565b613b4c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c7565b6060613c538484600085613c5b565b949350505050565b606082471015613cbc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c7565b843b613d0a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c7565b600080866001600160a01b03168587604051613d26919061439e565b60006040518083038185875af1925050503d8060008114613d63576040519150601f19603f3d011682016040523d82523d6000602084013e613d68565b606091505b5091509150613d78828286613d83565b979650505050505050565b60608315613d92575081612216565b825115613da25782518084602001fd5b8160405162461bcd60e51b81526004016105c7919061444c565b60008083601f840112613dcd578182fd5b5081356001600160401b03811115613de3578182fd5b6020830191508360208260051b8501011115613dfe57600080fd5b9250929050565b600082601f830112613e15578081fd5b81356020613e2a613e2583614521565b6144f1565b80838252828201915082860187848660051b8901011115613e49578586fd5b855b85811015613e6757813584529284019290840190600101613e4b565b5090979650505050505050565b60006020808385031215613e86578182fd5b82516001600160401b03811115613e9b578283fd5b8301601f81018513613eab578283fd5b8051613eb9613e2582614521565b80828252848201915084840188868560051b8701011115613ed8578687fd5b8694505b83851015613efa578051835260019490940193918501918501613edc565b50979650505050505050565b600060208284031215613f17578081fd5b8151612216816145eb565b600060208284031215613f33578081fd5b8151612216816145fc565b600080600080600060a08688031215613f55578081fd5b8535613f60816145fc565b94506020860135613f70816145fc565b935060408601356001600160401b0380821115613f8b578283fd5b613f9789838a01613e05565b94506060880135915080821115613fac578283fd5b50613fb988828901613e05565b9250506080860135613fca816145eb565b809150509295509295909350565b60008060008060008060c08789031215613ff0578081fd5b8635613ffb816145fc565b9550602087013561400b816145fc565b945060408701356001600160401b0380821115614026578283fd5b6140328a838b01613e05565b95506060890135915080821115614047578283fd5b5061405489828a01613e05565b9350506080870135915060a087013590509295509295509295565b600080600060608486031215614083578283fd5b833561408e816145fc565b9250602084013561409e816145fc565b929592945050506040919091013590565b60008060008060008060008060c0898b0312156140ca578182fd5b88356140d5816145fc565b975060208901356140e5816145fc565b96506040890135955060608901356001600160401b0380821115614107578384fd5b6141138c838d01613dbc565b909750955060808b013591508082111561412b578384fd5b506141388b828c01613dbc565b999c989b50969995989497949560a00135949350505050565b600080600080600060a08688031215614168578081fd5b8535614173816145fc565b94506020860135614183816145fc565b94979496505050506040830135926060810135926080909101359150565b600080600080608085870312156141b6578182fd5b84356141c1816145fc565b935060208501356141d1816145fc565b92506040850135915060608501356141e881614611565b939692955090935050565b60008060008060008060c0878903121561420b578384fd5b8635614216816145fc565b95506020870135614226816145fc565b945060408701359350606087013561423d81614611565b9598949750929560808101359460a0909101359350915050565b600080600080600060a0868803121561426e578283fd5b8535614279816145fc565b94506020860135614289816145fc565b9350604086013561429981614611565b925060608601356142a981614611565b949793965091946080013592915050565b600080600080600080600060e0888a0312156142d4578081fd5b87356142df816145fc565b965060208801356142ef816145fc565b955060408801356142ff81614611565b9450606088013561430f81614611565b9699959850939660808101359560a0820135955060c0909101359350915050565b600060208284031215614341578081fd5b5051919050565b600060208284031215614359578081fd5b815161221681614611565b6000815180845260208085019450808401835b8381101561439357815187529582019590820190600101614377565b509495945050505050565b600082516143b0818460208701614573565b9190910192915050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6040815260006143f16040830185614364565b82810360208401526117c48185614364565b6040815260006144166040830185614364565b905082151560208301529392505050565b60608152600061443a6060830186614364565b60208301949094525060400152919050565b602081526000825180602084015261446b816040850160208701614573565b601f01601f19169190910160400192915050565b848152606060208201819052810183905260006001600160fb1b038411156144a5578081fd5b8360051b8086608085013782016080019081526040909101919091529392505050565b8381526060602082015260006144e16060830185614364565b9050826040830152949350505050565b604051601f8201601f191681016001600160401b0381118282101715614519576145196145d5565b604052919050565b60006001600160401b0382111561453a5761453a6145d5565b5060051b60200190565b60008219821115614557576145576145bf565b500190565b60008282101561456e5761456e6145bf565b500390565b60005b8381101561458e578181015183820152602001614576565b83811115613b165750506000910152565b600060ff821660ff8114156145b6576145b66145bf565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146145f957600080fd5b50565b6001600160a01b03811681146145f957600080fd5b60ff811681146145f957600080fdfea2646970667358221220f254504a6af2c5242ef466b327ddee758fe9ab132835f10890dae7ab8004d3d464736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063643abb8611610071578063643abb861461015057806377269e291461016357806379701821146101765780638a311c5714610189578063998cae471461019c578063ff969322146101af57600080fd5b80630c8b2216146100b95780630d6307eb146100e357806324a5bf21146101045780633214b8c91461011757806338c789731461012a57806354681c411461013d575b600080fd5b6100cc6100c736600461406f565b6101c2565b6040516100da9291906143de565b60405180910390f35b6100f66100f1366004613fd8565b610420565b6040519081526020016100da565b6100cc6101123660046140af565b610ca4565b6100f6610125366004614257565b6115ad565b6100f66101383660046142ba565b6117cd565b6100f661014b3660046141a1565b611cc0565b6100f661015e36600461406f565b611eca565b6100f6610171366004613f3e565b61221d565b6100f6610184366004614151565b612426565b6100f6610197366004614257565b612c2e565b6100f66101aa3660046141f3565b612f4a565b6100f66101bd3660046142ba565b6134ff565b6060806000846001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561020057600080fd5b505afa158015610214573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102389190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918816906366c0bd249060240160206040518083038186803b15801561027f57600080fd5b505afa158015610293573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b79190614348565b60405163797d695b60e11b8152600481018790529091506001600160a01b0388169063f2fad2b69060240160006040518083038186803b1580156102fa57600080fd5b505afa15801561030e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103369190810190613e74565b93506000848260ff168151811061035d57634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858360ff168151811061038c57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260405163797d695b60e11b8152600481018290526001600160a01b0388169063f2fad2b69060240160006040518083038186803b1580156103d757600080fd5b505afa1580156103eb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104139190810190613e74565b9350505050935093915050565b600080876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561045c57600080fd5b505afa158015610470573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104949190613f22565b90506000876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b1580156104d157600080fd5b505afa1580156104e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105099190613f22565b9050876001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561054457600080fd5b505afa158015610558573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057c9190614330565b8651146105d05760405162461bcd60e51b815260206004820152601860248201527f696e76616c696442617365416d6f756e74734c656e677468000000000000000060448201526064015b60405180910390fd5b886001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561060957600080fd5b505afa15801561061d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106419190614330565b8751146106905760405162461bcd60e51b815260206004820152601860248201527f696e76616c69644d657461416d6f756e74734c656e677468000000000000000060448201526064016105c7565b6000805b87518160ff1610156107c3576000888260ff16815181106106c557634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008111156107b05760405162415c3360e91b815260ff83166004820152600193506000906001600160a01b038d16906382b866009060240160206040518083038186803b15801561072057600080fd5b505afa158015610734573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107589190613f22565b9050600061076782338561390c565b905061077d6001600160a01b0383168e83613a22565b808b8560ff16815181106107a157634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050505b50806107bb8161459f565b915050610694565b506000811561085257604051634d49e87d60e01b81526001600160a01b038b1690634d49e87d906107fd908b906000908b90600401614427565b602060405180830381600087803b15801561081757600080fd5b505af115801561082b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084f9190614330565b90505b60005b89518160ff1610156109cb5760405162415c3360e91b815260ff821660048201526000906001600160a01b038e16906382b866009060240160206040518083038186803b1580156108a557600080fd5b505afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dd9190613f22565b90506000856001600160a01b0316826001600160a01b0316141561090257508261096d565b60008c8460ff168151811061092757634e487b7160e01b600052603260045260246000fd5b6020026020010151111561096d5761096a82338e8660ff168151811061095d57634e487b7160e01b600052603260045260246000fd5b602002602001015161390c565b90505b808c8460ff168151811061099157634e487b7160e01b600052603260045260246000fd5b602090810291909101015280156109b6576109b66001600160a01b0383168f83613a22565b505080806109c39061459f565b915050610855565b506040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015610a0e57600080fd5b505afa158015610a22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a469190614330565b604051634d49e87d60e01b81529091506001600160a01b038d1690634d49e87d90610a79908d908c908c90600401614427565b602060405180830381600087803b158015610a9357600080fd5b505af1158015610aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acb9190614330565b508215610b96576040516370a0823160e01b8152306004820152819083906001600160a01b038716906370a082319060240160206040518083038186803b158015610b1557600080fd5b505afa158015610b29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4d9190614330565b610b579190614544565b14610b965760405162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a5910985cd9541bdbdb608a1b60448201526064016105c7565b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a082319060240160206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190614330565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0387169063a9059cbb90604401602060405180830381600087803b158015610c5b57600080fd5b505af1158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190613f06565b509c9b505050505050505050505050565b60608060008a6001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015610ce257600080fd5b505afa158015610cf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1a9190613f22565b905060008a6001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015610d5757600080fd5b505afa158015610d6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8f9190613f22565b6040516323b872dd60e01b81529091506001600160a01b038316906323b872dd90610dc290339030908f906004016143ba565b602060405180830381600087803b158015610ddc57600080fd5b505af1158015610df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e149190613f06565b50610e296001600160a01b0383168d8c613a22565b60405163031cd52b60e41b81526001600160a01b038d16906331cd52b090610e5b908d908d908d908b9060040161447f565b600060405180830381600087803b158015610e7557600080fd5b505af1158015610e89573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610eb19190810190613e74565b506040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610ef457600080fd5b505afa158015610f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2c9190614330565b9050610f426001600160a01b0383168d83613a22565b60405163031cd52b60e41b81526001600160a01b038d16906331cd52b090610f749084908c908c908c9060040161447f565b600060405180830381600087803b158015610f8e57600080fd5b505af1158015610fa2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fca9190810190613e74565b508c6001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561100457600080fd5b505afa158015611018573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103c9190614330565b6001600160401b0381111561106157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561108a578160200160208202803683370190505b50945060005b8d6001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b1580156110c957600080fd5b505afa1580156110dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111019190614330565b8160ff1610156112c95760008e6001600160a01b03166382b86600836040518263ffffffff1660e01b8152600401611142919060ff91909116815260200190565b60206040518083038186803b15801561115a57600080fd5b505afa15801561116e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111929190613f22565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a082319060240160206040518083038186803b1580156111d457600080fd5b505afa1580156111e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120c9190614330565b878360ff168151811061122f57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000878360ff168151811061126057634e487b7160e01b600052603260045260246000fd5b602002602001015111156112b6576112b633888460ff168151811061129557634e487b7160e01b600052603260045260246000fd5b6020026020010151836001600160a01b0316613b1c9092919063ffffffff16565b50806112c18161459f565b915050611090565b508b6001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561130357600080fd5b505afa158015611317573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133b9190614330565b6001600160401b0381111561136057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611389578160200160208202803683370190505b50935060005b8c6001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b1580156113c857600080fd5b505afa1580156113dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114009190614330565b8160ff16101561159c5760405162415c3360e91b815260ff821660048201526000906001600160a01b038f16906382b866009060240160206040518083038186803b15801561144e57600080fd5b505afa158015611462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114869190613f22565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a082319060240160206040518083038186803b1580156114c857600080fd5b505afa1580156114dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115009190614330565b868360ff168151811061152357634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000868360ff168151811061155457634e487b7160e01b600052603260045260246000fd5b602002602001015111156115895761158933878460ff168151811061129557634e487b7160e01b600052603260045260246000fd5b50806115948161459f565b91505061138f565b505050509850989650505050505050565b600080856001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b1580156115e957600080fd5b505afa1580156115fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116219190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918916906366c0bd249060240160206040518083038186803b15801561166857600080fd5b505afa15801561167c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a09190614348565b90508360ff8083169088161461173c5760405163a95b089f60e01b815260ff808916600483015283166024820152604481018690526001600160a01b038a169063a95b089f9060640160206040518083038186803b15801561170157600080fd5b505afa158015611715573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117399190614330565b90505b60405163342a87a160e01b81526004810182905260ff871660248201526001600160a01b0389169063342a87a1906044015b60206040518083038186803b15801561178657600080fd5b505afa15801561179a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117be9190614330565b93505050505b95945050505050565b600080876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561180957600080fd5b505afa15801561181d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118419190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918b16906366c0bd249060240160206040518083038186803b15801561188857600080fd5b505afa15801561189c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c09190614348565b90506000896001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b1580156118fd57600080fd5b505afa158015611911573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119359190614330565b6001600160401b0381111561195a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611983578160200160208202803683370190505b50905086818a60ff16815181106119aa57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260405162415c3360e91b815260ff8a1660048201526000906001600160a01b038c16906382b866009060240160206040518083038186803b1580156119f957600080fd5b505afa158015611a0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a319190613f22565b9050611a486001600160a01b03821633308b613b51565b611a5c6001600160a01b0382168c8a613a22565b604051634d49e87d60e01b81526000906001600160a01b038d1690634d49e87d90611a8f90869085908c90600401614427565b602060405180830381600087803b158015611aa957600080fd5b505af1158015611abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae19190614330565b90508960ff168460ff1614611b9f57611b046001600160a01b0386168e83613a22565b6040516348b4aac360e11b815260ff80861660048301528b1660248201526044810182905260648101899052608481018890526001600160a01b038e169063916955869060a401602060405180830381600087803b158015611b6557600080fd5b505af1158015611b79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9d9190614330565b505b60405162415c3360e91b815260ff8b1660048201526000906001600160a01b038f16906382b866009060240160206040518083038186803b158015611be357600080fd5b505afa158015611bf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1b9190613f22565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b158015611c6057600080fd5b505afa158015611c74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c989190614330565b9050611cae6001600160a01b0383163383613b1c565b9e9d5050505050505050505050505050565b600080846001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015611cfc57600080fd5b505afa158015611d10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d349190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918816906366c0bd249060240160206040518083038186803b158015611d7b57600080fd5b505afa158015611d8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db39190614348565b60405163342a87a160e01b81526004810187905260ff821660248201529091506000906001600160a01b0389169063342a87a19060440160206040518083038186803b158015611e0257600080fd5b505afa158015611e16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3a9190614330565b60405163342a87a160e01b81526004810182905260ff871660248201529091506001600160a01b0388169063342a87a19060440160206040518083038186803b158015611e8657600080fd5b505afa158015611e9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebe9190614330565b98975050505050505050565b600080846001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b158015611f0657600080fd5b505afa158015611f1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3e9190614330565b60405163797d695b60e11b8152600481018590529091506000906001600160a01b0387169063f2fad2b69060240160006040518083038186803b158015611f8457600080fd5b505afa158015611f98573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611fc09190810190613e74565b90506000826001600160401b03811115611fea57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612013578160200160208202803683370190505b50905060005b838160ff1610156121905760405162415c3360e91b815260ff821660048201526000906001600160a01b038a16906382b866009060240160206040518083038186803b15801561206857600080fd5b505afa15801561207c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a09190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918a16906366c0bd249060240160206040518083038186803b1580156120e757600080fd5b505afa1580156120fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211f9190614348565b60ff169050848360ff168151811061214757634e487b7160e01b600052603260045260246000fd5b602002602001015184828151811061216f57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050505080806121889061459f565b915050612019565b50604051637355940360e11b81526001600160a01b0387169063e6ab2806906121c0908490600190600401614403565b60206040518083038186803b1580156121d857600080fd5b505afa1580156121ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122109190614330565b93505050505b9392505050565b600080856001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561225957600080fd5b505afa15801561226d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122919190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918916906366c0bd249060240160206040518083038186803b1580156122d857600080fd5b505afa1580156122ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123109190614348565b90506000876001600160a01b031663e6ab280687876040518363ffffffff1660e01b8152600401612342929190614403565b60206040518083038186803b15801561235a57600080fd5b505afa15801561236e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123929190614330565b905080878360ff16815181106123b857634e487b7160e01b600052603260045260246000fd5b60200260200101516123ca9190614544565b878360ff16815181106123ed57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152604051637355940360e11b81526001600160a01b038a169063e6ab28069061176e908a908990600401614403565b600080866001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b15801561246257600080fd5b505afa158015612476573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249a9190614330565b90506000866001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b1580156124d757600080fd5b505afa1580156124eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250f9190614330565b9050866001600160a01b0316886001600160a01b031614156125675760405162461bcd60e51b8152602060048201526011602482015270199c9bdb541bdbdb080f481d1bd41bdbdb607a1b60448201526064016105c7565b8082146125b65760405162461bcd60e51b815260206004820152601960248201527f706f6f6c546f6b656e734c656e6774684d6973736d617463680000000000000060448201526064016105c7565b6000886001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b1580156125f157600080fd5b505afa158015612605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126299190613f22565b90506000886001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561266657600080fd5b505afa15801561267a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269e9190613f22565b90506000846001600160401b038111156126c857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156126f1578160200160208202803683370190505b50905060005b858160ff1610156128105760405162415c3360e91b815260ff821660048201526000906001600160a01b038e16906382b866009060240160206040518083038186803b15801561274657600080fd5b505afa15801561275a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277e9190613f22565b6040516319b02f4960e21b81526001600160a01b038083166004830152919250908d16906366c0bd249060240160206040518083038186803b1580156127c357600080fd5b505afa1580156127d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127fb9190614348565b505080806128089061459f565b9150506126f7565b506040516323b872dd60e01b81526001600160a01b038416906323b872dd9061284190339030908e906004016143ba565b602060405180830381600087803b15801561285b57600080fd5b505af115801561286f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128939190613f06565b506128a86001600160a01b0384168c8b613a22565b60405163031cd52b60e41b81526001600160a01b038c16906331cd52b0906128d8908c9085908c906004016144c8565b600060405180830381600087803b1580156128f257600080fd5b505af1158015612906573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261292e9190810190613e74565b506000846001600160401b0381111561295757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612980578160200160208202803683370190505b50905060005b858160ff161015612ae55760405162415c3360e91b815260ff821660048201526000906001600160a01b038e16906382b866009060240160206040518083038186803b1580156129d557600080fd5b505afa1580156129e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0d9190613f22565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b158015612a5257600080fd5b505afa158015612a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a8a9190614330565b9050612aa06001600160a01b0383168f83613a22565b80848460ff1681518110612ac457634e487b7160e01b600052603260045260246000fd5b60200260200101818152505050508080612add9061459f565b915050612986565b50604051634d49e87d60e01b81526001600160a01b038c1690634d49e87d90612b169084908d908d90600401614427565b602060405180830381600087803b158015612b3057600080fd5b505af1158015612b44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b689190614330565b506040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015612bab57600080fd5b505afa158015612bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612be39190614330565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0385169063a9059cbb90604401602060405180830381600087803b158015610c5b57600080fd5b600080856001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015612c6a57600080fd5b505afa158015612c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ca29190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918916906366c0bd249060240160206040518083038186803b158015612ce957600080fd5b505afa158015612cfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d219190614348565b90506000876001600160a01b031663efeecb516040518163ffffffff1660e01b815260040160206040518083038186803b158015612d5e57600080fd5b505afa158015612d72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d969190614330565b6001600160401b03811115612dbb57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612de4578160200160208202803683370190505b50905084818860ff1681518110612e0b57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152604051637355940360e11b81526000906001600160a01b038a169063e6ab280690612e48908590600190600401614403565b60206040518083038186803b158015612e6057600080fd5b505afa158015612e74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e989190614330565b90508660ff168360ff161415612eb35793506117c492505050565b60405163a95b089f60e01b815260ff808516600483015288166024820152604481018290526001600160a01b038b169063a95b089f9060640160206040518083038186803b158015612f0457600080fd5b505afa158015612f18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3c9190614330565b9a9950505050505050505050565b600080876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015612f8657600080fd5b505afa158015612f9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fbe9190613f22565b90506000876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b158015612ffb57600080fd5b505afa15801561300f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130339190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918b16906366c0bd249060240160206040518083038186803b15801561307a57600080fd5b505afa15801561308e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130b29190614348565b6040516323b872dd60e01b81529091506001600160a01b038416906323b872dd906130e590339030908d906004016143ba565b602060405180830381600087803b1580156130ff57600080fd5b505af1158015613113573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131379190613f06565b5060405163095ea7b360e01b81526001600160a01b038b81166004830152602482018a905284169063095ea7b390604401602060405180830381600087803b15801561318257600080fd5b505af1158015613196573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131ba9190613f06565b506040516301f1d0ab60e51b81526004810189905260ff8216602482015260006044820152606481018690526001600160a01b038b1690633e3a156090608401602060405180830381600087803b15801561321457600080fd5b505af1158015613228573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061324c9190614330565b506040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561328f57600080fd5b505afa1580156132a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132c79190614330565b60405163095ea7b360e01b81526001600160a01b038c81166004830152602482018390529192509084169063095ea7b390604401602060405180830381600087803b15801561331557600080fd5b505af1158015613329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061334d9190613f06565b506040516301f1d0ab60e51b81526004810182905260ff8916602482015260448101889052606481018790526001600160a01b038b1690633e3a156090608401602060405180830381600087803b1580156133a757600080fd5b505af11580156133bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133df9190614330565b5060405162415c3360e91b815260ff891660048201526000906001600160a01b038c16906382b866009060240160206040518083038186803b15801561342457600080fd5b505afa158015613438573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061345c9190613f22565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156134a157600080fd5b505afa1580156134b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d99190614330565b90506134ef6001600160a01b0383163383613b1c565b9c9b505050505050505050505050565b600080876001600160a01b0316638214f5a46040518163ffffffff1660e01b815260040160206040518083038186803b15801561353b57600080fd5b505afa15801561354f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135739190613f22565b6040516319b02f4960e21b81526001600160a01b0380831660048301529192506000918b16906366c0bd249060240160206040518083038186803b1580156135ba57600080fd5b505afa1580156135ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135f29190614348565b60405162415c3360e91b815260ff8a1660048201529091506000906001600160a01b038c16906382b866009060240160206040518083038186803b15801561363957600080fd5b505afa15801561364d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136719190613f22565b90506136886001600160a01b03821633308a613b51565b8660ff838116908b1614613746576136aa6001600160a01b0383168d8a613a22565b6040516348b4aac360e11b815260ff808c166004830152841660248201526044810189905260006064820152608481018790526001600160a01b038d169063916955869060a401602060405180830381600087803b15801561370b57600080fd5b505af115801561371f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137439190614330565b90505b61375a6001600160a01b0385168c83613a22565b6040516301f1d0ab60e51b81526004810182905260ff8a16602482015260448101889052606481018790526001600160a01b038c1690633e3a156090608401602060405180830381600087803b1580156137b357600080fd5b505af11580156137c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137eb9190614330565b5060405162415c3360e91b815260ff8a1660048201526000906001600160a01b038d16906382b866009060240160206040518083038186803b15801561383057600080fd5b505afa158015613844573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138689190613f22565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156138ad57600080fd5b505afa1580156138c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138e59190614330565b90506138fb6001600160a01b0383163383613b1c565b9d9c50505050505050505050505050565b6040516370a0823160e01b815230600482015260009081906001600160a01b038616906370a082319060240160206040518083038186803b15801561395057600080fd5b505afa158015613964573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139889190614330565b905061399f6001600160a01b038616853086613b51565b6040516370a0823160e01b815230600482015281906001600160a01b038716906370a082319060240160206040518083038186803b1580156139e057600080fd5b505afa1580156139f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a189190614330565b6117c4919061455c565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015613a6e57600080fd5b505afa158015613a82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613aa69190614330565b613ab09190614544565b6040516001600160a01b038516602482015260448101829052909150613b1690859063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613b72565b50505050565b6040516001600160a01b038316602482015260448101829052613b4c90849063a9059cbb60e01b90606401613adf565b505050565b613b16846323b872dd60e01b858585604051602401613adf939291906143ba565b6000613bc7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613c449092919063ffffffff16565b805190915015613b4c5780806020019051810190613be59190613f06565b613b4c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105c7565b6060613c538484600085613c5b565b949350505050565b606082471015613cbc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105c7565b843b613d0a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105c7565b600080866001600160a01b03168587604051613d26919061439e565b60006040518083038185875af1925050503d8060008114613d63576040519150601f19603f3d011682016040523d82523d6000602084013e613d68565b606091505b5091509150613d78828286613d83565b979650505050505050565b60608315613d92575081612216565b825115613da25782518084602001fd5b8160405162461bcd60e51b81526004016105c7919061444c565b60008083601f840112613dcd578182fd5b5081356001600160401b03811115613de3578182fd5b6020830191508360208260051b8501011115613dfe57600080fd5b9250929050565b600082601f830112613e15578081fd5b81356020613e2a613e2583614521565b6144f1565b80838252828201915082860187848660051b8901011115613e49578586fd5b855b85811015613e6757813584529284019290840190600101613e4b565b5090979650505050505050565b60006020808385031215613e86578182fd5b82516001600160401b03811115613e9b578283fd5b8301601f81018513613eab578283fd5b8051613eb9613e2582614521565b80828252848201915084840188868560051b8701011115613ed8578687fd5b8694505b83851015613efa578051835260019490940193918501918501613edc565b50979650505050505050565b600060208284031215613f17578081fd5b8151612216816145eb565b600060208284031215613f33578081fd5b8151612216816145fc565b600080600080600060a08688031215613f55578081fd5b8535613f60816145fc565b94506020860135613f70816145fc565b935060408601356001600160401b0380821115613f8b578283fd5b613f9789838a01613e05565b94506060880135915080821115613fac578283fd5b50613fb988828901613e05565b9250506080860135613fca816145eb565b809150509295509295909350565b60008060008060008060c08789031215613ff0578081fd5b8635613ffb816145fc565b9550602087013561400b816145fc565b945060408701356001600160401b0380821115614026578283fd5b6140328a838b01613e05565b95506060890135915080821115614047578283fd5b5061405489828a01613e05565b9350506080870135915060a087013590509295509295509295565b600080600060608486031215614083578283fd5b833561408e816145fc565b9250602084013561409e816145fc565b929592945050506040919091013590565b60008060008060008060008060c0898b0312156140ca578182fd5b88356140d5816145fc565b975060208901356140e5816145fc565b96506040890135955060608901356001600160401b0380821115614107578384fd5b6141138c838d01613dbc565b909750955060808b013591508082111561412b578384fd5b506141388b828c01613dbc565b999c989b50969995989497949560a00135949350505050565b600080600080600060a08688031215614168578081fd5b8535614173816145fc565b94506020860135614183816145fc565b94979496505050506040830135926060810135926080909101359150565b600080600080608085870312156141b6578182fd5b84356141c1816145fc565b935060208501356141d1816145fc565b92506040850135915060608501356141e881614611565b939692955090935050565b60008060008060008060c0878903121561420b578384fd5b8635614216816145fc565b95506020870135614226816145fc565b945060408701359350606087013561423d81614611565b9598949750929560808101359460a0909101359350915050565b600080600080600060a0868803121561426e578283fd5b8535614279816145fc565b94506020860135614289816145fc565b9350604086013561429981614611565b925060608601356142a981614611565b949793965091946080013592915050565b600080600080600080600060e0888a0312156142d4578081fd5b87356142df816145fc565b965060208801356142ef816145fc565b955060408801356142ff81614611565b9450606088013561430f81614611565b9699959850939660808101359560a0820135955060c0909101359350915050565b600060208284031215614341578081fd5b5051919050565b600060208284031215614359578081fd5b815161221681614611565b6000815180845260208085019450808401835b8381101561439357815187529582019590820190600101614377565b509495945050505050565b600082516143b0818460208701614573565b9190910192915050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6040815260006143f16040830185614364565b82810360208401526117c48185614364565b6040815260006144166040830185614364565b905082151560208301529392505050565b60608152600061443a6060830186614364565b60208301949094525060400152919050565b602081526000825180602084015261446b816040850160208701614573565b601f01601f19169190910160400192915050565b848152606060208201819052810183905260006001600160fb1b038411156144a5578081fd5b8360051b8086608085013782016080019081526040909101919091529392505050565b8381526060602082015260006144e16060830185614364565b9050826040830152949350505050565b604051601f8201601f191681016001600160401b0381118282101715614519576145196145d5565b604052919050565b60006001600160401b0382111561453a5761453a6145d5565b5060051b60200190565b60008219821115614557576145576145bf565b500190565b60008282101561456e5761456e6145bf565b500390565b60005b8381101561458e578181015183820152602001614576565b83811115613b165750506000910152565b600060ff821660ff8114156145b6576145b66145bf565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146145f957600080fd5b50565b6001600160a01b03811681146145f957600080fd5b60ff811681146145f957600080fdfea2646970667358221220f254504a6af2c5242ef466b327ddee758fe9ab132835f10890dae7ab8004d3d464736f6c63430008040033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in GLMR
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.