From 7be0c8b48ed2f4f652cbcfd2ed305220c6a5907c Mon Sep 17 00:00:00 2001 From: Denali Marsh Date: Wed, 3 Feb 2021 23:23:03 +0100 Subject: [PATCH] decrement supplied coins (#791) --- x/hard/keeper/withdraw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/hard/keeper/withdraw.go b/x/hard/keeper/withdraw.go index d8c5f892..b5fc956a 100644 --- a/x/hard/keeper/withdraw.go +++ b/x/hard/keeper/withdraw.go @@ -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)