账户
0x66...4271
0x66...4271

0x66...4271

$500
此合同的源代码已经过验证!
合同元数据
编译器
0.8.23+commit.f704f362
语言
Solidity
合同源代码
文件 1 的 2:ISpokePool.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

interface ISpokePool {
    function depositV3(
        address depositor,
        address recipient,
        address inputToken,
        address outputToken,
        uint256 inputAmount,
        uint256 outputAmount,
        uint256 destinationChainId,
        address exclusiveRelayer,
        uint32 quoteTimestamp,
        uint32 fillDeadline,
        uint32 exclusivityDeadline,
        bytes calldata message
    ) external payable;
}
合同源代码
文件 2 的 2:RefuelAcrossWrapper.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

import "./ISpokePool.sol";

contract RefuelAcrossWrapper {

    ISpokePool public immutable spokePool;

    address public immutable weth;

    constructor(address _spokePool, address _weth) {
        spokePool = ISpokePool(_spokePool);
        weth = _weth;
    }

    function deposit(address recipient, uint256 inputAmount, uint256 outputAmount, uint256 destinationChainId, uint32 quoteTimestamp, uint32 fillDeadline) external payable {
        spokePool.depositV3{value: msg.value}(
            msg.sender,
            recipient,
            weth,
            address(0),
            inputAmount,
            outputAmount,
            destinationChainId,
            address(0),
            quoteTimestamp,
            fillDeadline,
            0,
            ""
        );
        assembly {
            log0(0x0, 0x0)
        }
    }
}
设置
{
  "compilationTarget": {
    "src/RefuelAcrossWrapper.sol": "RefuelAcrossWrapper"
  },
  "evmVersion": "paris",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [
    ":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    ":ds-test/=lib/solmate/lib/ds-test/src/",
    ":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    ":forge-std/=lib/forge-std/src/",
    ":halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    ":openzeppelin-contracts/=lib/openzeppelin-contracts/",
    ":solmate/=lib/solmate/src/"
  ]
}
ABI
[{"inputs":[{"internalType":"address","name":"_spokePool","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"},{"internalType":"uint256","name":"outputAmount","type":"uint256"},{"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"internalType":"uint32","name":"quoteTimestamp","type":"uint32"},{"internalType":"uint32","name":"fillDeadline","type":"uint32"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"spokePool","outputs":[{"internalType":"contract ISpokePool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]