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

Add minimal unlock block height in popup of nervos dao #505

Open
Keith-CY opened this issue Dec 25, 2023 · 0 comments
Open

Add minimal unlock block height in popup of nervos dao #505

Keith-CY opened this issue Dec 25, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@Keith-CY
Copy link
Member

Visit https://explorer.nervos.org/nervosdao

When the icon of safe deposit box in a withdraw_phrase_1 transaction is hovered, the popup shows as follows.

image

It includes

  • Deposit capacity
  • Compensation to be issued
  • Compensation period
  • Compensation time

Along with the withdraw_phrase_1 performed, the timing of unlock is determined and can be prompted in the popup.

As mentioned at https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0023-dao-deposit-withdraw/0023-dao-deposit-withdraw.md#withdraw-phase-2

When the asset is deposited at block_a, and withdrawn at block_b, the minimal block number, block_c, to unlock conforms to

n = Math.ceil((block_b - block_a)/180)
block_c = block_a + 180 * n

By doing so, users are indicated when to perform the withdraw_phrase_2 on the Explorer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants