mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
decrement supplied coins (#791)
This commit is contained in:
parent
cfb9e0cb76
commit
7be0c8b48e
@ -57,7 +57,7 @@ func (k Keeper) Withdraw(ctx sdk.Context, depositor sdk.AccAddress, coins sdk.Co
|
||||
k.UpdateDepositAndLtvIndex(ctx, deposit, newLtv, prevLtv)
|
||||
|
||||
// Update total supplied amount
|
||||
k.DecrementBorrowedCoins(ctx, amount)
|
||||
k.DecrementSuppliedCoins(ctx, amount)
|
||||
|
||||
// Call incentive hook
|
||||
k.AfterDepositModified(ctx, deposit)
|
||||
|
Loading…
Reference in New Issue
Block a user