Spare Jetblack Fish - treasury.updateYieldsFromLiquidatedLrts()
updates the yield in the current chain, but collateral may be in the other chain
#1052
Labels
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
Spare Jetblack Fish
High
treasury.updateYieldsFromLiquidatedLrts()
updates the yield in the current chain, but collateral may be in the other chainSummary
treasury.updateYieldsFromLiquidatedLrts() updates the yield from liquidated collateral in the current chain, but this collateral could have been present in the other chain. As such, it will allow the protocol to withdrawal yields that it should not in the current chain, which means other deposited collateral may not be withdrawn due to having been allocated as yield instead.
Root Cause
In
CDSLib::667
, the treasury is updated with liquidated collateral yield, but this yield may be present in the other chain.Internal pre-conditions
None.
External pre-conditions
None.
Attack Path
Impact
Lack of funds in chain A, leading to DoSed withdrawals.
PoC
None.
Mitigation
The yields should always be set in the chain that the liquidation happened and the collateral is held.
The text was updated successfully, but these errors were encountered: