Skip to content
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

Merged
merged 3 commits into from
Apr 13, 2023
Merged

Audit/prepare nftmarket #489

merged 3 commits into from
Apr 13, 2023

Conversation

mkXultra
Copy link
Contributor

No description provided.

@mkXultra mkXultra self-assigned this Apr 13, 2023
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)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with code review.

  1. 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.
  2. The automatic refinancing flag has been added with the "-r" argument. This is also correct and should help users quickly turn on this feature.
  3. 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)

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.

@mkXultra mkXultra merged commit 45aefd8 into newDevelop Apr 13, 2023
@mkXultra mkXultra deleted the audit/prepare_nftmarket branch April 13, 2023 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant