Contract fails to deliver promised returns, but doesn't lose value
Description
Finding Description and Impact
_mytSharesDeposited shows how much collateral has been put into AlchemistV3. In addition, its value will go down once CDP holders take back their collateral. Nevertheless, it would not update after a CDP that will be liquidated, leading to denial of service.
Furthermore, users are prohibited from depositing into AlchemistV3 beyond the established capacity set by the owner. This implies that if _mytSharesDeposited exceeds the actual amount, the user cannot deposit, as _mytSharesDeposited + amount would surpass depositCap.
Textual PoC
Presume depositCap is 200,000
User A deposits 200,000 alUSD into AlchemistV3.(_mytSharesDeposited = 200,000)
User A will be susceptible to liquidation, resulting in the transfer of their collateral to Transmitur, while _mytSharesDeposited remains at 200,000.
Other users are unable to deposit, as AlchemistV3's capacity is at its limit.