Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kosegor committed Jan 2, 2024
1 parent ef3ba1f commit ad114dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

- [2315](https://github.com/umee-network/umee/pull/2215) Improve reliability of MaxBorrow, MaxWithdraw when special asset pairs present.
- [2346](https://github.com/umee-network/umee/pull/2346) Fix an issue where metokens were not included in historic data.
- [2365](https://github.com/umee-network/umee/pull/2365) Add fee to metoken price and balances query.

### Improvements

Expand Down
2 changes: 2 additions & 0 deletions x/metoken/keeper/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
)

// swapFee to be charged to the user, given a specific Index configuration and asset amount.
// It returns fee in fraction, fee amount (fee fraction applied to the swap amount) and error.
func (k Keeper) swapFee(index metoken.Index, indexPrices metoken.IndexPrices, asset sdk.Coin) (
sdk.Dec,
sdk.Coin,
Expand Down Expand Up @@ -38,6 +39,7 @@ func (k Keeper) swapFee(index metoken.Index, indexPrices metoken.IndexPrices, as
}

// redeemFee to be charged to the user, given a specific Index configuration and asset amount.
// It returns fee in fraction, fee amount (fee fraction applied to the redemption amount) and error.
func (k Keeper) redeemFee(index metoken.Index, indexPrices metoken.IndexPrices, asset sdk.Coin) (
sdk.Dec,
sdk.Coin,
Expand Down
3 changes: 1 addition & 2 deletions x/metoken/keeper/price.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ package keeper
import (
"fmt"

"github.com/umee-network/umee/v6/util/coin"

sdkmath "cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

"github.com/umee-network/umee/v6/util/coin"
"github.com/umee-network/umee/v6/x/metoken"
otypes "github.com/umee-network/umee/v6/x/oracle/types"
)
Expand Down

0 comments on commit ad114dd

Please sign in to comment.