Overview

The wager system allows users to commit to high-stakes tasks by imposing rewards for success and penalties for failure. By taking on a wagered task, users are encouraged to challenge themselves, with the possibility of greater experience points (EXP) and currency gains for successful completion. However, failure results in a proportional loss, reinforcing accountability.

Wagered vs. Normal Task

Variables in the API

  1. exp: Experience points (EXP) gained upon successful task completion.
  2. coin: Currency gained upon successful task completion.
  3. penalty_exp_factor: The percentage of EXP lost if the task fails, applied as a factor of the experience gained.
  4. penalty_coin_factor: The percentage of currency lost if the task fails, applied as a factor of the currency gained.
  5. deadline: The maximum time allotted to complete the task before it is marked as failed.

Limitations and Usage

  1. Factors are capped at 100 (or 10,000%) of the exp and currency gained.
  2. Factors use floating-point numbers (e.g., 44.5, 12.9321).
  3. Factors cannot be negative; if subtraction is involved, the formula must ensure a non-negative result.

Formula

The multiplier for a wagered task is calculated as follows:

$$ \text{Multiplier} = e^{\frac{TC}{12}} \times \Sigma_{n}^{i=1}\frac{SD_{i}}{SL_{i}} \times \frac{n}{D_{TF}} $$