decrement supplied coins (#791)

This commit is contained in:
Denali Marsh 2021-02-03 23:23:03 +01:00 committed by GitHub
parent cfb9e0cb76
commit 7be0c8b48e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)