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

LST Staking generic contract (StakingValidator for Starknet first) #304

Open
7 tasks
MSghais opened this issue Nov 27, 2024 · 6 comments
Open
7 tasks

LST Staking generic contract (StakingValidator for Starknet first) #304

MSghais opened this issue Nov 27, 2024 · 6 comments
Labels
blocked/waiting Blocked by an issue or waiting something cairo Cairo smart contract complex hardcore beast mode Complex hardcore beast mode features Build new features

Comments

@MSghais
Copy link
Member

MSghais commented Nov 27, 2024

Description

LST factory and StakingValidator factory fully Open source from day 1.

Basically mint an aX token, starting with the aSTRK one, aETH and aBTC coming later.

Check the Docs of the Starknet Staking contract:
https://docs.starknet.io/staking/overview/

StakingValidator have a main address for the validator (AFK), but can delegate to another validators.
We can add a validator AFK bonus in the contract for future plan.

  • Create a Factory contract to stake LST that call a StakingValidator component.
  • Create a StakingValidator interface (can be one for Starknet first, but gonna implement and deploy another for ETH & BTC)
  • StakingValidator can stake deposit to the main validator (AFK) with a bonus points, or every validators.
  • Access control
  • Add Upgradeable contract
  • Deposit and withdraw fees with set functions and admin check
  • Set functions for Staking validator address
@MSghais MSghais added features Build new features cairo Cairo smart contract ODHack10 ODHack10 issues complex hardcore beast mode Complex hardcore beast mode labels Nov 27, 2024
@casweeney
Copy link
Contributor

Tackling this issue:

  • I will first checkout Starknet staking contract docs
  • I will study other LST smart contract implementation,
  • I will implement it using Cairo

@Joe-joe25
Copy link

Joe-joe25 commented Nov 27, 2024

@MSghais can i be assigned this, I'll like to work on it

@Abeeujah
Copy link

Hi, I'm a Cairo Developer, ready to get to work on this,

  • I'd go through the Staking Contract Docs, to map out the architecture of the program, as it would influence the StakingValidator Interface,
  • For access control and upgradeability, I'd use the openzepellin components, and then ensure the deposit fees and withdraw fees have the admin check,
  • and also add a function to set the staking validator address.

@mimisavage
Copy link

Let me handle this issue!

@Supa-mega
Copy link

May I pick this up? first time contributor

@casweeney casweeney mentioned this issue Nov 30, 2024
@MSghais MSghais added the blocked/waiting Blocked by an issue or waiting something label Dec 4, 2024
@blessingbytes
Copy link

can i work on this

ETA 24hrs

@MSghais MSghais removed the ODHack10 ODHack10 issues label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/waiting Blocked by an issue or waiting something cairo Cairo smart contract complex hardcore beast mode Complex hardcore beast mode features Build new features
Projects
None yet
Development

No branches or pull requests

7 participants