Lack of check if amount of vault assets is up to the required amount(ctx.swapAmount
) during the conversion of Assets to
USDC.
When the if()
in CreditDelegationBranch::settleVaultsDebt
gets executed, a call is made to an internal function
CreditDelegationBranch::_convertAssetsToUsdc
to convert assets to USDC. However, there is no check if the vault assets
present is up to amount to be swapped(ctx.swapAmount
).
For example:
If there are 30 units of assets in the vault and the required amount(ctx.swapAmount
) is 50 units of vault asset
This can lead to unintended behaviors.
Enforce a check before the conversion to ensure the vault has enough assets for the swap.
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.