What you can do
| stake | Stake SOL for bbSOL | call DepositSol(lamports) on pool account 2aMLkB5p5gVvCwKkdSo5eZAL1WwhZbxezQr1wxiynRhq, or DepositSolWithSlippage to set a minimum output |
| unstake | Redeem bbSOL for SOL | call WithdrawSol(amount) on the pool account, or WithdrawSolWithSlippage; the withdrawal depends on the reserve holding enough SOL |
| hold-bbsol | Hold and transfer bbSOL | SPL Token transfer or transferChecked of mint Bybit2vBJGhPF52GBdNaQfUJ6ZpThSgHBobjWZpLPb4B between token accounts |
bbSOL is worth more SOL over time, so its price in SOL rises slowly. Use the pool ratio for accounting, not the DEX price.
Instant exits through DEX swaps can cost price impact. Direct withdrawals depend on the pool reserve.
Pool management and fees are set by the pool manager. Check the current fee terms on Bybit's pages before large deposits.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).bbSOL stake pool accountstaking on solana2aMLkB5p5gVvCwKkdSo5eZAL1WwhZbxezQr1wxiynRhq
write DepositSol(u64)
Solana instruction: deposit SOL into the bbSOL pool reserve and mint bbSOL at the current pool ratio. Argument: lamports to deposit.
write DepositSolWithSlippage
Solana instruction: same as DepositSol but fails if fewer than the minimum bbSOL is minted.
write WithdrawSol(u64)
Solana instruction: burn bbSOL and withdraw SOL from the reserve. Argument: bbSOL amount to burn.
write WithdrawSolWithSlippage
Solana instruction: same as WithdrawSol but fails if less than the minimum lamports are returned.
bbSOL token minttoken on solanaBybit2vBJGhPF52GBdNaQfUJ6ZpThSgHBobjWZpLPb4B
write transfer(amount: u64)
Standard SPL Token transfer of bbSOL between two token accounts (Tokenkeg program).
write transferChecked(amount: u64, decimals: u8)
SPL Token transfer that checks the decimals against the mint. Read the decimals from the mint account first.
read getTokenSupply(mint)
Total bbSOL supply and decimals from the mint account.
SanctumSpl stake pool programstaking on solanaSP12tWFxD9oJsVWNavTTBZvMbA6gkAmxtVgxdqvyvhY