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

[Smart contracts] Remove allocation #2364

Closed
portuu3 opened this issue Aug 9, 2024 · 0 comments
Closed

[Smart contracts] Remove allocation #2364

portuu3 opened this issue Aug 9, 2024 · 0 comments
Assignees

Comments

@portuu3
Copy link
Collaborator

portuu3 commented Aug 9, 2024

Description
Remove allocation from staking contract.
Unstake process should be a 2 steps process:

  1. Call unstake function: amount will be locked for the locking period.
  2. Call withdraw function: can be called after the lock period.

Motivation
Avoid too many transactions to allocate to an escrow.

Implementation details
Remove allocation
Add a lock period duration variable.
Add a function to update the lock period duration variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants