Submitted by bin2chen, also found by Bnke0x0
MIMOEmptyVault.sol executeAction() is supposed to pay off the debt and return the leftover assets to the owner of the Vault.
But in fact the emptyVault contract, after executing the executionOperation(), only pays back the flash loan, and does not transfer the leftover assets to the owner, and locked in the emptyVault contract.
Add logs to test case
test/02_integration/MIMOEmtpyVault.test.ts
print:
RayXpub (Mimo) confirmed and commented:
horsefacts (warden) reviewed mitigation:
