Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 424781809 | 28 mins ago | 0.00001733 ETH | ||||
| 424781809 | 28 mins ago | 0.00067702 ETH | ||||
| 424781809 | 28 mins ago | 0.00069435 ETH | ||||
| 424757525 | 2 hrs ago | 0.62660437 ETH | ||||
| 424757525 | 2 hrs ago | 0.62660437 ETH | ||||
| 424709257 | 5 hrs ago | 0.00209559 ETH | ||||
| 424709257 | 5 hrs ago | 0.00209559 ETH | ||||
| 424708908 | 5 hrs ago | 0.00267074 ETH | ||||
| 424708908 | 5 hrs ago | 0.00267074 ETH | ||||
| 424641330 | 10 hrs ago | 0.00168169 ETH | ||||
| 424641330 | 10 hrs ago | 0.00168169 ETH | ||||
| 424610664 | 12 hrs ago | 0.00383142 ETH | ||||
| 424610664 | 12 hrs ago | 0.00383142 ETH | ||||
| 424610612 | 12 hrs ago | 0.00362584 ETH | ||||
| 424610612 | 12 hrs ago | 0.00362584 ETH | ||||
| 424610573 | 12 hrs ago | 0.00387881 ETH | ||||
| 424610573 | 12 hrs ago | 0.00387881 ETH | ||||
| 424610527 | 12 hrs ago | 0.00371505 ETH | ||||
| 424610527 | 12 hrs ago | 0.00371505 ETH | ||||
| 424610503 | 12 hrs ago | 0.00366676 ETH | ||||
| 424610503 | 12 hrs ago | 0.00366676 ETH | ||||
| 424610383 | 12 hrs ago | 0.00358195 ETH | ||||
| 424610383 | 12 hrs ago | 0.00358195 ETH | ||||
| 424610304 | 12 hrs ago | 0.00370855 ETH | ||||
| 424610304 | 12 hrs ago | 0.00370855 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MulticallHandler
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;
import "../interfaces/SpokePoolMessageHandler.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
/**
* @title Across Multicall contract that allows a user to specify a series of calls that should be made by the handler
* via the message field in the deposit.
* @dev This contract makes the calls blindly. The contract will send any remaining tokens The caller should ensure that the tokens recieved by the handler are completely consumed.
*/
contract MulticallHandler is AcrossMessageHandler, ReentrancyGuard {
using SafeERC20 for IERC20;
using Address for address payable;
struct Call {
address target;
bytes callData;
uint256 value;
}
struct Replacement {
address token;
uint256 offset;
}
struct Instructions {
// Calls that will be attempted.
Call[] calls;
// Where the tokens go if any part of the call fails.
// Leftover tokens are sent here as well if the action succeeds.
address fallbackRecipient;
}
// Emitted when one of the calls fails. Note: all calls are reverted in this case.
event CallsFailed(Call[] calls, address indexed fallbackRecipient);
// Emitted when there are leftover tokens that are sent to the fallbackRecipient.
event DrainedTokens(address indexed recipient, address indexed token, uint256 indexed amount);
// Errors
error CallReverted(uint256 index, Call[] calls);
error NotSelf();
error InvalidCall(uint256 index, Call[] calls);
error ReplacementCallFailed(bytes callData);
error CalldataTooShort(uint256 callDataLength, uint256 offset);
modifier onlySelf() {
_requireSelf();
_;
}
/**
* @notice Main entrypoint for the handler called by the SpokePool contract.
* @dev This will execute all calls encoded in the msg. The caller is responsible for making sure all tokens are
* drained from this contract by the end of the series of calls. If not, they can be stolen.
* A drainLeftoverTokens call can be included as a way to drain any remaining tokens from this contract.
* @param message abi encoded array of Call structs, containing a target, callData, and value for each call that
* the contract should make.
*/
function handleV3AcrossMessage(
address token,
uint256,
address,
bytes memory message
) external nonReentrant {
Instructions memory instructions = abi.decode(message, (Instructions));
// If there is no fallback recipient, call and revert if the inner call fails.
if (instructions.fallbackRecipient == address(0)) {
this.attemptCalls(instructions.calls);
return;
}
// Otherwise, try the call and send to the fallback recipient if any tokens are leftover.
(bool success, ) = address(this).call(abi.encodeCall(this.attemptCalls, (instructions.calls)));
if (!success) emit CallsFailed(instructions.calls, instructions.fallbackRecipient);
// If there are leftover tokens, send them to the fallback recipient regardless of execution success.
_drainRemainingTokens(token, payable(instructions.fallbackRecipient));
}
function attemptCalls(Call[] memory calls) external onlySelf {
uint256 length = calls.length;
for (uint256 i = 0; i < length; ++i) {
Call memory call = calls[i];
// If we are calling an EOA with calldata, assume target was incorrectly specified and revert.
if (call.callData.length > 0 && call.target.code.length == 0) {
revert InvalidCall(i, calls);
}
(bool success, ) = call.target.call{ value: call.value }(call.callData);
if (!success) revert CallReverted(i, calls);
}
}
function drainLeftoverTokens(address token, address payable destination) external onlySelf {
_drainRemainingTokens(token, destination);
}
function _drainRemainingTokens(address token, address payable destination) internal {
if (token != address(0)) {
// ERC20 token.
uint256 amount = IERC20(token).balanceOf(address(this));
if (amount > 0) {
IERC20(token).safeTransfer(destination, amount);
emit DrainedTokens(destination, token, amount);
}
} else {
// Send native token
uint256 amount = address(this).balance;
if (amount > 0) {
destination.sendValue(amount);
}
}
}
/**
* @notice Executes a call while replacing specified calldata offsets with current token/native balances.
* @dev Modifies calldata in-place using OR operations. Target calldata positions must be zeroed out.
* Cannot handle negative balances, making it incompatible with DEXs requiring negative input amounts.
* For native balance (token = address(0)), the entire balance is used as call value.
* @param target The contract address to call
* @param callData The calldata to execute, with zero values at replacement positions
* @param value The native token value to send (ignored if native balance replacement is used)
* @param replacement Array of Replacement structs specifying token addresses and byte offsets for balance injection
*/
function makeCallWithBalance(
address target,
bytes memory callData,
uint256 value,
Replacement[] calldata replacement
) external onlySelf {
for (uint256 i = 0; i < replacement.length; i++) {
uint256 bal = 0;
if (replacement[i].token != address(0)) {
bal = IERC20(replacement[i].token).balanceOf(address(this));
} else {
bal = address(this).balance;
// If we're using the native balance, we assume that the caller wants to send the full value to the target.
value = bal;
}
// + 32 to skip the length of the calldata
uint256 offset = replacement[i].offset + 32;
// 32 has already been added to the offset, and the replacement value is 32 bytes long, so
// we don't need to add 32 here. We just directly compare the offset with the length of the calldata.
if (offset > callData.length) revert CalldataTooShort(callData.length, offset);
assembly ("memory-safe") {
// Get the pointer to the offset that the caller wants to overwrite.
let ptr := add(callData, offset)
// Get the current value at the offset.
let current := mload(ptr)
// Or the current value with the new value.
// Reasoning:
// - caller should 0-out any portion that they want overwritten.
// - if the caller is representing the balance in a smaller integer, like a uint160 or uint128,
// the higher bits will be 0 and not overwrite any other data in the calldata assuming
// the balance is small enough to fit in the smaller integer.
// - The catch: the smaller integer where they want to store the balance must end no
// earlier than the 32nd byte in their calldata. Otherwise, this would require a
// negative offset, which is not possible.
let val := or(bal, current)
// Store the new value at the offset.
mstore(ptr, val)
}
}
(bool success, ) = target.call{ value: value }(callData);
if (!success) revert ReplacementCallFailed(callData);
}
function _requireSelf() internal view {
// Must be called by this contract to ensure that this cannot be triggered without the explicit consent of the
// depositor (for a valid relay).
if (msg.sender != address(this)) revert NotSelf();
}
// Used if the caller is trying to unwrap the native token to this contract.
receive() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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.
*
* ==== 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 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));
}
}// 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);
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// This interface is expected to be implemented by any contract that expects to receive messages from the SpokePool.
interface AcrossMessageHandler {
function handleV3AcrossMessage(
address tokenSent,
uint256 amount,
address relayer,
bytes memory message
) external;
}{
"optimizer": {
"enabled": true,
"runs": 1000000
},
"viaIR": true,
"debug": {
"revertStrings": "strip"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct MulticallHandler.Call[]","name":"calls","type":"tuple[]"}],"name":"CallReverted","type":"error"},{"inputs":[{"internalType":"uint256","name":"callDataLength","type":"uint256"},{"internalType":"uint256","name":"offset","type":"uint256"}],"name":"CalldataTooShort","type":"error"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct MulticallHandler.Call[]","name":"calls","type":"tuple[]"}],"name":"InvalidCall","type":"error"},{"inputs":[],"name":"NotSelf","type":"error"},{"inputs":[{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"ReplacementCallFailed","type":"error"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"indexed":false,"internalType":"struct MulticallHandler.Call[]","name":"calls","type":"tuple[]"},{"indexed":true,"internalType":"address","name":"fallbackRecipient","type":"address"}],"name":"CallsFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DrainedTokens","type":"event"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct MulticallHandler.Call[]","name":"calls","type":"tuple[]"}],"name":"attemptCalls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address payable","name":"destination","type":"address"}],"name":"drainLeftoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"}],"name":"handleV3AcrossMessage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"}],"internalType":"struct MulticallHandler.Replacement[]","name":"replacement","type":"tuple[]"}],"name":"makeCallWithBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080806040523461001a5760015f55610eae908161001f8239f35b5f80fdfe60406080815260048036101561001e575b5050361561001c575f80fd5b005b5f3560e01c9081633a5be8cb1461059b578163a58d50d314610321578163c41e8295146100c0575063ef8738d3146100565780610010565b346100bc577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bc5761008b61062d565b60243573ffffffffffffffffffffffffffffffffffffffff811681036100bc5761001c916100b7610e1c565b610c2e565b5f80fd5b9050346100bc5760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bc576100f961062d565b6024929067ffffffffffffffff84358181116100bc5761011c9036908601610714565b916044606435928084116100bc57366023850112156100bc57838701359081116100bc57878401938836918360061b0101116100bc5761015a610e1c565b604435935f5b8281106101c657505050505f91829184519160208601915af16101816108a4565b501561018957005b6020936101c292519485947fb3beda730000000000000000000000000000000000000000000000000000000086528501528301906107b4565b0390fd5b73ffffffffffffffffffffffffffffffffffffffff806101ef6101ea848787610bd0565b610c0d565b1615610317576102036101ea838686610bd0565b16885180917f70a08231000000000000000000000000000000000000000000000000000000008252308c830152818d60209485935afa91821561030d575f926102df575b50505b602080610258848787610bd0565b01358181018082116102b4578a5180821161028157505089010180519091179052600101610160565b88918f8f928f51937f4d3ae48d000000000000000000000000000000000000000000000000000000008552840152820152fd5b8d60118e7f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b90809250813d8311610306575b6102f68183610699565b810103126100bc57515f80610247565b503d6102ec565b8a513d5f823e3d90fd5b504795508561024a565b9050346100bc57602091827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bc5767ffffffffffffffff9082358281116100bc57366023820112156100bc5780840135946024916103838761075a565b9461039085519687610699565b878652828601908460059960051b840101923684116100bc57858101925b8484106104fe5750505050506103c2610e1c565b8351955f5b8781106103d057005b85518110156104d3578281831b87010151838101908151511515806104b3575b610474575f91818873ffffffffffffffffffffffffffffffffffffffff859451169101519151918783519301915af16104276108a4565b5015610435576001016103c7565b866101c287878781519586957fe462c44000000000000000000000000000000000000000000000000000000000875286015284015260448301906107f7565b86517fe237730c000000000000000000000000000000000000000000000000000000008152808a01849052808701889052806101c2604482018b6107f7565b5073ffffffffffffffffffffffffffffffffffffffff8151163b156103f0565b836032887f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b83358381116100bc57820160607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc82360301126100bc5788519161054183610650565b8882013573ffffffffffffffffffffffffffffffffffffffff811681036100bc5783526044820135928584116100bc57606489949361058686958d3691840101610714565b8584015201358b8201528152019301926103ae565b346100bc5760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bc576105d261062d565b9060443573ffffffffffffffffffffffffffffffffffffffff8116036100bc576064359067ffffffffffffffff82116100bc5761061191369101610714565b60025f54146100bc576106279160025f556108d3565b60015f55005b6004359073ffffffffffffffffffffffffffffffffffffffff821682036100bc57565b6060810190811067ffffffffffffffff82111761066c57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761066c57604052565b67ffffffffffffffff811161066c57601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b81601f820112156100bc5780359061072b826106da565b926107396040519485610699565b828452602083830101116100bc57815f926020809301838601378301015290565b67ffffffffffffffff811161066c5760051b60200190565b519073ffffffffffffffffffffffffffffffffffffffff821682036100bc57565b5f5b8381106107a45750505f910152565b8181015183820152602001610795565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6020936107f081518092818752878088019101610793565b0116010190565b908082519081815260208091019281808460051b8301019501935f915b8483106108245750505050505090565b9091929394958480827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0856001950301865289519061088a606073ffffffffffffffffffffffffffffffffffffffff8451168352848401519080868501528301906107b4565b916040809101519101529801930193019194939290610814565b3d156108ce573d906108b5826106da565b916108c36040519384610699565b82523d5f602084013e565b606090565b81516020908301928184019382828203126100bc578282015167ffffffffffffffff928382116100bc57019060409182818303126100bc578251918383018381108682111761066c578452858201518581116100bc5782019088603f830112156100bc57868201516109448161075a565b9961095187519b8c610699565b818b5286898c019260051b850101938185116100bc57908188809695949301925b858410610b045750505050505061098c9188845201610772565b938082019385855273ffffffffffffffffffffffffffffffffffffffff80961615610a8f5750610a4796505f8083518551610a27816109fb878201947fa58d50d300000000000000000000000000000000000000000000000000000000865288602484015260448301906107f7565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610699565b519082305af1610a356108a4565b5015610a49575b505050511690610c2e565b565b7f5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966915190610a848686511694519282849384528301906107f7565b0390a25f8080610a3c565b94509250509250303b156100bc57610adc935f91845195869283927fa58d50d3000000000000000000000000000000000000000000000000000000008452600484015260248301906107f7565b038183305af18015610afa57610af157505050565b821161066c5752565b82513d5f823e3d90fd5b9091928094959650518a81116100bc5782019060607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe083880301126100bc57895190610b4f82610650565b610b5a8b8401610772565b825260608301518c81116100bc5783019185605f840112156100bc57828c01518c94610b91610b88836106da565b96519687610699565b81865287606083870101116100bc578f95610bb6608093889760608985019101610793565b8584015201518c8201528152019301919088959493610972565b9190811015610be05760061b0190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b3573ffffffffffffffffffffffffffffffffffffffff811681036100bc5790565b73ffffffffffffffffffffffffffffffffffffffff91908216908115610dec57604051927f70a082310000000000000000000000000000000000000000000000000000000084523060048501526020918285602481875afa948515610de1575f95610db2575b5084610ca2575b5050505050565b16906040518181017fa9059cbb000000000000000000000000000000000000000000000000000000008152836024830152856044830152604482526080820167ffffffffffffffff918382108383111761066c5760c084019283118284101761066c57610d4e93855f94938594604052527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656460a0820152519082885af1610d476108a4565b9085610e4f565b8051918215918215610d92575b50509050156100bc577f74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a44555f80a45f80808080610c9b565b8092508193810103126100bc57015180151581036100bc57805f80610d5b565b9094508281813d8311610dda575b610dca8183610699565b810103126100bc5751935f610c94565b503d610dc0565b6040513d5f823e3d90fd5b9147915081610dfa57505050565b8147106100bc575f92839283928392165af1610e146108a4565b50156100bc57565b303303610e2557565b60046040517f29c3b7ee000000000000000000000000000000000000000000000000000000008152fd5b9015610e6957815115610e60575090565b3b156100bc5790565b5080519081156100bc57602001fdfea2646970667358221220720c88433acf92a8189c82bb29ba38797191c7e6065c4eac1880ca9219c79e3364736f6c63430008170033
Deployed Bytecode
0x60406080815260048036101561001e575b5050361561001c575f80fd5b005b5f3560e01c9081633a5be8cb1461059b578163a58d50d314610321578163c41e8295146100c0575063ef8738d3146100565780610010565b346100bc577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bc5761008b61062d565b60243573ffffffffffffffffffffffffffffffffffffffff811681036100bc5761001c916100b7610e1c565b610c2e565b5f80fd5b9050346100bc5760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bc576100f961062d565b6024929067ffffffffffffffff84358181116100bc5761011c9036908601610714565b916044606435928084116100bc57366023850112156100bc57838701359081116100bc57878401938836918360061b0101116100bc5761015a610e1c565b604435935f5b8281106101c657505050505f91829184519160208601915af16101816108a4565b501561018957005b6020936101c292519485947fb3beda730000000000000000000000000000000000000000000000000000000086528501528301906107b4565b0390fd5b73ffffffffffffffffffffffffffffffffffffffff806101ef6101ea848787610bd0565b610c0d565b1615610317576102036101ea838686610bd0565b16885180917f70a08231000000000000000000000000000000000000000000000000000000008252308c830152818d60209485935afa91821561030d575f926102df575b50505b602080610258848787610bd0565b01358181018082116102b4578a5180821161028157505089010180519091179052600101610160565b88918f8f928f51937f4d3ae48d000000000000000000000000000000000000000000000000000000008552840152820152fd5b8d60118e7f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b90809250813d8311610306575b6102f68183610699565b810103126100bc57515f80610247565b503d6102ec565b8a513d5f823e3d90fd5b504795508561024a565b9050346100bc57602091827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bc5767ffffffffffffffff9082358281116100bc57366023820112156100bc5780840135946024916103838761075a565b9461039085519687610699565b878652828601908460059960051b840101923684116100bc57858101925b8484106104fe5750505050506103c2610e1c565b8351955f5b8781106103d057005b85518110156104d3578281831b87010151838101908151511515806104b3575b610474575f91818873ffffffffffffffffffffffffffffffffffffffff859451169101519151918783519301915af16104276108a4565b5015610435576001016103c7565b866101c287878781519586957fe462c44000000000000000000000000000000000000000000000000000000000875286015284015260448301906107f7565b86517fe237730c000000000000000000000000000000000000000000000000000000008152808a01849052808701889052806101c2604482018b6107f7565b5073ffffffffffffffffffffffffffffffffffffffff8151163b156103f0565b836032887f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b83358381116100bc57820160607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc82360301126100bc5788519161054183610650565b8882013573ffffffffffffffffffffffffffffffffffffffff811681036100bc5783526044820135928584116100bc57606489949361058686958d3691840101610714565b8584015201358b8201528152019301926103ae565b346100bc5760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100bc576105d261062d565b9060443573ffffffffffffffffffffffffffffffffffffffff8116036100bc576064359067ffffffffffffffff82116100bc5761061191369101610714565b60025f54146100bc576106279160025f556108d3565b60015f55005b6004359073ffffffffffffffffffffffffffffffffffffffff821682036100bc57565b6060810190811067ffffffffffffffff82111761066c57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761066c57604052565b67ffffffffffffffff811161066c57601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b81601f820112156100bc5780359061072b826106da565b926107396040519485610699565b828452602083830101116100bc57815f926020809301838601378301015290565b67ffffffffffffffff811161066c5760051b60200190565b519073ffffffffffffffffffffffffffffffffffffffff821682036100bc57565b5f5b8381106107a45750505f910152565b8181015183820152602001610795565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f6020936107f081518092818752878088019101610793565b0116010190565b908082519081815260208091019281808460051b8301019501935f915b8483106108245750505050505090565b9091929394958480827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0856001950301865289519061088a606073ffffffffffffffffffffffffffffffffffffffff8451168352848401519080868501528301906107b4565b916040809101519101529801930193019194939290610814565b3d156108ce573d906108b5826106da565b916108c36040519384610699565b82523d5f602084013e565b606090565b81516020908301928184019382828203126100bc578282015167ffffffffffffffff928382116100bc57019060409182818303126100bc578251918383018381108682111761066c578452858201518581116100bc5782019088603f830112156100bc57868201516109448161075a565b9961095187519b8c610699565b818b5286898c019260051b850101938185116100bc57908188809695949301925b858410610b045750505050505061098c9188845201610772565b938082019385855273ffffffffffffffffffffffffffffffffffffffff80961615610a8f5750610a4796505f8083518551610a27816109fb878201947fa58d50d300000000000000000000000000000000000000000000000000000000865288602484015260448301906107f7565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610699565b519082305af1610a356108a4565b5015610a49575b505050511690610c2e565b565b7f5296f22c5d0413b66d0bf45c479c4e2ca5b278634bdbd028b48e49502105f966915190610a848686511694519282849384528301906107f7565b0390a25f8080610a3c565b94509250509250303b156100bc57610adc935f91845195869283927fa58d50d3000000000000000000000000000000000000000000000000000000008452600484015260248301906107f7565b038183305af18015610afa57610af157505050565b821161066c5752565b82513d5f823e3d90fd5b9091928094959650518a81116100bc5782019060607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe083880301126100bc57895190610b4f82610650565b610b5a8b8401610772565b825260608301518c81116100bc5783019185605f840112156100bc57828c01518c94610b91610b88836106da565b96519687610699565b81865287606083870101116100bc578f95610bb6608093889760608985019101610793565b8584015201518c8201528152019301919088959493610972565b9190811015610be05760061b0190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b3573ffffffffffffffffffffffffffffffffffffffff811681036100bc5790565b73ffffffffffffffffffffffffffffffffffffffff91908216908115610dec57604051927f70a082310000000000000000000000000000000000000000000000000000000084523060048501526020918285602481875afa948515610de1575f95610db2575b5084610ca2575b5050505050565b16906040518181017fa9059cbb000000000000000000000000000000000000000000000000000000008152836024830152856044830152604482526080820167ffffffffffffffff918382108383111761066c5760c084019283118284101761066c57610d4e93855f94938594604052527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656460a0820152519082885af1610d476108a4565b9085610e4f565b8051918215918215610d92575b50509050156100bc577f74d3741ef03417659087d2ec6af11dade8713f9b7f592569d60cf1ea0c9a44555f80a45f80808080610c9b565b8092508193810103126100bc57015180151581036100bc57805f80610d5b565b9094508281813d8311610dda575b610dca8183610699565b810103126100bc5751935f610c94565b503d610dc0565b6040513d5f823e3d90fd5b9147915081610dfa57505050565b8147106100bc575f92839283928392165af1610e146108a4565b50156100bc57565b303303610e2557565b60046040517f29c3b7ee000000000000000000000000000000000000000000000000000000008152fd5b9015610e6957815115610e60575090565b3b156100bc5790565b5080519081156100bc57602001fdfea2646970667358221220720c88433acf92a8189c82bb29ba38797191c7e6065c4eac1880ca9219c79e3364736f6c63430008170033
Deployed Bytecode Sourcemap
706:7661:5:-:0;;;;;;;;;;;-1:-1:-1;706:7661:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;4216:11;1897:62;;;:::i;:::-;4216:11;:::i;706:7661::-;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1897:62;;:::i;:::-;706:7661;;5825:13;706:7661;5840:22;;;;;;7872:37;;;;706:7661;7872:37;;;;;;706:7661;7872:37;;;;;;;:::i;:::-;;7923:8;7919:52;;706:7661;7919:52;706:7661;;;;;7940:31;;;;;;;;706:7661;;;;;:::i;:::-;7940:31;;;5864:3;706:7661;5916:14;:20;:14;;;;;:::i;:::-;:20;:::i;:::-;706:7661;5916:34;706:7661;;5983:20;:14;;;;;:::i;:20::-;706:7661;;;5976:53;;706:7661;5976:53;;6023:4;5976:53;;;706:7661;;;;5976:53;;;;;;;;;;706:7661;5976:53;;;5912:352;5970:59;;5912:352;706:7661;6350:14;;;;;;:::i;:::-;:21;706:7661;;;;;;;;;;;6612:24;;;6608:78;;-1:-1:-1;;6701:1132:5;;;;;;;;;;706:7661;;5825:13;;6608:78;706:7661;;;;;;;6645:41;;;;;;706:7661;;;;6645:41;706:7661;;;;;;;;;;5976:53;;;;;;;;;;;;;;;;:::i;:::-;;;706:7661;;;;;5976:53;;;;;;;;;;706:7661;;;;;;;;;5912:352;-1:-1:-1;6074:21:5;;-1:-1:-1;6074:21:5;5912:352;;706:7661;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1897:62;;;;;;;:::i;:::-;706:7661;;3603:13;706:7661;3618:10;;;;;;706:7661;3630:3;706:7661;;;;;;;;;;;;;;3668:8;3802:13;;;;;;706:7661;3802:24;;:56;;;3630:3;3798:123;;706:7661;;;;;;;;;3979:10;;706:7661;3992:13;;3954:52;;;;;;;;;;;:::i;:::-;;4024:8;4020:43;;706:7661;;3603:13;;4020:43;706:7661;;;;;;;4041:22;;;;;;;;706:7661;;;;;;;;;:::i;3798:123::-;706:7661;;3885:21;;;;;;706:7661;;;;;;;;;;;;;;;;:::i;3802:56::-;706:7661;;;;;3830:23;:28;3802:56;;706:7661;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1759:1:0;706:7661:5;;2468:19:0;1759:1;;2535:947:5;1759:1:0;;706:7661:5;1759:1:0;2535:947:5;:::i;:::-;706:7661;;1759:1:0;706:7661:5;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;706:7661:5;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;:::o;:::-;;;;;;;;-1:-1:-1;;706:7661:5;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;706:7661:5;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;-1:-1:-1;706:7661:5;;;;:::o;:::-;;;:::o;2535:947::-;706:7661;;2726:35;;;;;;;;706:7661;;;;;;;;2726:35;;;706:7661;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2863:44;2859:132;;3172:18;3435:39;3172:18;;-1:-1:-1;3172:18:5;;;706:7661;;3137:55;;706:7661;3137:55;;;;706:7661;3137:55;;;;;;706:7661;;;;;;:::i;:::-;3137:55;706:7661;3137:55;;;;;;:::i;:::-;3118:75;3126:4;;;3118:75;;;;:::i;:::-;;3207:8;3203:82;;706:7661;;;;;;3435:39;;:::i;:::-;2535:947::o;3203:82::-;3222:63;3234:18;;706:7661;;;;;;;;;;;;;;;;;;:::i;:::-;3222:63;;;3203:82;;;;;2859:132;2923:4;;;;;;;;:37;;;;706:7661;;-1:-1:-1;706:7661:5;;;2923:37;;;;;706:7661;2923:37;;;;;706:7661;;;;;;:::i;:::-;2923:37;:4;;;:37;;;;;;;;2974:7;;;:::o;2923:37::-;706:7661;;;;;2974:7::o;2923:37::-;706:7661;;;-1:-1:-1;706:7661:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;4241:599::-;706:7661;;;;;;4339:19;;706:7661;;;;4419:38;706:7661;4419:38;;4451:4;4419:38;;;706:7661;4419:38;;;;706:7661;4419:38;;;;;;;;;4356:1;4419:38;;;4335:499;4475:10;;4471:160;;4335:499;;;;;;4241:599::o;4471:160::-;706:7661;;;;1050:58:3;;;706:7661:5;1050:58:3;;;706:7661:5;1050:58:3;;706:7661:5;;;;;;;1050:58:3;;706:7661:5;;;;;;;;;;;;;;;;;;;;;;;;;;7671:628:4;706:7661:5;;4356:1;706:7661;;;;;;;;;;;;5487:31:4;;;;;;;;:::i;:::-;7671:628;;;:::i;:::-;706:7661:5;;5728:22:3;;;:56;;;;;4471:160:5;1759:1:0;;;;;;;4575:41:5;4356:1;4575:41;;4471:160;;;;;;;5728:56:3;5754:30;;;;;;;706:7661:5;;;;5754:30:3;706:7661:5;;;;;;;;5728:56:3;;;;;4419:38:5;;;;;;;;;;;;;;;;;:::i;:::-;;;706:7661;;;;;4419:38;;;;;;;;;;706:7661;;;4356:1;706:7661;;;;;4335:499;4711:21;;;-1:-1:-1;4711:21:5;4746:78;;4335:499;;;4241:599::o;4746:78::-;2736:21:4;;:31;1759:1:0;;4356::5;;;;;;;;706:7661;2831:33:4;;;;:::i;:::-;;1759:1:0;;;4241:599:5:o;7984:265::-;8219:4;8197:10;:27;8193:49;;7984:265::o;8193:49::-;8233:9;706:7661;;8233:9;;;;7671:628:4;;7875:418;;;706:7661:5;;7906:22:4;7902:286;;8201:17;;:::o;7902:286::-;1702:19;:23;1759:1:0;;8201:17:4;:::o;7875:418::-;-1:-1:-1;706:7661:5;;;8980:21:4;;;;9152:142;;
Swarm Source
ipfs://720c88433acf92a8189c82bb29ba38797191c7e6065c4eac1880ca9219c79e33
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
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.