Both settleVaultsDebt
try to swap assets that are not in the MarketMakingEngine
.
In settleVaultsDebt
we can see that when a vault is in debt it will swap its underlying assets to USDC:
However in the _convertAssetsToUsdc
we can see that the MarketMakingEngine
will wrongly assume that it stores those assets:
As we can see above the MarketMakingEngine
will approve the vault assets to the dexSwapStrategy
, however the assets are actually stored in the zlpVault
.
As a result all calls to the dexSwapStrategy will revert here:
As the adapters will try to transfer assets from the MarketMakingEngine
while they are actually in the zlpVaults.
Medium - settleVaultsDebt
will always revert due to insufficient balance.
Manual Review
Implement a way to fetch the assets from the zlpVault.
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.