Skip to content

Commit

Permalink
Removed extraneous cast
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Oct 6, 2021
1 parent 82dcb57 commit bdc767e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions contracts/libraries/TwabLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,9 @@ library TwabLib {
// New twab amount = last twab amount (or zero) + (current amount * elapsed seconds)
return
ObservationLib.Observation({
amount: uint256(
_currentTwab.amount +
amount: _currentTwab.amount +
_currentBalance *
(_time.checkedSub(_currentTwab.timestamp, _time))
).toUint224(),
(_time.checkedSub(_currentTwab.timestamp, _time)),
timestamp: _time
});
}
Expand Down

0 comments on commit bdc767e

Please sign in to comment.