Source Code
Overview
MNT Balance
MNT Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ForwarderLogic
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {RouterLib} from "./libraries/RouterLib.sol";
import {TokenLib} from "./libraries/TokenLib.sol";
import {IForwarderLogic} from "./interfaces/IForwarderLogic.sol";
/**
* @title ForwarderLogic
* @notice Forwarder logic contract to call another router.
* Note: this contract will not work with transfer tax tokens.
*/
contract ForwarderLogic is IForwarderLogic {
using EnumerableSet for EnumerableSet.AddressSet;
using SafeERC20 for IERC20;
address private immutable _router;
EnumerableSet.AddressSet private _trustedRouter;
constructor(address router) {
if (router == address(0)) revert ForwarderLogic__InvalidRouter();
_router = router;
}
/**
* @dev Returns the length of the trusted routers.
*/
function getTrustedRouterLength() external view override returns (uint256) {
return _trustedRouter.length();
}
/**
* @dev Returns the trusted router at the specified index.
*/
function getTrustedRouterAt(uint256 index) external view override returns (address) {
return _trustedRouter.at(index);
}
/**
* @dev Swaps an exact amount of tokenIn for as much tokenOut as possible using an external router.
* The function will simply forward the call to the router and return the amount of tokenIn and tokenOut swapped.
*
* Requirements:
* - The caller must be the router.
* - The data must be formatted using abi.encodePacked(approval, router, routerData).
*/
function swapExactIn(
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256,
address from,
address to,
bytes calldata data
) external override returns (uint256, uint256) {
if (msg.sender != _router) revert ForwarderLogic__OnlyRouter();
address approval = address(uint160(bytes20(data[0:20])));
address router = address(uint160(bytes20(data[20:40])));
bytes memory routerData = data[40:];
RouterLib.transfer(_router, tokenIn, from, address(this), amountIn);
SafeERC20.forceApprove(IERC20(tokenIn), approval, amountIn);
_call(router, routerData);
SafeERC20.forceApprove(IERC20(tokenIn), approval, 0);
uint256 balance = TokenLib.balanceOf(tokenOut, address(this));
TokenLib.transfer(tokenOut, to, balance);
return (amountIn, balance);
}
/**
* @dev Reverts as there is no real way to only take the required amount of token in.
*/
function swapExactOut(address, address, uint256, uint256, address, address, bytes calldata)
external
pure
returns (uint256, uint256)
{
revert ForwarderLogic__NotImplemented();
}
/**
* @dev Sweeps tokens from the contract to the recipient.
*
* Requirements:
* - The caller must be the router owner.
*/
function sweep(address token, address to, uint256 amount) external override {
if (msg.sender != Ownable(_router).owner()) revert ForwarderLogic__OnlyRouterOwner();
token == address(0) ? TokenLib.transferNative(to, amount) : TokenLib.transfer(token, to, amount);
}
/**
* @dev Updates the trusted routers.
*
* Requirements:
* - The caller must be the router owner.
*/
function updateTrustedRouter(address router, bool add) external override {
if (msg.sender != Ownable(_router).owner()) revert ForwarderLogic__OnlyRouterOwner();
if (!(add ? _trustedRouter.add(router) : _trustedRouter.remove(router))) {
revert ForwarderLogic__RouterUpdateFailed();
}
emit TrustedRouterUpdated(router, add);
}
/**
* @dev Calls the target contract with the provided data.
*
* Requirements:
* - The call must be successful.
* - The target contract must have code.
*/
function _call(address router, bytes memory data) private {
if (!_trustedRouter.contains(router)) revert ForwarderLogic__UntrustedRouter();
uint256 successState;
assembly {
successState := call(gas(), router, 0, add(data, 32), mload(data), 0, 0)
if iszero(successState) {
returndatacopy(0, 0, returndatasize())
revert(0, returndatasize())
}
if iszero(returndatasize()) {
if iszero(extcodesize(router)) {
mstore(0, 0x595e4957) // ForwarderLogic__NoCode()
revert(0x1c, 4)
}
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../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;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @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);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// 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 cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.20;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position is the index of the value in the `values` array plus 1.
// Position 0 is used to mean a value is not in the set.
mapping(bytes32 value => uint256) _positions;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._positions[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We cache the value's position to prevent multiple reads from the same storage slot
uint256 position = set._positions[value];
if (position != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 valueIndex = position - 1;
uint256 lastIndex = set._values.length - 1;
if (valueIndex != lastIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the lastValue to the index where the value to delete is
set._values[valueIndex] = lastValue;
// Update the tracked position of the lastValue (that was just moved)
set._positions[lastValue] = position;
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the tracked position for the deleted slot
delete set._positions[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._positions[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "./TokenLib.sol";
/**
* @title RouterLib
* @dev Helper library for router operations, such as validateAndTransfer, transfer, and swap.
* The router must implement a fallback function that uses `validateAndTransfer` to validate the allowance
* and transfer the tokens and functions that uses `swap` to call the router logic to swap tokens.
* The router logic must implement the `swapExactIn` and `swapExactOut` functions to swap tokens and
* use the `transfer` function to transfer tokens from the router according to the route selected.
*/
library RouterLib {
error RouterLib__ZeroAmount();
error RouterLib__InsufficientAllowance(uint256 allowance, uint256 amount);
/**
* @dev Returns the slot for the allowance of a token for a sender from an address.
*/
function getAllowanceSlot(
mapping(bytes32 key => uint256) storage allowances,
address token,
address sender,
address from
) internal pure returns (bytes32 s) {
assembly ("memory-safe") {
mstore(0, shl(96, token))
mstore(20, shl(96, sender))
// Overwrite the last 8 bytes of the free memory pointer with zero,
//which should always be zeros
mstore(40, shl(96, from))
let key := keccak256(0, 60)
mstore(0, key)
mstore(32, allowances.slot)
s := keccak256(0, 64)
}
}
/**
* @dev Validates the allowance of a token for a sender from an address, and transfers the token.
*
* Requirements:
* - The allowance must be greater than or equal to the amount.
* - The amount must be greater than zero.
* - If from is not the router, the token must have been approved for the router.
*/
function validateAndTransfer(mapping(bytes32 key => uint256) storage allowances) internal {
address token;
address from;
address to;
uint256 amount;
uint256 allowance;
uint256 success;
assembly ("memory-safe") {
token := shr(96, calldataload(4))
from := shr(96, calldataload(24))
to := shr(96, calldataload(44))
amount := calldataload(64)
}
bytes32 allowanceSlot = getAllowanceSlot(allowances, token, msg.sender, from);
assembly ("memory-safe") {
allowance := sload(allowanceSlot)
if iszero(lt(allowance, amount)) {
success := 1
sstore(allowanceSlot, sub(allowance, amount))
}
}
if (amount == 0) revert RouterLib__ZeroAmount(); // Also prevent calldata <= 64
if (success == 0) revert RouterLib__InsufficientAllowance(allowance, amount);
from == address(this) ? TokenLib.transfer(token, to, amount) : TokenLib.transferFrom(token, from, to, amount);
}
/**
* @dev Calls the router to transfer tokens from an account to another account.
*
* Requirements:
* - The call must succeed.
* - The target contract must use `validateAndTransfer` inside its fallback function to validate the allowance
* and transfer the tokens accordingly.
*/
function transfer(address router, address token, address from, address to, uint256 amount) internal {
assembly ("memory-safe") {
let m0x40 := mload(0x40)
mstore(0, shr(32, shl(96, token)))
mstore(24, shl(96, from))
mstore(44, shl(96, to))
mstore(64, amount)
if iszero(call(gas(), router, 0, 0, 96, 0, 0)) {
returndatacopy(0, 0, returndatasize())
revert(0, returndatasize())
}
mstore(0x40, m0x40)
}
}
/**
* @dev Swaps tokens using the router logic.
* It will also set the allowance for the logic contract to spend the token from the sender and reset it
* after the swap is done.
*
* Requirements:
* - The logic contract must not be the zero address.
* - The call must succeed.
* - The logic contract must call this contract's fallback function to validate the allowance and transfer the tokens.
*/
function swap(
mapping(bytes32 key => uint256) storage allowances,
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256 amountOut,
address from,
address to,
bytes calldata route,
bool exactIn,
address logic
) internal returns (uint256 totalIn, uint256 totalOut) {
bytes32 allowanceSlot = getAllowanceSlot(allowances, tokenIn, logic, from);
uint256 length = 256 + route.length; // 32 * 6 + 32 + 32 + route.length
bytes memory data = new bytes(length);
assembly ("memory-safe") {
sstore(allowanceSlot, amountIn)
switch exactIn
// swapExactIn(tokenIn, tokenOut, amountIn, amountOut, from, to, route)
// swapExactOut(tokenIn, tokenOut, amountOut, amountIn, from, to, route)
case 1 { mstore(data, 0xbd084435) }
default { mstore(data, 0xcb7e0007) }
mstore(add(data, 32), tokenIn)
mstore(add(data, 64), tokenOut)
mstore(add(data, 96), amountIn)
mstore(add(data, 128), amountOut)
mstore(add(data, 160), from)
mstore(add(data, 192), to)
mstore(add(data, 224), 224) // 32 * 6 + 32
mstore(add(data, 256), route.length)
calldatacopy(add(data, 288), route.offset, route.length)
if iszero(call(gas(), logic, 0, add(data, 28), add(length, 4), 0, 64)) {
returndatacopy(0, 0, returndatasize())
revert(0, returndatasize())
}
totalIn := mload(0)
totalOut := mload(32)
sstore(allowanceSlot, 0)
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
* @title TokenLib
* @dev Helper library for token operations, such as balanceOf, transfer, transferFrom, wrap, and unwrap.
*/
library TokenLib {
error TokenLib__BalanceOfFailed();
error TokenLib__WrapFailed();
error TokenLib__UnwrapFailed();
error TokenLib__NativeTransferFailed();
error TokenLib__TransferFromFailed();
error TokenLib__TransferFailed();
/**
* @dev Returns the balance of a token for an account.
*
* Requirements:
* - The call must succeed.
* - The target contract must return at least 32 bytes.
*/
function balanceOf(address token, address account) internal view returns (uint256 amount) {
uint256 success;
uint256 returnDataSize;
assembly ("memory-safe") {
mstore(0, 0x70a08231) // balanceOf(address)
mstore(32, account)
success := staticcall(gas(), token, 28, 36, 0, 32)
returnDataSize := returndatasize()
amount := mload(0)
}
if (success == 0) _tryRevertWithReason();
// If call failed, and it didn't already bubble up the revert reason, then the return data size must be 0,
// which will revert here with a generic error message
if (returnDataSize < 32) revert TokenLib__BalanceOfFailed();
}
/**
* @dev Returns the balance of a token for an account, or the native balance of the account if the token is the native token.
*
* Requirements:
* - The call must succeed (if the token is not the native token).
* - The target contract must return at least 32 bytes (if the token is not the native token).
*/
function universalBalanceOf(address token, address account) internal view returns (uint256 amount) {
return token == address(0) ? account.balance : balanceOf(token, account);
}
/**
* @dev Transfers native tokens to an account.
*
* Requirements:
* - The call must succeed.
*/
function transferNative(address to, uint256 amount) internal {
uint256 success;
assembly ("memory-safe") {
success := call(gas(), to, amount, 0, 0, 0, 0)
}
if (success == 0) {
_tryRevertWithReason();
revert TokenLib__NativeTransferFailed();
}
}
/**
* @dev Transfers tokens from an account to another account.
* This function does not check if the target contract has code, this should be done before calling this function
*
* Requirements:
* - The call must succeed.
*/
function wrap(address wnative, uint256 amount) internal {
uint256 success;
assembly ("memory-safe") {
mstore(0, 0xd0e30db0) // deposit()
success := call(gas(), wnative, amount, 28, 4, 0, 0)
}
if (success == 0) {
_tryRevertWithReason();
revert TokenLib__WrapFailed();
}
}
/**
* @dev Transfers tokens from an account to another account.
* This function does not check if the target contract has code, this should be done before calling this function
*
* Requirements:
* - The call must succeed.
*/
function unwrap(address wnative, uint256 amount) internal {
uint256 success;
assembly ("memory-safe") {
mstore(0, 0x2e1a7d4d) // withdraw(uint256)
mstore(32, amount)
success := call(gas(), wnative, 0, 28, 36, 0, 0)
}
if (success == 0) {
_tryRevertWithReason();
revert TokenLib__UnwrapFailed();
}
}
/**
* @dev Transfers tokens from an account to another account.
*
* Requirements:
* - The call must succeed
* - The target contract must either return true or no value.
* - The target contract must have code.
*/
function transfer(address token, address to, uint256 amount) internal {
uint256 success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let m0x40 := mload(0x40)
mstore(0, 0xa9059cbb) // transfer(address,uint256)
mstore(32, to)
mstore(64, amount)
success := call(gas(), token, 0, 28, 68, 0, 32)
returnSize := returndatasize()
returnValue := mload(0)
mstore(0x40, m0x40)
}
if (success == 0) {
_tryRevertWithReason();
revert TokenLib__TransferFailed();
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) revert TokenLib__TransferFailed();
}
/**
* @dev Transfers tokens from an account to another account.
*
* Requirements:
* - The call must succeed.
* - The target contract must either return true or no value.
* - The target contract must have code.
*/
function transferFrom(address token, address from, address to, uint256 amount) internal {
uint256 success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let m0x40 := mload(0x40)
let m0x60 := mload(0x60)
mstore(0, 0x23b872dd) // transferFrom(address,address,uint256)
mstore(32, from)
mstore(64, to)
mstore(96, amount)
success := call(gas(), token, 0, 28, 100, 0, 32)
returnSize := returndatasize()
returnValue := mload(0)
mstore(0x40, m0x40)
mstore(0x60, m0x60)
}
if (success == 0) {
_tryRevertWithReason();
revert TokenLib__TransferFromFailed();
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) revert TokenLib__TransferFromFailed();
}
/**
* @dev Tries to bubble up the revert reason.
* This function needs to be called only if the call has failed, and will revert if there is a revert reason.
* This function might no revert if there is no revert reason, always use it in conjunction with a revert.
*/
function _tryRevertWithReason() private pure {
assembly ("memory-safe") {
if returndatasize() {
returndatacopy(0, 0, returndatasize())
revert(0, returndatasize())
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IForwarderLogic {
error ForwarderLogic__InvalidRouter();
error ForwarderLogic__NotImplemented();
error ForwarderLogic__OnlyRouterOwner();
error ForwarderLogic__NoCode();
error ForwarderLogic__OnlyRouter();
error ForwarderLogic__RouterUpdateFailed();
error ForwarderLogic__UntrustedRouter();
event TrustedRouterUpdated(address indexed router, bool trusted);
function getTrustedRouterLength() external view returns (uint256);
function getTrustedRouterAt(uint256 index) external view returns (address);
function swapExactIn(
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256 amountOutMin,
address from,
address to,
bytes calldata route
) external returns (uint256 totalIn, uint256 totalOut);
function sweep(address token, address to, uint256 amount) external;
function updateTrustedRouter(address router, bool add) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @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 or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* 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.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @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`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}{
"remappings": [
"@forge-std/contracts/=lib/forge-std/src/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/"
],
"optimizer": {
"enabled": true,
"runs": 100000
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": true,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"ForwarderLogic__InvalidRouter","type":"error"},{"inputs":[],"name":"ForwarderLogic__NoCode","type":"error"},{"inputs":[],"name":"ForwarderLogic__NotImplemented","type":"error"},{"inputs":[],"name":"ForwarderLogic__OnlyRouter","type":"error"},{"inputs":[],"name":"ForwarderLogic__OnlyRouterOwner","type":"error"},{"inputs":[],"name":"ForwarderLogic__RouterUpdateFailed","type":"error"},{"inputs":[],"name":"ForwarderLogic__UntrustedRouter","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"TokenLib__BalanceOfFailed","type":"error"},{"inputs":[],"name":"TokenLib__NativeTransferFailed","type":"error"},{"inputs":[],"name":"TokenLib__TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"router","type":"address"},{"indexed":false,"internalType":"bool","name":"trusted","type":"bool"}],"name":"TrustedRouterUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTrustedRouterAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTrustedRouterLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapExactIn","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"swapExactOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bool","name":"add","type":"bool"}],"name":"updateTrustedRouter","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a03461009057601f61106c38819003918201601f19168301916001600160401b038311848410176100955780849260209460405283398101031261009057516001600160a01b038116808203610090571561007e57608052604051610fc090816100ac823960805181818161018b015281816102d401526104a60152f35b604051632cac7a4560e21b8152600490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b60003560e01c80630dd4a0281461007757806362c06767146100725780637df5106d1461006d578063ad8c08d514610068578063bd084435146100635763cb7e00071461005e57600080fd5b61059d565b61048e565b6103ae565b610247565b6100fb565b346100d85760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d857602073ffffffffffffffffffffffffffffffffffffffff6100c860043561060c565b9190546040519260031b1c168152f35b600080fd5b73ffffffffffffffffffffffffffffffffffffffff8116036100d857565b346100d85760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d857600435610136816100dd565b602435610142816100dd565b604435906040517f8da5cb5b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90602081600481857f0000000000000000000000000000000000000000000000000000000000000000165afa801561023857829160009161020a575b501633036101e05783166101d7576101d59250610ec3565b005b6101d592610f05565b60046040517fc676b64f000000000000000000000000000000000000000000000000000000008152fd5b61022b915060203d8111610231575b6102238183610727565b810190610ae4565b386101bd565b503d610219565b610af9565b801515036100d857565b346100d85760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d857600435610282816100dd565b6024359061028f8261023d565b6040517f8da5cb5b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90602081600481857f0000000000000000000000000000000000000000000000000000000000000000165afa8015610238578291600091610390575b501633036101e05782156103805761031f818316610b05565b1561035657604051921515835216907f518f7fba6d5b3181292713ad7427d0c185379072861df7f23a29357ebb037b5490602090a2005b60046040517f7f932022000000000000000000000000000000000000000000000000000000008152fd5b61038b818316610c62565b61031f565b6103a8915060203d8111610231576102238183610727565b38610306565b346100d85760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d8576020600054604051908152f35b9060e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8301126100d857600435610421816100dd565b9160243561042e816100dd565b916044359160643591608435610443816100dd565b9160a435610450816100dd565b9160c43567ffffffffffffffff928382116100d857806023830112156100d85781600401359384116100d857602484830101116100d8576024019190565b346100d85761049c366103ea565b91959496909293507f00000000000000000000000000000000000000000000000000000000000000009073ffffffffffffffffffffffffffffffffffffffff91828116330361057357836014116100d8578882863560601c96866105008183610647565b61050991610693565b60601c9761051692610658565b3690610521926107a2565b97309161052d94610e07565b169261053a878486610900565b61054391610d77565b61054c916107d9565b6105563082610e62565b809261056192610f05565b60408051928352602083019190915290f35b60046040517f4e8cf44d000000000000000000000000000000000000000000000000000000008152fd5b346100d8576105ab366103ea565b505050505050505060046040517f9bc19233000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60005481101561064257600080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630190600090565b6105dd565b906028116100d85760140190601490565b90929192836028116100d85783116100d857602801917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd80190565b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000090358181169392601481106106c857505050565b60140360031b82901b16169150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff82111761072257604052565b6106d7565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761072257604052565b67ffffffffffffffff811161072257601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b9291926107ae82610768565b916107bc6040519384610727565b8294818452818301116100d8578281602093846000960137010152565b60405190602082017f095ea7b3000000000000000000000000000000000000000000000000000000009081815260008073ffffffffffffffffffffffffffffffffffffffff80881660248801528160448801526044875261083987610706565b85169286519082855af19061084c610a14565b826108ce575b50816108c3575b5015610866575b50505050565b604051602081019190915273ffffffffffffffffffffffffffffffffffffffff939093166024840152600060448085019190915283526108ba926108b5906108af606482610727565b8261097b565b61097b565b38808080610860565b90503b151538610859565b805191925081159182156108e6575b50509038610852565b6108f99250602080918301019101610963565b38806108dd565b91909160405191602083016000807f095ea7b3000000000000000000000000000000000000000000000000000000009384845273ffffffffffffffffffffffffffffffffffffffff90818916602489015260448801526044875261083987610706565b908160209103126100d857516109788161023d565b90565b60008073ffffffffffffffffffffffffffffffffffffffff6109b293169360208151910182865af16109ab610a14565b9083610a44565b80519081151591826109f9575b50506109c85750565b602490604051907f5274afe70000000000000000000000000000000000000000000000000000000082526004820152fd5b610a0c9250602080918301019101610963565b1538806109bf565b3d15610a3f573d90610a2582610768565b91610a336040519384610727565b82523d6000602084013e565b606090565b90610a835750805115610a5957805190602001fd5b60046040517f1425ea42000000000000000000000000000000000000000000000000000000008152fd5b81511580610adb575b610a94575090565b60249073ffffffffffffffffffffffffffffffffffffffff604051917f9996b315000000000000000000000000000000000000000000000000000000008352166004820152fd5b50803b15610a8c565b908160209103126100d85751610978816100dd565b6040513d6000823e3d90fd5b600081815260016020526040812054610b725780549068010000000000000000821015610722576001820180825582101561064257826040927f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630155805492815260016020522055600190565b905090565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201918211610ba457565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008054908115610c35577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82019180831015610642577f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5628291828052015555565b807f4e487b7100000000000000000000000000000000000000000000000000000000602492526031600452fd5b6000818152600160205260408120549091908015610d72577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818111610d455790610cd89291610cb48554610b77565b90818103610cde575b505050610cc8610bd3565b6000526001602052604060002090565b55600190565b610cc8610d0691610cfe610cf4610d3c9561060c565b90549060031b1c90565b92839161060c565b9091907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83549160031b92831b921b1916179055565b55388080610cbd565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b505090565b60009173ffffffffffffffffffffffffffffffffffffffff821683526001602052604083205415610ddd5782816020829351910182855af115610dd4573d15610dbe575050565b3b15610dc75750565b63595e495790526004601cfd5b503d81803e3d90fd5b60046040517f3e666765000000000000000000000000000000000000000000000000000000008152fd5b939291907bffffffffffffffffffffffffffffffffffffffff000000000000000060609160405196600096879687968795869560401b168552861b601852851b602c526040525af115610e5a5750604052565b3d81803e3d90fd5b6024601c6000926020946370a08231855285525afa9060203d6000519315610eb6575b10610e8c57565b60046040517f07e05a0c000000000000000000000000000000000000000000000000000000008152fd5b610ebe610f79565b610e85565b600080809381935af115610ed357565b610edb610f79565b60046040517fa01b4606000000000000000000000000000000000000000000000000000000008152fd5b916040519163a9059cbb600052602052604052602060006044601c82865af13d906000519260405215610f7557610f6a57503b155b610f4057565b60046040517f87c6ec7c000000000000000000000000000000000000000000000000000000008152fd5b600191501415610f3a565b610f405b3d610f8057565b3d6000803e3d6000fdfea264697066735822122030bc8e69e7455f74d8efcb75b989f0ef90ecf70683bfa06c33e31d0d0db0fbbe64736f6c6343000814003300000000000000000000000045a62b090df48243f12a21897e7ed91863e2c86b
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c80630dd4a0281461007757806362c06767146100725780637df5106d1461006d578063ad8c08d514610068578063bd084435146100635763cb7e00071461005e57600080fd5b61059d565b61048e565b6103ae565b610247565b6100fb565b346100d85760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d857602073ffffffffffffffffffffffffffffffffffffffff6100c860043561060c565b9190546040519260031b1c168152f35b600080fd5b73ffffffffffffffffffffffffffffffffffffffff8116036100d857565b346100d85760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d857600435610136816100dd565b602435610142816100dd565b604435906040517f8da5cb5b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90602081600481857f00000000000000000000000045a62b090df48243f12a21897e7ed91863e2c86b165afa801561023857829160009161020a575b501633036101e05783166101d7576101d59250610ec3565b005b6101d592610f05565b60046040517fc676b64f000000000000000000000000000000000000000000000000000000008152fd5b61022b915060203d8111610231575b6102238183610727565b810190610ae4565b386101bd565b503d610219565b610af9565b801515036100d857565b346100d85760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d857600435610282816100dd565b6024359061028f8261023d565b6040517f8da5cb5b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90602081600481857f00000000000000000000000045a62b090df48243f12a21897e7ed91863e2c86b165afa8015610238578291600091610390575b501633036101e05782156103805761031f818316610b05565b1561035657604051921515835216907f518f7fba6d5b3181292713ad7427d0c185379072861df7f23a29357ebb037b5490602090a2005b60046040517f7f932022000000000000000000000000000000000000000000000000000000008152fd5b61038b818316610c62565b61031f565b6103a8915060203d8111610231576102238183610727565b38610306565b346100d85760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d8576020600054604051908152f35b9060e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8301126100d857600435610421816100dd565b9160243561042e816100dd565b916044359160643591608435610443816100dd565b9160a435610450816100dd565b9160c43567ffffffffffffffff928382116100d857806023830112156100d85781600401359384116100d857602484830101116100d8576024019190565b346100d85761049c366103ea565b91959496909293507f00000000000000000000000045a62b090df48243f12a21897e7ed91863e2c86b9073ffffffffffffffffffffffffffffffffffffffff91828116330361057357836014116100d8578882863560601c96866105008183610647565b61050991610693565b60601c9761051692610658565b3690610521926107a2565b97309161052d94610e07565b169261053a878486610900565b61054391610d77565b61054c916107d9565b6105563082610e62565b809261056192610f05565b60408051928352602083019190915290f35b60046040517f4e8cf44d000000000000000000000000000000000000000000000000000000008152fd5b346100d8576105ab366103ea565b505050505050505060046040517f9bc19233000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60005481101561064257600080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630190600090565b6105dd565b906028116100d85760140190601490565b90929192836028116100d85783116100d857602801917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd80190565b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000090358181169392601481106106c857505050565b60140360031b82901b16169150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff82111761072257604052565b6106d7565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761072257604052565b67ffffffffffffffff811161072257601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b9291926107ae82610768565b916107bc6040519384610727565b8294818452818301116100d8578281602093846000960137010152565b60405190602082017f095ea7b3000000000000000000000000000000000000000000000000000000009081815260008073ffffffffffffffffffffffffffffffffffffffff80881660248801528160448801526044875261083987610706565b85169286519082855af19061084c610a14565b826108ce575b50816108c3575b5015610866575b50505050565b604051602081019190915273ffffffffffffffffffffffffffffffffffffffff939093166024840152600060448085019190915283526108ba926108b5906108af606482610727565b8261097b565b61097b565b38808080610860565b90503b151538610859565b805191925081159182156108e6575b50509038610852565b6108f99250602080918301019101610963565b38806108dd565b91909160405191602083016000807f095ea7b3000000000000000000000000000000000000000000000000000000009384845273ffffffffffffffffffffffffffffffffffffffff90818916602489015260448801526044875261083987610706565b908160209103126100d857516109788161023d565b90565b60008073ffffffffffffffffffffffffffffffffffffffff6109b293169360208151910182865af16109ab610a14565b9083610a44565b80519081151591826109f9575b50506109c85750565b602490604051907f5274afe70000000000000000000000000000000000000000000000000000000082526004820152fd5b610a0c9250602080918301019101610963565b1538806109bf565b3d15610a3f573d90610a2582610768565b91610a336040519384610727565b82523d6000602084013e565b606090565b90610a835750805115610a5957805190602001fd5b60046040517f1425ea42000000000000000000000000000000000000000000000000000000008152fd5b81511580610adb575b610a94575090565b60249073ffffffffffffffffffffffffffffffffffffffff604051917f9996b315000000000000000000000000000000000000000000000000000000008352166004820152fd5b50803b15610a8c565b908160209103126100d85751610978816100dd565b6040513d6000823e3d90fd5b600081815260016020526040812054610b725780549068010000000000000000821015610722576001820180825582101561064257826040927f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630155805492815260016020522055600190565b905090565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201918211610ba457565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008054908115610c35577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82019180831015610642577f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5628291828052015555565b807f4e487b7100000000000000000000000000000000000000000000000000000000602492526031600452fd5b6000818152600160205260408120549091908015610d72577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818111610d455790610cd89291610cb48554610b77565b90818103610cde575b505050610cc8610bd3565b6000526001602052604060002090565b55600190565b610cc8610d0691610cfe610cf4610d3c9561060c565b90549060031b1c90565b92839161060c565b9091907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83549160031b92831b921b1916179055565b55388080610cbd565b6024847f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b505090565b60009173ffffffffffffffffffffffffffffffffffffffff821683526001602052604083205415610ddd5782816020829351910182855af115610dd4573d15610dbe575050565b3b15610dc75750565b63595e495790526004601cfd5b503d81803e3d90fd5b60046040517f3e666765000000000000000000000000000000000000000000000000000000008152fd5b939291907bffffffffffffffffffffffffffffffffffffffff000000000000000060609160405196600096879687968795869560401b168552861b601852851b602c526040525af115610e5a5750604052565b3d81803e3d90fd5b6024601c6000926020946370a08231855285525afa9060203d6000519315610eb6575b10610e8c57565b60046040517f07e05a0c000000000000000000000000000000000000000000000000000000008152fd5b610ebe610f79565b610e85565b600080809381935af115610ed357565b610edb610f79565b60046040517fa01b4606000000000000000000000000000000000000000000000000000000008152fd5b916040519163a9059cbb600052602052604052602060006044601c82865af13d906000519260405215610f7557610f6a57503b155b610f4057565b60046040517f87c6ec7c000000000000000000000000000000000000000000000000000000008152fd5b600191501415610f3a565b610f405b3d610f8057565b3d6000803e3d6000fdfea264697066735822122030bc8e69e7455f74d8efcb75b989f0ef90ecf70683bfa06c33e31d0d0db0fbbe64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000045a62b090df48243f12a21897e7ed91863e2c86b
-----Decoded View---------------
Arg [0] : router (address): 0x45A62B090DF48243F12A21897e7ed91863E2c86b
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000045a62b090df48243f12a21897e7ed91863e2c86b
Deployed Bytecode Sourcemap
632:4241:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;5016:18:6;632:4241:7;;5016:18:6;:::i;:::-;632:4241:7;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;3305:24;;632:4241;3313:7;632:4241;3313:7;632:4241;3313:7;;;632:4241;3305:24;;;;;;;;-1:-1:-1;3305:24:7;;;632:4241;;;3291:10;:38;3287:84;;632:4241;;;;3432:6;;;;:::i;:::-;632:4241;3382:96;3471:6;;;:::i;3287:84::-;632:4241;;;3338:33;;;;3305:24;;;;632:4241;3305:24;;;;;;;;;;:::i;:::-;;;;;:::i;:::-;;;;;;;;;;;:::i;632:4241::-;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;3723:24;;632:4241;3731:7;632:4241;3731:7;632:4241;3731:7;;;632:4241;3723:24;;;;;;;;-1:-1:-1;3723:24:7;;;632:4241;;;3709:10;:38;3705:84;;3806:64;;;;8409:50:6;632:4241:7;;;8409:50:6;:::i;:::-;3804:67:7;3800:141;;632:4241;;;;;;;;;3956:33;;632:4241;;3956:33;632:4241;3800:141;632:4241;;;3894:36;;;;3806:64;8730:53:6;632:4241:7;;;8730:53:6;:::i;:::-;3806:64:7;;3723:24;;;;632:4241;3723:24;;;;;;;;;:::i;:::-;;;;632:4241;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;:::i;:::-;2080:7;;;;;;;;;632:4241;;;;;;2066:10;:21;2062:62;;632:4241;2185:2;632:4241;;;;;;;;;2242:11;;;;;;:::i;:::-;2234:20;;;:::i;:::-;632:4241;;;2292:9;;;:::i;:::-;632:4241;;;;;:::i;:::-;2363:4;;2370:8;;;;:::i;:::-;632:4241;2440:8;;;;;;:::i;:::-;2474:10;;;:::i;:::-;2496:52;;;:::i;:::-;2577:43;2363:4;2577:43;;:::i;:::-;2662:7;;;;;:::i;:::-;632:4241;;;;;;;;;;;;;;;2062:62;632:4241;;;2096:28;;;;632:4241;;;;;;;:::i;:::-;;;;;;;;;;;;3004:32;;;;632:4241;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;:::i;:::-;;2250:2;632:4241;;;2185:2;632:4241;;2185:2;632:4241;:::o;:::-;;;;;;2250:2;632:4241;;;;;;;2250:2;632:4241;;;;;:::o;:::-;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;632:4241:7:o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;:::i;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;632:4241:7;;;;;;:::o;3296:380:3:-;632:4241:7;;3411:47:3;;;;632:4241:7;3411:47:3;;;;-1:-1:-1;632:4241:7;;;;;3411:47:3;;;632:4241:7;;;;;;;3411:47:3;;;;;:::i;:::-;632:4241:7;;5615:25:3;;;;;;;;;;;:::i;:::-;5657:69;;;3296:380;5657:103;;;;3296:380;3473:45;;3469:201;;3296:380;;;;;:::o;3469:201::-;632:4241:7;;3411:47:3;3561:43;;;;;;632:4241:7;;;;;3411:47:3;3561:43;;632:4241:7;-1:-1:-1;632:4241:7;;;;;;;;3561:43:3;;3646:12;;3561:43;;;632:4241:7;;3561:43:3;:::i;:::-;;;:::i;:::-;3646:12;:::i;:::-;3469:201;;;;;;5657:103;5730:26;;;:30;;5657:103;;;:69;632:4241:7;;;;-1:-1:-1;5669:22:3;;;:56;;;;5657:69;;;;;;;5669:56;5695:30;;;3411:47;5695:30;;;;;;;;:::i;:::-;5669:56;;;;3296:380;;;;632:4241:7;;3411:47:3;;;;-1:-1:-1;632:4241:7;;3411:47:3;;;;632:4241:7;;;;;3411:47:3;;;632:4241:7;;;;;;3411:47:3;;;;;:::i;632:4241:7:-;;;;;;;;;;;;;:::i;:::-;;:::o;4059:629:3:-;2847:1:4;4059:629:3;632:4241:7;3510:55:4;4059:629:3;632:4241:7;3462:31:4;;;;;;;;;;;;:::i;:::-;3510:55;;;:::i;:::-;632:4241:7;;4551:22:3;;;;:57;;;;4059:629;4547:135;;;;4059:629;:::o;4547:135::-;632:4241:7;;;;4631:40:3;;;;;;;632:4241:7;4631:40:3;4551:57;4578:30;;;3462:31:4;4578:30:3;;;;;;;;:::i;:::-;4577:31;4551:57;;;;632:4241:7;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;-1:-1:-1;632:4241:7;;;;:::o;:::-;;;:::o;4625:582:4:-;;4797:8;;-1:-1:-1;632:4241:7;;5874:21:4;:17;;6046:142;;;;;;5870:383;6225:17;632:4241:7;;6225:17:4;;;;4793:408;632:4241:7;;5045:22:4;:49;;;4793:408;5041:119;;5173:17;;:::o;5041:119::-;632:4241:7;;;;;5121:24:4;;;;632:4241:7;5121:24:4;;;632:4241:7;5121:24:4;5045:49;5071:18;;;:23;5045:49;;632:4241:7;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;2241:406:6;-1:-1:-1;632:4241:7;;;4360:14:6;632:4241:7;;;;;;;;;;;;;;;;;4360:14:6;632:4241:7;;;;;;;;;;;;;;;;;;;;;4360:14:6;632:4241:7;;;;4360:14:6;2576:11;:::o;2320:321::-;2618:12;;;:::o;632:4241:7:-;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;632:4241:7;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;2815:1368:6;-1:-1:-1;632:4241:7;;;3010:14:6;632:4241:7;;;;;;-1:-1:-1;;632:4241:7;3046:13:6;;;;632:4241:7;;;;;;;;;4076:21:6;632:4241:7;;3480:22:6;632:4241:7;;3480:22:6;:::i;:::-;3521:23;;;;3517:378;;3042:1135;3973:15;;;;;:::i;:::-;632:4241:7;;3010:14:6;632:4241:7;;;;;;;4076:21:6;632:4241:7;3010:14:6;4112:11;:::o;3517:378::-;3705:35;:23;3584:22;632:4241:7;3584:22:6;3844:25;3584:22;;:::i;:::-;632:4241:7;;;;;;;;;3705:23:6;;;;:::i;:::-;:35;632:4241:7;;;;;;;;;;;;;;;;;;;3844:25:6;632:4241:7;3517:378:6;;;;;632:4241:7;;;;;;;;;;3042:1135:6;4154:12;;;:::o;4191:680:7:-;-1:-1:-1;632:4241:7;;;;;;4360:14:6;632:4241:7;;;;;;4360:26:6;4259:78:7;;4378:487;;632:4241;4378:487;;;;;;;;;;;;;;;;4191:680;;:::o;4378:487::-;;;;;4191:680;:::o;4378:487::-;;;;;;;;;;;;;;;;4259:78;4304:33;632:4241;;4304:33;;;;3255:550:9;;;;;3365:434;;3255:550;3365:434;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3255:550::o;3365:434::-;;;;;;;;643:731:10;801:268;;-1:-1:-1;643:731:10;801:268;643:731;801:268;;;;;;;;;;-1:-1:-1;801:268:10;1083:12;;1079:40;;643:731;1312:19;1308:59;;643:731::o;1308:59::-;1340:27;632:4241:7;;1340:27:10;;;;1079:40;;;:::i;:::-;;;2045:326;-1:-1:-1;2045:326:10;;;;;2142:95;;2251:12;2247:118;;2045:326::o;2247:118::-;;;:::i;:::-;2322:32;632:4241:7;;2322:32:10;;;;3927:778;;4090:369;;;;-1:-1:-1;4090:369:10;;;;;;-1:-1:-1;4090:369:10;;;;;;;;-1:-1:-1;4090:369:10;;;;4473:12;4469:112;;4595:15;;4613:26;;:31;4595:68;4591:107;;3927:778::o;4591:107::-;4672:26;4090:369;632:4241:7;4672:26:10;;;;4595:68;4662:1;4647:16;;;;4595:68;;4469:112;;6175:244;6230:183;;;6175:244::o;6230:183::-;;;;;;;
Swarm Source
ipfs://30bc8e69e7455f74d8efcb75b989f0ef90ecf70683bfa06c33e31d0d0db0fbbe
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in MNT
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.