56846 sc medium liquidation will return because of insufficient funds

Submitted on Oct 21st 2025 at 07:22:43 UTC by @pashap9990 for Audit Comp | Alchemix V3arrow-up-right

  • Report ID: #56846

  • Report Type: Smart Contract

  • Report severity: Medium

  • Target: https://github.com/alchemix-finance/v3-poc/blob/immunefi_audit/src/AlchemistV3.sol

  • Impacts:

    • Smart contract unable to operate due to lack of token funds

Description

Finding Description and Impact

CPD holders' positions are prone to liquidation upon their CR falling below collateralizationLowerBound. Also, the earmark will be paid first, and then the liquidator will get a reward fee once the debt is gone. Nevertheless, the liquidation transaction will fail due to insufficient funds, resulting in a denial of service.

Textual PoC

Presume collateralizationLowerBound is 1.05

  • User A deposits 110 MYT and mints 100 alUSD. [collateral's worth = 110, debt = 100, earmark = 0] A redemption will be initiated by Transmuter with a redeem amount of 100 alUSD, reflecting user A's status after 5,256,000 blocks. [collateral's worth = 110, debt = 100, earmark = 100]

  • The price of MYT has decreased by 20%, indicating the status of user A. [collateral's worth = 91, debt = 100, earmark = 100]

  • A liquidator identifies the opportunity and initiates a liquidation transaction. _forceReapy will be invoked as user A possesses an earmark, resulting in the transfer of 110 MYT to Transmuter. The liquidate function subsequently attempts to transfer 1.1 MYT to the liquidator as a reward. However, the transaction will fail due to insufficient funds.

Code Snippet

https://github.com/alchemix-finance/v3-poc/blob/a192ab313c81ba3ab621d9ca1ee000110fbdd1e9/src/AlchemistV3.sol#L826C24-L826C66

Proof of Concept

Proof of Concept

Kindly incorporate the following PoC in Alchemist.t.sol

Was this helpful?