Source Code
Overview
HYPE Balance
HYPE Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set Mayan Protoc... | 25344191 | 45 hrs ago | IN | 0 HYPE | 0.00002282 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FulfillHelper
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
prague EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IFeeManager.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IFulfill.sol";
contract FulfillHelper {
using SafeERC20 for IERC20;
address public guardian;
address public nextGuardian;
mapping(address => bool) public swapProtocols;
mapping(address => bool) public mayanProtocols;
struct FulfillParams {
bytes encodedVm;
OrderParams orderParams;
ExtraParams extraParams;
bytes32 recipient;
bool batch;
}
error UnsupportedProtocol();
constructor(address _guardian, address[] memory _swapProtocols, address[] memory _mayanProtocols) {
guardian = _guardian;
for (uint256 i = 0; i < _swapProtocols.length; i++) {
swapProtocols[_swapProtocols[i]] = true;
}
for (uint256 i = 0; i < _mayanProtocols.length; i++) {
mayanProtocols[_mayanProtocols[i]] = true;
}
}
function fulfillWithEth(
uint256 amountIn,
address fulfillToken,
address swapProtocol,
bytes calldata swapData,
address mayanProtocol,
FulfillParams calldata params,
bytes32 orderHash
) external payable {
if (!swapProtocols[swapProtocol] || !mayanProtocols[mayanProtocol]) {
revert UnsupportedProtocol();
}
require(fulfillToken != address(0), 'Invalid fulfill token');
require(msg.value >= amountIn, 'Insufficient input value');
uint256 fulfillAmount = IERC20(fulfillToken).balanceOf(address(this));
(bool success,) = swapProtocol.call{value: amountIn}(swapData);
require(success, 'Swap call failed');
fulfillAmount = IERC20(fulfillToken).balanceOf(address(this)) - fulfillAmount;
maxApproveIfNeeded(fulfillToken, mayanProtocol, fulfillAmount);
if (params.encodedVm.length > 0) {
IFulfill(mayanProtocol).fulfillOrder{value: msg.value - amountIn} (
fulfillAmount,
params.encodedVm,
params.orderParams,
params.extraParams,
params.recipient,
params.batch,
emptyPermit()
);
} else {
IFulfill(mayanProtocol).fulfillSimple{value: msg.value - amountIn} (
fulfillAmount,
orderHash,
params.orderParams,
params.extraParams,
params.recipient,
params.batch,
emptyPermit()
);
}
}
function fulfillWithERC20(
address tokenIn,
uint256 amountIn,
address fulfillToken,
address swapProtocol,
bytes calldata swapData,
address mayanProtocol,
FulfillParams calldata params,
bytes32 orderHash,
PermitParams calldata permitParams
) external payable {
if (!swapProtocols[swapProtocol] || !mayanProtocols[mayanProtocol]) {
revert UnsupportedProtocol();
}
uint256 amountBefore = IERC20(tokenIn).balanceOf(address(this));
pullTokenIn(tokenIn, amountIn, permitParams);
maxApproveIfNeeded(tokenIn, swapProtocol, amountIn);
uint256 fulfillAmount;
if (fulfillToken == address(0)) {
fulfillAmount = address(this).balance;
} else {
fulfillAmount = IERC20(fulfillToken).balanceOf(address(this));
}
(bool success,) = swapProtocol.call(swapData);
require(success, 'Swap call failed');
transferBackRemaining(tokenIn, amountBefore);
if (fulfillToken == address(0)) {
fulfillAmount = address(this).balance - fulfillAmount;
} else {
fulfillAmount = IERC20(fulfillToken).balanceOf(address(this)) - fulfillAmount;
}
if (fulfillToken == address(0)) {
if (params.encodedVm.length > 0) {
IFulfill(mayanProtocol).fulfillOrder{value: msg.value + fulfillAmount}(
fulfillAmount,
params.encodedVm,
params.orderParams,
params.extraParams,
params.recipient,
params.batch,
emptyPermit()
);
} else {
IFulfill(mayanProtocol).fulfillSimple{value: msg.value + fulfillAmount}(
fulfillAmount,
orderHash,
params.orderParams,
params.extraParams,
params.recipient,
params.batch,
emptyPermit()
);
}
} else {
maxApproveIfNeeded(fulfillToken, mayanProtocol, fulfillAmount);
if (params.encodedVm.length > 0) {
IFulfill(mayanProtocol).fulfillOrder{value: msg.value}(
fulfillAmount,
params.encodedVm,
params.orderParams,
params.extraParams,
params.recipient,
params.batch,
emptyPermit()
);
} else {
IFulfill(mayanProtocol).fulfillSimple{value: msg.value}(
fulfillAmount,
orderHash,
params.orderParams,
params.extraParams,
params.recipient,
params.batch,
emptyPermit()
);
}
}
}
function emptyPermit() internal pure returns (PermitParams memory) {
return PermitParams({
value: 0,
deadline: 0,
v: 0,
r: bytes32(0),
s: bytes32(0)
});
}
function transferBackRemaining(address token, uint256 amountBefore) internal {
uint256 remaining = IERC20(token).balanceOf(address(this));
if (remaining > amountBefore) {
IERC20(token).safeTransfer(msg.sender, remaining - amountBefore);
}
}
function maxApproveIfNeeded(address tokenAddr, address spender, uint256 amount) internal {
IERC20 token = IERC20(tokenAddr);
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < amount) {
token.safeApprove(spender, 0);
token.safeApprove(spender, type(uint256).max);
}
}
function pullTokenIn(
address tokenIn,
uint256 amountIn,
PermitParams calldata permitParams
) internal {
uint256 allowance = IERC20(tokenIn).allowance(msg.sender, address(this));
if (allowance < amountIn) {
execPermit(tokenIn, msg.sender, permitParams);
}
IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);
}
function execPermit(
address token,
address owner,
PermitParams calldata permitParams
) internal {
IERC20Permit(token).permit(
owner,
address(this),
permitParams.value,
permitParams.deadline,
permitParams.v,
permitParams.r,
permitParams.s
);
}
function rescueToken(address token, uint256 amount, address to) public {
require(msg.sender == guardian, 'only guardian');
IERC20(token).safeTransfer(to, amount);
}
function rescueEth(uint256 amount, address payable to) public {
require(msg.sender == guardian, 'only guardian');
require(to != address(0), 'transfer to the zero address');
(bool success, ) = payable(to).call{value: amount}('');
require(success, 'payment failed');
}
function changeGuardian(address newGuardian) public {
require(msg.sender == guardian, 'only guardian');
nextGuardian = newGuardian;
}
function claimGuardian() public {
require(msg.sender == nextGuardian, 'only next guardian');
guardian = nextGuardian;
}
function setSwapProtocol(address swapProtocol, bool enabled) public {
require(msg.sender == guardian, 'only guardian');
swapProtocols[swapProtocol] = enabled;
}
function setMayanProtocol(address mayanProtocol, bool enabled) public {
require(msg.sender == guardian, 'only guardian');
mayanProtocols[mayanProtocol] = enabled;
}
receive() external payable {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../swift/SwiftStructs.sol";
interface IFeeManager {
event ProtocolFeeCalced(uint8 bps);
event FeeDeposited(address relayer, address token, uint256 amount);
event FeeWithdrawn(address token, uint256 amount);
function calcProtocolBps(
uint64 amountIn,
address tokenIn,
bytes32 tokenOut,
uint16 destChain,
uint8 referrerBps
) external returns (uint8);
function calcSwiftProtocolBps(
address tokenIn,
uint256 amountIn,
OrderParams memory params
) external returns (uint8);
function calcFastMCTPProtocolBps(
uint8 payloadType,
address localToken,
uint256 recievedAmount,
address tokenOut,
address referrerAddr,
uint8 referrerBps
) external returns (uint8);
function feeCollector() external view returns (address);
function depositFee(address owner, address token, uint256 amount) payable external;
function withdrawFee(address token, uint256 amount) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @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 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.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;
/**
* @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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @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);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
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");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @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.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @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");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @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.isContract(address(token));
}
}// write interface for SwiftDest.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../swift/SwiftStructs.sol";
interface IFulfill {
function fulfillOrder(
uint256 fulfillAmount,
bytes memory encodedVm,
OrderParams memory params,
ExtraParams memory extraParams,
bytes32 recipient,
bool batch,
PermitParams calldata permit
) external payable returns (uint64 sequence);
function fulfillSimple(
uint256 fulfillAmount,
bytes32 orderHash,
OrderParams memory params,
ExtraParams memory extraParams,
bytes32 recipient,
bool batch,
PermitParams calldata permit
) external payable returns (uint64 sequence);
}struct Order {
Status status;
uint64 amountIn;
uint16 destChainId;
}
struct OrderParams {
uint8 payloadType;
bytes32 trader;
bytes32 destAddr;
uint16 destChainId;
bytes32 referrerAddr;
bytes32 tokenOut;
uint64 minAmountOut;
uint64 gasDrop;
uint64 cancelFee;
uint64 refundFee;
uint64 deadline;
uint8 referrerBps;
uint8 auctionMode;
bytes32 random;
}
struct ExtraParams {
uint16 srcChainId;
bytes32 tokenIn;
uint8 protocolBps;
bytes32 customPayloadHash;
}
struct PermitParams {
uint256 value;
uint256 deadline;
uint8 v;
bytes32 r;
bytes32 s;
}
struct Key {
uint8 payloadType;
bytes32 trader;
uint16 srcChainId;
bytes32 tokenIn;
bytes32 destAddr;
uint16 destChainId;
bytes32 tokenOut;
uint64 minAmountOut;
uint64 gasDrop;
uint64 cancelFee;
uint64 refundFee;
uint64 deadline;
bytes32 referrerAddr;
uint8 referrerBps;
uint8 protocolBps;
uint8 auctionMode;
bytes32 random;
bytes32 customPayloadHash;
}
struct PaymentParams {
uint8 payloadType;
bytes32 orderHash;
uint64 promisedAmount;
uint64 minAmountOut;
address destAddr;
address tokenOut;
uint64 gasDrop;
bool batch;
}
enum Status {
CREATED,
FULFILLED,
SETTLED,
UNLOCKED,
CANCELED,
REFUNDED
}
enum Action {
INVALID,
FULFILL,
UNLOCK,
REFUND,
BATCH_UNLOCK,
COMPRESSED_UNLOCK,
SET_REFUND_VERIFIER,
RESCUE
}
enum AuctionMode {
INVALID,
LIMIT_ORDER,
ENGLISH
}
struct UnlockMsg {
uint8 action;
bytes32 orderHash;
uint16 srcChainId;
bytes32 tokenIn;
bytes32 referrerAddr;
uint8 referrerBps;
uint8 protocolBps;
bytes32 unlockReceiver;
bytes32 driver;
uint64 fulfillTime;
}
uint constant UNLOCK_MSG_SIZE = 172; // excluding the action field
struct RefundMsg {
uint8 action;
bytes32 orderHash;
uint16 srcChainId;
bytes32 tokenIn;
bytes32 trader;
bytes32 canceler;
uint64 cancelFee;
uint64 refundFee;
}
struct FulfillMsg {
uint8 action;
bytes32 orderHash;
bytes32 driver;
uint64 promisedAmount;
uint16 penaltyPeriod;
}
struct TransferParams {
address from;
uint256 validAfter;
uint256 validBefore;
}
struct UnlockParams {
bytes32 recipient;
bytes32 driver;
bool batch;
}
struct RescueMsg {
uint8 action;
uint16 chainId;
bytes32 orderHash;
uint8 orderStatus;
address token;
uint64 amount;
}
struct RefundVerifier {
uint8 action;
address verifier;
uint16 emitterChainId;
bytes32 emitterAddr;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @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.
*/
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].
*/
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 v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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://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.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage);
}
}
}{
"remappings": [
"ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin/=lib/openzeppelin-contracts/",
"ExcessivelySafeCall/=lib/ExcessivelySafeCall/src/"
],
"optimizer": {
"enabled": true,
"runs": 1000
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "prague",
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_guardian","type":"address"},{"internalType":"address[]","name":"_swapProtocols","type":"address[]"},{"internalType":"address[]","name":"_mayanProtocols","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"UnsupportedProtocol","type":"error"},{"inputs":[{"internalType":"address","name":"newGuardian","type":"address"}],"name":"changeGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"fulfillToken","type":"address"},{"internalType":"address","name":"swapProtocol","type":"address"},{"internalType":"bytes","name":"swapData","type":"bytes"},{"internalType":"address","name":"mayanProtocol","type":"address"},{"components":[{"internalType":"bytes","name":"encodedVm","type":"bytes"},{"components":[{"internalType":"uint8","name":"payloadType","type":"uint8"},{"internalType":"bytes32","name":"trader","type":"bytes32"},{"internalType":"bytes32","name":"destAddr","type":"bytes32"},{"internalType":"uint16","name":"destChainId","type":"uint16"},{"internalType":"bytes32","name":"referrerAddr","type":"bytes32"},{"internalType":"bytes32","name":"tokenOut","type":"bytes32"},{"internalType":"uint64","name":"minAmountOut","type":"uint64"},{"internalType":"uint64","name":"gasDrop","type":"uint64"},{"internalType":"uint64","name":"cancelFee","type":"uint64"},{"internalType":"uint64","name":"refundFee","type":"uint64"},{"internalType":"uint64","name":"deadline","type":"uint64"},{"internalType":"uint8","name":"referrerBps","type":"uint8"},{"internalType":"uint8","name":"auctionMode","type":"uint8"},{"internalType":"bytes32","name":"random","type":"bytes32"}],"internalType":"struct OrderParams","name":"orderParams","type":"tuple"},{"components":[{"internalType":"uint16","name":"srcChainId","type":"uint16"},{"internalType":"bytes32","name":"tokenIn","type":"bytes32"},{"internalType":"uint8","name":"protocolBps","type":"uint8"},{"internalType":"bytes32","name":"customPayloadHash","type":"bytes32"}],"internalType":"struct ExtraParams","name":"extraParams","type":"tuple"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"bool","name":"batch","type":"bool"}],"internalType":"struct FulfillHelper.FulfillParams","name":"params","type":"tuple"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct PermitParams","name":"permitParams","type":"tuple"}],"name":"fulfillWithERC20","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"fulfillToken","type":"address"},{"internalType":"address","name":"swapProtocol","type":"address"},{"internalType":"bytes","name":"swapData","type":"bytes"},{"internalType":"address","name":"mayanProtocol","type":"address"},{"components":[{"internalType":"bytes","name":"encodedVm","type":"bytes"},{"components":[{"internalType":"uint8","name":"payloadType","type":"uint8"},{"internalType":"bytes32","name":"trader","type":"bytes32"},{"internalType":"bytes32","name":"destAddr","type":"bytes32"},{"internalType":"uint16","name":"destChainId","type":"uint16"},{"internalType":"bytes32","name":"referrerAddr","type":"bytes32"},{"internalType":"bytes32","name":"tokenOut","type":"bytes32"},{"internalType":"uint64","name":"minAmountOut","type":"uint64"},{"internalType":"uint64","name":"gasDrop","type":"uint64"},{"internalType":"uint64","name":"cancelFee","type":"uint64"},{"internalType":"uint64","name":"refundFee","type":"uint64"},{"internalType":"uint64","name":"deadline","type":"uint64"},{"internalType":"uint8","name":"referrerBps","type":"uint8"},{"internalType":"uint8","name":"auctionMode","type":"uint8"},{"internalType":"bytes32","name":"random","type":"bytes32"}],"internalType":"struct OrderParams","name":"orderParams","type":"tuple"},{"components":[{"internalType":"uint16","name":"srcChainId","type":"uint16"},{"internalType":"bytes32","name":"tokenIn","type":"bytes32"},{"internalType":"uint8","name":"protocolBps","type":"uint8"},{"internalType":"bytes32","name":"customPayloadHash","type":"bytes32"}],"internalType":"struct ExtraParams","name":"extraParams","type":"tuple"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"bool","name":"batch","type":"bool"}],"internalType":"struct FulfillHelper.FulfillParams","name":"params","type":"tuple"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"fulfillWithEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"guardian","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mayanProtocols","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextGuardian","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"name":"rescueEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mayanProtocol","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setMayanProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"swapProtocol","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setSwapProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"swapProtocols","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561000f575f5ffd5b5060405161203e38038061203e83398101604081905261002e916101d9565b5f80546001600160a01b0319166001600160a01b0385161781555b82518110156100a257600160025f8584815181106100695761006961024e565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff1916911515919091179055600101610049565b505f5b81518110156100fe57600160035f8484815181106100c5576100c561024e565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff19169115159190911790556001016100a5565b50505050610262565b80516001600160a01b038116811461011d575f5ffd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610145575f5ffd5b81516001600160401b0381111561015e5761015e610122565b604051600582901b90603f8201601f191681016001600160401b038111828210171561018c5761018c610122565b6040529182526020818501810192908101868411156101a9575f5ffd5b6020860192505b838310156101cf576101c183610107565b8152602092830192016101b0565b5095945050505050565b5f5f5f606084860312156101eb575f5ffd5b6101f484610107565b60208501519093506001600160401b0381111561020f575f5ffd5b61021b86828701610136565b604086015190935090506001600160401b03811115610238575f5ffd5b61024486828701610136565b9150509250925092565b634e487b7160e01b5f52603260045260245ffd5b611dcf8061026f5f395ff3fe6080604052600436106100c6575f3560e01c8063a44382fe11610071578063f4b5381d1161004c578063f4b5381d1461020e578063f8a67a6214610221578063ffe8054114610240575f5ffd5b8063a44382fe14610192578063af56ca03146101b1578063b25ea8fb146101ef575f5ffd5b80634818e84d116100a15780634818e84d146101415780635f4af53a146101605780637fc920eb14610173575f5ffd5b80632fcb4f04146100d1578063452a9320146100f2578063459656ee1461012d575f5ffd5b366100cd57005b5f5ffd5b3480156100dc575f5ffd5b506100f06100eb3660046116bd565b61026e565b005b3480156100fd575f5ffd5b505f54610110906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b348015610138575f5ffd5b506100f06102eb565b34801561014c575f5ffd5b50600154610110906001600160a01b031681565b6100f061016e36600461173b565b610375565b34801561017e575f5ffd5b506100f061018d3660046117fc565b61078c565b34801561019d575f5ffd5b506100f06101ac3660046117fc565b6107ff565b3480156101bc575f5ffd5b506101df6101cb3660046116bd565b60036020525f908152604090205460ff1681565b6040519015158152602001610124565b3480156101fa575f5ffd5b506100f0610209366004611833565b610872565b6100f061021c366004611866565b6109b5565b34801561022c575f5ffd5b506100f061023b366004611938565b610e85565b34801561024b575f5ffd5b506101df61025a3660046116bd565b60026020525f908152604090205460ff1681565b5f546001600160a01b031633146102bc5760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064015b60405180910390fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001546001600160a01b031633146103455760405162461bcd60e51b815260206004820152601260248201527f6f6e6c79206e65787420677561726469616e000000000000000000000000000060448201526064016102b3565b6001545f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03909216919091179055565b6001600160a01b0386165f9081526002602052604090205460ff1615806103b457506001600160a01b0383165f9081526003602052604090205460ff16155b156103d25760405163743f26e160e01b815260040160405180910390fd5b6001600160a01b0387166104285760405162461bcd60e51b815260206004820152601560248201527f496e76616c69642066756c66696c6c20746f6b656e000000000000000000000060448201526064016102b3565b873410156104785760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e7420696e7075742076616c7565000000000000000060448201526064016102b3565b6040516370a0823160e01b81523060048201525f906001600160a01b038916906370a0823190602401602060405180830381865afa1580156104bc573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104e09190611977565b90505f876001600160a01b03168a88886040516104fe92919061198e565b5f6040518083038185875af1925050503d805f8114610538576040519150601f19603f3d011682016040523d82523d5f602084013e61053d565b606091505b505090508061058e5760405162461bcd60e51b815260206004820152601060248201527f537761702063616c6c206661696c65640000000000000000000000000000000060448201526064016102b3565b6040516370a0823160e01b815230600482015282906001600160a01b038b16906370a0823190602401602060405180830381865afa1580156105d2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105f69190611977565b61060091906119ca565b915061060d898684610ee2565b5f61061885806119e3565b905011156106d7576001600160a01b03851663595ed0d96106398c346119ca565b8461064488806119e3565b60208a016101e08b016102608c01356106656102a08e016102808f01611a26565b61066d610f8e565b6040518a63ffffffff1660e01b8152600401610690989796959493929190611bd0565b60206040518083038185885af11580156106ac573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906106d19190611c71565b50610780565b6001600160a01b03851663d5e3731b6106f08c346119ca565b8486602089016101e08a016102608b01356107136102a08d016102808e01611a26565b61071b610f8e565b6040518963ffffffff1660e01b815260040161073d9796959493929190611c8c565b60206040518083038185885af1158015610759573d5f5f3e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061077e9190611c71565b505b50505050505050505050565b5f546001600160a01b031633146107d55760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064016102b3565b6001600160a01b03919091165f908152600260205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146108485760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064016102b3565b6001600160a01b03919091165f908152600360205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146108bb5760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064016102b3565b6001600160a01b0381166109115760405162461bcd60e51b815260206004820152601c60248201527f7472616e7366657220746f20746865207a65726f20616464726573730000000060448201526064016102b3565b5f816001600160a01b0316836040515f6040518083038185875af1925050503d805f811461095a576040519150601f19603f3d011682016040523d82523d5f602084013e61095f565b606091505b50509050806109b05760405162461bcd60e51b815260206004820152600e60248201527f7061796d656e74206661696c656400000000000000000000000000000000000060448201526064016102b3565b505050565b6001600160a01b0387165f9081526002602052604090205460ff1615806109f457506001600160a01b0384165f9081526003602052604090205460ff16155b15610a125760405163743f26e160e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201525f906001600160a01b038c16906370a0823190602401602060405180830381865afa158015610a56573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a7a9190611977565b9050610a878b8b84610fec565b610a928b898c610ee2565b5f6001600160a01b038a16610aa8575047610b11565b6040516370a0823160e01b81523060048201526001600160a01b038b16906370a0823190602401602060405180830381865afa158015610aea573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b0e9190611977565b90505b5f896001600160a01b03168989604051610b2c92919061198e565b5f604051808303815f865af19150503d805f8114610b65576040519150601f19603f3d011682016040523d82523d5f602084013e610b6a565b606091505b5050905080610bbb5760405162461bcd60e51b815260206004820152601060248201527f537761702063616c6c206661696c65640000000000000000000000000000000060448201526064016102b3565b610bc58d8461108a565b6001600160a01b038b16610be457610bdd82476119ca565b9150610c59565b6040516370a0823160e01b815230600482015282906001600160a01b038d16906370a0823190602401602060405180830381865afa158015610c28573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c4c9190611977565b610c5691906119ca565b91505b6001600160a01b038b16610d9b575f610c7287806119e3565b90501115610d33576001600160a01b03871663595ed0d9610c938434611d07565b84610c9e8a806119e3565b8b6020018c6101e0018d61026001358e610280016020810190610cc19190611a26565b610cc9610f8e565b6040518a63ffffffff1660e01b8152600401610cec989796959493929190611bd0565b60206040518083038185885af1158015610d08573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610d2d9190611c71565b50610e76565b6001600160a01b03871663d5e3731b610d4c8434611d07565b84888a6020018b6101e0018c61026001358d610280016020810190610d719190611a26565b610d79610f8e565b6040518963ffffffff1660e01b8152600401610cec9796959493929190611c8c565b610da68b8884610ee2565b5f610db187806119e3565b90501115610dd4576001600160a01b03871663595ed0d93484610c9e8a806119e3565b866001600160a01b031663d5e3731b3484888a6020018b6101e0018c61026001358d610280016020810190610e099190611a26565b610e11610f8e565b6040518963ffffffff1660e01b8152600401610e339796959493929190611c8c565b60206040518083038185885af1158015610e4f573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610e749190611c71565b505b50505050505050505050505050565b5f546001600160a01b03163314610ece5760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064016102b3565b6109b06001600160a01b0384168284611117565b604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284915f9183169063dd62ed3e90604401602060405180830381865afa158015610f30573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f549190611977565b905082811015610f8757610f726001600160a01b038316855f6111c0565b610f876001600160a01b038316855f196111c0565b5050505050565b610fbe6040518060a001604052805f81526020015f81526020015f60ff1681526020015f81526020015f81525090565b506040805160a0810182525f8082526020820181905291810182905260608101829052608081019190915290565b604051636eb1769f60e11b81523360048201523060248201525f906001600160a01b0385169063dd62ed3e90604401602060405180830381865afa158015611036573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061105a9190611977565b90508281101561106f5761106f8433846112f3565b6110846001600160a01b0385163330866113be565b50505050565b6040516370a0823160e01b81523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa1580156110ce573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110f29190611977565b9050818111156109b0576109b03361110a84846119ca565b6001600160a01b03861691905b6040516001600160a01b0383166024820152604481018290526109b09084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261140f565b8015806112385750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611212573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112369190611977565b155b6112aa5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016102b3565b6040516001600160a01b0383166024820152604481018290526109b09084907f095ea7b3000000000000000000000000000000000000000000000000000000009060640161115c565b6001600160a01b03831663d505accf83308435602086013561131b6060880160408901611d1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b0395861660048201529490931660248501526044840191909152606483015260ff166084820152606084013560a4820152608084013560c482015260e4015f604051808303815f87803b1580156113a3575f5ffd5b505af11580156113b5573d5f5f3e3d5ffd5b50505050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526110849085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161115c565b5f611463826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114f59092919063ffffffff16565b905080515f14806114835750808060200190518101906114839190611d33565b6109b05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102b3565b606061150384845f8561150b565b949350505050565b6060824710156115835760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102b3565b5f5f866001600160a01b0316858760405161159e9190611d4e565b5f6040518083038185875af1925050503d805f81146115d8576040519150601f19603f3d011682016040523d82523d5f602084013e6115dd565b606091505b50915091506115ee878383876115f9565b979650505050505050565b606083156116675782515f03611660576001600160a01b0385163b6116605760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b3565b5081611503565b611503838381511561167c5781518083602001fd5b8060405162461bcd60e51b81526004016102b39190611d64565b6001600160a01b03811681146116aa575f5ffd5b50565b80356116b881611696565b919050565b5f602082840312156116cd575f5ffd5b81356116d881611696565b9392505050565b5f5f83601f8401126116ef575f5ffd5b50813567ffffffffffffffff811115611706575f5ffd5b60208301915083602082850101111561171d575f5ffd5b9250929050565b5f6102a08284031215611735575f5ffd5b50919050565b5f5f5f5f5f5f5f5f60e0898b031215611752575f5ffd5b88359750602089013561176481611696565b9650604089013561177481611696565b9550606089013567ffffffffffffffff81111561178f575f5ffd5b61179b8b828c016116df565b90965094505060808901356117af81611696565b925060a089013567ffffffffffffffff8111156117ca575f5ffd5b6117d68b828c01611724565b989b979a50959894979396929550929360c00135925050565b80151581146116aa575f5ffd5b5f5f6040838503121561180d575f5ffd5b823561181881611696565b91506020830135611828816117ef565b809150509250929050565b5f5f60408385031215611844575f5ffd5b82359150602083013561182881611696565b5f60a08284031215611735575f5ffd5b5f5f5f5f5f5f5f5f5f5f6101a08b8d031215611880575f5ffd5b8a3561188b81611696565b995060208b013598506118a060408c016116ad565b97506118ae60608c016116ad565b965060808b013567ffffffffffffffff8111156118c9575f5ffd5b6118d58d828e016116df565b90975095506118e8905060a08c016116ad565b935060c08b013567ffffffffffffffff811115611903575f5ffd5b61190f8d828e01611724565b93505060e08b013591506119278c6101008d01611856565b90509295989b9194979a5092959850565b5f5f5f6060848603121561194a575f5ffd5b833561195581611696565b925060208401359150604084013561196c81611696565b809150509250925092565b5f60208284031215611987575f5ffd5b5051919050565b818382375f9101908152919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b818103818111156119dd576119dd61199d565b92915050565b5f5f8335601e198436030181126119f8575f5ffd5b83018035915067ffffffffffffffff821115611a12575f5ffd5b60200191503681900382131561171d575f5ffd5b5f60208284031215611a36575f5ffd5b81356116d8816117ef565b803560ff811681146116b8575f5ffd5b803561ffff811681146116b8575f5ffd5b67ffffffffffffffff811681146116aa575f5ffd5b80356116b881611a62565b611a9682611a8f83611a41565b60ff169052565b6020818101359083015260408082013590830152611ab660608201611a51565b61ffff1660608301526080818101359083015260a08082013590830152611adf60c08201611a77565b67ffffffffffffffff1660c0830152611afa60e08201611a77565b67ffffffffffffffff1660e0830152611b166101008201611a77565b67ffffffffffffffff16610100830152611b336101208201611a77565b67ffffffffffffffff16610120830152611b506101408201611a77565b67ffffffffffffffff16610140830152611b6d6101608201611a41565b60ff16610160830152611b836101808201611a41565b60ff166101808301526101a090810135910152565b61ffff611ba482611a51565b1682526020818101359083015260ff611bbf60408301611a41565b166040830152606090810135910152565b88815261036060208201528661036082015286886103808301375f61038088830101525f610380601f19601f8a01168301019050611c116040830188611a82565b611c1f610200830187611b98565b6102808201949094529115156102a083015280516102c083015260208101516102e0830152604081015160ff166103008301526060810151610320830152608001516103409091015295945050505050565b5f60208284031215611c81575f5ffd5b81516116d881611a62565b878152602081018790526103608101611ca86040830188611a82565b611cb6610200830187611b98565b6102808201949094529115156102a083015280516102c083015260208101516102e0830152604081015160ff1661030083015260608101516103208301526080015161034090910152949350505050565b808201808211156119dd576119dd61199d565b5f60208284031215611d2a575f5ffd5b6116d882611a41565b5f60208284031215611d43575f5ffd5b81516116d8816117ef565b5f82518060208501845e5f920191825250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f8301168401019150509291505056fea26469706673582212209bde5ae0e91f5267d67112e9fbe422894d7f4ff3700cbef12d33f61697e0eee564736f6c634300081c0033000000000000000000000000933e3922e04d47a466e60a20e486b372b64f1ea8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000529863940bf6065d8c122a550c2ff37c1cfefa160000000000000000000000000000000000001ff3684f28c67538d4d072c227340000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c38e4e6a15593f908255214653d3d947ca1c23380000000000000000000000003b16055bba95a36925b02819a07de8ff1f35476f
Deployed Bytecode
0x6080604052600436106100c6575f3560e01c8063a44382fe11610071578063f4b5381d1161004c578063f4b5381d1461020e578063f8a67a6214610221578063ffe8054114610240575f5ffd5b8063a44382fe14610192578063af56ca03146101b1578063b25ea8fb146101ef575f5ffd5b80634818e84d116100a15780634818e84d146101415780635f4af53a146101605780637fc920eb14610173575f5ffd5b80632fcb4f04146100d1578063452a9320146100f2578063459656ee1461012d575f5ffd5b366100cd57005b5f5ffd5b3480156100dc575f5ffd5b506100f06100eb3660046116bd565b61026e565b005b3480156100fd575f5ffd5b505f54610110906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b348015610138575f5ffd5b506100f06102eb565b34801561014c575f5ffd5b50600154610110906001600160a01b031681565b6100f061016e36600461173b565b610375565b34801561017e575f5ffd5b506100f061018d3660046117fc565b61078c565b34801561019d575f5ffd5b506100f06101ac3660046117fc565b6107ff565b3480156101bc575f5ffd5b506101df6101cb3660046116bd565b60036020525f908152604090205460ff1681565b6040519015158152602001610124565b3480156101fa575f5ffd5b506100f0610209366004611833565b610872565b6100f061021c366004611866565b6109b5565b34801561022c575f5ffd5b506100f061023b366004611938565b610e85565b34801561024b575f5ffd5b506101df61025a3660046116bd565b60026020525f908152604090205460ff1681565b5f546001600160a01b031633146102bc5760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064015b60405180910390fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001546001600160a01b031633146103455760405162461bcd60e51b815260206004820152601260248201527f6f6e6c79206e65787420677561726469616e000000000000000000000000000060448201526064016102b3565b6001545f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03909216919091179055565b6001600160a01b0386165f9081526002602052604090205460ff1615806103b457506001600160a01b0383165f9081526003602052604090205460ff16155b156103d25760405163743f26e160e01b815260040160405180910390fd5b6001600160a01b0387166104285760405162461bcd60e51b815260206004820152601560248201527f496e76616c69642066756c66696c6c20746f6b656e000000000000000000000060448201526064016102b3565b873410156104785760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e7420696e7075742076616c7565000000000000000060448201526064016102b3565b6040516370a0823160e01b81523060048201525f906001600160a01b038916906370a0823190602401602060405180830381865afa1580156104bc573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104e09190611977565b90505f876001600160a01b03168a88886040516104fe92919061198e565b5f6040518083038185875af1925050503d805f8114610538576040519150601f19603f3d011682016040523d82523d5f602084013e61053d565b606091505b505090508061058e5760405162461bcd60e51b815260206004820152601060248201527f537761702063616c6c206661696c65640000000000000000000000000000000060448201526064016102b3565b6040516370a0823160e01b815230600482015282906001600160a01b038b16906370a0823190602401602060405180830381865afa1580156105d2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105f69190611977565b61060091906119ca565b915061060d898684610ee2565b5f61061885806119e3565b905011156106d7576001600160a01b03851663595ed0d96106398c346119ca565b8461064488806119e3565b60208a016101e08b016102608c01356106656102a08e016102808f01611a26565b61066d610f8e565b6040518a63ffffffff1660e01b8152600401610690989796959493929190611bd0565b60206040518083038185885af11580156106ac573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906106d19190611c71565b50610780565b6001600160a01b03851663d5e3731b6106f08c346119ca565b8486602089016101e08a016102608b01356107136102a08d016102808e01611a26565b61071b610f8e565b6040518963ffffffff1660e01b815260040161073d9796959493929190611c8c565b60206040518083038185885af1158015610759573d5f5f3e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061077e9190611c71565b505b50505050505050505050565b5f546001600160a01b031633146107d55760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064016102b3565b6001600160a01b03919091165f908152600260205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146108485760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064016102b3565b6001600160a01b03919091165f908152600360205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146108bb5760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064016102b3565b6001600160a01b0381166109115760405162461bcd60e51b815260206004820152601c60248201527f7472616e7366657220746f20746865207a65726f20616464726573730000000060448201526064016102b3565b5f816001600160a01b0316836040515f6040518083038185875af1925050503d805f811461095a576040519150601f19603f3d011682016040523d82523d5f602084013e61095f565b606091505b50509050806109b05760405162461bcd60e51b815260206004820152600e60248201527f7061796d656e74206661696c656400000000000000000000000000000000000060448201526064016102b3565b505050565b6001600160a01b0387165f9081526002602052604090205460ff1615806109f457506001600160a01b0384165f9081526003602052604090205460ff16155b15610a125760405163743f26e160e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201525f906001600160a01b038c16906370a0823190602401602060405180830381865afa158015610a56573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a7a9190611977565b9050610a878b8b84610fec565b610a928b898c610ee2565b5f6001600160a01b038a16610aa8575047610b11565b6040516370a0823160e01b81523060048201526001600160a01b038b16906370a0823190602401602060405180830381865afa158015610aea573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b0e9190611977565b90505b5f896001600160a01b03168989604051610b2c92919061198e565b5f604051808303815f865af19150503d805f8114610b65576040519150601f19603f3d011682016040523d82523d5f602084013e610b6a565b606091505b5050905080610bbb5760405162461bcd60e51b815260206004820152601060248201527f537761702063616c6c206661696c65640000000000000000000000000000000060448201526064016102b3565b610bc58d8461108a565b6001600160a01b038b16610be457610bdd82476119ca565b9150610c59565b6040516370a0823160e01b815230600482015282906001600160a01b038d16906370a0823190602401602060405180830381865afa158015610c28573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c4c9190611977565b610c5691906119ca565b91505b6001600160a01b038b16610d9b575f610c7287806119e3565b90501115610d33576001600160a01b03871663595ed0d9610c938434611d07565b84610c9e8a806119e3565b8b6020018c6101e0018d61026001358e610280016020810190610cc19190611a26565b610cc9610f8e565b6040518a63ffffffff1660e01b8152600401610cec989796959493929190611bd0565b60206040518083038185885af1158015610d08573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610d2d9190611c71565b50610e76565b6001600160a01b03871663d5e3731b610d4c8434611d07565b84888a6020018b6101e0018c61026001358d610280016020810190610d719190611a26565b610d79610f8e565b6040518963ffffffff1660e01b8152600401610cec9796959493929190611c8c565b610da68b8884610ee2565b5f610db187806119e3565b90501115610dd4576001600160a01b03871663595ed0d93484610c9e8a806119e3565b866001600160a01b031663d5e3731b3484888a6020018b6101e0018c61026001358d610280016020810190610e099190611a26565b610e11610f8e565b6040518963ffffffff1660e01b8152600401610e339796959493929190611c8c565b60206040518083038185885af1158015610e4f573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610e749190611c71565b505b50505050505050505050505050565b5f546001600160a01b03163314610ece5760405162461bcd60e51b815260206004820152600d60248201526c37b7363c9033bab0b93234b0b760991b60448201526064016102b3565b6109b06001600160a01b0384168284611117565b604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284915f9183169063dd62ed3e90604401602060405180830381865afa158015610f30573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f549190611977565b905082811015610f8757610f726001600160a01b038316855f6111c0565b610f876001600160a01b038316855f196111c0565b5050505050565b610fbe6040518060a001604052805f81526020015f81526020015f60ff1681526020015f81526020015f81525090565b506040805160a0810182525f8082526020820181905291810182905260608101829052608081019190915290565b604051636eb1769f60e11b81523360048201523060248201525f906001600160a01b0385169063dd62ed3e90604401602060405180830381865afa158015611036573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061105a9190611977565b90508281101561106f5761106f8433846112f3565b6110846001600160a01b0385163330866113be565b50505050565b6040516370a0823160e01b81523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa1580156110ce573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110f29190611977565b9050818111156109b0576109b03361110a84846119ca565b6001600160a01b03861691905b6040516001600160a01b0383166024820152604481018290526109b09084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261140f565b8015806112385750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611212573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112369190611977565b155b6112aa5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016102b3565b6040516001600160a01b0383166024820152604481018290526109b09084907f095ea7b3000000000000000000000000000000000000000000000000000000009060640161115c565b6001600160a01b03831663d505accf83308435602086013561131b6060880160408901611d1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b0395861660048201529490931660248501526044840191909152606483015260ff166084820152606084013560a4820152608084013560c482015260e4015f604051808303815f87803b1580156113a3575f5ffd5b505af11580156113b5573d5f5f3e3d5ffd5b50505050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526110849085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161115c565b5f611463826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114f59092919063ffffffff16565b905080515f14806114835750808060200190518101906114839190611d33565b6109b05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102b3565b606061150384845f8561150b565b949350505050565b6060824710156115835760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102b3565b5f5f866001600160a01b0316858760405161159e9190611d4e565b5f6040518083038185875af1925050503d805f81146115d8576040519150601f19603f3d011682016040523d82523d5f602084013e6115dd565b606091505b50915091506115ee878383876115f9565b979650505050505050565b606083156116675782515f03611660576001600160a01b0385163b6116605760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102b3565b5081611503565b611503838381511561167c5781518083602001fd5b8060405162461bcd60e51b81526004016102b39190611d64565b6001600160a01b03811681146116aa575f5ffd5b50565b80356116b881611696565b919050565b5f602082840312156116cd575f5ffd5b81356116d881611696565b9392505050565b5f5f83601f8401126116ef575f5ffd5b50813567ffffffffffffffff811115611706575f5ffd5b60208301915083602082850101111561171d575f5ffd5b9250929050565b5f6102a08284031215611735575f5ffd5b50919050565b5f5f5f5f5f5f5f5f60e0898b031215611752575f5ffd5b88359750602089013561176481611696565b9650604089013561177481611696565b9550606089013567ffffffffffffffff81111561178f575f5ffd5b61179b8b828c016116df565b90965094505060808901356117af81611696565b925060a089013567ffffffffffffffff8111156117ca575f5ffd5b6117d68b828c01611724565b989b979a50959894979396929550929360c00135925050565b80151581146116aa575f5ffd5b5f5f6040838503121561180d575f5ffd5b823561181881611696565b91506020830135611828816117ef565b809150509250929050565b5f5f60408385031215611844575f5ffd5b82359150602083013561182881611696565b5f60a08284031215611735575f5ffd5b5f5f5f5f5f5f5f5f5f5f6101a08b8d031215611880575f5ffd5b8a3561188b81611696565b995060208b013598506118a060408c016116ad565b97506118ae60608c016116ad565b965060808b013567ffffffffffffffff8111156118c9575f5ffd5b6118d58d828e016116df565b90975095506118e8905060a08c016116ad565b935060c08b013567ffffffffffffffff811115611903575f5ffd5b61190f8d828e01611724565b93505060e08b013591506119278c6101008d01611856565b90509295989b9194979a5092959850565b5f5f5f6060848603121561194a575f5ffd5b833561195581611696565b925060208401359150604084013561196c81611696565b809150509250925092565b5f60208284031215611987575f5ffd5b5051919050565b818382375f9101908152919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b818103818111156119dd576119dd61199d565b92915050565b5f5f8335601e198436030181126119f8575f5ffd5b83018035915067ffffffffffffffff821115611a12575f5ffd5b60200191503681900382131561171d575f5ffd5b5f60208284031215611a36575f5ffd5b81356116d8816117ef565b803560ff811681146116b8575f5ffd5b803561ffff811681146116b8575f5ffd5b67ffffffffffffffff811681146116aa575f5ffd5b80356116b881611a62565b611a9682611a8f83611a41565b60ff169052565b6020818101359083015260408082013590830152611ab660608201611a51565b61ffff1660608301526080818101359083015260a08082013590830152611adf60c08201611a77565b67ffffffffffffffff1660c0830152611afa60e08201611a77565b67ffffffffffffffff1660e0830152611b166101008201611a77565b67ffffffffffffffff16610100830152611b336101208201611a77565b67ffffffffffffffff16610120830152611b506101408201611a77565b67ffffffffffffffff16610140830152611b6d6101608201611a41565b60ff16610160830152611b836101808201611a41565b60ff166101808301526101a090810135910152565b61ffff611ba482611a51565b1682526020818101359083015260ff611bbf60408301611a41565b166040830152606090810135910152565b88815261036060208201528661036082015286886103808301375f61038088830101525f610380601f19601f8a01168301019050611c116040830188611a82565b611c1f610200830187611b98565b6102808201949094529115156102a083015280516102c083015260208101516102e0830152604081015160ff166103008301526060810151610320830152608001516103409091015295945050505050565b5f60208284031215611c81575f5ffd5b81516116d881611a62565b878152602081018790526103608101611ca86040830188611a82565b611cb6610200830187611b98565b6102808201949094529115156102a083015280516102c083015260208101516102e0830152604081015160ff1661030083015260608101516103208301526080015161034090910152949350505050565b808201808211156119dd576119dd61199d565b5f60208284031215611d2a575f5ffd5b6116d882611a41565b5f60208284031215611d43575f5ffd5b81516116d8816117ef565b5f82518060208501845e5f920191825250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f8301168401019150509291505056fea26469706673582212209bde5ae0e91f5267d67112e9fbe422894d7f4ff3700cbef12d33f61697e0eee564736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000933e3922e04d47a466e60a20e486b372b64f1ea8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000529863940bf6065d8c122a550c2ff37c1cfefa160000000000000000000000000000000000001ff3684f28c67538d4d072c227340000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c38e4e6a15593f908255214653d3d947ca1c23380000000000000000000000003b16055bba95a36925b02819a07de8ff1f35476f
-----Decoded View---------------
Arg [0] : _guardian (address): 0x933E3922E04d47a466e60A20e486b372B64F1Ea8
Arg [1] : _swapProtocols (address[]): 0x529863940BF6065d8C122a550c2ff37c1cfeFa16,0x0000000000001fF3684f28c67538d4D072C22734
Arg [2] : _mayanProtocols (address[]): 0xC38e4e6A15593f908255214653d3D947CA1c2338,0x3b16055bba95A36925b02819A07DE8ff1F35476F
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000933e3922e04d47a466e60a20e486b372b64f1ea8
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [4] : 000000000000000000000000529863940bf6065d8c122a550c2ff37c1cfefa16
Arg [5] : 0000000000000000000000000000000000001ff3684f28c67538d4d072c22734
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 000000000000000000000000c38e4e6a15593f908255214653d3d947ca1c2338
Arg [8] : 0000000000000000000000003b16055bba95a36925b02819a07de8ff1f35476f
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in HYPE
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.