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

Add metrics for Anker deposit and withdrawals #556

Closed enriquefynn closed 2 years ago

enriquefynn commented 2 years ago

Add and test metrics for deposits and withdrawals. Add 3 fields for each function:

enriquefynn commented 2 years ago

Hum.. Now thinking about this. This PR makes Anker writable, so its deposit/withdraw transactions have to be serialized just for metrics, before this wasn't the case.

ruuda commented 2 years ago

This PR makes Anker writable, so its deposit/withdraw transactions have to be serialized just for metrics, before this wasn't the case.

Hmm, yeah that’s a fair point. But we can always stop collecting metrics later on if it turns out to be a problem, we can’t (easily) go back and collect the data in hindsight.