Skip to content

Commit

Permalink
feat: added fee to price and balances query (#2365)
Browse files Browse the repository at this point in the history
* added fee to price and balances query

* rollback a change

* test fixed

* proto

* pr comments

* pr comments
  • Loading branch information
kosegor authored Jan 2, 2024
1 parent c7a3e5b commit ed181c6
Show file tree
Hide file tree
Showing 16 changed files with 524 additions and 85 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

- [2315](https://github.com/umee-network/umee/pull/2315) 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
14 changes: 14 additions & 0 deletions proto/umee/metoken/v1/metoken.proto
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,18 @@ message AssetPrice {
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];

// SwapFee charged to the user on a swap, expressed in fraction.
// Valid values: 0-1.
string swap_fee = 7 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];

// RedeemFee charged to the user on a redemption, expressed in fraction.
// Valid values: 0-1.
string redeem_fee = 8 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
}
Loading

0 comments on commit ed181c6

Please sign in to comment.