Skip to content

Commit

Permalink
added fee to price and balances query
Browse files Browse the repository at this point in the history
  • Loading branch information
kosegor committed Dec 22, 2023
1 parent e3a9892 commit f5ac4ad
Show file tree
Hide file tree
Showing 13 changed files with 520 additions and 87 deletions.
16 changes: 15 additions & 1 deletion proto/umee/metoken/v1/metoken.proto
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,22 @@ message AssetPrice {
(gogoproto.nullable) = false
];

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

// RedeemRate used for exchange calculations meToken -> asset.
string redeem_rate = 6 [
string redeem_rate = 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
];
Expand Down
Loading

0 comments on commit f5ac4ad

Please sign in to comment.