Source Code
Overview
S Balance
S Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ChainlinkMinimal2V3Adapter
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;
import "../integrations/chainlink/IAggregatorInterfaceMinimal.sol";
import "../integrations/chainlink/IAggregatorV3Interface.sol";
/// @notice Convert IAggregatorInterfaceMinimal to IAggregatorV3Interface
contract ChainlinkMinimal2V3Adapter is IAggregatorV3Interface {
address public immutable aggregatorMinimal;
constructor(address aggregatorMinimal_) {
aggregatorMinimal = aggregatorMinimal_;
}
function latestRoundData()
external
view
returns (uint80 roundId, int answer, uint startedAt, uint updatedAt, uint80 answeredInRound)
{
return (
0, // roundId is not available in IAggregatorInterfaceMinimal
IAggregatorInterfaceMinimal(aggregatorMinimal).latestAnswer(),
0, // startedAt is not available in IAggregatorInterfaceMinimal
block.timestamp, // updatedAt is set to current block timestamp
0 // answeredInRound is not available in IAggregatorInterfaceMinimal
);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;
interface IAggregatorInterfaceMinimal {
/// @notice Latest USD price with 8 decimals
function latestAnswer() external view returns (int);
/// @notice Decimals in price
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
interface IAggregatorV3Interface {
function latestRoundData()
external
view
returns (uint80 roundId, int answer, uint startedAt, uint updatedAt, uint80 answeredInRound);
}{
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"@solady/=lib/solady/src/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/",
"solady/=lib/solady/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"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":[{"internalType":"address","name":"aggregatorMinimal_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"aggregatorMinimal","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a0604052348015600e575f5ffd5b50604051610223380380610223833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b6080516101a06100835f395f8181603d015260c301526101a05ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063a21e2a9414610038578063feaf968c1461007c575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100846100bb565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610073565b5f5f5f5f5f5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101419190610153565b90969095505f94504293508492509050565b5f60208284031215610163575f5ffd5b505191905056fea2646970667358221220f30ae32c331379a75db48271aca9fec1c8b4be68f9ea7e9bb511102473c6923464736f6c634300081c0033000000000000000000000000440a6bf579069fa4e7c3c9fe634b34d2c78c584c
Deployed Bytecode
0x608060405234801561000f575f5ffd5b5060043610610034575f3560e01c8063a21e2a9414610038578063feaf968c1461007c575b5f5ffd5b61005f7f000000000000000000000000440a6bf579069fa4e7c3c9fe634b34d2c78c584c81565b6040516001600160a01b0390911681526020015b60405180910390f35b6100846100bb565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610073565b5f5f5f5f5f5f7f000000000000000000000000440a6bf579069fa4e7c3c9fe634b34d2c78c584c6001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101419190610153565b90969095505f94504293508492509050565b5f60208284031215610163575f5ffd5b505191905056fea2646970667358221220f30ae32c331379a75db48271aca9fec1c8b4be68f9ea7e9bb511102473c6923464736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000440a6bf579069fa4e7c3c9fe634b34d2c78c584c
-----Decoded View---------------
Arg [0] : aggregatorMinimal_ (address): 0x440A6bf579069Fa4e7C3C9fe634B34D2C78C584c
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000440a6bf579069fa4e7c3c9fe634b34d2c78c584c
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in S
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.