Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
- [959](https://github.com/umee-network/umee/pull/959) Improve ModuleBalance calculation
- [962](https://github.com/umee-network/umee/pull/962) Streamline AccrueAllInterest
- [967](https://github.com/umee-network/umee/pull/962) Use taylor series of e^x for more accurate interest at high APY.
- [987](https://github.com/umee-network/umee/pull/987) Streamline x/leverage CLI tests

## [v2.0.2](https://github.com/umee-network/umee/releases/tag/v2.0.2) - 2022-05-13

Expand Down
7 changes: 6 additions & 1 deletion x/leverage/client/cli/proposal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ func TestParseUpdateRegistryProposal(t *testing.T) {
"kink_borrow_rate": "0.2",
"max_borrow_rate": "1.5",
"kink_utilization_rate": "0.2",
"liquidation_incentive": "0.1"
"liquidation_incentive": "0.1",
"symbol_denom": "UMEE",
"exponent": 6,
"enable_msg_lend": true,
"enable_msg_borrow": true,
"blacklist": false
}
]
}`)
Expand Down
16 changes: 9 additions & 7 deletions x/leverage/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func GetCmdWithdrawAsset() *cobra.Command {
cmd := &cobra.Command{
Use: "withdraw-asset [lender] [amount]",
Args: cobra.ExactArgs(2),
Short: "Withdraw a specified amount of a loaned supported asset",
Short: "Withdraw a specified amount of a supplied asset",
RunE: func(cmd *cobra.Command, args []string) error {
if err := cmd.Flags().Set(flags.FlagFrom, args[0]); err != nil {
return err
Expand Down Expand Up @@ -175,7 +175,7 @@ func GetCmdRepayAsset() *cobra.Command {
cmd := &cobra.Command{
Use: "repay-asset [borrower] [amount]",
Args: cobra.ExactArgs(2),
Short: "Repay a specified amount of a borrowed supported asset",
Short: "Repay a specified amount of a borrowed asset",
RunE: func(cmd *cobra.Command, args []string) error {
if err := cmd.Flags().Set(flags.FlagFrom, args[0]); err != nil {
return err
Expand Down Expand Up @@ -248,9 +248,6 @@ func GetCmdLiquidate() *cobra.Command {
// NewCmdSubmitUpdateRegistryProposal returns a CLI command handler to generate
// or broadcast a transaction with a governance proposal message containing a
// UpdateRegistryProposal.
//
// NOTE: The "registry" provided in the proposal replaces the entire existing
// registry.
func NewCmdSubmitUpdateRegistryProposal() *cobra.Command {
cmd := &cobra.Command{
Use: "update-registry [proposal-file] [deposit]",
Expand All @@ -268,7 +265,7 @@ Where proposal.json contains:

{
"title": "Update the Leverage Token Registry",
"description": "Replace the supported tokens in the leverage registry.",
"description": "Update the uumee token in the leverage registry.",
"registry": [
{
"base_denom": "uumee",
Expand All @@ -279,7 +276,12 @@ Where proposal.json contains:
"kink_borrow_rate": "0.2",
"max_borrow_rate": "1.5",
"kink_utilization_rate": "0.2",
"liquidation_incentive": "0.1"
"liquidation_incentive": "0.1",
"symbol_denom": "UMEE",
"exponent": 6,
"enable_msg_lend": true,
"enable_msg_borrow": true,
"blacklist": false
},
// ...
]
Expand Down
Loading