ETH Price: $2,803.15 (+1.24%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CurveAdapter

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2025-10-27
*/

// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity ^0.8.0 ^0.8.19;

// interfaces/AggregatorV3Interface.sol

// solhint-disable-next-line interface-starts-with-i
interface AggregatorV3Interface {
  function decimals() external view returns (uint8);

  function description() external view returns (string memory);

  function version() external view returns (uint256);

  function getRoundData(
    uint80 _roundId
  ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);

  function latestRoundData()
    external
    view
    returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}

// src/chainlink_curve_adapter.sol

contract CurveAdapter {
    AggregatorV3Interface public immutable oracle;
    uint256 public immutable factor;

    constructor(AggregatorV3Interface _oracle) {
        oracle = _oracle;
        factor = 10 ** (18 - _oracle.decimals());
    }

    function lastPrice() external view returns (uint256) {
        (, int256 price, , , ) = oracle.latestRoundData();
        return uint256(price) * factor;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract AggregatorV3Interface","name":"_oracle","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"factor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract AggregatorV3Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561000f575f5ffd5b5060405161049f38038061049f83398101604081905261002e916100b9565b6001600160a01b03811660808190526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa158015610076573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061009a91906100e6565b6100a590601261011a565b6100b090600a61021c565b60a0525061022a565b5f602082840312156100c9575f5ffd5b81516001600160a01b03811681146100df575f5ffd5b9392505050565b5f602082840312156100f6575f5ffd5b815160ff811681146100df575f5ffd5b634e487b7160e01b5f52601160045260245ffd5b60ff828116828216039081111561013357610133610106565b92915050565b6001815b60018411156101745780850481111561015857610158610106565b600184161561016657908102905b60019390931c92800261013d565b935093915050565b5f8261018a57506001610133565b8161019657505f610133565b81600181146101ac57600281146101b6576101d2565b6001915050610133565b60ff8411156101c7576101c7610106565b50506001821b610133565b5060208310610133831016604e8410600b84101617156101f5575081810a610133565b6102015f198484610139565b805f190482111561021457610214610106565b029392505050565b5f6100df60ff84168361017c565b60805160a0516102496102565f395f81816063015261014e01525f8181608a015260c801526102495ff3fe608060405234801561000f575f5ffd5b506004361061003f575f3560e01c8063053f14da1461004357806354f703f81461005e5780637dc0d1d014610085575b5f5ffd5b61004b6100c4565b6040519081526020015b60405180910390f35b61004b7f000000000000000000000000000000000000000000000000000000000000000081565b6100ac7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610055565b5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610122573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610146919061019c565b5050509150507f00000000000000000000000000000000000000000000000000000000000000008161017891906101ea565b91505090565b805169ffffffffffffffffffff81168114610197575f5ffd5b919050565b5f5f5f5f5f60a086880312156101b0575f5ffd5b6101b98661017e565b602087015160408801516060890151929750909550935091506101de6080870161017e565b90509295509295909350565b808202811582820484141761020d57634e487b7160e01b5f52601160045260245ffd5b9291505056fea2646970667358221220f614183ca553a016269dbdfd4076796d430802bba21688b0b94fd7f58d3ba32364736f6c634300081c00330000000000000000000000005c0ab2d9b5a7ed9f470386e82bb36a3613cdd4b5

Deployed Bytecode

0x608060405234801561000f575f5ffd5b506004361061003f575f3560e01c8063053f14da1461004357806354f703f81461005e5780637dc0d1d014610085575b5f5ffd5b61004b6100c4565b6040519081526020015b60405180910390f35b61004b7f00000000000000000000000000000000000000000000000000000002540be40081565b6100ac7f0000000000000000000000005c0ab2d9b5a7ed9f470386e82bb36a3613cdd4b581565b6040516001600160a01b039091168152602001610055565b5f5f7f0000000000000000000000005c0ab2d9b5a7ed9f470386e82bb36a3613cdd4b56001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610122573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610146919061019c565b5050509150507f00000000000000000000000000000000000000000000000000000002540be4008161017891906101ea565b91505090565b805169ffffffffffffffffffff81168114610197575f5ffd5b919050565b5f5f5f5f5f60a086880312156101b0575f5ffd5b6101b98661017e565b602087015160408801516060890151929750909550935091506101de6080870161017e565b90509295509295909350565b808202811582820484141761020d57634e487b7160e01b5f52601160045260245ffd5b9291505056fea2646970667358221220f614183ca553a016269dbdfd4076796d430802bba21688b0b94fd7f58d3ba32364736f6c634300081c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000005c0ab2d9b5a7ed9f470386e82bb36a3613cdd4b5

-----Decoded View---------------
Arg [0] : _oracle (address): 0x5c0Ab2d9b5a7ed9f470386e82BB36A3613cDd4b5

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005c0ab2d9b5a7ed9f470386e82bb36a3613cdd4b5


Deployed Bytecode Sourcemap

775:423:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1033:162;;;:::i;:::-;;;160:25:1;;;148:2;133:18;1033:162:0;;;;;;;;856:31;;;;;804:45;;;;;;;;-1:-1:-1;;;;;388:32:1;;;370:51;;358:2;343:18;804:45:0;196:231:1;1033:162:0;1077:7;1100:12;1122:6;-1:-1:-1;;;;;1122:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1097:49;;;;;;1181:6;1172:5;1164:23;;;;:::i;:::-;1157:30;;;1033:162;:::o;432:179:1:-;510:13;;563:22;552:34;;542:45;;532:73;;601:1;598;591:12;532:73;432:179;;;:::o;616:571::-;719:6;727;735;743;751;804:3;792:9;783:7;779:23;775:33;772:53;;;821:1;818;811:12;772:53;844:39;873:9;844:39;:::i;:::-;923:2;908:18;;902:25;989:2;974:18;;968:25;1083:2;1068:18;;1062:25;834:49;;-1:-1:-1;902:25:1;;-1:-1:-1;968:25:1;-1:-1:-1;1062:25:1;-1:-1:-1;1132:49:1;1176:3;1161:19;;1132:49;:::i;:::-;1122:59;;616:571;;;;;;;;:::o;1192:265::-;1265:9;;;1296;;1313:15;;;1307:22;;1293:37;1283:168;;1373:10;1368:3;1364:20;1361:1;1354:31;1408:4;1405:1;1398:15;1436:4;1433:1;1426:15;1283:168;1192:265;;;;:::o

Swarm Source

ipfs://f614183ca553a016269dbdfd4076796d430802bba21688b0b94fd7f58d3ba323

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

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.