Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00
Cross-Chain Transactions
Loading...
Loading
Contract Name:
GhoOracle
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
/**
* @title GhoOracle
* @notice Price feed for GHO (USD denominated)
* @dev Price fixed at 1 USD, Chainlink format with 8 decimals
* @author Aave
*/
contract GhoOracle {
int256 public constant GHO_PRICE = 1e8;
/**
* @notice Returns the price of a unit of GHO (USD denominated)
* @dev GHO price is fixed at 1 USD
* @return The price of a unit of GHO (with 8 decimals)
*/
function latestAnswer() external pure returns (int256) {
return GHO_PRICE;
}
/**
* @notice Returns the number of decimals the price is formatted with
* @return The number of decimals
*/
function decimals() external pure returns (uint8) {
return 8;
}
}{
"remappings": [
"@aave/core-v3/=lib/aave-v3-core/",
"@aave/periphery-v3/=lib/aave-v3-periphery/",
"@aave/=lib/aave-token/",
"@openzeppelin/=lib/openzeppelin-contracts/",
"aave-stk-v1-5/=lib/aave-stk-v1-5/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"eth-gas-reporter/=node_modules/eth-gas-reporter/",
"forge-std/=lib/forge-std/src/",
"hardhat-deploy/=node_modules/hardhat-deploy/",
"hardhat/=node_modules/hardhat/",
"aave-address-book/=lib/aave-address-book/src/",
"aave-helpers/=lib/aave-stk-v1-5/lib/aave-helpers/",
"aave-v3-core/=lib/aave-address-book/lib/aave-v3-core/",
"aave-v3-periphery/=lib/aave-address-book/lib/aave-v3-periphery/",
"erc4626-tests/=lib/aave-stk-v1-5/lib/openzeppelin-contracts/lib/erc4626-tests/",
"openzeppelin-contracts/=lib/aave-stk-v1-5/lib/openzeppelin-contracts/",
"solidity-utils/=lib/solidity-utils/src/",
"aave-token/=lib/aave-token/contracts/",
"safety-module/=lib/safety-module/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"name":"GHO_PRICE","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"latestAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"pure","type":"function"}]Contract Creation Code
6080604052348015600f57600080fd5b5060a88061001e6000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063313ce56714604157806350d25bcd146055578063abe30b30146068575b600080fd5b604051600881526020015b60405180910390f35b6305f5e1005b604051908152602001604c565b605b6305f5e1008156fea2646970667358221220eb1465500994b0c2a394b2f7ecc28b784e99088a2726b564cc7414c45aa9063364736f6c634300080a0033
Deployed Bytecode
0x6080604052348015600f57600080fd5b5060043610603c5760003560e01c8063313ce56714604157806350d25bcd146055578063abe30b30146068575b600080fd5b604051600881526020015b60405180910390f35b6305f5e1005b604051908152602001604c565b605b6305f5e1008156fea2646970667358221220eb1465500994b0c2a394b2f7ecc28b784e99088a2726b564cc7414c45aa9063364736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 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.