question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overview

To keep the v1 delegation flow simple, we can use a similar flow to /send-money.

The validator whitelist can send users to /staking/stake/<validator_name>/, and we’ll prepopulate the validator.

We should also display the users current delegated balance, the validator(s) they’ve delegated to, and their unclaimed rewards on /staking.

Acceptance Criteria

On /staking/stake

  • If there is no validator name in the /staking/stake URL, the user can enter the validator name
  • A link with the validator name in it /staking/stake/<validator_name> prepopulates the validator name
  • Users can enter the relevant details to initiate a delegation TX to the chosen validator
    • Amount of NEAR to delegate
  • User sees available balance they can delegate with
    • “Available Balance” = available balance + lockup balance
  • User cannot delegate more than “Available Balance”
  • User can successfully delegate with NEAR in lockup contract

On /staking

  • Users can view their total delegated balance
  • Users can view their unclaimed rewards
  • Users can view each validator they’ve delegated to
    • Validator name
    • Amount delegated
    • Unclaimed rewards

Design Deliverables

UI Design: https://www.figma.com/file/oy0wBFxW5H8nTFZtFaMZpK/753-Delegate-v1?node-id=1162%3A795

Interactive Prototype: https://www.figma.com/proto/oy0wBFxW5H8nTFZtFaMZpK/753-Delegate-v1?node-id=1162%3A795&scaling=scale-down

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
kcole16commented, Sep 30, 2020

@Patrick1904

Total amount staked

  • NEAR tokens currently staked with validators. These tokens are accumulating rewards. To access these tokens, you must first unstake and then withdraw them.

Unclaimed rewards

  • Rewards that have been earned, but not withdrawn. Unclaimed rewards are automatically restaked, which means your “Total Amount Staked” automatically increases over time, and your rewards are compounding.

Available for withdrawal

  • These tokens have been unstaked, and are ready to be withdrawn.

Pending release

  • These tokens have been unstaked, but are not yet ready to withdraw. Tokens are ready to withdraw 36 to 48 hours after unstaking.

Validator fee

  • This is the fee paid to the validator to stake on your behalf. This fee is only charged on your rewards.
1reaction
heycorwincommented, Aug 18, 2020

As we discussed at the end of last week, I’m going to scope the UI down for each individual issue within the delegation epic, so that we can build this out in an iterative fashion. I’ll be moving the resources provided in my last comment to #722, where a “complete” version of the UI will live, representative of the Epic in its final state.

The following UI is limited to this issue, and only allows the user to enter a known validator, and stake with that validator:

https://www.figma.com/file/oy0wBFxW5H8nTFZtFaMZpK/753-Delegate-v1?node-id=1162%3A795

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control Group APIs and Delegation - Systemd
Delegation is a concept we inherited from cgroup v2, but we expose it on cgroup v1 too. Delegation means that some parts of...
Read more >
Method: admin.contacts.v1.users.delegates.create
Creates one or more delegates for a given user. HTTP request. POST https://admin.googleapis.com/admin/contacts/v1/{parent=users/*}/delegates.
Read more >
Class Delegate | Google.Apis.Gmail.v1
Settings for a delegate. Delegates can read, send, and delete messages, as well as view and add contacts, for the delegator's account.
Read more >
Delegate v1 cgroup controller permissions - spinics.net
I have a service which runs as an unprivileged user (User=foo) with delegated cgroup (Delegate=true) that wants to use the "memory" and ...
Read more >
AMA DELEGATE - V1-6674, V1-6674 - Marco Promos
AMA DELEGATE' badge ribbons ship FAST at no extra charge! 1000's of titles as low as 17¢ each. Low minimum order. Get the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found