-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba0c85a
commit 7976e8c
Showing
6 changed files
with
64 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: BlueOak-1.0.0 | ||
pragma solidity 0.8.19; | ||
|
||
// RToken Oracle Interface | ||
interface IRTokenOracle { | ||
struct CachedOracleData { | ||
uint192 cachedPrice; | ||
uint256 cachedAtTime; | ||
uint48 cachedAtNonce; | ||
uint48 cachedTradesOpen; | ||
uint256 cachedTradesNonce; | ||
} | ||
|
||
// @returns rTokenPrice {D18} {UoA/tok} The price of the RToken, in UoA | ||
function latestPrice() external returns (uint192 rTokenPrice, uint256 updatedAt); | ||
|
||
// Force recalculate the price of the RToken | ||
function forceUpdatePrice() external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters