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

[Liquidity Staking] Issue 1: Stake and Unstake Mechanisms #28

Open
polarker opened this issue Nov 15, 2024 · 3 comments · May be fixed by #43
Open

[Liquidity Staking] Issue 1: Stake and Unstake Mechanisms #28

polarker opened this issue Nov 15, 2024 · 3 comments · May be fixed by #43
Assignees
Labels

Comments

@polarker
Copy link
Member

Parent issue: #27

Objective:

Develop the core staking and unstaking functionalities for the liquidity staking protocol in Ralph.

Description:

This issue focuses on enabling users to deposit assets into a liquidity pool and withdraw them. It includes implementing conditions or penalties for early unstaking while ensuring secure and efficient interactions.

Tasks:

  1. Create a staking function that allows users to deposit assets into the liquidity pool.
  2. Develop an unstaking function to withdraw staked assets, applying penalties for early withdrawals if applicable.
  3. Ensure the code adheres to Ralph’s modular and efficient architecture.
  4. Write unit tests to validate staking and unstaking functionalities, including edge cases (e.g., unstaking before and after the designated time).

Acceptance Criteria:

  • Users can stake assets into the pool successfully.
  • Users can unstake and withdraw assets with correct penalties applied.
  • The functions are efficient, secure, and modular.
  • A comprehensive test suite ensures functionality and resilience.
@polarker polarker changed the title Liquidity Staking Issue 1: Stake and Unstake Mechanisms [Liquidity Staking] Issue 1: Stake and Unstake Mechanisms Nov 15, 2024
@ikemHood
Copy link

I believe this issue is going to give me a chance to flex what i've learnt so far with ralph 😁. Waiting on ODHack10 🤌🏻

@polarker
Copy link
Member Author

I believe this issue is going to give me a chance to flex what i've learnt so far with ralph 😁. Waiting on ODHack10 🤌🏻

Awesome. Have fun coding!

@ikemHood
Copy link

🚀

olisaagbafor added a commit to olisaagbafor/alephium-ralph-example that referenced this issue Dec 19, 2024
- Add time-weighted reward multipliers to existing staking contract
- Implement pool performance adjustments
- Add compound rewards functionality
- Add comprehensive test coverage
- Integrate with PR alephium#28's staking system

Depends on alephium#28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants