Skip to content

Commit 365ccc2

Browse files
committed
chore: fmt
1 parent 4d09939 commit 365ccc2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ChainlinkOracle.sol

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ contract ChainlinkOracle is IChainlinkOracle {
5959
/// - The vault, if set, is ERC4626-compliant.
6060
/// @param baseVault Base vault. Pass address zero to omit this parameter.
6161
/// @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
6364
/// assets has enough precision.
6465
/// @param quoteVault Quote vault. Pass address zero to omit this parameter.
6566
/// @param quoteVaultConversionSample The sample amount of quote vault shares used to convert to the underlying
@@ -84,7 +85,9 @@ contract ChainlinkOracle is IChainlinkOracle {
8485
uint256 baseTokenDecimals,
8586
uint256 quoteTokenDecimals
8687
) {
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.
8891
// Verify that vault = address(0) => vaultConversionSample = 1 for each vault.
8992
require(
9093
address(baseVault) != address(0) || baseVaultConversionSample == 1,

0 commit comments

Comments
 (0)