utils.calculatePrize

Calculates the size of the prize.

utils.calculatePrize
Parameters
balance (bignumber) The current Pool#balance
accountedBalance (bignumber) The current Pool#accountedBalance
feeFraction (bignumber) Fraction represented as fixed point 18 (as in wei)

utils.calculatePrizeEstimate

Calculates the estimated prize

utils.calculatePrizeEstimate
Parameters
balance (bignumber) The current Pool#balance
prize (bignumber) The current Pool prize as calculated by @see utils.calculatePrize
blocksFixedPoint18 (bignumber) The remaining number of blocks expressed as a fixed point 18 number (like ether denominated in wei)
supplyRatePerBlock (bignumber) The fraction that is accrued per block
Returns
bignumber: The projected prize

utils.calculatePrizeSupplyRate

Calculates the supply rate per block less the fee fraction

utils.calculatePrizeSupplyRate
Parameters
supplyRatePerBlock (bignumber) The supply rate per block as returned by Pool#supplyRatePerBlock
feeFraction (bignumber) The draw fee fraction as returned by Pool#getDraw

utils.toBN

Converts a value to a bignumber instance.

utils.toBN
Parameters
value ((string | bignumber)) The value to be converted to a bn.js bignumber instance

constants.WeiPerEther

constants.WeiPerEther

constants.BlocksPerDay

constants.BlocksPerDay