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

Delegation and staking will be the dominant uses of NEAR until at least Phase 2, and potentially longer (as we see more apps deployed to mainnet). We currently do not have a user-friendly way to delegate, and also want to maximize the utility of the wallet pre-popular apps (and post).

The first version of this can be very similar to Matt’s example delegation app: https://github.com/near-examples/delegation-app, as a separate /delegation route.

Stories

As a user, I want to view all of the available validators, their fees, and their staking records, so I can understand my options of who to delegate to.

As a user, I want to delegate in as few steps as possible, so I can easily earn yield on my NEAR.

As a user, I want to clearly view my delegation rewards, so I can understand the profit I’ve earned from delegating.

As a user, I want to undelegate in as few steps as possible, and understand how long it will take to undelegate, so I can easily unfreeze my NEAR.

As a user, I want to view my currently delegated balance and who it is delegated to, so I can understand the breakdown of my NEAR that is active and delegated.

Flows

Flow Diagram: https://whimsical.com/73BmnJaf4H3nM717vYZrhP@7YNFXnKbYki95BSqaSZPZ

Delegate Flow

  1. User navigates to “Delegation” page
  2. User views a list of available validators a. Name of validator b. Fee (% of reward) c. URL
  3. User clicks “Delegate” button next to validator they want to delegate to
  4. User enters amount to delegate and clicks “Submit”
  5. User must enter their account name, then select “Confirm” to send TX a. If successful, user receives message “You’ve successfully delegated <amount> to <validator name>”
  6. User views delegated amount, validator name, and earned NEAR on the “Delegation” page

Undelegate Flow

  1. User navigates to “Delegation” page
  2. User selects “Undelegate” button
  3. User must enter their account name, then select “Confirm” to send TX a. If successful, user receives message “You’ve successfully undelegated <amount>. Your NEAR will be unlocked in <time>”

NOTES

Matt’s example delegation app: https://github.com/near-examples/delegation-app

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bowenwang1996commented, Jul 8, 2020

For now we can require that they must create the staking pool through the factory deployed by NEAR foundation. In the future we can think about how to do contract auditing.

1reaction
mattlockyercommented, Jul 8, 2020

Biggest issue will be maintaining:

  • list of validators
  • stats on validators
  • anything historical, query support etc…

V0 for OUR wallet should definitely be a list that we control. We could follow @jimmy3dita design for Stake Wars. A repo with list and validators can submit PRs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Delegate Effectively: 9 Tips for Managers - HBS Online
Delegation refers to the transfer of responsibility for specific tasks from one person to another. From a management perspective, delegation ...
Read more >
Delegation - Wikipedia
Delegation is the assignment of authority to another person (normally from a manager to a subordinate) to carry out specific activities. It is...
Read more >
To Be a Great Leader, You Have to Learn How to Delegate Well
Regardless of your preferred methodology for delegation, here are four strategies that I've found work for leaders at all levels.
Read more >
Delegation Definition & Meaning - Merriam-Webster
The meaning of DELEGATION is the act of empowering to act for another. How to use delegation in a sentence. What Is a...
Read more >
How to delegate effectively: 10 tips for managers - Asana
Delegation is the act of redirecting tasks and initiatives to other team members. You might delegate work to distribute responsibility more ...
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