@@ -4,11 +4,18 @@ pragma solidity 0.8.22;
4
4
import { IXRenzoDeposit } from "../../interfaces/IXRenzoDeposit.sol " ;
5
5
import { FixedPointMath } from "../../libraries/FixedPointMath.sol " ;
6
6
7
- // FIXME: Add a @dev section explaining the oracle.
8
- //
9
7
/// @author DELV
10
8
/// @title EzETHLineaConversions
11
9
/// @notice The conversion logic for the EzETH integration on Linea.
10
+ /// @dev This conversion library pulls the vault share price from the Renzo
11
+ /// oracle on linea. It's possible for this oracle to have downtime or
12
+ /// to be deprecated entirely. Our approach to this problem is to always
13
+ /// use the latest price data (regardless of how current it is) since
14
+ /// reverting will compromise the protocol's liveness and will prevent
15
+ /// users from closing their existing positions. These pools should be
16
+ /// monitored to ensure that the underlying oracle continues to be
17
+ /// maintained, and the pool should be paused if the oracle has significant
18
+ /// downtime or is deprecated.
12
19
/// @custom:disclaimer The language used in this code is for coding convenience
13
20
/// only, and is not intended to, and does not, have any
14
21
/// particular legal or regulatory significance.
@@ -50,13 +57,7 @@ library EzETHLineaConversions {
50
57
function getLastMintPrice (
51
58
IXRenzoDeposit _xRenzoDeposit
52
59
) internal view returns (uint256 ) {
53
- // FIXME: What are the historical values for this oracle? Does it ever
54
- // go down?
55
- //
56
- // FIXME: Is this acceptable? Do we need to do anything with the timestamp?
57
- //
58
- // FIXME: Regardless of what we do with the timestamp, we need to make a
59
- // note of what we're doing.
60
+ // NOTE: We
60
61
(uint256 lastPrice , ) = _xRenzoDeposit.getMintRate ();
61
62
return lastPrice;
62
63
}
0 commit comments