ChorusOne/solido

[Anchor] Deposit/Withdraw

Closed this issue · 1 comments

Main issue: #438
Following the anchor-integration branch.

Deposit / Withdraw

  • Users should be able to deposit stSOL and get bSOL in return.
  • Keep user's shares of the pool based on the amount of bSOL they have. bSOL tokens can be abstracted in shares and calculated on-the-fly if they can be not pegged 1:1 with SOL.
  • To withdraw, users burn bSOL and get stSOL in return.
  • Keep exchange rate similar to lido's to calculate amount to be withdrawn
ruuda commented

Both deposit (#446) and withdraw (#460) are now implemented.