Verified contractPartial
PriceOracleProxy
Address0xce3968ec54e1719a07e34ffefa8aed096b6673dc
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.24
- Same code
5 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- byzantium
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,893,859
- Creation transaction
- 0x355bd11fc8…ee43adaefe
- Main copy (most transactions)
- 0x791851c9…b20b9c1d
PriceOracleProxy.sol
pragma solidity ^0.4.24;
contract PriceOracleInterface {
/**
* @notice Gets the price of a given asset
* @dev fetches the price of a given asset
* @param asset Asset to get the price of
* @return the price scaled by 10**18, or zero if the price is not available
*/
function assetPrices(address asset) public view returns (uint);
}
contract PriceOracleProxy {
address public mostRecentCaller;
uint public mostRecentBlock;
PriceOracleInterface public realPriceOracle;
constructor(address realPriceOracle_) public {
realPriceOracle = PriceOracleInterface(realPriceOracle_);
}
/**
* @notice Gets the price of a given asset
* @dev fetches the price of a given asset
* @param asset Asset to get the price of
* @return the price scaled by 10**18, or zero if the price is not available
*/
function assetPrices(address asset) public returns (uint) {
mostRecentCaller = tx.origin;
mostRecentBlock = block.number;
return realPriceOracle.assetPrices(asset);
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "byzantium",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.