Swapping assets
for USDC will be blocked if one assets from assets
array passed to convertMarketsCreditDepositsToUsdc
is not present in creditDeposits
.
Registred keepers calls convertMarketsCreditDepositsToUsdc to swap credit assets to USDC.
First, the function tries to get the amount for assets[i]
, and if the asset doesn't exist or the amount is 0, the transaction reverts and no asset gets swapped for USDC.
Existing credit assets aren't swapped to USDC. The keeper must check the existing credit assets and call the swap function again with the corect list of assets.
Instead of reverting when an asset does not exist (or when the amount is 0), use continue
to allow the swap of existing assets.
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.