Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Latest 11 from a total of 11 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 13773985 | 1546 days ago | IN | 0 ETH | 0.0028702 | ||||
| Add | 13773965 | 1546 days ago | IN | 0 ETH | 0.0070878 | ||||
| Add | 13773965 | 1546 days ago | IN | 0 ETH | 0.0070878 | ||||
| Add | 13773965 | 1546 days ago | IN | 0 ETH | 0.0070878 | ||||
| Add | 13773965 | 1546 days ago | IN | 0 ETH | 0.0070878 | ||||
| Add | 13773965 | 1546 days ago | IN | 0 ETH | 0.0070878 | ||||
| Add | 13773963 | 1546 days ago | IN | 0 ETH | 0.0070878 | ||||
| Add | 13773963 | 1546 days ago | IN | 0 ETH | 0.0070878 | ||||
| Add | 13773963 | 1546 days ago | IN | 0 ETH | 0.0070878 | ||||
| Add | 13773962 | 1546 days ago | IN | 0 ETH | 0.007086 | ||||
| Add | 13773962 | 1546 days ago | IN | 0 ETH | 0.0070878 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 13842373 | 1535 days ago | 0.1 ETH | ||||
| - | 13842373 | 1535 days ago | 0.1 ETH | ||||
| - | 13802308 | 1542 days ago | 0.0027 ETH | ||||
| - | 13802308 | 1542 days ago | 0.0027 ETH | ||||
| - | 13798686 | 1542 days ago | 0.02581971 ETH | ||||
| - | 13798686 | 1542 days ago | 0.02581971 ETH | ||||
| - | 13798677 | 1542 days ago | 0.001 ETH | ||||
| - | 13798677 | 1542 days ago | 0.001 ETH | ||||
| - | 13798212 | 1542 days ago | 0.0005 ETH | ||||
| - | 13798212 | 1542 days ago | 0.0005 ETH | ||||
| - | 13781898 | 1545 days ago | 0.003 ETH | ||||
| - | 13781898 | 1545 days ago | 0.003 ETH | ||||
| - | 13777265 | 1546 days ago | 0.003 ETH | ||||
| - | 13777265 | 1546 days ago | 0.003 ETH | ||||
| - | 13776975 | 1546 days ago | 0.01 ETH | ||||
| - | 13776975 | 1546 days ago | 0.01 ETH | ||||
| - | 13776902 | 1546 days ago | 0.0003 ETH | ||||
| - | 13776902 | 1546 days ago | 0.0003 ETH | ||||
| - | 13776459 | 1546 days ago | 0.5 ETH | ||||
| - | 13776459 | 1546 days ago | 0.5 ETH | ||||
| - | 13775875 | 1546 days ago | 0.01 ETH | ||||
| - | 13775875 | 1546 days ago | 0.01 ETH | ||||
| - | 13775575 | 1546 days ago | 0.0004 ETH | ||||
| - | 13775575 | 1546 days ago | 0.0004 ETH | ||||
| - | 13775196 | 1546 days ago | 0.02 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x9c9326C5...FC4Ef16cc The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TokenSetAdapter
Compiler Version
v0.8.2+commit.661d1103
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.2;
import { SafeERC20, IERC20 } from "../ecosystem/openzeppelin/token/ERC20/utils/SafeERC20.sol";
import "./AbstractAdapter.sol";
interface ISetToken {
function getComponents() external view returns (address[] memory);
function isInitializedModule(address _module) external view returns (bool);
}
interface IBasicIssuanceModule {
function redeem(address _setToken, uint256 _quantity, address _to) external;
}
/// @title Token Sets Vampire Attack Contract
/// @author Enso.finance (github.com/EnsoFinance)
/// @notice Adapter for redeeming the underlying assets from Token Sets
contract TokenSetAdapter is AbstractAdapter {
using SafeERC20 for IERC20;
address public genericRouter;
address public leverageAdapter;
IBasicIssuanceModule public basicModule;
mapping (address => bool) private _leveraged;
address private constant WBTC = 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599;
address private constant ETH2X = 0xAa6E8127831c9DE45ae56bB1b0d4D4Da6e5665BD;
address private constant BTC2X = 0x0B498ff89709d3838a063f1dFA463091F9801c2b;
address private constant AWETH = 0x030bA81f1c18d280636F32af80b9AAd02Cf0854e;
address private constant AWBTC = 0x9ff58f4fFB29fA2266Ab25e75e2A8b3503311656;
constructor(
IBasicIssuanceModule basicModule_,
address leverageAdapter_,
address genericRouter_,
address owner_
) AbstractAdapter(owner_)
{
basicModule = basicModule_;
leverageAdapter = leverageAdapter_;
genericRouter = genericRouter_;
_leveraged[ETH2X] = true;
_leveraged[BTC2X] = true;
}
function updateGenericRouter(address _genericRouter) external onlyOwner {
require(_genericRouter != genericRouter, "Already exists");
genericRouter = _genericRouter;
}
function updateLeverageAdapter(address _leverageAdapter) external onlyOwner {
require(_leverageAdapter != leverageAdapter, "Already exists");
leverageAdapter = _leverageAdapter;
}
function outputTokens(address _lp)
public
view
override
returns (address[] memory)
{
/*
if (_leveraged[_lp]) {
address[] memory outputs = new address[](1);
if (_lp == ETH2X) outputs[0] = WETH;
if (_lp == BTC2X) outputs[0] = WBTC;
return outputs;
}
*/
return ISetToken(_lp).getComponents();
}
function encodeMigration(address _genericRouter, address _strategy, address _lp, uint256 _amount)
public
override
view
onlyWhitelisted(_lp)
returns (Call[] memory calls)
{
if (_leveraged[_lp]) {
calls = new Call[](3);
Call[] memory withdrawCalls = encodeWithdraw(_lp, _amount);
calls[0] = withdrawCalls[0];
calls[1] = withdrawCalls[1];
if (_lp == ETH2X) {
calls[2] = Call(
_genericRouter,
abi.encodeWithSelector(
IGenericRouter(_genericRouter).settleSwap.selector,
leverageAdapter,
WETH,
AWETH,
_genericRouter,
_strategy
)
);
}
if (_lp == BTC2X) {
calls[2] = Call(
_genericRouter,
abi.encodeWithSelector(
IGenericRouter(_genericRouter).settleSwap.selector,
leverageAdapter,
WBTC,
AWBTC,
_genericRouter,
_strategy
)
);
}
} else {
address[] memory tokens = outputTokens(_lp);
calls = new Call[](tokens.length + 1);
calls[0] = encodeWithdraw(_lp, _amount)[0];
for (uint256 i = 0; i < tokens.length; i++) {
calls[i + 1] = Call(
_genericRouter,
abi.encodeWithSelector(
IGenericRouter(_genericRouter).settleTransfer.selector,
tokens[i],
_strategy
)
);
}
}
return calls;
}
function encodeWithdraw(address _lp, uint256 _amount)
public
override
view
onlyWhitelisted(_lp)
returns (Call[] memory calls)
{
if (_leveraged[_lp]) {
// Redeem debt is too complicated. Just sell the token
calls = new Call[](2);
calls[0] = Call(
_lp,
abi.encodeWithSelector(
IERC20(_lp).approve.selector,
UNI_V3,
_amount
)
);
if (_lp == ETH2X) {
calls[1] = Call(
UNI_V3,
abi.encodeWithSelector(
IUniswapV3Router(UNI_V3).exactInputSingle.selector,
IUniswapV3Router.ExactInputSingleParams(
ETH2X,
WETH,
3000,
genericRouter,
block.timestamp + 1,
_amount,
1,
0
)
)
);
}
if (_lp == BTC2X) {
calls[1] = Call(
UNI_V3,
abi.encodeWithSelector(
IUniswapV3Router(UNI_V3).exactInputSingle.selector,
IUniswapV3Router.ExactInputSingleParams(
BTC2X,
WBTC,
10000,
genericRouter,
block.timestamp + 1,
_amount,
1,
0
)
)
);
}
} else {
calls = new Call[](1);
calls[0] = Call(
address(basicModule),
abi.encodeWithSelector(
basicModule.redeem.selector,
_lp,
_amount,
genericRouter
)
);
}
}
}// SPDX-License-Identifier: WTFPL
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'
// solhint-disable-next-line max-line-length
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + 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
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.2;
import "../interfaces/IAdapter.sol";
import "../helpers/Whitelistable.sol";
import "../interfaces/IUniswapV2Router.sol";
import "../interfaces/IUniswapV3Router.sol";
import "../interfaces/IQuoter.sol";
interface IGenericRouter {
function settleTransfer(address token, address to) external;
function settleSwap(
address adapter,
address tokenIn,
address tokenOut,
address from,
address to
) external;
}
/// @title Token Sets Vampire Attack Contract
/// @author Enso.finance (github.com/EnsoFinance)
/// @notice Adapter for redeeming the underlying assets from Token Sets
abstract contract AbstractAdapter is IAdapter, Whitelistable {
address public constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
address public constant SUSHI = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F;
address public constant UNI_V2 = 0xf164fC0Ec4E93095b804a4795bBe1e041497b92a;
address public constant UNI_V3 = 0xE592427A0AEce92De3Edee1F18E0157C05861564;
address public constant QUOTER = 0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6;
/**
* @dev Require exchange registered
*/
modifier onlyExchange(address _exchange) {
require(isExchange(_exchange), "AbstractAdapter#buy: should be exchanges");
_;
}
constructor(address owner_) {
_setOwner(owner_);
}
function outputTokens(address _lp)
public
view
override
virtual
returns (address[] memory outputs);
function encodeMigration(address _genericRouter, address _strategy, address _lp, uint256 _amount)
public
override
virtual
view
returns (Call[] memory calls);
function encodeWithdraw(address _lp, uint256 _amount)
public
override
virtual
view
returns (Call[] memory calls);
function buy(address _lp, address _exchange, uint256 _minAmountOut, uint256 _deadline)
public
override
virtual
payable
onlyExchange(_exchange)
onlyWhitelisted(_lp)
{
if (_exchange == UNI_V3) {
_buyV3(_lp, _minAmountOut, _deadline);
} else {
_buyV2(_lp, _exchange, _minAmountOut, _deadline);
}
}
function getAmountOut(
address _lp,
address _exchange,
uint256 _amountIn
)
external
override
virtual
onlyExchange(_exchange)
onlyWhitelisted(_lp)
returns (uint256)
{
if (_exchange == UNI_V3) {
return _getV3(_lp, _amountIn);
} else {
return _getV2(_lp, _exchange, _amountIn);
}
}
function _buyV2(
address _lp,
address _exchange,
uint256 _minAmountOut,
uint256 _deadline
)
internal
{
address[] memory path = new address[](2);
path[0] = WETH;
path[1] = _lp;
IUniswapV2Router(_exchange).swapExactETHForTokens{value: msg.value}(
_minAmountOut,
path,
msg.sender,
_deadline
);
}
function _buyV3(
address _lp,
uint256 _minAmountOut,
uint256 _deadline
)
internal
{
IUniswapV3Router(UNI_V3).exactInputSingle{value: msg.value}(IUniswapV3Router.ExactInputSingleParams(
WETH,
_lp,
3000,
msg.sender,
_deadline,
msg.value,
_minAmountOut,
0
));
}
function _getV2(address _lp, address _exchange, uint256 _amountIn)
internal
view
returns (uint256)
{
address[] memory path = new address[](2);
path[0] = WETH;
path[1] = _lp;
return IUniswapV2Router(_exchange).getAmountsOut(_amountIn, path)[1];
}
function _getV3(address _lp, uint256 _amountIn)
internal
returns (uint256)
{
return IQuoter(QUOTER).quoteExactInputSingle(
WETH,
_lp,
3000,
_amountIn,
0
);
}
/**
* @param _lp to view pool token
* @return if token in whitelist
*/
function isWhitelisted(address _lp)
public
view
override
returns(bool)
{
return whitelisted[_lp];
}
function isExchange(address _exchange)
public
pure
returns (bool)
{
return(_exchange == SUSHI || _exchange == UNI_V2 || _exchange == UNI_V3);
}
}// SPDX-License-Identifier: WTFPL
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: WTFPL
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;
// solhint-disable-next-line no-inline-assembly
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) private pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.2;
interface IAdapter {
struct Call {
address target;
bytes callData;
}
function outputTokens(address inputToken) external view returns (address[] memory outputs);
function encodeMigration(address _genericRouter, address _strategy, address _lp, uint256 _amount)
external view returns (Call[] memory calls);
function encodeWithdraw(address _lp, uint256 _amount) external view returns (Call[] memory calls);
function buy(address _lp, address _exchange, uint256 _minAmountOut, uint256 _deadline) external payable;
function getAmountOut(address _lp, address _exchange, uint256 _amountIn) external returns (uint256);
function isWhitelisted(address _token) external view returns (bool);
}import "../helpers/Ownable.sol";
// SPDX-License-Identifier: WTFPL
pragma solidity 0.8.2;
abstract contract Whitelistable is Ownable {
mapping(address => bool) public whitelisted;
event Added(address token);
event Removed(address token);
/**
* @dev Require adapter registered
*/
modifier onlyWhitelisted(address _lp) {
require(whitelisted[_lp], "Whitelistable#onlyWhitelisted: not whitelisted lp");
_;
}
/**
* @dev add pool token to whitelist
* @param _token pool address
*/
function add(address _token)
public
onlyOwner
{
_add(_token);
}
/**
* @dev batch add pool token to whitelist
* @param _tokens[] array of pool address
*/
function addBatch(address[] memory _tokens)
public
onlyOwner
{
for (uint256 i = 0; i < _tokens.length; i++) {
_add(_tokens[i]);
}
}
/**
* @dev remove pool token from whitelist
* @param _token pool address
*/
function remove(address _token)
public
onlyOwner
{
_remove(_token);
}
/**
* @dev batch remove pool token from whitelist
* @param _tokens[] array of pool address
*/
function removeBatch(address[] memory _tokens)
public
onlyOwner
{
for (uint256 i = 0; i < _tokens.length; i++) {
_remove(_tokens[i]);
}
}
function _add(address _token)
internal
{
whitelisted[_token] = true;
emit Added(_token);
}
function _remove(address _token)
internal
{
require(whitelisted[_token], 'Whitelistable#_Remove: not exist');
whitelisted[_token] = false;
emit Removed(_token);
}
}pragma solidity 0.8.2;
interface IUniswapV2Router {
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
}pragma solidity 0.8.2;
interface IUniswapV3Router {
struct ExactInputSingleParams {
address tokenIn;
address tokenOut;
uint24 fee;
address recipient;
uint256 deadline;
uint256 amountIn;
uint256 amountOutMinimum;
uint160 sqrtPriceLimitX96;
}
function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);
}pragma solidity 0.8.2;
interface IQuoter {
function quoteExactInputSingle(
address tokenIn,
address tokenOut,
uint24 fee,
uint256 amountIn,
uint160 sqrtPriceLimitX96
) external returns (uint256 amountOut);
}// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.0;
import "../ecosystem/openzeppelin/utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function _setOwner(address owner_)
internal
{
_owner = owner_;
emit OwnershipTransferred(address(0), owner_);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}{
"optimizer": {
"enabled": true,
"runs": 2000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IBasicIssuanceModule","name":"basicModule_","type":"address"},{"internalType":"address","name":"leverageAdapter_","type":"address"},{"internalType":"address","name":"genericRouter_","type":"address"},{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"Added","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"Removed","type":"event"},{"inputs":[],"name":"QUOTER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUSHI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNI_V2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNI_V3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"addBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"basicModule","outputs":[{"internalType":"contract IBasicIssuanceModule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lp","type":"address"},{"internalType":"address","name":"_exchange","type":"address"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_genericRouter","type":"address"},{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_lp","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"encodeMigration","outputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct IAdapter.Call[]","name":"calls","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lp","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"encodeWithdraw","outputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct IAdapter.Call[]","name":"calls","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genericRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lp","type":"address"},{"internalType":"address","name":"_exchange","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_exchange","type":"address"}],"name":"isExchange","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_lp","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"leverageAdapter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_lp","type":"address"}],"name":"outputTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"removeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_genericRouter","type":"address"}],"name":"updateGenericRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_leverageAdapter","type":"address"}],"name":"updateLeverageAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x60806040523480156200001157600080fd5b506040516200282b3803806200282b833981016040819052620000349162000149565b806200004081620000fe565b5050600480546001600160a01b039485166001600160a01b03199182161790915560038054938516938216939093179092556002805491909316911617905560056020527f66d1e47198bbd06869a5145fa9d9754a0fcc21678eaf232a96ad207bc4fb7a74805460ff199081166001908117909255730b498ff89709d3838a063f1dfa463091f9801c2b6000527fdc3260b8714f47f4f988b57b3e7a08d8d01cea3cd6aa56e5f178fba65a6790b480549091169091179055620001c9565b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350565b600080600080608085870312156200015f578384fd5b84516200016c81620001b0565b60208601519094506200017f81620001b0565b60408601519093506200019281620001b0565b6060860151909250620001a581620001b0565b939692955090935050565b6001600160a01b0381168114620001c657600080fd5b50565b61265280620001d96000396000f3fe6080604052600436106101955760003560e01c8063715018a6116100e1578063ad5c46481161008a578063d936547e11610064578063d936547e146104b0578063ee72053b146104e0578063f2fde38b14610508578063f5457e101461052857610195565b8063ad5c464814610440578063b431215814610468578063b8511ca91461048857610195565b8063a9b29861116100bb578063a9b29861146103e5578063a9d424e214610405578063ab560e101461041857610195565b8063715018a61461038a5780638da5cb5b1461039f5780638dae88c2146103bd57610195565b80633af32abf1161014357806351ecd2fa1161011d57806351ecd2fa146103105780636b80fe4a1461033d5780636b845bfe1461036a57610195565b80633af32abf146102895780633b4ddd50146102c25780634aa06652146102e257610195565b806324efa2641161017457806324efa2641461021157806329092d0e1461023157806339cfe5ff1461025157610195565b806236d2d31461019a5780630a3b0a4f146101cf57806310c5a5b3146101f1575b600080fd5b3480156101a657600080fd5b506101ba6101b53660046120d5565b610548565b60405190151581526020015b60405180910390f35b3480156101db57600080fd5b506101ef6101ea3660046120d5565b6105be565b005b3480156101fd57600080fd5b506101ef61020c3660046120d5565b610629565b34801561021d57600080fd5b506101ef61022c3660046121f1565b610710565b34801561023d57600080fd5b506101ef61024c3660046120d5565b6107bc565b34801561025d57600080fd5b50600254610271906001600160a01b031681565b6040516001600160a01b0390911681526020016101c6565b34801561029557600080fd5b506101ba6102a43660046120d5565b6001600160a01b031660009081526001602052604090205460ff1690565b3480156102ce57600080fd5b50600454610271906001600160a01b031681565b3480156102ee57600080fd5b506103026102fd366004612141565b61081f565b6040519081526020016101c6565b34801561031c57600080fd5b5061033061032b3660046120d5565b610977565b6040516101c691906123fb565b34801561034957600080fd5b5061035d6103583660046121c6565b6109ee565b6040516101c6919061240e565b34801561037657600080fd5b506101ef6103853660046121f1565b611009565b34801561039657600080fd5b506101ef6110b1565b3480156103ab57600080fd5b506000546001600160a01b0316610271565b3480156103c957600080fd5b5061027173b27308f9f90d607463bb33ea1bebb41c27ce5ab681565b3480156103f157600080fd5b5061035d6104003660046120f1565b611162565b6101ef610413366004612181565b611777565b34801561042457600080fd5b5061027173d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b34801561044c57600080fd5b5061027173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561047457600080fd5b506101ef6104833660046120d5565b6118cc565b34801561049457600080fd5b5061027173f164fc0ec4e93095b804a4795bbe1e041497b92a81565b3480156104bc57600080fd5b506101ba6104cb3660046120d5565b60016020526000908152604090205460ff1681565b3480156104ec57600080fd5b5061027173e592427a0aece92de3edee1f18e0157c0586156481565b34801561051457600080fd5b506101ef6105233660046120d5565b6119b3565b34801561053457600080fd5b50600354610271906001600160a01b031681565b60006001600160a01b03821673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f148061059157506001600160a01b03821673f164fc0ec4e93095b804a4795bbe1e041497b92a145b806105b857506001600160a01b03821673e592427a0aece92de3edee1f18e0157c05861564145b92915050565b6000546001600160a01b0316331461061d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61062681611af1565b50565b6000546001600160a01b031633146106835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6003546001600160a01b03828116911614156106e15760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206578697374730000000000000000000000000000000000006044820152606401610614565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461076a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b60005b81518110156107b8576107a682828151811061079957634e487b7160e01b600052603260045260246000fd5b6020026020010151611af1565b806107b0816125a2565b91505061076d565b5050565b6000546001600160a01b031633146108165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b61062681611b4d565b60008261082b81610548565b61089d5760405162461bcd60e51b815260206004820152602860248201527f416273747261637441646170746572236275793a2073686f756c64206265206560448201527f786368616e6765730000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b038516600090815260016020526040902054859060ff1661092d5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610614565b6001600160a01b03851673e592427a0aece92de3edee1f18e0157c0586156414156109635761095c8685611c06565b925061096e565b61095c868686611ce6565b50509392505050565b6060816001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156109b257600080fd5b505afa1580156109c6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105b8919081019061228f565b6001600160a01b038216600090815260016020526040902054606090839060ff16610a815760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610614565b6001600160a01b03841660009081526005602052604090205460ff1615610f11576040805160028082526060820190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610ab85750506040805180820182526001600160a01b0387168152815173e592427a0aece92de3edee1f18e0157c0586156460248201526044808201889052835180830390910181526064909101909252602082810180516001600160e01b03167f095ea7b3000000000000000000000000000000000000000000000000000000001790528101919091528151919350908390600090610b8957634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001600160a01b03841673aa6e8127831c9de45ae56bb1b0d4d4da6e5665bd1415610d505760408051808201825273e592427a0aece92de3edee1f18e0157c05861564815281516101008101835273aa6e8127831c9de45ae56bb1b0d4d4da6e5665bd815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2602082810191909152610bb8938201939093526002546001600160a01b03166060820152909182019063414bf38960e01b9060808101610c4f42600161258a565b8152602080820189905260016040808401919091526000606093840152805184516001600160a01b03908116602483015292850151831660448201529084015162ffffff1660648201529183015181166084830152608083015160a483015260a083015160c483015260c083015160e483015260e0909201519091166101048201526101240160408051601f198184030181529190526020810180516001600160e01b03167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529052825183906001908110610d4457634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b6001600160a01b038416730b498ff89709d3838a063f1dfa463091f9801c2b1415610f0c5760408051808201825273e592427a0aece92de3edee1f18e0157c058615648152815161010081018352730b498ff89709d3838a063f1dfa463091f9801c2b8152732260fac5e5542a773aa44fbcfedf7c193bc2c599602082810191909152612710938201939093526002546001600160a01b03166060820152909182019063414bf38960e01b9060808101610e0b42600161258a565b8152602080820189905260016040808401919091526000606093840152805184516001600160a01b03908116602483015292850151831660448201529084015162ffffff1660648201529183015181166084830152608083015160a483015260a083015160c483015260c083015160e483015260e0909201519091166101048201526101240160408051601f198184030181529190526020810180516001600160e01b03167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529052825183906001908110610f0057634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b611002565b60408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610f265750506040805180820182526004546001600160a01b03908116825260025483518983166024820152604481018990529116606480830191909152835180830390910181526084909101909252602082810180516001600160e01b03167f5c833bfd000000000000000000000000000000000000000000000000000000001790528101919091528151919350908390600090610ff657634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b5092915050565b6000546001600160a01b031633146110635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b60005b81518110156107b85761109f82828151811061109257634e487b7160e01b600052603260045260246000fd5b6020026020010151611b4d565b806110a9816125a2565b915050611066565b6000546001600160a01b0316331461110b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6001600160a01b038216600090815260016020526040902054606090839060ff166111f55760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610614565b6001600160a01b03841660009081526005602052604090205460ff1615611572576040805160038082526080820190925290816020015b60408051808201909152600081526060602082015281526020019060019003908161122c579050509150600061126285856109ee565b90508060008151811061128557634e487b7160e01b600052603260045260246000fd5b6020026020010151836000815181106112ae57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250806001815181106112da57634e487b7160e01b600052603260045260246000fd5b60200260200101518360018151811061130357634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001600160a01b03851673aa6e8127831c9de45ae56bb1b0d4d4da6e5665bd141561143d576040805180820182526001600160a01b038981168083526003549351938216602485015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2604485015273030ba81f1c18d280636f32af80b9aad02cf0854e60648501526084840152881660a48301529060208201907f8005168d000000000000000000000000000000000000000000000000000000009060c40160408051601f198184030181529190526020810180516001600160e01b03167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905283518490600290811061143157634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b6001600160a01b038516730b498ff89709d3838a063f1dfa463091f9801c2b141561156c576040805180820182526001600160a01b0389811680835260035493519382166024850152732260fac5e5542a773aa44fbcfedf7c193bc2c5996044850152739ff58f4ffb29fa2266ab25e75e2a8b350331165660648501526084840152881660a48301529060208201907f8005168d000000000000000000000000000000000000000000000000000000009060c40160408051601f198184030181529190526020810180516001600160e01b03167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905283518490600290811061156057634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b5061176e565b600061157d85610977565b90508051600161158d919061258a565b67ffffffffffffffff8111156115b357634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115f957816020015b6040805180820190915260008152606060208201528152602001906001900390816115d15790505b50925061160685856109ee565b60008151811061162657634e487b7160e01b600052603260045260246000fd5b60200260200101518360008151811061164f57634e487b7160e01b600052603260045260246000fd5b602002602001018190525060005b815181101561176b576040518060400160405280896001600160a01b0316815260200163beff455360e01b8484815181106116a857634e487b7160e01b600052603260045260246000fd5b60200260200101518a6040516024016116d79291906001600160a01b0392831681529116602082015260400190565b60408051601f198184030181529190526020810180516001600160e01b03167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290528461172f83600161258a565b8151811061174d57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080611763906125a2565b91505061165d565b50505b50949350505050565b8261178181610548565b6117f35760405162461bcd60e51b815260206004820152602860248201527f416273747261637441646170746572236275793a2073686f756c64206265206560448201527f786368616e6765730000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b038516600090815260016020526040902054859060ff166118835760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610614565b6001600160a01b03851673e592427a0aece92de3edee1f18e0157c0586156414156118b8576118b3868585611e5f565b6118c4565b6118c486868686611f8a565b505050505050565b6000546001600160a01b031633146119265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6002546001600160a01b03828116911614156119845760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206578697374730000000000000000000000000000000000006044820152606401610614565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6001600160a01b038116611a895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610614565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b038116600081815260016020818152604092839020805460ff191690921790915590519182527fdcfefddfe354ab15def7a2a6a8758e2ad4100c920318c627db94e29d833e156791015b60405180910390a150565b6001600160a01b03811660009081526001602052604090205460ff16611bb55760405162461bcd60e51b815260206004820181905260248201527f57686974656c69737461626c65235f52656d6f76653a206e6f742065786973746044820152606401610614565b6001600160a01b038116600081815260016020908152604091829020805460ff1916905590519182527f066a905b79c0121afe61e3a44e0b14b6bc1ec16d854cdba09efdfc9b6aa9af819101611b42565b6040517ff7729d4300000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201526001600160a01b0383166024820152610bb86044820152606481018290526000608482018190529073b27308f9f90d607463bb33ea1bebb41c27ce5ab69063f7729d439060a401602060405180830381600087803b158015611ca757600080fd5b505af1158015611cbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdf91906123a0565b9392505050565b6040805160028082526060820183526000928392919060208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600081518110611d4157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508481600181518110611d8357634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040517fd06ca61f0000000000000000000000000000000000000000000000000000000081529085169063d06ca61f90611dd990869085906004016124df565b60006040518083038186803b158015611df157600080fd5b505afa158015611e05573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e2d919081019061231c565b600181518110611e4d57634e487b7160e01b600052603260045260246000fd5b60200260200101519150509392505050565b604080516101008101825273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281526001600160a01b0385811660208301908152610bb88385019081523360608501908152608085018781523460a0870181815260c088018b8152600060e08a01908152995163414bf38960e01b81529851881660048a0152955187166024890152935162ffffff166044880152915185166064870152516084860152905160a4850152905160c484015292511660e482015273e592427a0aece92de3edee1f18e0157c058615649163414bf38991610104016020604051808303818588803b158015611f4b57600080fd5b505af1158015611f5f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611f8491906123a0565b50505050565b60408051600280825260608201835260009260208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600081518110611fe157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050848160018151811061202357634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040517f7ff36ab500000000000000000000000000000000000000000000000000000000815290851690637ff36ab590349061207f908790869033908990600401612500565b6000604051808303818588803b15801561209857600080fd5b505af11580156120ac573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526118c4919081019061231c565b6000602082840312156120e6578081fd5b8135611cdf81612607565b60008060008060808587031215612106578283fd5b843561211181612607565b9350602085013561212181612607565b9250604085013561213181612607565b9396929550929360600135925050565b600080600060608486031215612155578283fd5b833561216081612607565b9250602084013561217081612607565b929592945050506040919091013590565b60008060008060808587031215612196578384fd5b84356121a181612607565b935060208501356121b181612607565b93969395505050506040820135916060013590565b600080604083850312156121d8578182fd5b82356121e381612607565b946020939093013593505050565b60006020808385031215612203578182fd5b823567ffffffffffffffff811115612219578283fd5b8301601f81018513612229578283fd5b803561223c61223782612566565b612535565b8181528381019083850185840285018601891015612258578687fd5b8694505b8385101561228357803561226f81612607565b83526001949094019391850191850161225c565b50979650505050505050565b600060208083850312156122a1578182fd5b825167ffffffffffffffff8111156122b7578283fd5b8301601f810185136122c7578283fd5b80516122d561223782612566565b81815283810190838501858402850186018910156122f1578687fd5b8694505b8385101561228357805161230881612607565b8352600194909401939185019185016122f5565b6000602080838503121561232e578182fd5b825167ffffffffffffffff811115612344578283fd5b8301601f81018513612354578283fd5b805161236261223782612566565b818152838101908385018584028501860189101561237e578687fd5b8694505b83851015612283578051835260019490940193918501918501612382565b6000602082840312156123b1578081fd5b5051919050565b6000815180845260208085019450808401835b838110156123f05781516001600160a01b0316875295820195908201906001016123cb565b509495945050505050565b600060208252611cdf60208301846123b8565b60208082528251828201819052600091906040908185019080840286018301878501865b838110156124d1578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0018552815180516001600160a01b031684528701518784018790528051878501819052895b8181101561249f578281018a0151868201606001528901612483565b818111156124b0578a606083880101525b5095880195601f01601f191693909301606001925090860190600101612432565b509098975050505050505050565b6000838252604060208301526124f860408301846123b8565b949350505050565b60008582526080602083015261251960808301866123b8565b6001600160a01b03949094166040830152506060015292915050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561255e5761255e6125f1565b604052919050565b600067ffffffffffffffff821115612580576125806125f1565b5060209081020190565b6000821982111561259d5761259d6125db565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156125d4576125d46125db565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461062657600080fdfea26469706673582212204a879b4411e1e833278cf5ba45b296e11c3e07c62374fd0d3c60002fed60807f64736f6c63430008020033000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000058ce791454e62f6a5392706745cd863a4f1f52ac
Deployed Bytecode
0x6080604052600436106101955760003560e01c8063715018a6116100e1578063ad5c46481161008a578063d936547e11610064578063d936547e146104b0578063ee72053b146104e0578063f2fde38b14610508578063f5457e101461052857610195565b8063ad5c464814610440578063b431215814610468578063b8511ca91461048857610195565b8063a9b29861116100bb578063a9b29861146103e5578063a9d424e214610405578063ab560e101461041857610195565b8063715018a61461038a5780638da5cb5b1461039f5780638dae88c2146103bd57610195565b80633af32abf1161014357806351ecd2fa1161011d57806351ecd2fa146103105780636b80fe4a1461033d5780636b845bfe1461036a57610195565b80633af32abf146102895780633b4ddd50146102c25780634aa06652146102e257610195565b806324efa2641161017457806324efa2641461021157806329092d0e1461023157806339cfe5ff1461025157610195565b806236d2d31461019a5780630a3b0a4f146101cf57806310c5a5b3146101f1575b600080fd5b3480156101a657600080fd5b506101ba6101b53660046120d5565b610548565b60405190151581526020015b60405180910390f35b3480156101db57600080fd5b506101ef6101ea3660046120d5565b6105be565b005b3480156101fd57600080fd5b506101ef61020c3660046120d5565b610629565b34801561021d57600080fd5b506101ef61022c3660046121f1565b610710565b34801561023d57600080fd5b506101ef61024c3660046120d5565b6107bc565b34801561025d57600080fd5b50600254610271906001600160a01b031681565b6040516001600160a01b0390911681526020016101c6565b34801561029557600080fd5b506101ba6102a43660046120d5565b6001600160a01b031660009081526001602052604090205460ff1690565b3480156102ce57600080fd5b50600454610271906001600160a01b031681565b3480156102ee57600080fd5b506103026102fd366004612141565b61081f565b6040519081526020016101c6565b34801561031c57600080fd5b5061033061032b3660046120d5565b610977565b6040516101c691906123fb565b34801561034957600080fd5b5061035d6103583660046121c6565b6109ee565b6040516101c6919061240e565b34801561037657600080fd5b506101ef6103853660046121f1565b611009565b34801561039657600080fd5b506101ef6110b1565b3480156103ab57600080fd5b506000546001600160a01b0316610271565b3480156103c957600080fd5b5061027173b27308f9f90d607463bb33ea1bebb41c27ce5ab681565b3480156103f157600080fd5b5061035d6104003660046120f1565b611162565b6101ef610413366004612181565b611777565b34801561042457600080fd5b5061027173d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b34801561044c57600080fd5b5061027173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561047457600080fd5b506101ef6104833660046120d5565b6118cc565b34801561049457600080fd5b5061027173f164fc0ec4e93095b804a4795bbe1e041497b92a81565b3480156104bc57600080fd5b506101ba6104cb3660046120d5565b60016020526000908152604090205460ff1681565b3480156104ec57600080fd5b5061027173e592427a0aece92de3edee1f18e0157c0586156481565b34801561051457600080fd5b506101ef6105233660046120d5565b6119b3565b34801561053457600080fd5b50600354610271906001600160a01b031681565b60006001600160a01b03821673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f148061059157506001600160a01b03821673f164fc0ec4e93095b804a4795bbe1e041497b92a145b806105b857506001600160a01b03821673e592427a0aece92de3edee1f18e0157c05861564145b92915050565b6000546001600160a01b0316331461061d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61062681611af1565b50565b6000546001600160a01b031633146106835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6003546001600160a01b03828116911614156106e15760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206578697374730000000000000000000000000000000000006044820152606401610614565b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461076a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b60005b81518110156107b8576107a682828151811061079957634e487b7160e01b600052603260045260246000fd5b6020026020010151611af1565b806107b0816125a2565b91505061076d565b5050565b6000546001600160a01b031633146108165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b61062681611b4d565b60008261082b81610548565b61089d5760405162461bcd60e51b815260206004820152602860248201527f416273747261637441646170746572236275793a2073686f756c64206265206560448201527f786368616e6765730000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b038516600090815260016020526040902054859060ff1661092d5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610614565b6001600160a01b03851673e592427a0aece92de3edee1f18e0157c0586156414156109635761095c8685611c06565b925061096e565b61095c868686611ce6565b50509392505050565b6060816001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156109b257600080fd5b505afa1580156109c6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105b8919081019061228f565b6001600160a01b038216600090815260016020526040902054606090839060ff16610a815760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610614565b6001600160a01b03841660009081526005602052604090205460ff1615610f11576040805160028082526060820190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610ab85750506040805180820182526001600160a01b0387168152815173e592427a0aece92de3edee1f18e0157c0586156460248201526044808201889052835180830390910181526064909101909252602082810180516001600160e01b03167f095ea7b3000000000000000000000000000000000000000000000000000000001790528101919091528151919350908390600090610b8957634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001600160a01b03841673aa6e8127831c9de45ae56bb1b0d4d4da6e5665bd1415610d505760408051808201825273e592427a0aece92de3edee1f18e0157c05861564815281516101008101835273aa6e8127831c9de45ae56bb1b0d4d4da6e5665bd815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2602082810191909152610bb8938201939093526002546001600160a01b03166060820152909182019063414bf38960e01b9060808101610c4f42600161258a565b8152602080820189905260016040808401919091526000606093840152805184516001600160a01b03908116602483015292850151831660448201529084015162ffffff1660648201529183015181166084830152608083015160a483015260a083015160c483015260c083015160e483015260e0909201519091166101048201526101240160408051601f198184030181529190526020810180516001600160e01b03167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529052825183906001908110610d4457634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b6001600160a01b038416730b498ff89709d3838a063f1dfa463091f9801c2b1415610f0c5760408051808201825273e592427a0aece92de3edee1f18e0157c058615648152815161010081018352730b498ff89709d3838a063f1dfa463091f9801c2b8152732260fac5e5542a773aa44fbcfedf7c193bc2c599602082810191909152612710938201939093526002546001600160a01b03166060820152909182019063414bf38960e01b9060808101610e0b42600161258a565b8152602080820189905260016040808401919091526000606093840152805184516001600160a01b03908116602483015292850151831660448201529084015162ffffff1660648201529183015181166084830152608083015160a483015260a083015160c483015260c083015160e483015260e0909201519091166101048201526101240160408051601f198184030181529190526020810180516001600160e01b03167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529052825183906001908110610f0057634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b611002565b60408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610f265750506040805180820182526004546001600160a01b03908116825260025483518983166024820152604481018990529116606480830191909152835180830390910181526084909101909252602082810180516001600160e01b03167f5c833bfd000000000000000000000000000000000000000000000000000000001790528101919091528151919350908390600090610ff657634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b5092915050565b6000546001600160a01b031633146110635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b60005b81518110156107b85761109f82828151811061109257634e487b7160e01b600052603260045260246000fd5b6020026020010151611b4d565b806110a9816125a2565b915050611066565b6000546001600160a01b0316331461110b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6001600160a01b038216600090815260016020526040902054606090839060ff166111f55760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610614565b6001600160a01b03841660009081526005602052604090205460ff1615611572576040805160038082526080820190925290816020015b60408051808201909152600081526060602082015281526020019060019003908161122c579050509150600061126285856109ee565b90508060008151811061128557634e487b7160e01b600052603260045260246000fd5b6020026020010151836000815181106112ae57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250806001815181106112da57634e487b7160e01b600052603260045260246000fd5b60200260200101518360018151811061130357634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001600160a01b03851673aa6e8127831c9de45ae56bb1b0d4d4da6e5665bd141561143d576040805180820182526001600160a01b038981168083526003549351938216602485015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2604485015273030ba81f1c18d280636f32af80b9aad02cf0854e60648501526084840152881660a48301529060208201907f8005168d000000000000000000000000000000000000000000000000000000009060c40160408051601f198184030181529190526020810180516001600160e01b03167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905283518490600290811061143157634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b6001600160a01b038516730b498ff89709d3838a063f1dfa463091f9801c2b141561156c576040805180820182526001600160a01b0389811680835260035493519382166024850152732260fac5e5542a773aa44fbcfedf7c193bc2c5996044850152739ff58f4ffb29fa2266ab25e75e2a8b350331165660648501526084840152881660a48301529060208201907f8005168d000000000000000000000000000000000000000000000000000000009060c40160408051601f198184030181529190526020810180516001600160e01b03167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905283518490600290811061156057634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b5061176e565b600061157d85610977565b90508051600161158d919061258a565b67ffffffffffffffff8111156115b357634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115f957816020015b6040805180820190915260008152606060208201528152602001906001900390816115d15790505b50925061160685856109ee565b60008151811061162657634e487b7160e01b600052603260045260246000fd5b60200260200101518360008151811061164f57634e487b7160e01b600052603260045260246000fd5b602002602001018190525060005b815181101561176b576040518060400160405280896001600160a01b0316815260200163beff455360e01b8484815181106116a857634e487b7160e01b600052603260045260246000fd5b60200260200101518a6040516024016116d79291906001600160a01b0392831681529116602082015260400190565b60408051601f198184030181529190526020810180516001600160e01b03167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290528461172f83600161258a565b8151811061174d57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080611763906125a2565b91505061165d565b50505b50949350505050565b8261178181610548565b6117f35760405162461bcd60e51b815260206004820152602860248201527f416273747261637441646170746572236275793a2073686f756c64206265206560448201527f786368616e6765730000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b038516600090815260016020526040902054859060ff166118835760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610614565b6001600160a01b03851673e592427a0aece92de3edee1f18e0157c0586156414156118b8576118b3868585611e5f565b6118c4565b6118c486868686611f8a565b505050505050565b6000546001600160a01b031633146119265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6002546001600160a01b03828116911614156119845760405162461bcd60e51b815260206004820152600e60248201527f416c7265616479206578697374730000000000000000000000000000000000006044820152606401610614565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6001600160a01b038116611a895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610614565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b038116600081815260016020818152604092839020805460ff191690921790915590519182527fdcfefddfe354ab15def7a2a6a8758e2ad4100c920318c627db94e29d833e156791015b60405180910390a150565b6001600160a01b03811660009081526001602052604090205460ff16611bb55760405162461bcd60e51b815260206004820181905260248201527f57686974656c69737461626c65235f52656d6f76653a206e6f742065786973746044820152606401610614565b6001600160a01b038116600081815260016020908152604091829020805460ff1916905590519182527f066a905b79c0121afe61e3a44e0b14b6bc1ec16d854cdba09efdfc9b6aa9af819101611b42565b6040517ff7729d4300000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201526001600160a01b0383166024820152610bb86044820152606481018290526000608482018190529073b27308f9f90d607463bb33ea1bebb41c27ce5ab69063f7729d439060a401602060405180830381600087803b158015611ca757600080fd5b505af1158015611cbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdf91906123a0565b9392505050565b6040805160028082526060820183526000928392919060208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600081518110611d4157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508481600181518110611d8357634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040517fd06ca61f0000000000000000000000000000000000000000000000000000000081529085169063d06ca61f90611dd990869085906004016124df565b60006040518083038186803b158015611df157600080fd5b505afa158015611e05573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e2d919081019061231c565b600181518110611e4d57634e487b7160e01b600052603260045260246000fd5b60200260200101519150509392505050565b604080516101008101825273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281526001600160a01b0385811660208301908152610bb88385019081523360608501908152608085018781523460a0870181815260c088018b8152600060e08a01908152995163414bf38960e01b81529851881660048a0152955187166024890152935162ffffff166044880152915185166064870152516084860152905160a4850152905160c484015292511660e482015273e592427a0aece92de3edee1f18e0157c058615649163414bf38991610104016020604051808303818588803b158015611f4b57600080fd5b505af1158015611f5f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611f8491906123a0565b50505050565b60408051600280825260608201835260009260208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600081518110611fe157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050848160018151811061202357634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040517f7ff36ab500000000000000000000000000000000000000000000000000000000815290851690637ff36ab590349061207f908790869033908990600401612500565b6000604051808303818588803b15801561209857600080fd5b505af11580156120ac573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526118c4919081019061231c565b6000602082840312156120e6578081fd5b8135611cdf81612607565b60008060008060808587031215612106578283fd5b843561211181612607565b9350602085013561212181612607565b9250604085013561213181612607565b9396929550929360600135925050565b600080600060608486031215612155578283fd5b833561216081612607565b9250602084013561217081612607565b929592945050506040919091013590565b60008060008060808587031215612196578384fd5b84356121a181612607565b935060208501356121b181612607565b93969395505050506040820135916060013590565b600080604083850312156121d8578182fd5b82356121e381612607565b946020939093013593505050565b60006020808385031215612203578182fd5b823567ffffffffffffffff811115612219578283fd5b8301601f81018513612229578283fd5b803561223c61223782612566565b612535565b8181528381019083850185840285018601891015612258578687fd5b8694505b8385101561228357803561226f81612607565b83526001949094019391850191850161225c565b50979650505050505050565b600060208083850312156122a1578182fd5b825167ffffffffffffffff8111156122b7578283fd5b8301601f810185136122c7578283fd5b80516122d561223782612566565b81815283810190838501858402850186018910156122f1578687fd5b8694505b8385101561228357805161230881612607565b8352600194909401939185019185016122f5565b6000602080838503121561232e578182fd5b825167ffffffffffffffff811115612344578283fd5b8301601f81018513612354578283fd5b805161236261223782612566565b818152838101908385018584028501860189101561237e578687fd5b8694505b83851015612283578051835260019490940193918501918501612382565b6000602082840312156123b1578081fd5b5051919050565b6000815180845260208085019450808401835b838110156123f05781516001600160a01b0316875295820195908201906001016123cb565b509495945050505050565b600060208252611cdf60208301846123b8565b60208082528251828201819052600091906040908185019080840286018301878501865b838110156124d1578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0018552815180516001600160a01b031684528701518784018790528051878501819052895b8181101561249f578281018a0151868201606001528901612483565b818111156124b0578a606083880101525b5095880195601f01601f191693909301606001925090860190600101612432565b509098975050505050505050565b6000838252604060208301526124f860408301846123b8565b949350505050565b60008582526080602083015261251960808301866123b8565b6001600160a01b03949094166040830152506060015292915050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561255e5761255e6125f1565b604052919050565b600067ffffffffffffffff821115612580576125806125f1565b5060209081020190565b6000821982111561259d5761259d6125db565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156125d4576125d46125db565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461062657600080fdfea26469706673582212204a879b4411e1e833278cf5ba45b296e11c3e07c62374fd0d3c60002fed60807f64736f6c63430008020033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.