Skip to content

Commit 4084d69

Browse files
committed
docs: minor improvements
1 parent 896ee33 commit 4084d69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ChainlinkOracle.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ contract ChainlinkOracle is IOracle {
5656
// The vault parameter is used for ERC4626 tokens, to price its shares.
5757
// It is used to price `VAULT_CONVERSION_SAMPLE` of the vault shares, so it requires dividing by that number,
5858
// hence the division by `VAULT_CONVERSION_SAMPLE` in the `SCALE_FACTOR` definition.
59-
// Verify that vault = 0 => vaultConversionSample = 1.
59+
// Verify that vault = address(0) => vaultConversionSample = 1.
6060
require(
6161
address(vault) != address(0) || vaultConversionSample == 1, ErrorsLib.VAULT_CONVERSION_SAMPLE_IS_NOT_ONE
6262
);

src/libraries/ErrorsLib.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ library ErrorsLib {
99
/// @notice Thrown when the answer returned by a Chainlink feed is negative.
1010
string constant NEGATIVE_ANSWER = "negative answer";
1111

12-
/// @notice Thrown when the vault conversion sample is not 1 while vault = 0.
12+
/// @notice Thrown when the vault conversion sample is not 1 while vault = address(0).
1313
string constant VAULT_CONVERSION_SAMPLE_IS_NOT_ONE = "vault conversion sample is not one";
1414
}

0 commit comments

Comments
 (0)