Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisGD committed Feb 15, 2024
1 parent 4d09939 commit 365ccc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ChainlinkOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ contract ChainlinkOracle is IChainlinkOracle {
/// - The vault, if set, is ERC4626-compliant.
/// @param baseVault Base vault. Pass address zero to omit this parameter.
/// @param baseVaultConversionSample The sample amount of base vault shares used to convert to the underlying asset.
/// Pass 1 if the oracle does not use a base vault. Should be chosen such that converting `baseVaultConversionSample` to
/// Pass 1 if the oracle does not use a base vault. Should be chosen such that converting
/// `baseVaultConversionSample` to
/// assets has enough precision.
/// @param quoteVault Quote vault. Pass address zero to omit this parameter.
/// @param quoteVaultConversionSample The sample amount of quote vault shares used to convert to the underlying
Expand All @@ -84,7 +85,9 @@ contract ChainlinkOracle is IChainlinkOracle {
uint256 baseTokenDecimals,
uint256 quoteTokenDecimals
) {
// 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.
// 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.
// Verify that vault = address(0) => vaultConversionSample = 1 for each vault.
require(
address(baseVault) != address(0) || baseVaultConversionSample == 1,
Expand Down

0 comments on commit 365ccc2

Please sign in to comment.