Skip to content

Commit

Permalink
minor fix to natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
kamescg committed Oct 6, 2021
1 parent 7a063e1 commit 5f25e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/libraries/TwabLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ library TwabLib {
The balance is linearly interpolated: amount differences / timestamp differences
using the simple (after.amount - before.amount / end.timestamp - start.timestamp) formula.
/** @dev Binary search in _calculateTwab fails when searching out of bounds. Thus, before
searching we exclude searching for target timestamps out of range of newest/oldest TWAB(s).
searching we exclude target timestamps out of range of newest/oldest TWAB(s).
IF a search is before or after the range we "extrapolate" a Observation from the expected state.
* @param _twabs Individual user Observation recorded checkpoints passed as storage pointer
* @param _accountDetails User AccountDetails struct loaded in memory
Expand Down

0 comments on commit 5f25e80

Please sign in to comment.