Major Pricing Formulas
Last updated
Last updated
In which:
User A’s Rewards (GEM) is the amount of rewards that will be allocated to User A. This should not depend on the timing of each user’s purchase
User A’s holding shares (shares) is the amount of shares that is being held by the User A
Total winner holding shares (shares) is the amount of shares that is being held by all participants in the poll
Total winner liquidity (GEM) is the total liquidity from the poll that will be used to reward the winners. In this case, the winning side will receive the total liquidity which will be calculated as:
Example:
User A transacted 3 times:
1st time: Buy 100 shares
2nd time: Sell 30 shares
3rd time: Buy more 200 shares
→ User A’s holding shares = 100 - 30 + 200 = 270 (shares)
Total holding shares from all Yes holders: 3000 shares
Total Yes liquidity = 600,000 GEM
Total No liquidity = 400,000 GEM
→ User A's Rewards =(600,000+400,000) 270 shares3000 shares=90,000 (GEM)
Max Profit: The potential payout that the user will receive if their position wins. Just show the value from the higher profit position.
Odd (%): The current probability of the YES event taking place.
In which:
SC’s total remaining shares (YES + NO) is the poll’s total amount of YES and NO shares that are being held by the smart contract.
SC’s total remaining shares (YES) is the poll’s total amount of only YES shares that are being held by the smart contract.
SC’s total remaining shares (NO) is the poll’s total amount of only NO shares that are being held by the smart contract.
Average Price Formula
Average price: The average price of the user’s holding shares for each position (Yes/No)
User Average price of YES shares: The average price of the user’s holding shares for each position (Yes/No)
User Average price of NO shares: The average price of the user’s holding shares for each position (Yes/No)
In which:
User's total purchase cost (Yes or No) is the user’s total cost to buy their Yes (or No) shares, and is calculated by the sum of all costs from all share purchase transactions in that poll.
User's total purchased shares (Yes or No) is total amount of shares that the user has purchased in that poll
Yes shares: The user’s current holding amount of Yes Shares
User’s holding shares (Yes or No) is the user’s current holding amount of YES (or NO) shares
User's holding sharesYES=User's total purchased sharesYES-User's total sold sharesYES
No shares: The user’s current holding amount of No Shares
User's holding sharesNO=User's total purchased sharesNO-User's total sold sharesNO
Column Name
Data Type
Description
poll_id
string
Unique identifier for the prediction poll
question
string
The question or statement being predicted
startTime
datetime
The start time of the prediction poll
endTime
datetime
The end time of the prediction poll
totalPoolSize
number
The total amount of funds in the poll's pool
yesPoolSize
number
The amount of funds in the "Yes" side of the poll
noPoolSize
number
The amount of funds in the "No" side of the poll
currentYesPrice
number
The current price of a share for the "Yes" side
currentNoPrice
number
The current price of a share for the "No" side