Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 5 from a total of 5 transactions
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 14615305 | 1407 days ago | 0.004 ETH | ||||
| - | 14615305 | 1407 days ago | 0.004 ETH | ||||
| - | 14615282 | 1407 days ago | 0.0033 ETH | ||||
| - | 14615282 | 1407 days ago | 0.0033 ETH | ||||
| - | 14615233 | 1407 days ago | 0.01 ETH | ||||
| - | 14615233 | 1407 days ago | 0.01 ETH | ||||
| - | 14615117 | 1408 days ago | 0.004 ETH | ||||
| - | 14615117 | 1408 days ago | 0.004 ETH | ||||
| - | 14615011 | 1408 days ago | 0.004 ETH | ||||
| - | 14615011 | 1408 days ago | 0.004 ETH | ||||
| - | 14614968 | 1408 days ago | 0.0055 ETH | ||||
| - | 14614968 | 1408 days ago | 0.0055 ETH | ||||
| - | 14614490 | 1408 days ago | 0.004 ETH | ||||
| - | 14614490 | 1408 days ago | 0.004 ETH | ||||
| - | 14614456 | 1408 days ago | 0.0005 ETH | ||||
| - | 14614456 | 1408 days ago | 0.0005 ETH | ||||
| - | 14614134 | 1408 days ago | 0.001 ETH | ||||
| - | 14614134 | 1408 days ago | 0.001 ETH | ||||
| - | 14614013 | 1408 days ago | 0.001 ETH | ||||
| - | 14614013 | 1408 days ago | 0.001 ETH | ||||
| - | 14613983 | 1408 days ago | 0.00034 ETH | ||||
| - | 14613983 | 1408 days ago | 0.00034 ETH | ||||
| - | 14613892 | 1408 days ago | 0.001 ETH | ||||
| - | 14613892 | 1408 days ago | 0.001 ETH | ||||
| - | 14613879 | 1408 days ago | 0.00034 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BalancerAdapter
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 IBalancerPool {
function getCurrentTokens() external view returns (address[] memory tokens);
function exitPool(uint256 poolAmountIn, uint256[] calldata minAmountsOut) external;
}
/// @title Balancer(Indexed + Powerpool) Vampire Attack Contract
/// @author Enso.finance (github.com/EnsoFinance)
/// @notice Adapter for redeeming the underlying assets from Indexed Protocol
contract BalancerAdapter is AbstractAdapter {
using SafeERC20 for IERC20;
constructor(address owner_) AbstractAdapter(owner_) {}
function outputTokens(address _lp)
public
view
override
returns (address[] memory)
{
return IBalancerPool(_lp).getCurrentTokens();
}
function encodeMigration(address _genericRouter, address _strategy, address _lp, uint256 _amount)
public
override
view
onlyWhitelisted(_lp)
returns (Call[] memory calls)
{
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)
{
uint256[] memory _min = new uint256[](outputTokens(_lp).length);
calls = new Call[](1);
calls[0] = Call(
payable(_lp),
abi.encodeWithSelector(
IBalancerPool(_lp).exitPool.selector,
_amount,
_min
)
);
}
}// 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":"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":[{"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":[{"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":[{"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":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5060405162001d6638038062001d668339810160408190526100319161008d565b8061003b81610042565b50506100bb565b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350565b60006020828403121561009e578081fd5b81516001600160a01b03811681146100b4578182fd5b9392505050565b611c9b80620000cb6000396000f3fe60806040526004361061015e5760003560e01c80638da5cb5b116100c0578063ad5c464811610074578063d936547e11610059578063d936547e146103f5578063ee72053b14610425578063f2fde38b1461044d5761015e565b8063ad5c4648146103a5578063b8511ca9146103cd5761015e565b8063a9b29861116100a5578063a9b298611461034a578063a9d424e21461036a578063ab560e101461037d5761015e565b80638da5cb5b146102f05780638dae88c2146103225761015e565b80634aa06652116101175780636b80fe4a116100fc5780636b80fe4a1461028e5780636b845bfe146102bb578063715018a6146102db5761015e565b80634aa066521461023357806351ecd2fa146102615761015e565b806324efa2641161014857806324efa264146101ba57806329092d0e146101da5780633af32abf146101fa5761015e565b806236d2d3146101635780630a3b0a4f14610198575b600080fd5b34801561016f57600080fd5b5061018361017e3660046116d1565b61046d565b60405190151581526020015b60405180910390f35b3480156101a457600080fd5b506101b86101b33660046116d1565b6104e3565b005b3480156101c657600080fd5b506101b86101d53660046117ed565b61054e565b3480156101e657600080fd5b506101b86101f53660046116d1565b6105fa565b34801561020657600080fd5b506101836102153660046116d1565b6001600160a01b031660009081526001602052604090205460ff1690565b34801561023f57600080fd5b5061025361024e36600461173d565b61065d565b60405190815260200161018f565b34801561026d57600080fd5b5061028161027c3660046116d1565b6107b5565b60405161018f91906119f7565b34801561029a57600080fd5b506102ae6102a93660046117c2565b61082c565b60405161018f9190611a0a565b3480156102c757600080fd5b506101b86102d63660046117ed565b610a26565b3480156102e757600080fd5b506101b8610ace565b3480156102fc57600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161018f565b34801561032e57600080fd5b5061030a73b27308f9f90d607463bb33ea1bebb41c27ce5ab681565b34801561035657600080fd5b506102ae6103653660046116ed565b610b8a565b6101b861037836600461177d565b610e36565b34801561038957600080fd5b5061030a73d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b3480156103b157600080fd5b5061030a73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3480156103d957600080fd5b5061030a73f164fc0ec4e93095b804a4795bbe1e041497b92a81565b34801561040157600080fd5b506101836104103660046116d1565b60016020526000908152604090205460ff1681565b34801561043157600080fd5b5061030a73e592427a0aece92de3edee1f18e0157c0586156481565b34801561045957600080fd5b506101b86104683660046116d1565b610f8b565b60006001600160a01b03821673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f14806104b657506001600160a01b03821673f164fc0ec4e93095b804a4795bbe1e041497b92a145b806104dd57506001600160a01b03821673e592427a0aece92de3edee1f18e0157c05861564145b92915050565b6000546001600160a01b031633146105425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61054b816110d4565b50565b6000546001600160a01b031633146105a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b60005b81518110156105f6576105e48282815181106105d757634e487b7160e01b600052603260045260246000fd5b60200260200101516110d4565b806105ee81611beb565b9150506105ab565b5050565b6000546001600160a01b031633146106545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b61054b81611130565b6000826106698161046d565b6106db5760405162461bcd60e51b815260206004820152602860248201527f416273747261637441646170746572236275793a2073686f756c64206265206560448201527f786368616e6765730000000000000000000000000000000000000000000000006064820152608401610539565b6001600160a01b038516600090815260016020526040902054859060ff1661076b5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610539565b6001600160a01b03851673e592427a0aece92de3edee1f18e0157c0586156414156107a15761079a86856111e9565b92506107ac565b61079a8686866112c9565b50509392505050565b6060816001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156107f057600080fd5b505afa158015610804573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104dd919081019061188b565b6001600160a01b038216600090815260016020526040902054606090839060ff166108bf5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610539565b60006108ca856107b5565b5167ffffffffffffffff8111156108f157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561091a578160200160208202803683370190505b50604080516001808252818301909252919250816020015b6040805180820190915260008152606060208201528152602001906001900390816109325790505092506040518060400160405280866001600160a01b0316815260200163b02f0b7360e01b8684604051602401610991929190611b31565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905283518490600090610a1357634e487b7160e01b600052603260045260246000fd5b6020026020010181905250505092915050565b6000546001600160a01b03163314610a805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b60005b81518110156105f657610abc828281518110610aaf57634e487b7160e01b600052603260045260246000fd5b6020026020010151611130565b80610ac681611beb565b915050610a83565b6000546001600160a01b03163314610b285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6001600160a01b038216600090815260016020526040902054606090839060ff16610c1d5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610539565b6000610c28856107b5565b905080516001610c389190611bd3565b67ffffffffffffffff811115610c5e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ca457816020015b604080518082019091526000815260606020820152815260200190600190039081610c7c5790505b509250610cb1858561082c565b600081518110610cd157634e487b7160e01b600052603260045260246000fd5b602002602001015183600081518110610cfa57634e487b7160e01b600052603260045260246000fd5b602002602001018190525060005b8151811015610e2b576040518060400160405280896001600160a01b0316815260200163beff455360e01b848481518110610d5357634e487b7160e01b600052603260045260246000fd5b60200260200101518a604051602401610d829291906001600160a01b0392831681529116602082015260400190565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905284610def836001611bd3565b81518110610e0d57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610e2390611beb565b915050610d08565b505050949350505050565b82610e408161046d565b610eb25760405162461bcd60e51b815260206004820152602860248201527f416273747261637441646170746572236275793a2073686f756c64206265206560448201527f786368616e6765730000000000000000000000000000000000000000000000006064820152608401610539565b6001600160a01b038516600090815260016020526040902054859060ff16610f425760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610539565b6001600160a01b03851673e592427a0aece92de3edee1f18e0157c058615641415610f7757610f72868585611442565b610f83565b610f8386868686611586565b505050505050565b6000546001600160a01b03163314610fe55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b6001600160a01b0381166110615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610539565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b038116600081815260016020818152604092839020805460ff191690921790915590519182527fdcfefddfe354ab15def7a2a6a8758e2ad4100c920318c627db94e29d833e156791015b60405180910390a150565b6001600160a01b03811660009081526001602052604090205460ff166111985760405162461bcd60e51b815260206004820181905260248201527f57686974656c69737461626c65235f52656d6f76653a206e6f742065786973746044820152606401610539565b6001600160a01b038116600081815260016020908152604091829020805460ff1916905590519182527f066a905b79c0121afe61e3a44e0b14b6bc1ec16d854cdba09efdfc9b6aa9af819101611125565b6040517ff7729d4300000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201526001600160a01b0383166024820152610bb86044820152606481018290526000608482018190529073b27308f9f90d607463bb33ea1bebb41c27ce5ab69063f7729d439060a401602060405180830381600087803b15801561128a57600080fd5b505af115801561129e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c2919061199c565b9392505050565b6040805160028082526060820183526000928392919060208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160008151811061132457634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050848160018151811061136657634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040517fd06ca61f0000000000000000000000000000000000000000000000000000000081529085169063d06ca61f906113bc9086908590600401611adb565b60006040518083038186803b1580156113d457600080fd5b505afa1580156113e8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114109190810190611918565b60018151811061143057634e487b7160e01b600052603260045260246000fd5b60200260200101519150509392505050565b604080516101008101825273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281526001600160a01b0385811660208301908152610bb88385019081523360608501908152608085018781523460a0870181815260c088018b8152600060e08a0190815299517f414bf3890000000000000000000000000000000000000000000000000000000081529851881660048a0152955187166024890152935162ffffff166044880152915185166064870152516084860152905160a4850152905160c484015292511660e482015273e592427a0aece92de3edee1f18e0157c058615649163414bf38991610104016020604051808303818588803b15801561154757600080fd5b505af115801561155b573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611580919061199c565b50505050565b60408051600280825260608201835260009260208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816000815181106115dd57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050848160018151811061161f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040517f7ff36ab500000000000000000000000000000000000000000000000000000000815290851690637ff36ab590349061167b908790869033908990600401611afc565b6000604051808303818588803b15801561169457600080fd5b505af11580156116a8573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610f839190810190611918565b6000602082840312156116e2578081fd5b81356112c281611c50565b60008060008060808587031215611702578283fd5b843561170d81611c50565b9350602085013561171d81611c50565b9250604085013561172d81611c50565b9396929550929360600135925050565b600080600060608486031215611751578283fd5b833561175c81611c50565b9250602084013561176c81611c50565b929592945050506040919091013590565b60008060008060808587031215611792578384fd5b843561179d81611c50565b935060208501356117ad81611c50565b93969395505050506040820135916060013590565b600080604083850312156117d4578182fd5b82356117df81611c50565b946020939093013593505050565b600060208083850312156117ff578182fd5b823567ffffffffffffffff811115611815578283fd5b8301601f81018513611825578283fd5b803561183861183382611baf565b611b7e565b8181528381019083850185840285018601891015611854578687fd5b8694505b8385101561187f57803561186b81611c50565b835260019490940193918501918501611858565b50979650505050505050565b6000602080838503121561189d578182fd5b825167ffffffffffffffff8111156118b3578283fd5b8301601f810185136118c3578283fd5b80516118d161183382611baf565b81815283810190838501858402850186018910156118ed578687fd5b8694505b8385101561187f57805161190481611c50565b8352600194909401939185019185016118f1565b6000602080838503121561192a578182fd5b825167ffffffffffffffff811115611940578283fd5b8301601f81018513611950578283fd5b805161195e61183382611baf565b818152838101908385018584028501860189101561197a578687fd5b8694505b8385101561187f57805183526001949094019391850191850161197e565b6000602082840312156119ad578081fd5b5051919050565b6000815180845260208085019450808401835b838110156119ec5781516001600160a01b0316875295820195908201906001016119c7565b509495945050505050565b6000602082526112c260208301846119b4565b60208082528251828201819052600091906040908185019080840286018301878501865b83811015611acd578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0018552815180516001600160a01b031684528701518784018790528051878501819052895b81811015611a9b578281018a0151868201606001528901611a7f565b81811115611aac578a606083880101525b5095880195601f01601f191693909301606001925090860190600101611a2e565b509098975050505050505050565b600083825260406020830152611af460408301846119b4565b949350505050565b600085825260806020830152611b1560808301866119b4565b6001600160a01b03949094166040830152506060015292915050565b60006040820184835260206040818501528185518084526060860191508287019350845b81811015611b7157845183529383019391830191600101611b55565b5090979650505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611ba757611ba7611c3a565b604052919050565b600067ffffffffffffffff821115611bc957611bc9611c3a565b5060209081020190565b60008219821115611be657611be6611c24565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611c1d57611c1d611c24565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461054b57600080fdfea26469706673582212203a32b947888a9f61ca5a57a1abe8f60b4cb329171ee5ce7d547b65560ef0aea864736f6c6343000802003300000000000000000000000058ce791454e62f6a5392706745cd863a4f1f52ac
Deployed Bytecode
0x60806040526004361061015e5760003560e01c80638da5cb5b116100c0578063ad5c464811610074578063d936547e11610059578063d936547e146103f5578063ee72053b14610425578063f2fde38b1461044d5761015e565b8063ad5c4648146103a5578063b8511ca9146103cd5761015e565b8063a9b29861116100a5578063a9b298611461034a578063a9d424e21461036a578063ab560e101461037d5761015e565b80638da5cb5b146102f05780638dae88c2146103225761015e565b80634aa06652116101175780636b80fe4a116100fc5780636b80fe4a1461028e5780636b845bfe146102bb578063715018a6146102db5761015e565b80634aa066521461023357806351ecd2fa146102615761015e565b806324efa2641161014857806324efa264146101ba57806329092d0e146101da5780633af32abf146101fa5761015e565b806236d2d3146101635780630a3b0a4f14610198575b600080fd5b34801561016f57600080fd5b5061018361017e3660046116d1565b61046d565b60405190151581526020015b60405180910390f35b3480156101a457600080fd5b506101b86101b33660046116d1565b6104e3565b005b3480156101c657600080fd5b506101b86101d53660046117ed565b61054e565b3480156101e657600080fd5b506101b86101f53660046116d1565b6105fa565b34801561020657600080fd5b506101836102153660046116d1565b6001600160a01b031660009081526001602052604090205460ff1690565b34801561023f57600080fd5b5061025361024e36600461173d565b61065d565b60405190815260200161018f565b34801561026d57600080fd5b5061028161027c3660046116d1565b6107b5565b60405161018f91906119f7565b34801561029a57600080fd5b506102ae6102a93660046117c2565b61082c565b60405161018f9190611a0a565b3480156102c757600080fd5b506101b86102d63660046117ed565b610a26565b3480156102e757600080fd5b506101b8610ace565b3480156102fc57600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161018f565b34801561032e57600080fd5b5061030a73b27308f9f90d607463bb33ea1bebb41c27ce5ab681565b34801561035657600080fd5b506102ae6103653660046116ed565b610b8a565b6101b861037836600461177d565b610e36565b34801561038957600080fd5b5061030a73d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b3480156103b157600080fd5b5061030a73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3480156103d957600080fd5b5061030a73f164fc0ec4e93095b804a4795bbe1e041497b92a81565b34801561040157600080fd5b506101836104103660046116d1565b60016020526000908152604090205460ff1681565b34801561043157600080fd5b5061030a73e592427a0aece92de3edee1f18e0157c0586156481565b34801561045957600080fd5b506101b86104683660046116d1565b610f8b565b60006001600160a01b03821673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f14806104b657506001600160a01b03821673f164fc0ec4e93095b804a4795bbe1e041497b92a145b806104dd57506001600160a01b03821673e592427a0aece92de3edee1f18e0157c05861564145b92915050565b6000546001600160a01b031633146105425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61054b816110d4565b50565b6000546001600160a01b031633146105a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b60005b81518110156105f6576105e48282815181106105d757634e487b7160e01b600052603260045260246000fd5b60200260200101516110d4565b806105ee81611beb565b9150506105ab565b5050565b6000546001600160a01b031633146106545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b61054b81611130565b6000826106698161046d565b6106db5760405162461bcd60e51b815260206004820152602860248201527f416273747261637441646170746572236275793a2073686f756c64206265206560448201527f786368616e6765730000000000000000000000000000000000000000000000006064820152608401610539565b6001600160a01b038516600090815260016020526040902054859060ff1661076b5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610539565b6001600160a01b03851673e592427a0aece92de3edee1f18e0157c0586156414156107a15761079a86856111e9565b92506107ac565b61079a8686866112c9565b50509392505050565b6060816001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156107f057600080fd5b505afa158015610804573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104dd919081019061188b565b6001600160a01b038216600090815260016020526040902054606090839060ff166108bf5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610539565b60006108ca856107b5565b5167ffffffffffffffff8111156108f157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561091a578160200160208202803683370190505b50604080516001808252818301909252919250816020015b6040805180820190915260008152606060208201528152602001906001900390816109325790505092506040518060400160405280866001600160a01b0316815260200163b02f0b7360e01b8684604051602401610991929190611b31565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905283518490600090610a1357634e487b7160e01b600052603260045260246000fd5b6020026020010181905250505092915050565b6000546001600160a01b03163314610a805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b60005b81518110156105f657610abc828281518110610aaf57634e487b7160e01b600052603260045260246000fd5b6020026020010151611130565b80610ac681611beb565b915050610a83565b6000546001600160a01b03163314610b285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6001600160a01b038216600090815260016020526040902054606090839060ff16610c1d5760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610539565b6000610c28856107b5565b905080516001610c389190611bd3565b67ffffffffffffffff811115610c5e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ca457816020015b604080518082019091526000815260606020820152815260200190600190039081610c7c5790505b509250610cb1858561082c565b600081518110610cd157634e487b7160e01b600052603260045260246000fd5b602002602001015183600081518110610cfa57634e487b7160e01b600052603260045260246000fd5b602002602001018190525060005b8151811015610e2b576040518060400160405280896001600160a01b0316815260200163beff455360e01b848481518110610d5357634e487b7160e01b600052603260045260246000fd5b60200260200101518a604051602401610d829291906001600160a01b0392831681529116602082015260400190565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905284610def836001611bd3565b81518110610e0d57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610e2390611beb565b915050610d08565b505050949350505050565b82610e408161046d565b610eb25760405162461bcd60e51b815260206004820152602860248201527f416273747261637441646170746572236275793a2073686f756c64206265206560448201527f786368616e6765730000000000000000000000000000000000000000000000006064820152608401610539565b6001600160a01b038516600090815260016020526040902054859060ff16610f425760405162461bcd60e51b815260206004820152603160248201527f57686974656c69737461626c65236f6e6c7957686974656c69737465643a206e60448201527f6f742077686974656c6973746564206c700000000000000000000000000000006064820152608401610539565b6001600160a01b03851673e592427a0aece92de3edee1f18e0157c058615641415610f7757610f72868585611442565b610f83565b610f8386868686611586565b505050505050565b6000546001600160a01b03163314610fe55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610539565b6001600160a01b0381166110615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610539565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b038116600081815260016020818152604092839020805460ff191690921790915590519182527fdcfefddfe354ab15def7a2a6a8758e2ad4100c920318c627db94e29d833e156791015b60405180910390a150565b6001600160a01b03811660009081526001602052604090205460ff166111985760405162461bcd60e51b815260206004820181905260248201527f57686974656c69737461626c65235f52656d6f76653a206e6f742065786973746044820152606401610539565b6001600160a01b038116600081815260016020908152604091829020805460ff1916905590519182527f066a905b79c0121afe61e3a44e0b14b6bc1ec16d854cdba09efdfc9b6aa9af819101611125565b6040517ff7729d4300000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201526001600160a01b0383166024820152610bb86044820152606481018290526000608482018190529073b27308f9f90d607463bb33ea1bebb41c27ce5ab69063f7729d439060a401602060405180830381600087803b15801561128a57600080fd5b505af115801561129e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c2919061199c565b9392505050565b6040805160028082526060820183526000928392919060208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160008151811061132457634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050848160018151811061136657634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040517fd06ca61f0000000000000000000000000000000000000000000000000000000081529085169063d06ca61f906113bc9086908590600401611adb565b60006040518083038186803b1580156113d457600080fd5b505afa1580156113e8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114109190810190611918565b60018151811061143057634e487b7160e01b600052603260045260246000fd5b60200260200101519150509392505050565b604080516101008101825273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281526001600160a01b0385811660208301908152610bb88385019081523360608501908152608085018781523460a0870181815260c088018b8152600060e08a0190815299517f414bf3890000000000000000000000000000000000000000000000000000000081529851881660048a0152955187166024890152935162ffffff166044880152915185166064870152516084860152905160a4850152905160c484015292511660e482015273e592427a0aece92de3edee1f18e0157c058615649163414bf38991610104016020604051808303818588803b15801561154757600080fd5b505af115801561155b573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611580919061199c565b50505050565b60408051600280825260608201835260009260208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816000815181106115dd57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050848160018151811061161f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040517f7ff36ab500000000000000000000000000000000000000000000000000000000815290851690637ff36ab590349061167b908790869033908990600401611afc565b6000604051808303818588803b15801561169457600080fd5b505af11580156116a8573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610f839190810190611918565b6000602082840312156116e2578081fd5b81356112c281611c50565b60008060008060808587031215611702578283fd5b843561170d81611c50565b9350602085013561171d81611c50565b9250604085013561172d81611c50565b9396929550929360600135925050565b600080600060608486031215611751578283fd5b833561175c81611c50565b9250602084013561176c81611c50565b929592945050506040919091013590565b60008060008060808587031215611792578384fd5b843561179d81611c50565b935060208501356117ad81611c50565b93969395505050506040820135916060013590565b600080604083850312156117d4578182fd5b82356117df81611c50565b946020939093013593505050565b600060208083850312156117ff578182fd5b823567ffffffffffffffff811115611815578283fd5b8301601f81018513611825578283fd5b803561183861183382611baf565b611b7e565b8181528381019083850185840285018601891015611854578687fd5b8694505b8385101561187f57803561186b81611c50565b835260019490940193918501918501611858565b50979650505050505050565b6000602080838503121561189d578182fd5b825167ffffffffffffffff8111156118b3578283fd5b8301601f810185136118c3578283fd5b80516118d161183382611baf565b81815283810190838501858402850186018910156118ed578687fd5b8694505b8385101561187f57805161190481611c50565b8352600194909401939185019185016118f1565b6000602080838503121561192a578182fd5b825167ffffffffffffffff811115611940578283fd5b8301601f81018513611950578283fd5b805161195e61183382611baf565b818152838101908385018584028501860189101561197a578687fd5b8694505b8385101561187f57805183526001949094019391850191850161197e565b6000602082840312156119ad578081fd5b5051919050565b6000815180845260208085019450808401835b838110156119ec5781516001600160a01b0316875295820195908201906001016119c7565b509495945050505050565b6000602082526112c260208301846119b4565b60208082528251828201819052600091906040908185019080840286018301878501865b83811015611acd578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0018552815180516001600160a01b031684528701518784018790528051878501819052895b81811015611a9b578281018a0151868201606001528901611a7f565b81811115611aac578a606083880101525b5095880195601f01601f191693909301606001925090860190600101611a2e565b509098975050505050505050565b600083825260406020830152611af460408301846119b4565b949350505050565b600085825260806020830152611b1560808301866119b4565b6001600160a01b03949094166040830152506060015292915050565b60006040820184835260206040818501528185518084526060860191508287019350845b81811015611b7157845183529383019391830191600101611b55565b5090979650505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611ba757611ba7611c3a565b604052919050565b600067ffffffffffffffff821115611bc957611bc9611c3a565b5060209081020190565b60008219821115611be657611be6611c24565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611c1d57611c1d611c24565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461054b57600080fdfea26469706673582212203a32b947888a9f61ca5a57a1abe8f60b4cb329171ee5ce7d547b65560ef0aea864736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000058ce791454e62f6a5392706745cd863a4f1f52ac
-----Decoded View---------------
Arg [0] : owner_ (address): 0x58CE791454e62f6a5392706745cD863a4f1F52aC
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000058ce791454e62f6a5392706745cd863a4f1f52ac
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 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.