-
Notifications
You must be signed in to change notification settings - Fork 80
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
Print Validator Balance Information #2537
Comments
Also add to
|
I think it would be best instead to just add:
What do you think? @felipemadero |
I believe that depends on the remaining balance being not zero @meaghanfitzgerald |
if the balance is 0, wont it return 0? |
yes, so the user losses the hint because he will see 0 remaining time. |
@felipemadero I added that to the list as the 5th item |
@meaghanfitzgerald there is no way to access price per second for L1 validator as per @StephenButtolph. we need to wait until this cost is exposed via |
the price returned by platform.getFeeState is not what we are looking for here? |
it's PChain gas price not L1 |
first item is done via https://github.com/ava-labs/avalanche-cli/blob/main/sdk/validator/validator.go#L46 |
Goal
Help clarify how to maintain a validator's balance whenever a new validator is created by printing helpful information.
Assumptions and Scope
Network creators and independent validators may not implicitly understand that a validator's
Balance
needs to be watched and maintained >0 in order to avoid an interruption in validation of their L1.Requirements
The requirements for this issue are listed in the order they should be completed. Each list item should have its own PR to simplify code review:
sdk function that takes a given validationID and returns the current balance.
sdk function that takes a balance, multiplies it by the current fee rate to return the "remaining validation time" denominated in seconds.
avalanche validator list
to include a new column that includestime remaining
denominated in days by utilizing the sdk function above.avalanche validator getBalance
to include a new column that includestime remaining
denominated in days by utilizing the sdk function above.during
avalanche validator increaseBalance
, print the output ofavalanche validator getBalance
which includes the estimated time remaining (after the fourth item in this list is completed). Also print the price to validate for 1 day at the current fee rate.At the current fee rate, _x_ AVAX is spent per day per L1 validator. How much AVAX would you like to increase your validator's balance by?
on the successful execution of
avalanche blockchain deploy <exampleL1>
, before termination, print the user the output ofavalanche validator list <exampleL1>
so they can view the current balance and time remaining per validator for their new network. Follow this list with a printed message that says:on the successful execution of
avalanche blockchain addValidator <exampleL1>
, before termination, print the user the output ofavalanche validator getBalance
so they can view the current balance and time remaining for their new validator. Follow this list with a printed message that says:Open Questions
The text was updated successfully, but these errors were encountered: