After conducting the initial round of testing, we have identified the following issues:
Change payout_structure and prize_percentage types from double to integer from 0 to 100, to avoid rounding issues in UI
Change prize in winners event to integer as defined in contracts
When projecting contest manager creation events, we'll call a new helper in "protocol services" to get contract ticker and decimals using the token address. We'll store these new attributes in the contest manager projection (ticker string, decimals int)
Query results will convert prizes to the token denomination by dividing prize by decimals. Will also include the new attributes in the query results.
Project Owner
@Rotorsoft
@ianrowan can you suggest a good descriptive name for decimals? ... it sounds too generic
Description
After conducting the initial round of testing, we have identified the following issues:
payout_structure
andprize_percentage
types fromdouble
tointeger
from 0 to 100, to avoid rounding issues in UIprize
in winners event tointeger
as defined in contractsticker
anddecimals
using the token address. We'll store these new attributes in the contest manager projection (ticker string, decimals int)Project Owner
@Rotorsoft
@ianrowan can you suggest a good descriptive name for decimals? ... it sounds too generic