ETH Price: $2,316.70 (+1.56%)
 

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Ice Cream Swap1505644862026-04-20 23:29:091 hr ago1776727749IN
0xa575f37e...08D542C4a
0 ETH0.000000006840.00000033
Ice Cream Swap1505628882026-04-20 22:35:531 hr ago1776724553IN
0xa575f37e...08D542C4a
0 ETH0.0000000129610.00000034
Ice Cream Swap1505512792026-04-20 16:08:558 hrs ago1776701335IN
0xa575f37e...08D542C4a
0 ETH0.0000000528030.00000034
Ice Cream Swap1505511812026-04-20 16:05:398 hrs ago1776701139IN
0xa575f37e...08D542C4a
0 ETH0.0000001599090.00000034
Ice Cream Swap1505399892026-04-20 9:52:3514 hrs ago1776678755IN
0xa575f37e...08D542C4a
0 ETH0.0000001170140.00000033
Ice Cream Swap1505092472026-04-19 16:47:5131 hrs ago1776617271IN
0xa575f37e...08D542C4a
0 ETH0.0000000258070.00000033
Ice Cream Swap1505002502026-04-19 11:47:5736 hrs ago1776599277IN
0xa575f37e...08D542C4a
0 ETH0.0000000163020.00000041
Ice Cream Swap1504990142026-04-19 11:06:4537 hrs ago1776596805IN
0xa575f37e...08D542C4a
0 ETH0.0000000129430.00000035
Ice Cream Swap1504923682026-04-19 7:25:1341 hrs ago1776583513IN
0xa575f37e...08D542C4a
0 ETH0.0000000394390.00000038
Ice Cream Swap1504923612026-04-19 7:24:5941 hrs ago1776583499IN
0xa575f37e...08D542C4a
0 ETH0.0000000409440.00000038
Ice Cream Swap1504524782026-04-18 9:15:332 days ago1776503733IN
0xa575f37e...08D542C4a
0 ETH0.0000000026390.00000081
Ice Cream Swap1504222032026-04-17 16:26:233 days ago1776443183IN
0xa575f37e...08D542C4a
0 ETH0.0000000317330.00000065
Ice Cream Swap1504205292026-04-17 15:30:353 days ago1776439835IN
0xa575f37e...08D542C4a
0 ETH0.0000000578240.00000073
Ice Cream Swap1504197642026-04-17 15:05:053 days ago1776438305IN
0xa575f37e...08D542C4a
0 ETH0.0000000978660.00000077
Ice Cream Swap1504182162026-04-17 14:13:293 days ago1776435209IN
0xa575f37e...08D542C4a
0 ETH0.000000072260.00000067
Ice Cream Swap1504180992026-04-17 14:09:353 days ago1776434975IN
0xa575f37e...08D542C4a
0 ETH0.0000000935540.00000065
Ice Cream Swap1504179982026-04-17 14:06:133 days ago1776434773IN
0xa575f37e...08D542C4a
0 ETH0.0000000835720.00000064
Ice Cream Swap1504178262026-04-17 14:00:293 days ago1776434429IN
0xa575f37e...08D542C4a
0 ETH0.0000001136060.00000062
Ice Cream Swap1504177512026-04-17 13:57:593 days ago1776434279IN
0xa575f37e...08D542C4a
0 ETH0.0000000830810.00000061
Ice Cream Swap1504156992026-04-17 12:49:353 days ago1776430175IN
0xa575f37e...08D542C4a
0 ETH0.0000000179230.00000084
Ice Cream Swap1504144822026-04-17 12:09:013 days ago1776427741IN
0xa575f37e...08D542C4a
0 ETH0.0000000069110.0000009
Ice Cream Swap1504123172026-04-17 10:56:513 days ago1776423411IN
0xa575f37e...08D542C4a
0 ETH0.0000000070310.00000074
Ice Cream Swap1504087752026-04-17 8:58:473 days ago1776416327IN
0xa575f37e...08D542C4a
0 ETH0.0000000117750.00000065
Ice Cream Swap1504060422026-04-17 7:27:413 days ago1776410861IN
0xa575f37e...08D542C4a
0 ETH0.0000000372720.00000085
Ice Cream Swap1504021342026-04-17 5:17:253 days ago1776403045IN
0xa575f37e...08D542C4a
0 ETH0.0000000117150.00000086
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1505608122026-04-20 21:26:413 hrs ago1776720401
0xa575f37e...08D542C4a
0.00130662907375 ETH
1505608122026-04-20 21:26:413 hrs ago1776720401
0xa575f37e...08D542C4a
0.00130662907375 ETH
1505598112026-04-20 20:53:193 hrs ago1776718399
0xa575f37e...08D542C4a
0.001266200317811 ETH
1505598112026-04-20 20:53:193 hrs ago1776718399
0xa575f37e...08D542C4a
0.001266200317811 ETH
1505486792026-04-20 14:42:159 hrs ago1776696135
0xa575f37e...08D542C4a
0.0011 ETH
1505486792026-04-20 14:42:159 hrs ago1776696135
0xa575f37e...08D542C4a
0.0011 ETH
1505399082026-04-20 9:49:5314 hrs ago1776678593
0xa575f37e...08D542C4a
0.0005 ETH
1505399082026-04-20 9:49:5314 hrs ago1776678593
0xa575f37e...08D542C4a
0.0005 ETH
1505321382026-04-20 5:30:5319 hrs ago1776663053
0xa575f37e...08D542C4a
0.00688275 ETH
1505321382026-04-20 5:30:5319 hrs ago1776663053
0xa575f37e...08D542C4a
0.00688275 ETH
1505142902026-04-19 19:35:5728 hrs ago1776627357
0xa575f37e...08D542C4a
0.0059475 ETH
1505142902026-04-19 19:35:5728 hrs ago1776627357
0xa575f37e...08D542C4a
0.0059475 ETH
1505100372026-04-19 17:14:1131 hrs ago1776618851
0xa575f37e...08D542C4a
0.001932332360124 ETH
1505100372026-04-19 17:14:1131 hrs ago1776618851
0xa575f37e...08D542C4a
0.001932332360124 ETH
1505100092026-04-19 17:13:1531 hrs ago1776618795
0xa575f37e...08D542C4a
0.001932332360124 ETH
1505100092026-04-19 17:13:1531 hrs ago1776618795
0xa575f37e...08D542C4a
0.001932332360124 ETH
1504926852026-04-19 7:35:4740 hrs ago1776584147
0xa575f37e...08D542C4a
3 ETH
1504926852026-04-19 7:35:4740 hrs ago1776584147
0xa575f37e...08D542C4a
3 ETH
1504888092026-04-19 5:26:3543 hrs ago1776576395
0xa575f37e...08D542C4a
0.0009975 ETH
1504888092026-04-19 5:26:3543 hrs ago1776576395
0xa575f37e...08D542C4a
0.0009975 ETH
1504710302026-04-18 19:33:572 days ago1776540837
0xa575f37e...08D542C4a
0.00099125 ETH
1504710302026-04-18 19:33:572 days ago1776540837
0xa575f37e...08D542C4a
0.00099125 ETH
1504643872026-04-18 15:52:312 days ago1776527551
0xa575f37e...08D542C4a
0.0016 ETH
1504643872026-04-18 15:52:312 days ago1776527551
0xa575f37e...08D542C4a
0.0016 ETH
1504513702026-04-18 8:38:372 days ago1776501517
0xa575f37e...08D542C4a
0.000875695446496 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AggregatorGuard

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
paris EvmVersion
File 1 of 3 : AggregatorGuard.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "./interfaces/IAggregatorExecutor.sol";

contract AggregatorGuard {

    address constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    event AggregatedTrade(
        uint16 indexed id,
        address indexed user,
        address tokenIn,
        address tokenOut,
        address executor,
        uint256 amountIn,
        uint256 amountOut,
        uint256 minAmountOut
    );

    receive() external payable { }
    fallback() external payable { } // optional, add for remix to allow low level interactions

    function IceCreamSwap() external payable returns (uint256) {
        uint16 id;
        IAggregatorExecutor executor;
        uint128 amountIn;
        uint128 minAmountOut;

        address firstTokenReceiver;
        address recipient;
        IERC20 tokenIn;
        IERC20 tokenOut;

        assembly {
            id := shr(240, calldataload(4))
            executor := shr(96, calldataload(6))
            amountIn := shr(128, calldataload(26))
            minAmountOut := shr(128, calldataload(42))
            firstTokenReceiver := shr(96, calldataload(59))
            recipient := shr(96, calldataload(79))
            tokenIn := shr(96, calldataload(99))
            tokenOut := shr(96, calldataload(119))
        }

        if (address(tokenIn) != ETH) {
            // no need to check this token transfer, as a non sucessfull transfer would just cause a failed swap
            if (amountIn != 0) {
                tokenIn.transferFrom(msg.sender, firstTokenReceiver, amountIn);
            }
        } else {
            require(amountIn == msg.value, "incorrect value");
            require(firstTokenReceiver == address(executor), "Native receiver must bee executor");
        }

        uint256 balanceBefore = (address(tokenOut) == ETH) ? recipient.balance : tokenOut.balanceOf(recipient);

        executor.executeSwap{value: msg.value}(msg.data[26:]);

        uint256 amountOut;
        if (address(tokenOut) != ETH) {
            amountOut = tokenOut.balanceOf(recipient) - balanceBefore;
        } else {
            amountOut = recipient.balance - balanceBefore;
        }
        require(amountOut >= minAmountOut, "Insufficient output");

        emit AggregatedTrade(
            id,
            recipient,
            address(tokenIn),
            address(tokenOut),
            address(executor),
            amountIn,
            amountOut,
            minAmountOut
        );

        return amountOut;
    }
}

// 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
pragma solidity 0.8.26;

interface IAggregatorExecutor {
    function executeSwap(bytes calldata swapData) external payable;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"id","type":"uint16"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"AggregatedTrade","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"IceCreamSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052348015600f57600080fd5b5061073c8061001f6000396000f3fe60806040526004361061001f5760003560e01c80633f0bde251461002857005b3661002657005b005b610030610042565b60405190815260200160405180910390f35b600060043560f01c600635606090811c90601a35608090811c91602a3590911c90603b35811c90604f35811c90606335811c90607735901c73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8214610164576fffffffffffffffffffffffffffffffff86161561015f576040517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff85811660248301526fffffffffffffffffffffffffffffffff881660448301528316906323b872dd906064016020604051808303816000875af1158015610139573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015d919061060d565b505b61029f565b34866fffffffffffffffffffffffffffffffff16146101e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e636f72726563742076616c7565000000000000000000000000000000000060448201526064015b60405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461029f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6174697665207265636569766572206d75737420626565206578656375746f60448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016101db565b600073ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610367576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528316906370a0823190602401602060405180830381865afa15801561033e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103629190610636565b610380565b8373ffffffffffffffffffffffffffffffffffffffff16315b905073ffffffffffffffffffffffffffffffffffffffff881663985f61a1346103ad36601a81600061064f565b6040518463ffffffff1660e01b81526004016103ca929190610679565b6000604051808303818588803b1580156103e357600080fd5b505af11580156103f7573d6000803e3d6000fd5b506000935050505073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146104d4576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301528391908516906370a0823190602401602060405180830381865afa15801561049f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c39190610636565b6104cd91906106c6565b90506104f8565b6104f58273ffffffffffffffffffffffffffffffffffffffff8716316106c6565b90505b866fffffffffffffffffffffffffffffffff16811015610574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496e73756666696369656e74206f75747075740000000000000000000000000060448201526064016101db565b6040805173ffffffffffffffffffffffffffffffffffffffff868116825285811660208301528b8116828401526fffffffffffffffffffffffffffffffff8b81166060840152608083018590528a1660a083015291519187169161ffff8d16917f97d8fe5395a5423bef64e2004851e9b3f60f7848835afa581b4a0a8e84bc662d919081900360c00190a39a9950505050505050505050565b60006020828403121561061f57600080fd5b8151801515811461062f57600080fd5b9392505050565b60006020828403121561064857600080fd5b5051919050565b6000808585111561065f57600080fd5b8386111561066c57600080fd5b5050820193919092039150565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b81810381811115610700577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9291505056fea2646970667358221220a1386a0c862a65e8643b01e497fb068b838ffb9753954316c523d7771ded15b364736f6c634300081a0033

Deployed Bytecode

0x60806040526004361061001f5760003560e01c80633f0bde251461002857005b3661002657005b005b610030610042565b60405190815260200160405180910390f35b600060043560f01c600635606090811c90601a35608090811c91602a3590911c90603b35811c90604f35811c90606335811c90607735901c73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8214610164576fffffffffffffffffffffffffffffffff86161561015f576040517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff85811660248301526fffffffffffffffffffffffffffffffff881660448301528316906323b872dd906064016020604051808303816000875af1158015610139573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015d919061060d565b505b61029f565b34866fffffffffffffffffffffffffffffffff16146101e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e636f72726563742076616c7565000000000000000000000000000000000060448201526064015b60405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461029f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4e6174697665207265636569766572206d75737420626565206578656375746f60448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016101db565b600073ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610367576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301528316906370a0823190602401602060405180830381865afa15801561033e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103629190610636565b610380565b8373ffffffffffffffffffffffffffffffffffffffff16315b905073ffffffffffffffffffffffffffffffffffffffff881663985f61a1346103ad36601a81600061064f565b6040518463ffffffff1660e01b81526004016103ca929190610679565b6000604051808303818588803b1580156103e357600080fd5b505af11580156103f7573d6000803e3d6000fd5b506000935050505073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146104d4576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301528391908516906370a0823190602401602060405180830381865afa15801561049f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c39190610636565b6104cd91906106c6565b90506104f8565b6104f58273ffffffffffffffffffffffffffffffffffffffff8716316106c6565b90505b866fffffffffffffffffffffffffffffffff16811015610574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496e73756666696369656e74206f75747075740000000000000000000000000060448201526064016101db565b6040805173ffffffffffffffffffffffffffffffffffffffff868116825285811660208301528b8116828401526fffffffffffffffffffffffffffffffff8b81166060840152608083018590528a1660a083015291519187169161ffff8d16917f97d8fe5395a5423bef64e2004851e9b3f60f7848835afa581b4a0a8e84bc662d919081900360c00190a39a9950505050505050505050565b60006020828403121561061f57600080fd5b8151801515811461062f57600080fd5b9392505050565b60006020828403121561064857600080fd5b5051919050565b6000808585111561065f57600080fd5b8386111561066c57600080fd5b5050820193919092039150565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b81810381811115610700577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9291505056fea2646970667358221220a1386a0c862a65e8643b01e497fb068b838ffb9753954316c523d7771ded15b364736f6c634300081a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
0xa575f37e869e6887564F87c07e2885e08D542C4a
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.