Closed c4-judge closed 1 year ago
Judge has assessed an item in Issue #853 as 3 risk. The relevant finding follows:
[LC-02] USE THE SAFECAST LIBRARY FOR CASTING VALUES TO AVOID OVERFLOW/UNDERFLOW File: https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L230L231
virtualBaseTokenReserves += uint128(netInputAmount - feeAmount - protocolFeeAmount); virtualNftReserves -= uint128(weightSum);
GalloDaSballo marked the issue as duplicate of #167
GalloDaSballo marked the issue as satisfactory
Judge has assessed an item in Issue #853 as 3 risk. The relevant finding follows:
[LC-02] USE THE SAFECAST LIBRARY FOR CASTING VALUES TO AVOID OVERFLOW/UNDERFLOW File: https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L230L231
virtualBaseTokenReserves += uint128(netInputAmount - feeAmount - protocolFeeAmount); virtualNftReserves -= uint128(weightSum);