The function settleVaultsDebt
storage reference is passed to a function that expects a memory
parameter.
vault.swapStrategy.usdcDexSwapPath
and vault.swapStrategy.assetDexSwapPath
are storage variables.
_convertAssetsToUsdc
and _convertUsdcToAssets
expect bytes memory path
.If _convertAssetsToUsdc
or _convertUsdcToAssets
modify path
, those changes are lost because they happen in memory, not in storage.
Incorrect swap paths being used in future transactions.
Unintended behavior due to outdated or missing data.
Potential financial losses if swaps execute incorrectly.
Manual review
To fix the issue consider to change function parameter to storage
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.