Skip to content

Commit 3f2189b

Browse files
committed
feat: beets-lst stake function
1 parent 69f8c90 commit 3f2189b

13 files changed

+2444
-64
lines changed

projects/beets-lst/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
.vscode

projects/beets-lst/README.md

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# beets-lst
22

3-
Integration with beets.fi Sonic liquid staking module (stS)
3+
Integration with beets.fi Sonic liquid staking module (stS). The integration supports staking S into stS and unstaking back to S. The unstaking is a 2-step process: first undelegate, then claim Sonic after 14 days.
44

55
## Supported Networks
66

@@ -9,16 +9,15 @@ Integration with beets.fi Sonic liquid staking module (stS)
99
## Common Tasks
1010

1111
1. Basic Operations
12-
- "Execute example operation with 100 USDT in @beets-lst on Ethereum network"
13-
- "Run example transaction with 50 USDC in @beets-lst"
14-
- "Perform example action with 1000 tokens in @beets-lst"
1512

16-
2. Information Queries
17-
- "Show my current status in @beets-lst"
18-
- "Check my balance in @beets-lst"
19-
- "Get example statistics from @beets-lst"
20-
- "Calculate expected results for my position in @beets-lst"
13+
- "Stake 100 S in @beets-lst"
14+
- "Unstake 100 stS from @beets-lst"
15+
- "Unstake all of my stS from @beets-lst"
16+
- "Withdraw all of my stS from @beets-lst"
2117

18+
2. Information Queries
19+
- "Get my stS balance in @beets-lst"
20+
- "How long before I can withdraw S from @beets-lst?"
2221

2322
## Available Functions
2423

@@ -33,3 +32,11 @@ yarn add @heyanon/beets-lst
3332
## Usage
3433

3534
Example usage will be added here.
35+
36+
## Contracts and transactions
37+
38+
- Liquid staking contract: https://sonicscan.org/address/0xe5da20f15420ad15de0fa650600afc998bbe3955
39+
- Stake Sonic (`deposit`): https://sonicscan.org/tx/0x19545670b77c9ab7e1eabdab292c1aa9d0abd6e11777ab3147f343cb900c728b
40+
- Initiate unstake (`undelegateMany`): https://sonicscan.org/tx/0xb64c4fd6ae4667a3b7ce9d6ba9679fbd2c591173a0895a5616adc3b039b10c27
41+
- Withdraw Sonic (`withdraw`): https://sonicscan.org/tx/0xb93b07384ccbace4236d07fac46874039821c84707f69fbee101e9ae5506f470
42+
- Claim rewards (`claimRewards`): https://sonicscan.org/tx/0xf46de5d07b1feeaf132e58ae0a87075a2cf9308698ab4837c76c0a2b7dd62aa5

projects/beets-lst/abis/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './stsAbi';

0 commit comments

Comments
 (0)