mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +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)
|
k.UpdateDepositAndLtvIndex(ctx, deposit, newLtv, prevLtv)
|
||||||
|
|
||||||
// Update total supplied amount
|
// Update total supplied amount
|
||||||
k.DecrementBorrowedCoins(ctx, amount)
|
k.DecrementSuppliedCoins(ctx, amount)
|
||||||
|
|
||||||
// Call incentive hook
|
// Call incentive hook
|
||||||
k.AfterDepositModified(ctx, deposit)
|
k.AfterDepositModified(ctx, deposit)
|
||||||
|
Loading…
Reference in New Issue
Block a user