ChorusOne / solido

Lido for Solana is a Lido-DAO governed liquid staking protocol for the Solana blockchain.
https://chorusone.github.io/solido/
GNU General Public License v3.0
101 stars 43 forks source link

Print historical stSOL prices in `anker show` #538

Closed ruuda closed 2 years ago

ruuda commented 2 years ago

Slice of the new output for a newly created instance:

stSOL reserve value:    Undefined; does Solido have nonzero deposits?
UST reserve address:    G3kFufhrZJGQ6jGNYPvLH84M81XH2Y9x9neKHwJxaD4B
UST reserve balance:    0.000000 UST
Historical stSOL price:
  Slot 0: 1.000000 UST per stSOL
  Slot 0: 1.000000 UST per stSOL
  Slot 0: 1.000000 UST per stSOL
  Slot 0: 1.000000 UST per stSOL
  Slot 0: 1.000000 UST per stSOL

(We still have to modify the maintainer to call FetchPoolPrice, I’ll do that next if you weren’t looking into it already @enriquefynn.)

ruuda commented 2 years ago

Ah yes, fixed, please take another look.