Open luciotato opened 4 years ago
It's not an issue for the production, because the minimum amount of NEAR the account can have is 0.01
due to state staking: https://nomicon.io/Economics/README.html#state-stake
Still it's good to address it, so proceed with the fix.
If the staking pool is created on an account with balance = 1_000_000_000_000, then total_stake_shares is 0, and several view functions start to panic
Note: I'm preparing a PR to handle this edge case
To reproduce, add this unit test: (the 4th parameter is the account initial balance)