In the AaveDIVAWrapperCore::_removeLiquidity
function , where liquidity providers (LPs) are unable to withdraw their collateral if the short or long recipients do not cooperate by transferring their position tokens back to the LP. This issue effectively locks the LP's collateral within the protocol, undermining their ability to manage their funds.
In the DIVA Protocol, when an LP adds liquidity, they specify recipients for the short and long position tokens. These tokens represent claims on the pool's collateral. The removal of liquidity requires the LP to return both types of position tokens to the AaveDIVAWrapperCore
contract . The process involves the following steps:
The LP must gather both short and long position tokens from the respective recipients.
The function call for transferring these tokens is as follows:
If either the short or long recipient refuses to transfer their tokens back to the LP, the LP cannot complete the liquidity removal process.
The LP's collateral remains locked in the protocol, as the removal process cannot proceed without both position tokens.
LPs do not have full control over their collateral.
In `test/AaveDIVAWrapper.t.sol` :
Run this command :
Output :
Manuial Review
Foundry
Unified Ownership: Encourage or require LPs to designate themselves as both short and long recipients to maintain control over the position tokens.
Implement a mechanism that allows LPs to reclaim position tokens from recipients, possibly through a buyback or transfer agreement.
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.