You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although solidity inherently casts uint128 to uint256 in BatchAuction.finalize():L288, explicitly casting marketInfo.totalTokens ensures that variables are properly casted.
Handle
leastwood
Vulnerability details
Impact
Although solidity inherently casts
uint128
touint256
inBatchAuction.finalize():L288
, explicitly castingmarketInfo.totalTokens
ensures that variables are properly casted.Proof of Concept
https://github.com/sushiswap/miso/blob/master/contracts/Auctions/BatchAuction.sol#L288
Tools Used
Manual code review
Recommended Mitigation Steps
Cast
marketInfo.totalTokens
fromuint128
touint256
.The text was updated successfully, but these errors were encountered: