Skip to content

Commit

Permalink
Removed unneccessary RingBuffer.wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Aug 16, 2023
1 parent bc6bf68 commit a9bf359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/TwabLib.sol
Expand Up @@ -405,7 +405,7 @@ library TwabLib {
// Create a new Observation if it's the first period or the current time falls within a new period
if (_accountDetails.cardinality == 0 || currentPeriod > newestObservationPeriod) {
return (
uint16(RingBufferLib.wrap(_accountDetails.nextObservationIndex, MAX_CARDINALITY)),
_accountDetails.nextObservationIndex,
newestObservation,
true
);
Expand Down

0 comments on commit a9bf359

Please sign in to comment.