From 9c6881b2d099f1563bcad36f1b52e0d2457bfc92 Mon Sep 17 00:00:00 2001 From: toteki <63419657+toteki@users.noreply.github.com> Date: Tue, 27 Jun 2023 23:27:01 +0100 Subject: [PATCH] renaming suggestion --- x/leverage/keeper/borrows.go | 2 +- x/leverage/keeper/oracle.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/leverage/keeper/borrows.go b/x/leverage/keeper/borrows.go index 2081cd5889..de6307016e 100644 --- a/x/leverage/keeper/borrows.go +++ b/x/leverage/keeper/borrows.go @@ -41,7 +41,7 @@ func (k Keeper) assertBorrowerHealth(ctx sdk.Context, borrowerAddr sdk.AccAddres if err != nil { return err } - collateralValue, err := k.VisibleUTokenValue(ctx, collateral, types.PriceModeLow) + collateralValue, err := k.VisibleUTokensValue(ctx, collateral, types.PriceModeLow) if err != nil { return err } diff --git a/x/leverage/keeper/oracle.go b/x/leverage/keeper/oracle.go index ec55bf7b4d..051ed76874 100644 --- a/x/leverage/keeper/oracle.go +++ b/x/leverage/keeper/oracle.go @@ -162,8 +162,8 @@ func (k Keeper) VisibleTokenValue(ctx sdk.Context, coins sdk.Coins, mode types.P return total, nil } -// VisibleUTokenValue converts uTokens to tokens and calls VisibleTokenValue. Errors on non-uTokens. -func (k Keeper) VisibleUTokenValue(ctx sdk.Context, uTokens sdk.Coins, mode types.PriceMode) (sdk.Dec, error) { +// VisibleUTokensValue converts uTokens to tokens and calls VisibleTokenValue. Errors on non-uTokens. +func (k Keeper) VisibleUTokensValue(ctx sdk.Context, uTokens sdk.Coins, mode types.PriceMode) (sdk.Dec, error) { tokens := sdk.NewCoins() for _, u := range uTokens {