Skip to content

Commit

Permalink
name matches comment
Browse files Browse the repository at this point in the history
  • Loading branch information
toteki authored Aug 2, 2023
1 parent dc0d4db commit c50332b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/leverage/keeper/exchange_rate.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func (k Keeper) ToToken(ctx sdk.Context, uToken sdk.Coin) (sdk.Coin, error) {
return sdk.NewCoin(tokenDenom, tokenAmount), nil
}

// ToToken returns list of Tokens in the amount a user would receive when withdrawing the
// ToTokens returns list of Tokens in the amount a user would receive when withdrawing the
// list of uTokens.
// Returns error if any of the inputs are uTokens.
// Returns error if any of the inputs are tokens.
func (k Keeper) ToTokens(ctx sdk.Context, uTokens sdk.Coins) (sdk.Coins, error) {
if err := uTokens.Validate(); err != nil {
return sdk.Coins{}, err
Expand Down

0 comments on commit c50332b

Please sign in to comment.