Dynamic Pricing Model
Overview
This documentation outlines the dynamic contribution pricing model implemented in the raffle system. This model dynamically calculates the pricing of contributions to reach a predefined reserved threshold value.
Initial Parameters
The model relies on the following crucial parameters:
The average price of the NFT collection.
A random deciding variable to determine the Fractionalization value of the NFT within range - [10,20,30,40,50].
A random factor influencing the price increment within the nftPrice range.
The target value to be achieved through contributions.
The total number of contributions available for purchase for a raffle
Calculated as nftPrice / dynamicPriceRandom.
The Total Value Obtained from for the sold contributions.
Initial Contribution Price
The initial price of each contribution for particular raffle is determined by:
Dynamic Price Update
Subsequent contribution prices are dynamically updated based on the previous price and the dynamicPriceRandomValue:
This process iterates until the totalContributionValue reaches the reservedThresholdValue.
Upon reaching the reservedThresholdValue, the remaining contributions are set to the last calculated price, ensuring the precise target is achieved.
Calculating Total Contribution Value
The total value of all contributions is obtained by summing the price of each contribution:
Dynamic Pricing implemented
Output and Usage
The dynamic pricing model provides the following essential information to run a raffle:
reservedThresholdValue: The target value to be reached.
initialContributionPrice: The starting price of each contribution.
totalAvailableContributions: The total number of available contributions.
dynamicPriceRandomValue: The factor influencing the price increment.
contributions: An array containing the price of each contribution.
totalContributionsValue: The total value of all contributions.
The Dynamic Pricing Model provides a way, where the contribution price increases as more contributions are received, creating a sense of urgency and potentially increasing the total raffle pool.
Last updated