Skip to main content

Calculate

Table of contents

Functions

Functions

calculateCardinality

calculateCardinality(bitRangeSize, totalSupply, decimals): number

Parameters

NameType
bitRangeSizeBigNumberish
totalSupplyBigNumberish
decimalsBigNumberish

Returns

number

Defined in

calculate/calculateCardinality.ts:6


calculateFractionOfPrize

calculateFractionOfPrize(tierTotalPrizes, tierValue): BigNumber

Parameters

NameType
tierTotalPrizesBigNumberish
tierValueBigNumberish

Returns

BigNumber

Defined in

calculate/calculateFractionOfPrize.ts:4


calculateNormalizedBalancePicksFromTotalPicks

calculateNormalizedBalancePicksFromTotalPicks(numberOfPicks, normalizedBalance): BigNumber

Parameters

NameType
numberOfPicksBigNumberish
normalizedBalanceBigNumberish

Returns

BigNumber

Defined in

calculate/calculateNormalizedBalancePicksFromTotalPicks.ts:3


calculateNumberOfMatches

calculateNumberOfMatches(pickNumber, winningRandomNumber, matchCardinality, bitRangeSize): number

Parameters

NameType
pickNumberBigNumberish
winningRandomNumberBigNumberish
matchCardinalitynumber
bitRangeSizenumber

Returns

number

Defined in

calculate/calculateNumberOfMatches.ts:5


calculateNumberOfPrizesForTierIndex

calculateNumberOfPrizesForTierIndex(bitRangeSize, tierIndex): number

Parameters

NameType
bitRangeSizenumber
tierIndexnumber

Returns

number

Defined in

calculate/calculateNumberOfPrizesForTierIndex.ts:1


calculatePick

calculatePick(address, pick): Pick

Parameters

NameType
addressstring
pickBigNumberish

Returns

Pick

Defined in

calculate/calculatePick.ts:6


calculatePicks

calculatePicks(address, picks): Pick[]

Parameters

NameType
addressstring
picksBigNumber[]

Returns

Pick[]

Defined in

calculate/calculatePicks.ts:6


calculatePicksFromAverageTotalSuppliesBetween

calculatePicksFromAverageTotalSuppliesBetween(totalPicks, ticketPrimaryTotalSupply, otherTicketsTotalSupply): number | undefined

Parameters

NameType
totalPicksnumber
ticketPrimaryTotalSupplyBigNumber
otherTicketsTotalSupplyBigNumber

Returns

number | undefined

Defined in

calculate/calculatePicksFromAverageTotalSuppliesBetween.ts:7


calculatePrizeForTierPercentage

calculatePrizeForTierPercentage(tierIndex, tierValue, bitRangeSize, prizeAmount): BigNumber

Parameters

NameType
tierIndexnumber
tierValueBigNumberish
bitRangeSizenumber
prizeAmountBigNumber

Returns

BigNumber

Defined in

calculate/calculatePrizeForTierPercentage.ts:6


calculateTierIndexFromMatches

calculateTierIndexFromMatches(matchCardinality, numberOfMatches): number

Parameters

NameType
matchCardinalitynumber
numberOfMatchesnumber

Returns

number

Defined in

calculate/calculateTierIndexFromMatches.ts:1 es.ts#L1)