The logic to calculate `fundsFree`
Closed this issue · 5 comments
Here fundsReserved
is already plankToUnit.
But allTransferOptions.freeBalance
is not.
How can we do math between plankToUnit and plank?
This does not make sense.
I noticed that allTransferOptions.freeBalance
is already deducted by feeReserve
& edReserve
@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.