Fix divide by zero bug.
Bignum doesn't have a bool cast?
Merge pull request #36 from dooglus/better-staking-estimate

Better staking estimate