Skip to content

Commit 4d09939

Browse files
authored
docs: minor update
Signed-off-by: MathisGD <[email protected]>
1 parent 70c3939 commit 4d09939

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ChainlinkOracle.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ contract ChainlinkOracle is IChainlinkOracle {
8484
uint256 baseTokenDecimals,
8585
uint256 quoteTokenDecimals
8686
) {
87-
// The ERC4626 vault parameter is used to price `VAULT_CONVERSION_SAMPLE` of its shares, so it requires dividing
88-
// by that number, hence the division by `VAULT_CONVERSION_SAMPLE` in the `SCALE_FACTOR` definition.
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.
8988
// Verify that vault = address(0) => vaultConversionSample = 1 for each vault.
9089
require(
9190
address(baseVault) != address(0) || baseVaultConversionSample == 1,

0 commit comments

Comments
 (0)