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

delegated token #47

Open
moodysalem opened this issue May 11, 2024 · 2 comments · May be fixed by #49
Open

delegated token #47

moodysalem opened this issue May 11, 2024 · 2 comments · May be fixed by #49

Comments

@moodysalem
Copy link
Member

staker is low level and allows one-to-many staking

fungible staked token can be higher level but simpler--each address only delegates to a single address

@moodysalem moodysalem linked a pull request May 11, 2024 that will close this issue
@moodysalem
Copy link
Member Author

this could also serve the purpose of measuring each users' share of the total staked tokens over time, or that could be separate

if in the same contract:

  • other contracts can cheaply compute the percent of total staked tokens a user had over a period
  • but they must take custody at the beginning and end of the period anyway, or...
  • the contract should store a list of snapshots a la the staker

if we store a list of snapshots in this fungible staked token, then the share of total staked tokens over any period can be computed externally without taking custody of the staked token

@moodysalem
Copy link
Member Author

moodysalem commented May 16, 2024

actually think this still has to be separate. even if you know the seconds per total staked over a period, you don't know the balance of each user over some arbitrary period

@moodysalem moodysalem changed the title fungible staked token delegated token May 21, 2024
@EkuboProtocol EkuboProtocol deleted a comment Aug 2, 2024
@EkuboProtocol EkuboProtocol deleted a comment Aug 3, 2024
@EkuboProtocol EkuboProtocol deleted a comment Aug 3, 2024
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 a pull request may close this issue.

1 participant