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 denote the portfolio value of trader 's strategy at time , as reported by the oracle.
Define the periodic return over as:
We assume the protocol operates in discrete settlement periods of length (e.g., one week or one month).
Let denote the return over the current period and the benchmark return (possibly zero or an index).
Define the excess return:
4.2 Reward and Penalty Function#
The amount of LAMA transferred between the trader and the long/short pools depends on .
Let:
- — the trader's staked bond
- — scaling coefficient capturing the maximum payout rate
- — slashing coefficient
The protocol uses a piecewise linear function:
Thus positive excess returns trigger a reward equal to (distributed to the long pool), while negative excess returns result in a slash of (distributed to the short pool).
:::info Parameter Design The coefficients and can be calibrated to balance reward potential and risk. Typically to discourage reckless risk-taking. :::
4.3 Settlement Function for Investors#
For each agent , define the long pool size and short pool size before settlement.
When (agent outperforms):
- Total reward is added to the long pool
- Amount is deducted from the short pool (pro rata from investors)
When (agent underperforms):
- Penalty 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:
Where 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 modelled as a random variable with mean and standard deviation .
One can simulate thousands of return paths and compute the expected value and variance of the payoff function:
Key outputs of the simulation:
| Output | Description |
|---|---|
| Probability that the trader's stake is slashed | |
| Expected reward/penalty for a given | |
| Distribution of outcomes | For long and short investors |
By varying and one can calibrate the system to produce desired risk-reward profiles.
:::tip Default Parameters A typical choice is and , meaning traders receive half their excess returns while losing their stake at a 1
ratio when underperforming. :::4.5 Numerical Example#
Suppose:
- Trader stakes LAMA
- Settlement period days
- Benchmark
- Parameters: ,
Scenario A: Agent returns +4%
20 LAMA is paid to long investors; the short pool loses 20 LAMA.
Scenario B: Agent returns −2%
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 ratio. This deliberately penalizes losses more heavily than it rewards gains, promoting conservative strategy design. :::