Contract Overview
Balance:
0 CELO
CELO Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0xc5f9df34f7fc5c2387298e9d81c80e78a6b9736cc22a5989f22933b6900116a0 | 0x60806040 | 17653388 | 117 days 13 hrs ago | 0x643c574128c7c56a1835e021ad0ecc2592e72624 | IN | Create: FixedPriceOracle | 0 CELO | 0.0008442591 |
[ Download CSV Export ]
Contract Name:
FixedPriceOracle
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at celoscan.io on 2023-02-09 */ // SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.12; /************ @title IPriceOracle interface @notice Interface for the Aave price oracle.*/ interface IPriceOracle { /*********** @dev returns the asset price in ETH */ function getAssetPrice(address asset) external view returns (uint256); /*********** @dev sets the asset price, in wei */ function setAssetPrice(address asset, uint256 price) external; } contract FixedPriceOracle is IPriceOracle { address constant public ASSET = 0x17700282592D6917F6A73D0bF8AcCf4D578c131e; uint constant public PRICE = 0.0001e18; function getAssetPrice(address _asset) external view override returns (uint256) { require(_asset == ASSET, 'FixedPriceOracle: wrong asset'); return PRICE; } function setAssetPrice(address, uint256) external override { revert('FixedPriceOracle: not allowed'); } }
[{"inputs":[],"name":"ASSET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getAssetPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"setAssetPrice","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50610208806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634800d97f1461005157806351323f72146100755780638d859f3e146100a3578063b3596f07146100bd575b600080fd5b6100596100e3565b604080516001600160a01b039092168252519081900360200190f35b6100a16004803603604081101561008b57600080fd5b506001600160a01b0381351690602001356100fb565b005b6100ab610148565b60408051918252519081900360200190f35b6100ab600480360360208110156100d357600080fd5b50356001600160a01b0316610152565b7317700282592d6917f6a73d0bf8accf4d578c131e81565b6040805162461bcd60e51b815260206004820152601d60248201527f466978656450726963654f7261636c653a206e6f7420616c6c6f776564000000604482015290519081900360640190fd5b655af3107a400081565b60006001600160a01b0382167317700282592d6917f6a73d0bf8accf4d578c131e146101c5576040805162461bcd60e51b815260206004820152601d60248201527f466978656450726963654f7261636c653a2077726f6e67206173736574000000604482015290519081900360640190fd5b50655af3107a400091905056fea264697066735822122021fc5bd780a2232cd67378d53af734e69d1ac66f5b466034fb14036fc381361364736f6c634300060c0033
Deployed ByteCode Sourcemap
462:460:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:74;;;:::i;:::-;;;;-1:-1:-1;;;;;509:74:0;;;;;;;;;;;;;;808:111;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;808:111:0;;;;;;;;:::i;:::-;;588:38;;;:::i;:::-;;;;;;;;;;;;;;;;633:169;;;;;;;;;;;;;;;;-1:-1:-1;633:169:0;-1:-1:-1;;;;;633:169:0;;:::i;509:74::-;541:42;509:74;:::o;808:111::-;874:39;;;-1:-1:-1;;;874:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;588:38;617:9;588:38;:::o;633:169::-;704:7;-1:-1:-1;;;;;728:15:0;;541:42;728:15;720:57;;;;;-1:-1:-1;;;720:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;617:9:0;633:169;;;:::o
Swarm Source
ipfs://21fc5bd780a2232cd67378d53af734e69d1ac66f5b466034fb14036fc3813613
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.