sherlock-audit / 2023-12-ubiquity-judging

2 stars 2 forks source link

GatewayGuardians - UbiquityPool: Full collateral withdrawal during redemption delay can leave users without the collateral or uAD #162

Closed sherlock-admin2 closed 10 months ago

sherlock-admin2 commented 10 months ago

GatewayGuardians

medium

UbiquityPool: Full collateral withdrawal during redemption delay can leave users without the collateral or uAD

Summary

Vulnerability Detail

This issue is also dependent upon how the AMO system works. At this point, the devs have not decided on the final implementation.

  • When a user, like Alice, initiates a redemption in block 100, completes part 1, and is awaiting the redemption delay.
  • If another user, Bob, mints new Dollar Tokens in the same block after Alice, causing the collateral pool to reach its limit.
  • The pool is paused in block 101. At this point, the AMO minter withdraws all collateral balance to earn yield.
  • In this scenario, Alice cannot collect her collateral and is stuck in limbo until the pool is resumed, and the collateral is redeposited.

Impact

Code Snippet

Manual Review

Recommendation

Duplicate of #1