cosmosquad-labs / squad

Apache License 2.0
6 stars 3 forks source link

fix: calculation bug of liquidstaking voting_power #346

Closed dongsam closed 2 years ago

dongsam commented 2 years ago

Description

Fixed a bug that missed the calculation of the voting power of the pool coin that was not in the user's balance when calculating the liquid stacking voting power at SetLiquidStakingVotingPowers

Fixed to create a bTokenSharePerPoolCoinMap for all pool coins before calculating the voting power for user's farming positions

References


Before we can merge this PR, please make sure that all the following items have been checked off. If any of the checklist items are not applicable, please leave them but write a little note why.