Urban Vinyl Koala
Medium
Overflow in VVVVCInvestmentLedger.sol
line-165 due to unchecked large value of product entities will cause invest()
to revert.
In function VVVVCInvestmentLedger.sol::invest()
there could be case of overflow due to following code line -
uint256 preFeeStableAmountEquivalent = (_params.amountToInvest * _params.exchangeRateNumerator) /exchangeRateDenominator;
If the value of _params.amountToInvest
and _params.exchangeRateNumerator
is very large or even on of the value is very large, it will lead to overflow of uint256 and execution will revert.
large value of _params.amountToInvest
and _params.exchangeRateNumerator
isn't checked in invest()
of VVVVCInvestmentLedger.sol
.
signer
signes a investment transactions which has pretty high amountToInvest and exchangeRateNumerator values, such that amountToInvest*exchangeRateNumerator > max(uint256).
No response
No response
It will cause the invest()
function to revert for a particular signed InvestParams every time.
No response
check the values of _params.amountToInvest
and _params.exchangeRateNumerator
if they are too large or not.