Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 1,303 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Swap Exact In | 26547103 | 140 days ago | IN | 0 ETH | 0.00000005 | ||||
| Swap Exact In | 26461833 | 141 days ago | IN | 0 ETH | 0.00000005 | ||||
| Swap Exact In | 25742039 | 149 days ago | IN | 0 ETH | 0.00000004 | ||||
| Swap Exact In | 25648337 | 150 days ago | IN | 0 ETH | 0.00000004 | ||||
| Swap Exact In | 25648220 | 150 days ago | IN | 0 ETH | 0.00000004 | ||||
| Swap Exact In | 25640665 | 150 days ago | IN | 0 ETH | 0.00000004 | ||||
| Swap Exact In | 25640602 | 150 days ago | IN | 0 ETH | 0.00000005 | ||||
| Swap Exact In | 25535876 | 151 days ago | IN | 0 ETH | 0.00000004 | ||||
| Swap Exact In | 25504848 | 152 days ago | IN | 0 ETH | 0 | ||||
| Swap Exact In | 25504815 | 152 days ago | IN | 0 ETH | 0.00000004 | ||||
| Swap Exact In | 25504795 | 152 days ago | IN | 0 ETH | 0.00000004 | ||||
| Swap Exact In | 25484781 | 152 days ago | IN | 0 ETH | 0.00000033 | ||||
| Swap Exact In | 25484674 | 152 days ago | IN | 0 ETH | 0.00000057 | ||||
| Swap Exact In | 25481036 | 152 days ago | IN | 0 ETH | 0.00000001 | ||||
| Swap Exact In | 25480962 | 152 days ago | IN | 0 ETH | 0.00000052 | ||||
| Swap Exact In | 25468153 | 152 days ago | IN | 0 ETH | 0.00000055 | ||||
| Swap Exact In | 25468115 | 152 days ago | IN | 0 ETH | 0.00000054 | ||||
| Swap Exact In | 25468052 | 152 days ago | IN | 0 ETH | 0.00000057 | ||||
| Swap Exact In | 25464046 | 152 days ago | IN | 0 ETH | 0.00000012 | ||||
| Swap Exact In | 25463998 | 152 days ago | IN | 0 ETH | 0.00000006 | ||||
| Swap Exact In | 25463931 | 152 days ago | IN | 0 ETH | 0.00000007 | ||||
| Swap Exact In | 25463804 | 152 days ago | IN | 0 ETH | 0.00000059 | ||||
| Swap Exact In | 25463763 | 152 days ago | IN | 0 ETH | 0.00000051 | ||||
| Swap Exact In | 25417113 | 153 days ago | IN | 0 ETH | 0 | ||||
| Swap Exact In | 25417073 | 153 days ago | IN | 0 ETH | 0.00000002 |
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | ||||
|---|---|---|---|---|---|---|---|
| 38663620 | 11 mins ago | 0 ETH | |||||
| 38663620 | 11 mins ago | 0 ETH | |||||
| 38663620 | 11 mins ago | 0 ETH | |||||
| 38663620 | 11 mins ago | 0 ETH | |||||
| 38663593 | 12 mins ago | 0 ETH | |||||
| 38663593 | 12 mins ago | 0 ETH | |||||
| 38663593 | 12 mins ago | 0 ETH | |||||
| 38663593 | 12 mins ago | 0 ETH | |||||
| 38663591 | 12 mins ago | 0 ETH | |||||
| 38663591 | 12 mins ago | 0 ETH | |||||
| 38663591 | 12 mins ago | 0 ETH | |||||
| 38663591 | 12 mins ago | 0 ETH | |||||
| 38663583 | 12 mins ago | 0 ETH | |||||
| 38663583 | 12 mins ago | 0 ETH | |||||
| 38663583 | 12 mins ago | 0 ETH | |||||
| 38663583 | 12 mins ago | 0 ETH | |||||
| 38663580 | 12 mins ago | 0 ETH | |||||
| 38663580 | 12 mins ago | 0 ETH | |||||
| 38663580 | 12 mins ago | 0 ETH | |||||
| 38663580 | 12 mins ago | 0 ETH | |||||
| 38663575 | 12 mins ago | 0 ETH | |||||
| 38663575 | 12 mins ago | 0 ETH | |||||
| 38663575 | 12 mins ago | 0 ETH | |||||
| 38663575 | 12 mins ago | 0 ETH | |||||
| 38663575 | 12 mins ago | 0 ETH |
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.27;
import {SafeERC20, IERC20} from "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol";
import {IEulerSwapPeriphery} from "./interfaces/IEulerSwapPeriphery.sol";
import {IEulerSwap} from "./interfaces/IEulerSwap.sol";
contract EulerSwapPeriphery is IEulerSwapPeriphery {
using SafeERC20 for IERC20;
error AmountOutLessThanMin();
error AmountInMoreThanMax();
error DeadlineExpired();
/// @inheritdoc IEulerSwapPeriphery
function swapExactIn(
address eulerSwap,
address tokenIn,
address tokenOut,
uint256 amountIn,
address receiver,
uint256 amountOutMin,
uint256 deadline
) external {
require(deadline == 0 || deadline >= block.timestamp, DeadlineExpired());
uint256 amountOut = IEulerSwap(eulerSwap).computeQuote(tokenIn, tokenOut, amountIn, true);
require(amountOut >= amountOutMin, AmountOutLessThanMin());
swap(IEulerSwap(eulerSwap), tokenIn, tokenOut, amountIn, amountOut, receiver);
}
/// @inheritdoc IEulerSwapPeriphery
function swapExactOut(
address eulerSwap,
address tokenIn,
address tokenOut,
uint256 amountOut,
address receiver,
uint256 amountInMax,
uint256 deadline
) external {
require(deadline == 0 || deadline >= block.timestamp, DeadlineExpired());
uint256 amountIn = IEulerSwap(eulerSwap).computeQuote(tokenIn, tokenOut, amountOut, false);
require(amountIn <= amountInMax, AmountInMoreThanMax());
swap(IEulerSwap(eulerSwap), tokenIn, tokenOut, amountIn, amountOut, receiver);
}
/// @inheritdoc IEulerSwapPeriphery
function quoteExactInput(address eulerSwap, address tokenIn, address tokenOut, uint256 amountIn)
external
view
returns (uint256)
{
return IEulerSwap(eulerSwap).computeQuote(tokenIn, tokenOut, amountIn, true);
}
/// @inheritdoc IEulerSwapPeriphery
function quoteExactOutput(address eulerSwap, address tokenIn, address tokenOut, uint256 amountOut)
external
view
returns (uint256)
{
return IEulerSwap(eulerSwap).computeQuote(tokenIn, tokenOut, amountOut, false);
}
/// @inheritdoc IEulerSwapPeriphery
function getLimits(address eulerSwap, address tokenIn, address tokenOut) external view returns (uint256, uint256) {
return IEulerSwap(eulerSwap).getLimits(tokenIn, tokenOut);
}
/// @dev Internal function to execute a token swap through EulerSwap
/// @param eulerSwap The EulerSwap contract address to execute the swap through
/// @param tokenIn The address of the input token being swapped
/// @param tokenOut The address of the output token being received
/// @param amountIn The amount of input tokens to swap
/// @param amountOut The amount of output tokens to receive
/// @param receiver The address that should receive the swap output
function swap(
IEulerSwap eulerSwap,
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256 amountOut,
address receiver
) internal {
IERC20(tokenIn).safeTransferFrom(msg.sender, address(eulerSwap), amountIn);
bool isAsset0In = tokenIn < tokenOut;
(isAsset0In) ? eulerSwap.swap(0, amountOut, receiver, "") : eulerSwap.swap(amountOut, 0, receiver, "");
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
interface IEulerSwapPeriphery {
/// @notice Swap `amountIn` of `tokenIn` for `tokenOut`, with at least `amountOutMin` received.
/// Output tokens are sent to `receiver`. The swap will fail after `deadline` (unless `deadline` is 0).
/// IMPORTANT: `eulerSwap` must be a trusted contract, for example created by a trusted factory.
function swapExactIn(
address eulerSwap,
address tokenIn,
address tokenOut,
uint256 amountIn,
address receiver,
uint256 amountOutMin,
uint256 deadline
) external;
/// @notice Swap `amountOut` of `tokenOut` for `tokenIn`, with at most `amountInMax` paid.
/// Output tokens are sent to `receiver`. The swap will fail after `deadline` (unless `deadline` is 0).
/// IMPORTANT: `eulerSwap` must be a trusted contract, for example created by a trusted factory.
function swapExactOut(
address eulerSwap,
address tokenIn,
address tokenOut,
uint256 amountOut,
address receiver,
uint256 amountInMax,
uint256 deadline
) external;
/// @notice How much `tokenOut` can I get for `amountIn` of `tokenIn`?
function quoteExactInput(address eulerSwap, address tokenIn, address tokenOut, uint256 amountIn)
external
view
returns (uint256);
/// @notice How much `tokenIn` do I need to get `amountOut` of `tokenOut`?
function quoteExactOutput(address eulerSwap, address tokenIn, address tokenOut, uint256 amountOut)
external
view
returns (uint256);
/// @notice Upper-bound on the max amount that can be sold of tokenIn and bought of tokenOut
function getLimits(address eulerSwap, address tokenIn, address tokenOut) external view returns (uint256, uint256);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
interface IEulerSwap {
/// @dev Immutable pool parameters. Passed to the instance via proxy trailing data.
struct Params {
// Entities
address vault0;
address vault1;
address eulerAccount;
// Curve
uint112 equilibriumReserve0;
uint112 equilibriumReserve1;
uint256 priceX;
uint256 priceY;
uint256 concentrationX;
uint256 concentrationY;
// Fees
uint256 fee;
uint256 protocolFee;
address protocolFeeRecipient;
}
/// @dev Starting configuration of pool storage.
struct InitialState {
uint112 currReserve0;
uint112 currReserve1;
}
/// @notice Performs initial activation setup, such as approving vaults to access the
/// EulerSwap instance's tokens, enabling vaults as collateral, setting up Uniswap
/// hooks, etc. This should only be invoked by the factory.
function activate(InitialState calldata initialState) external;
/// @notice Retrieves the pool's immutable parameters.
function getParams() external view returns (Params memory);
/// @notice Retrieves the underlying assets supported by this pool.
function getAssets() external view returns (address asset0, address asset1);
/// @notice Retrieves the current reserves from storage, along with the pool's lock status.
/// @return reserve0 The amount of asset0 in the pool
/// @return reserve1 The amount of asset1 in the pool
/// @return status The status of the pool (0 = unactivated, 1 = unlocked, 2 = locked)
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 status);
/// @notice Generates a quote for how much a given size swap will cost.
/// @param tokenIn The input token that the swapper SENDS
/// @param tokenOut The output token that the swapper GETS
/// @param amount The quantity of input or output tokens, for exact input and exact output swaps respectively
/// @param exactIn True if this is an exact input swap, false if exact output
/// @return The quoted quantity of output or input tokens, for exact input and exact output swaps respectively
function computeQuote(address tokenIn, address tokenOut, uint256 amount, bool exactIn)
external
view
returns (uint256);
/// @notice Upper-bounds on the amounts of each token that this pool can currently support swaps for.
function getLimits(address tokenIn, address tokenOut) external view returns (uint256, uint256);
/// @notice Optimistically sends the requested amounts of tokens to the `to`
/// address, invokes `eulerSwapCall` callback on `to` (if `data` was provided),
/// and then verifies that a sufficient amount of tokens were transferred to
/// satisfy the swapping curve invariant.
function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"remappings": [
"openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
"evc/=lib/ethereum-vault-connector/src/",
"evk/=lib/euler-vault-kit/src/",
"ethereum-vault-connector/=lib/ethereum-vault-connector/src/",
"evk-test/=lib/euler-vault-kit/test/",
"permit2/=lib/euler-vault-kit/lib/permit2/",
"@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/",
"@ensdomains/=lib/v4-periphery/lib/v4-core/node_modules/@ensdomains/",
"@openzeppelin/=lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
"ds-test/=lib/ethereum-vault-connector/lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"euler-vault-kit/=lib/euler-vault-kit/",
"forge-gas-snapshot/=lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"hardhat/=lib/v4-periphery/lib/v4-core/node_modules/hardhat/",
"openzeppelin/=lib/ethereum-vault-connector/lib/openzeppelin-contracts/contracts/",
"solmate/=lib/v4-periphery/lib/v4-core/lib/solmate/",
"v4-core/=lib/v4-periphery/lib/v4-core/src/",
"v4-periphery/=lib/v4-periphery/"
],
"optimizer": {
"enabled": true,
"runs": 1000000
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"name":"AmountInMoreThanMax","type":"error"},{"inputs":[],"name":"AmountOutLessThanMin","type":"error"},{"inputs":[],"name":"DeadlineExpired","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"address","name":"eulerSwap","type":"address"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"}],"name":"getLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"eulerSwap","type":"address"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"quoteExactInput","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"eulerSwap","type":"address"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"quoteExactOutput","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"eulerSwap","type":"address"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"eulerSwap","type":"address"},{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactOut","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052348015600e575f5ffd5b506109768061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610064575f3560e01c806365202c091161004d57806365202c09146100a3578063664b8d7a146100b6578063995d61aa146100de575f5ffd5b8063534eaf0f146100685780635d10bc221461008e575b5f5ffd5b61007b610076366004610812565b6100f1565b6040519081526020015b60405180910390f35b6100a161009c36600461085a565b6101a2565b005b6100a16100b136600461085a565b6102e0565b6100c96100c43660046108c7565b610414565b60408051928352602083019190915201610085565b61007b6100ec366004610812565b6104b9565b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152838116602483015260448201839052600160648301525f9190861690638e0dc28d906084015b602060405180830381865afa158015610175573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101999190610907565b95945050505050565b8015806101af5750428110155b6101e5576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301528681166024830152604482018690525f606483018190529190891690638e0dc28d90608401602060405180830381865afa158015610268573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061028c9190610907565b9050828111156102c8576040517f6ba1b98500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102d6888888848989610526565b5050505050505050565b8015806102ed5750428110155b610323576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015260448201869052600160648301525f9190891690638e0dc28d90608401602060405180830381865afa1580156103a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ca9190610907565b905082811015610406576040517fdb28357200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102d6888888888589610526565b6040517faaed87a300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff838116600483015282811660248301525f91829186169063aaed87a3906044016040805180830381865afa158015610489573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ad919061091e565b91509150935093915050565b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301528381166024830152604482018390525f606483018190529190861690638e0dc28d9060840161015a565b61054873ffffffffffffffffffffffffffffffffffffffff86163388866106ac565b73ffffffffffffffffffffffffffffffffffffffff8085169086161080610608576040517f022c0d9f000000000000000000000000000000000000000000000000000000008152600481018490525f6024820181905273ffffffffffffffffffffffffffffffffffffffff848116604484015260806064840152608483019190915288169063022c0d9f9060a4015f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050506106a3565b6040517f022c0d9f0000000000000000000000000000000000000000000000000000000081525f600482018190526024820185905273ffffffffffffffffffffffffffffffffffffffff848116604484015260806064840152608483019190915288169063022c0d9f9060a4015f604051808303815f87803b15801561068c575f5ffd5b505af115801561069e573d5f5f3e3d5ffd5b505050505b50505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610741908590610747565b50505050565b5f5f60205f8451602086015f885af180610766576040513d5f823e3d81fd5b50505f513d9150811561077d578060011415610797565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15610741576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260240160405180910390fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461080d575f5ffd5b919050565b5f5f5f5f60808587031215610825575f5ffd5b61082e856107ea565b935061083c602086016107ea565b925061084a604086016107ea565b9396929550929360600135925050565b5f5f5f5f5f5f5f60e0888a031215610870575f5ffd5b610879886107ea565b9650610887602089016107ea565b9550610895604089016107ea565b9450606088013593506108aa608089016107ea565b9699959850939692959460a0840135945060c09093013592915050565b5f5f5f606084860312156108d9575f5ffd5b6108e2846107ea565b92506108f0602085016107ea565b91506108fe604085016107ea565b90509250925092565b5f60208284031215610917575f5ffd5b5051919050565b5f5f6040838503121561092f575f5ffd5b50508051602090910151909290915056fea2646970667358221220008c985c58b604cd205a4ddff070f6ec8b4708f90121b8a69ca54b214138c30364736f6c634300081b0033
Deployed Bytecode
0x608060405234801561000f575f5ffd5b5060043610610064575f3560e01c806365202c091161004d57806365202c09146100a3578063664b8d7a146100b6578063995d61aa146100de575f5ffd5b8063534eaf0f146100685780635d10bc221461008e575b5f5ffd5b61007b610076366004610812565b6100f1565b6040519081526020015b60405180910390f35b6100a161009c36600461085a565b6101a2565b005b6100a16100b136600461085a565b6102e0565b6100c96100c43660046108c7565b610414565b60408051928352602083019190915201610085565b61007b6100ec366004610812565b6104b9565b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152838116602483015260448201839052600160648301525f9190861690638e0dc28d906084015b602060405180830381865afa158015610175573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101999190610907565b95945050505050565b8015806101af5750428110155b6101e5576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301528681166024830152604482018690525f606483018190529190891690638e0dc28d90608401602060405180830381865afa158015610268573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061028c9190610907565b9050828111156102c8576040517f6ba1b98500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102d6888888848989610526565b5050505050505050565b8015806102ed5750428110155b610323576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015260448201869052600160648301525f9190891690638e0dc28d90608401602060405180830381865afa1580156103a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ca9190610907565b905082811015610406576040517fdb28357200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102d6888888888589610526565b6040517faaed87a300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff838116600483015282811660248301525f91829186169063aaed87a3906044016040805180830381865afa158015610489573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ad919061091e565b91509150935093915050565b6040517f8e0dc28d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301528381166024830152604482018390525f606483018190529190861690638e0dc28d9060840161015a565b61054873ffffffffffffffffffffffffffffffffffffffff86163388866106ac565b73ffffffffffffffffffffffffffffffffffffffff8085169086161080610608576040517f022c0d9f000000000000000000000000000000000000000000000000000000008152600481018490525f6024820181905273ffffffffffffffffffffffffffffffffffffffff848116604484015260806064840152608483019190915288169063022c0d9f9060a4015f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050506106a3565b6040517f022c0d9f0000000000000000000000000000000000000000000000000000000081525f600482018190526024820185905273ffffffffffffffffffffffffffffffffffffffff848116604484015260806064840152608483019190915288169063022c0d9f9060a4015f604051808303815f87803b15801561068c575f5ffd5b505af115801561069e573d5f5f3e3d5ffd5b505050505b50505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610741908590610747565b50505050565b5f5f60205f8451602086015f885af180610766576040513d5f823e3d81fd5b50505f513d9150811561077d578060011415610797565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15610741576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260240160405180910390fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461080d575f5ffd5b919050565b5f5f5f5f60808587031215610825575f5ffd5b61082e856107ea565b935061083c602086016107ea565b925061084a604086016107ea565b9396929550929360600135925050565b5f5f5f5f5f5f5f60e0888a031215610870575f5ffd5b610879886107ea565b9650610887602089016107ea565b9550610895604089016107ea565b9450606088013593506108aa608089016107ea565b9699959850939692959460a0840135945060c09093013592915050565b5f5f5f606084860312156108d9575f5ffd5b6108e2846107ea565b92506108f0602085016107ea565b91506108fe604085016107ea565b90509250925092565b5f60208284031215610917575f5ffd5b5051919050565b5f5f6040838503121561092f575f5ffd5b50508051602090910151909290915056fea2646970667358221220008c985c58b604cd205a4ddff070f6ec8b4708f90121b8a69ca54b214138c30364736f6c634300081b0033
Net Worth in USD
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.