Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FixedPriceOracle
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
contract FixedPriceOracle {
int256 public immutable price;
constructor(int256 _price) {
require(_price > 0, "FixedPriceOracle/invalid-price");
price = _price;
}
function latestAnswer() external view returns (int256) {
return price;
}
function decimals() external pure returns (uint8) {
return 8;
}
}{
"remappings": [
"aave-v3-core/=lib/aave-v3-core/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"erc20-helpers/=lib/erc20-helpers/src/",
"forge-std/=lib/forge-std/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"int256","name":"_price","type":"int256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"latestAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a060405234801561001057600080fd5b506040516101a23803806101a283398101604081905261002f9161008b565b600081136100835760405162461bcd60e51b815260206004820152601e60248201527f466978656450726963654f7261636c652f696e76616c69642d70726963650000604482015260640160405180910390fd5b6080526100a4565b60006020828403121561009d57600080fd5b5051919050565b60805160e06100c260003960008181605701526088015260e06000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063313ce56714604157806350d25bcd146055578063a035b1fe146084575b600080fd5b604051600881526020015b60405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000005b604051908152602001604c565b60777f00000000000000000000000000000000000000000000000000000000000000008156fea264697066735822122083d9305c7861624d653723b39cb1a9ccf19aec656c844854bf2d3a762dc01fab64736f6c634300081400330000000000000000000000000000000000000000000000000000000005f5e100
Deployed Bytecode
0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063313ce56714604157806350d25bcd146055578063a035b1fe146084575b600080fd5b604051600881526020015b60405180910390f35b7f0000000000000000000000000000000000000000000000000000000005f5e1005b604051908152602001604c565b60777f0000000000000000000000000000000000000000000000000000000005f5e1008156fea264697066735822122083d9305c7861624d653723b39cb1a9ccf19aec656c844854bf2d3a762dc01fab64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000005f5e100
-----Decoded View---------------
Arg [0] : _price (int256): 100000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000005f5e100
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 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.