arrow-left

All pages
gitbookPowered by GitBook
1 of 2

Loading...

Loading...

Procurement

There is high demand for luxury items from each faction among the Empire’s elite, leading the Empire to post regular procurement announcements to officially import these luxuries.

circle-exclamation

The Black Market (DEX) will be unavailable for 30 minutes immediately after a procurement is created, and the Claim function will be unavailable for 1 hour after the procurement is created.

Procurement plans are created twice daily, at 00:00 UTC and 12:00 UTC. At these times, the exact posting time remains hidden from users. Instead, each procurement goes live at a random time slot, excluding 00:00 UTC, 06:00 UTC, 12:00 UTC, and 18:00 UTC.

Specifically, plans created at 00:00 UTC are posted at a random time between 01:00 and 11:00 UTC (covering 10 time slots). And plans created at 12:00 UTC are posted at a random time between 13:00 and 23:00 UTC (also covering 10 time slots).

The quantities and prices of these imported luxuries fluctuate. Since managing these variables is critical to controlling inflation in the black market, we have developed an Automated Token Distributor (ATD) and integrated it into the procurement system. The ATD automatically adjusts the daily procurement quantities and prices, helping stabilize $VALOR’s inflation.

ATD (Automated Token Distributor)

hashtag
Overview

The Automated Token Distributor (ATD) is a core component of VALOR's token distribution strategy. This document explains the ATD’s budget distribution mechanisms.

circle-info

The below models can be updated due to the balance update

hashtag
1. Budget Distribution

ATD’s budget distribution framework employs a probabilistic approach based on a standard normal distribution to allocate resources effectively across various tokens and market segments.

hashtag
Key Definitions and Variables

  • Normal Distribution (PDF): A probability distribution function used to allocate budgets fairly, with a mean of 0 and a standard deviation of 1.

  • Budget Allocation Ratios: Ratios are derived from the PDF to determine the portion of the total budget allocated to each token.

  • Total Budget: It is set at 110% of the inflow over 12 hours. It is rounded down to 9 decimal places, and the remainder is discarded.

hashtag
Process Explanation

  1. Total Budget Calculation:

    1. Case 1 (Accumulated Inflow < Accumulated Outflow):

      • The total budget is set at 110% of the inflow over the past 12 hours plus any carried-over budget

hashtag
2. Price Setting

The ATD's price-setting mechanism dynamically adjusts token prices around an ideal price to reflect market values.

hashtag
Key Definitions and Variables

  • Ideal Price (): The target price for the tokens.

  • Reference Price (): The market price of the token in Black Market.

  • Next Price (): The price of the token after adjustment.

circle-check

These variables will be initialized on the procurement creation

hashtag
Standard Deviation Calculation

The standard deviation is calculated as:

This calculation determines the range of price fluctuations around the ideal price , adjusting for market volatility.

hashtag
Price Determination Model

hashtag
Random Price Determination Model

This model dynamically calculates the next token price using a probability distribution function centered on .

Detailed Process

  1. Define Price Range:

    • Establish the effective price range for the next pricing cycle:

  2. Generate PDF:

hashtag
Data

Token
Ideal Price ($VALOR)

hashtag
Examples

hashtag
PDF and simulation when the ideal price is 2.28

hashtag
PDF and simulation when the ideal price is 50.4

Here, InflowInflowInflow is the inflow over the past 12 hours.

  • Case 2 (Accumulated Inflow > Accumulated Outflow):

    • The total budget is set at sum of each sSPL supply and ideal price.

      Btotal=∑S×PidlB_{total} = \sum S \times P_{idl}Btotal​=∑S×Pidl​
    • Maximum budget = (Accumulated Inflow - Accumulated Outflow) * 1.1

  • Random Factor Generation:

    • Generate a random number within the range of [-0.5, 0.5] from a normal distribution with a mean of 0 and a standard deviation of 1. This controls the variability in budget allocation.

    • Calculate the probability density p(xi)p(x_i)p(xi​) for each random factor xix_ixi​. This density influences how the budget is divided. The probability density function is:

      p(xi)=12πe−xi22p(x_i) = \frac{1}{\sqrt{2\pi}} e^{-\frac{x_i^2}{2}}p(xi​)=2π​1​e−2xi2​​
  • Budget Allocation:

    • Convert these densities into budget allocation ratios:

      Ri=p(xi)∑j=19p(xj)R_i = \frac{p(x_i)}{\sum_{j=1}^{9} p(x_j)} Ri​=∑j=19​p(xj​)p(xi​)​
    • Allocate the total budget to various tokens using these ratios:

      Bi=⌊Ri×Btotal×109⌋/109B_i = \left\lfloor R_i \times B_{total} \times 10^9 \right\rfloor / 10^9 Bi​=⌊Ri​×Btotal​×109⌋/109
  • Standard Deviation (σ\sigmaσ): Controls the spread of price values around PidlP_{idl}Pidl​.

    Create a normal distribution centered on PidlP_{idl}Pidl​ with the calculated σ\sigmaσ.

  • Calculate Area Under Curve:

    • Determine the total probability area under the PDF within the defined range:

      A=∫Pref×0.9Pref×1.4f(x) dxA = \int_{P_{ref} \times 0.9}^{P_{ref} \times 1.4} f(x) \, dxA=∫Pref​×0.9Pref​×1.4​f(x)dx
  • Generate Random Factor and Set Next Price:

    • Select a random value within the range [0, A], and determine the corresponding price using the inverse cumulative distribution function (CDF):

      Pnxt=f−1(r)P_{nxt} = f^{-1}(r)Pnxt​=f−1(r)
    • Here, f−1f^{-1}f−1 is the inverse function of the CDF, accurately determining the price corresponding to the random value rrr.

  • Final Quantity Adjustment:

    • Calculate the maximum quantity that can be purchased with the allocated budget:

      Qi=⌊BiPnxt⌋Q_i = \left\lfloor \frac{B_i}{P_{nxt}} \right\rfloorQi​=⌊Pnxt​Bi​​⌋
    • Round down to ensure accurate quantity calculation. (If Qi<1Q_i < 1Qi​<1, set QiQ_iQi​ to 1)

    • Adjust the final price using the actual quantity purchased:

    • The final price is rounded down to 3 decimal places.

  • Used Engine ($UE)

    35.9697

    Enhanced Bullet ($EB)

    57.8595

    Oil Lighter Case ($OLC)

    72.0052

    Btotal=⌊(1.1×Inflow)×109⌋/109B_{total} = \left\lfloor (1.1 \times Inflow) \times 10^9 \right\rfloor / 10^9 Btotal​=⌊(1.1×Inflow)×109⌋/109
    PidlP_{idl}Pidl​
    PrefP_{ref}Pref​
    PnxtP_{nxt}Pnxt​
    σ\sigmaσ
    σ=Pidl22ln⁡(10)\sigma = \sqrt{\frac{P_{idl}^2}{2 \ln(10)}}σ=2ln(10)Pidl2​​​
    PidlP_{idl}Pidl​
    PidlP_{idl}Pidl​
    Effective Price Range=[Pref×0.9,Pref×1.4]\text{Effective Price Range} = [P_{ref} \times 0.9, P_{ref} \times 1.4]Effective Price Range=[Pref​×0.9,Pref​×1.4]

    Voodoo Doll ($VD)

    5.5515

    Gold Teeth ($GT)

    6.8204

    JB Whiskey ($JBW)

    10.3219

    Canteen ($CT)

    11.2677

    G Badge ($GB)

    13.2835

    Holy Water ($HW)

    21.7118

    Pfinal=⌊BiQi×103⌋/103P_{final} = \left\lfloor \frac{B_i}{Q_i} \times 10^3 \right\rfloor / 10^3Pfinal​=⌊Qi​Bi​​×103⌋/103
    PfinalP_{final}Pfinal​
    Binew=Bi−(Qi×Pfinal)B_i^\text{new} = B_i - (Q_i \times P_{final})Binew​=Bi​−(Qi​×Pfinal​)