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] | |||
---|---|---|---|---|---|---|---|---|---|
0xc156e1ef5378def7b082902b8b629e2c16ca444b2ddc0a6c625b3119a0ffa656 | 0x60806040 | 17653173 | 113 days 19 hrs ago | 0x643c574128c7c56a1835e021ad0ecc2592e72624 | IN | Create: FixedPriceOracle | 0 CELO | 0.004149325 |
[ 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.005e18; 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
608060405234801561001057600080fd5b5061020a806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80634800d97f1461005157806351323f72146100755780638d859f3e146100a3578063b3596f07146100bd575b600080fd5b6100596100e3565b604080516001600160a01b039092168252519081900360200190f35b6100a16004803603604081101561008b57600080fd5b506001600160a01b0381351690602001356100fb565b005b6100ab610148565b60408051918252519081900360200190f35b6100ab600480360360208110156100d357600080fd5b50356001600160a01b0316610153565b7317700282592d6917f6a73d0bf8accf4d578c131e81565b6040805162461bcd60e51b815260206004820152601d60248201527f466978656450726963654f7261636c653a206e6f7420616c6c6f776564000000604482015290519081900360640190fd5b6611c37937e0800081565b60006001600160a01b0382167317700282592d6917f6a73d0bf8accf4d578c131e146101c6576040805162461bcd60e51b815260206004820152601d60248201527f466978656450726963654f7261636c653a2077726f6e67206173736574000000604482015290519081900360640190fd5b506611c37937e0800091905056fea264697066735822122010386d8fefcaafbacc2f33bfa2ff752205b01d83ac18e508d259803eac088f5c64736f6c634300060c0033
Deployed ByteCode Sourcemap
462:459:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:74;;;:::i;:::-;;;;-1:-1:-1;;;;;509:74:0;;;;;;;;;;;;;;807:111;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;807:111:0;;;;;;;;:::i;:::-;;588:37;;;:::i;:::-;;;;;;;;;;;;;;;;632:169;;;;;;;;;;;;;;;;-1:-1:-1;632:169:0;-1:-1:-1;;;;;632:169:0;;:::i;509:74::-;541:42;509:74;:::o;807:111::-;873:39;;;-1:-1:-1;;;873:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;588:37;617:8;588:37;:::o;632:169::-;703:7;-1:-1:-1;;;;;727:15:0;;541:42;727:15;719:57;;;;;-1:-1:-1;;;719:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;617:8:0;632:169;;;:::o
Swarm Source
ipfs://10386d8fefcaafbacc2f33bfa2ff752205b01d83ac18e508d259803eac088f5c
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.