This repository has been archived by the owner on May 26, 2023. It is now read-only.
GalloDaSballo - Risk with Liquidation - Because of partnership requirement, caller may be unable to redeem during liquidation making it less likely for them to be willing to perform the liquidation #20
Labels
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
GalloDaSballo
medium
Risk with Liquidation - Because of partnership requirement, caller may be unable to redeem during liquidation making it less likely for them to be willing to perform the liquidation
Summary
Due to the approval system with pvGLP, liquidations may be less likely
Vulnerability Detail
In times of intense price action, a liquidation may have to be performed on pvGLP.
The protocol will offer
liquidate
which will sweep funds out, this is fine and will work as intended because it relies ontransferFrom
.However, a liquidator will receive the vault token, and may be unable to redeem it.
That's because redemptions have to be performed via
plvGLP depositor
which may not have approved the liquidators account.This will make it less likely for liquidators to perform the operation as it may force either a manual operation (redemption can be performed by any EOA), or it will require further setup, reducing the number of operators willing to perform the liquidation in the time of need.
Impact
Code Snippet
Tool used
Manual Review
Recommendation
The text was updated successfully, but these errors were encountered: