Skip to content

Commit

Permalink
fix cli defaults (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
nope-finance authored Sep 24, 2023
1 parent 8674673 commit 77dc842
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion token-lending/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ fn main() {
.value_name("INTEGER_PERCENT")
.takes_value(true)
.required(false)
.default_value("90")
.help("Max utilization rate: [0, 100]"),
)
.arg(
Expand Down Expand Up @@ -495,6 +496,7 @@ fn main() {
.value_name("INTEGER_PERCENT")
.takes_value(true)
.required(false)
.default_value("5")
.help("Maximum bonus a liquidator gets when repaying part of an unhealthy obligation: [0, 100]"),
)
.arg(
Expand All @@ -514,6 +516,7 @@ fn main() {
.value_name("INTEGER_PERCENT")
.takes_value(true)
.required(false)
.default_value("65")
.help("Loan to value ratio at which an obligation can be liquidated for the max bonus: (liquidation_threshold, 100]"),
)
.arg(
Expand Down Expand Up @@ -553,6 +556,7 @@ fn main() {
.value_name("INTEGER")
.takes_value(true)
.required(false)
.default_value("100")
.help("super max borrow APY: min <= optimal <= max <= super_max"),
)
.arg(
Expand Down Expand Up @@ -602,6 +606,7 @@ fn main() {
.value_name("INTEGER_PERCENT")
.takes_value(true)
.required(false)
.default_value("20")
.help("Amount of interest spread going to fee receiver: [0, 100]"),
)
.arg(
Expand Down Expand Up @@ -630,7 +635,8 @@ fn main() {
.validator(is_parsable::<u64>)
.value_name("INTEGER")
.takes_value(true)
.required(true)
.required(false)
.default_value("0")
.help("Added borrow weight bps"),
)
.arg(
Expand All @@ -640,6 +646,7 @@ fn main() {
.value_name("RESERVE_TYPE")
.takes_value(true)
.required(false)
.default_value("Regular")
.help("Reserve type"),
)
)
Expand Down Expand Up @@ -972,6 +979,7 @@ fn main() {
.value_name("RESERVE_TYPE")
.takes_value(true)
.required(false)
.default_value("Regular")
.help("Reserve type"),
)
)
Expand Down

0 comments on commit 77dc842

Please sign in to comment.