tangle
tangle copied to clipboard
[TASK] Tangle Liquid Staking Pallet
Task: Develop Tangle Liquid Staking Pallet
Objective: Create a new pallet for Tangle that allows users to deposit TNT tokens, stake them with selected operators, and receive Tangle LST in return. This will enable users to earn staking rewards while maintaining liquidity through LST tokens and allow TangleLST to be used in restaking pallet.
Features
-
Stake Tokens with Validators:
- Enable users to select validators from a list of available operators.
- Stake the deposited TNT tokens with the chosen operator on behalf of the user.
- Mint LST tokens equivalent to the staked TNT tokens.
- Transfer LST tokens to the user.
-
Unstake Tokens:
- Allow users to initiate an unstaking process.
- Burn the corresponding amount of LST tokens.
- Queue the TNT tokens for unstaking with the operator.
-
Withdraw Unstaked Tokens:
- Enable users to withdraw their unstaked TNT tokens once the unstaking period is over.
-
Rewards Distribution:
- Allow users to claim staking rewards to caller accounts
- Update LST token balances to reflect accrued rewards.
TBD
- should every validator combo have a specific tangleLst token?