-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audit/prepare nftmarket #489
Conversation
cmd.Flags().String(FlagMinimumDepositRate, "0.1", "min minimum deposit rate") | ||
cmd.Flags().Uint64(FlagMinimumBiddingPeriodHours, 1, "min minimum deposit rate") | ||
cmd.Flags().String(FlagMinimumDepositRate, "0.1", "minimum deposit rate") | ||
cmd.Flags().Uint64(FlagMinimumBiddingPeriodHours, 1, "minimum bidding period") | ||
cmd.Flags().BoolP(FlagAutomaticRefinancing, "r", false, "automatic refinancing") | ||
flags.AddTxFlagsToCmd(cmd) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with code review.
- In the code patch, flag MinimumDepositRate and MinimumBiddingPeriodHours have been changed from "min minimum deposit rate" to "minimum deposit rate" and "minimum bidding period". This change is correct as it more accurately describes what the flags represent.
- The automatic refinancing flag has been added with the "-r" argument. This is also correct and should help users quickly turn on this feature.
- Finally, the tx flags have been added to the cmd which is also correct and will help users more easily customize their transaction.
Overall, this code patch looks correct and should not have any bug risks. However, if you are looking for improvement suggestions, you could add additional flags or parameters to further customize the transaction.
cmd.Flags().String(FlagMinimumDepositRate, "0.1", "min minimum deposit rate") | ||
cmd.Flags().Uint64(FlagMinimumBiddingPeriodHours, 1, "min minimum deposit rate") | ||
cmd.Flags().String(FlagMinimumDepositRate, "0.1", "minimum deposit rate") | ||
cmd.Flags().Uint64(FlagMinimumBiddingPeriodHours, 1, "minimum bidding period") | ||
cmd.Flags().BoolP(FlagAutomaticRefinancing, "r", false, "automatic refinancing") | ||
flags.AddTxFlagsToCmd(cmd) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code patch modifies the command line interface (CLI) flags for the tx listing
command in some blockchain-related code. Specifically, it changes the flag description for FlagMinimumDepositRate
to "minimum deposit rate" from "min minimum deposit rate", and changes the name of the second parameter for the same flag from "min minimum deposit rate" to "minimum bidding period". It also adds a default value of "uguu" for FlagBidToken
.
As for bugs or improvement suggestions, without more context or information about the purpose of these flags and their usage, it's difficult to provide specific feedback. However, one potential suggestion could be to add documentation that describes the expected range of values for FlagMinimumDepositRate
, as this might affect how users interact with the command. Additionally, depending on the intended use case, it might be worth considering renaming the FlagAutomaticRefinancing
flag to better reflect its behavior.
No description provided.