You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ChainlinkOracle.sol
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,8 @@ contract ChainlinkOracle is IChainlinkOracle {
59
59
/// - The vault, if set, is ERC4626-compliant.
60
60
/// @param baseVault Base vault. Pass address zero to omit this parameter.
61
61
/// @param baseVaultConversionSample The sample amount of base vault shares used to convert to the underlying asset.
62
-
/// Pass 1 if the oracle does not use a base vault. Should be chosen such that converting `baseVaultConversionSample` to
62
+
/// Pass 1 if the oracle does not use a base vault. Should be chosen such that converting
63
+
/// `baseVaultConversionSample` to
63
64
/// assets has enough precision.
64
65
/// @param quoteVault Quote vault. Pass address zero to omit this parameter.
65
66
/// @param quoteVaultConversionSample The sample amount of quote vault shares used to convert to the underlying
@@ -84,7 +85,9 @@ contract ChainlinkOracle is IChainlinkOracle {
84
85
uint256baseTokenDecimals,
85
86
uint256quoteTokenDecimals
86
87
) {
87
-
// The ERC4626 vaults parameter is used to price their respective conversion samples of their respective shares, so it requires multiplying by `QUOTE_VAULT_CONVERSION_SAMPLE` and dividing `BASE_VAULT_CONVERSION_SAMPLE` by the `SCALE_FACTOR` definition.
88
+
// The ERC4626 vaults parameter is used to price their respective conversion samples of their respective shares,
89
+
// so it requires multiplying by `QUOTE_VAULT_CONVERSION_SAMPLE` and dividing `BASE_VAULT_CONVERSION_SAMPLE` by
90
+
// the `SCALE_FACTOR` definition.
88
91
// Verify that vault = address(0) => vaultConversionSample = 1 for each vault.
0 commit comments