Skip to content

Commit

Permalink
remove unnecessary uint48 safe cast
Browse files Browse the repository at this point in the history
  • Loading branch information
trmid committed Oct 3, 2023
1 parent d4694d5 commit b38dac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PrizePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ contract PrizePool is TieredLiquidityDistributor, Ownable {
uint256 _drawDuration
) internal view returns (uint256 twab, uint256 twabTotalSupply) {
uint32 _drawPeriodSeconds = drawPeriodSeconds;
uint48 _endTimestamp = SafeCast.toUint48(_drawEndsAt(_lastClosedDrawId));
uint48 _endTimestamp = _drawEndsAt(_lastClosedDrawId);
uint48 _durationSeconds = SafeCast.toUint48(_drawDuration * _drawPeriodSeconds);
uint48 _startTimestamp = _endTimestamp > _durationSeconds
? _endTimestamp - _durationSeconds
Expand Down

0 comments on commit b38dac4

Please sign in to comment.