Mathematical Framework

This section formalizes the reward and slashing functions, the settlement logic and presents a high-level simulation for parameter selection.

4.1 Performance Metric#

Let Pi(t)P_i(t) denote the portfolio value of trader ii's strategy at time tt, as reported by the oracle.

Define the periodic return over [t,  t+Δ][t,\; t+\Delta] as:

ri(t,Δ)=Pi(t+Δ)Pi(t)Pi(t)r_i(t,\Delta) = \frac{P_i(t+\Delta) - P_i(t)}{P_i(t)}

We assume the protocol operates in discrete settlement periods of length Δ\Delta (e.g., one week or one month).

Let rir_i denote the return over the current period and rˉi\bar{r}_i the benchmark return (possibly zero or an index).

Define the excess return:

r~i=rirˉi\tilde{r}_i = r_i - \bar{r}_i

4.2 Reward and Penalty Function#

The amount of LAMA transferred between the trader and the long/short pools depends on r~i\tilde{r}_i.

Let:

  • BiB_i — the trader's staked bond
  • α\alpha — scaling coefficient capturing the maximum payout rate
  • β\beta — slashing coefficient

The protocol uses a piecewise linear function:

Rewardi=max(0,  αr~i)×Bi\text{Reward}_i = \max(0,\; \alpha \cdot \tilde{r}_i) \times B_i Slashi=max(0,  βr~i)×Bi\text{Slash}_i = \max(0,\; -\beta \cdot \tilde{r}_i) \times B_i

Thus positive excess returns trigger a reward equal to αr~iBi\alpha \tilde{r}_i B_i (distributed to the long pool), while negative excess returns result in a slash of βr~iBi\beta |\tilde{r}_i| B_i (distributed to the short pool).

:::info Parameter Design The coefficients α\alpha and β\beta can be calibrated to balance reward potential and risk. Typically αβ\alpha \leq \beta to discourage reckless risk-taking. :::

4.3 Settlement Function for Investors#

For each agent ii, define the long pool size LiL_i and short pool size SiS_i before settlement.

When r~i>0\tilde{r}_i > 0 (agent outperforms):

  • Total reward Ri=αr~iBiR_i = \alpha \tilde{r}_i B_i is added to the long pool
  • Amount RiR_i is deducted from the short pool (pro rata from investors)

When r~i<0\tilde{r}_i < 0 (agent underperforms):

  • Penalty Pi=βr~iBiP_i = \beta |\tilde{r}_i| B_i is transferred from the trader's stake to the short pool
  • Same amount is deducted from the long pool

After settlement the net pool sizes become:

Li=Li+1{r~i>0}Ri1{r~i<0}PiL_i' = L_i + \mathbb{1}_{\{\tilde{r}_i>0\}} R_i - \mathbb{1}_{\{\tilde{r}_i<0\}} P_i Si=Si1{r~i>0}Ri+1{r~i<0}PiS_i' = S_i - \mathbb{1}_{\{\tilde{r}_i>0\}} R_i + \mathbb{1}_{\{\tilde{r}_i<0\}} P_i

Where 1\mathbb{1} is the indicator function.

Investor rewards (or losses) are proportional to their share of the pool before settlement.

4.4 Slashing Simulation Model#

To understand how different parameters affect the likelihood of slashing and reward magnitude, a simulation can be run on synthetic return paths.

Consider the return process ri(t,Δ)r_i(t, \Delta) modelled as a random variable with mean μ\mu and standard deviation σ\sigma.

One can simulate thousands of return paths and compute the expected value and variance of the payoff function:

Πi(r~i)=αmax(0,  r~i)Biβmax(0,  r~i)Bi\Pi_i(\tilde{r}_i) = \alpha \max(0,\; \tilde{r}_i) \cdot B_i - \beta \max(0,\; -\tilde{r}_i) \cdot B_i

Key outputs of the simulation:

OutputDescription
Pr(Πi<0)\Pr(\Pi_i < 0)Probability that the trader's stake is slashed
E[Πi]\mathbb{E}[\Pi_i]Expected reward/penalty for a given (α,β)(\alpha, \beta)
Distribution of outcomesFor long and short investors

By varying α\alpha and β\beta one can calibrate the system to produce desired risk-reward profiles.

:::tip Default Parameters A typical choice is α=0.5\alpha = 0.5 and β=1.0\beta = 1.0, meaning traders receive half their excess returns while losing their stake at a 1

ratio when underperforming. :::

4.5 Numerical Example#

Suppose:

  • Trader stakes Bi=1,000B_i = 1{,}000 LAMA
  • Settlement period Δ=30\Delta = 30 days
  • Benchmark rˉi=0\bar{r}_i = 0
  • Parameters: α=0.5\alpha = 0.5, β=1.0\beta = 1.0

Scenario A: Agent returns +4%

r~i=0.04,Reward=0.5×0.04×1,000=20 LAMA\tilde{r}_i = 0.04, \quad \text{Reward} = 0.5 \times 0.04 \times 1{,}000 = 20 \text{ LAMA}

20 LAMA is paid to long investors; the short pool loses 20 LAMA.

Scenario B: Agent returns −2%

r~i=0.02,Penalty=1.0×0.02×1,000=20 LAMA\tilde{r}_i = -0.02, \quad \text{Penalty} = 1.0 \times 0.02 \times 1{,}000 = 20 \text{ LAMA}

20 LAMA is paid to short investors and deducted from the long pool.

:::danger Asymmetric Risk Note that a +4% return generates the same payout magnitude as a −2% return due to the asymmetric α/β\alpha / \beta ratio. This deliberately penalizes losses more heavily than it rewards gains, promoting conservative strategy design. :::