From b38dac40ab5cf2dc45545ebcd8e9af748834fde2 Mon Sep 17 00:00:00 2001 From: Trevor Richard Date: Tue, 3 Oct 2023 20:07:37 +0000 Subject: [PATCH] remove unnecessary uint48 safe cast --- src/PrizePool.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PrizePool.sol b/src/PrizePool.sol index 9efb733..78ce175 100644 --- a/src/PrizePool.sol +++ b/src/PrizePool.sol @@ -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