polkadot-cloud/polkadot-staking-dashboard

The logic to calculate `fundsFree`

Closed this issue · 5 comments

@rossbulat Please review this.
This is from my understanding. I want to know if I'm on the correct way
#2075

Thanks @frankli-dev, there was an issue I identified regarding the reserved value thanks to your investigation.

fundsFree and freeBalance are 2 different values. fundsFree does not take into consideration other locks on the account E.g. OpenGov locks, whereas freeBalance only takes into consideration the staking lock. This is indeed confusing and could well be improved.

Fixed in #2075