mirror of
https://github.com/lux-apps/papers.git
synced 2026-10-30 18:15:21 +00:00
Restructured from flat .tex/.pdf files into per-paper subdirectories. Added Antje Worring as co-author on all papers. Synced PDFs to pdfs/ for download site.
88 lines
2.2 KiB
TeX
88 lines
2.2 KiB
TeX
\section{Economic Model}
|
|
|
|
|
|
\subsection{Oracle Node Incentives}
|
|
|
|
Oracle nodes are incentivized through a combination of rewards and penalties:
|
|
|
|
\begin{equation}
|
|
\text{Reward}_i = \text{Base Reward} + \text{Accuracy Bonus}_i - \text{Penalty}_i
|
|
\end{equation}
|
|
|
|
Where:
|
|
\begin{align}
|
|
\text{Accuracy Bonus}_i &= \alpha \cdot e^{-\beta \cdot |\text{deviation}_i|} \\
|
|
\text{Penalty}_i &= \gamma \cdot \max(0, \text{deviation}_i - \theta)^2
|
|
\end{align}
|
|
|
|
Parameters:
|
|
\begin{itemize}
|
|
\item $\alpha$: Maximum accuracy bonus (100 LUX)
|
|
\item $\beta$: Accuracy decay factor (0.5)
|
|
\item $\gamma$: Penalty multiplier (10)
|
|
\item $\theta$: Acceptable deviation threshold (0.5\%)
|
|
\end{itemize}
|
|
|
|
\subsection{Penalty Mechanisms for Bad Data}
|
|
|
|
Progressive penalty system for malicious or faulty oracles:
|
|
|
|
\begin{lstlisting}[caption={Oracle Penalty System}]
|
|
contract OraclePenalty {
|
|
struct OracleNode {
|
|
uint256 stake;
|
|
uint256 reputation;
|
|
uint256 violations;
|
|
uint256 lastViolation;
|
|
}
|
|
|
|
function penalizeBadData(
|
|
address oracle,
|
|
uint256 deviation
|
|
) external {
|
|
OracleNode storage node = oracles[oracle];
|
|
|
|
// Calculate penalty based on deviation and history
|
|
uint256 penalty = calculatePenalty(
|
|
deviation,
|
|
node.violations,
|
|
node.reputation
|
|
);
|
|
|
|
// Apply penalty
|
|
node.stake = node.stake.sub(penalty);
|
|
node.violations++;
|
|
node.reputation = node.reputation.mul(90).div(100);
|
|
|
|
// Slash stake if violations exceed threshold
|
|
if (node.violations > MAX_VIOLATIONS) {
|
|
slashStake(oracle, node.stake);
|
|
removeOracle(oracle);
|
|
}
|
|
|
|
emit OraclePenalized(oracle, penalty, deviation);
|
|
}
|
|
}
|
|
\end{lstlisting}
|
|
|
|
\subsection{Fee Structure}
|
|
|
|
Oracle service fees for different tiers:
|
|
|
|
\begin{table}[h]
|
|
\centering
|
|
\begin{tabular}{lrr}
|
|
\toprule
|
|
\textbf{Service Tier} & \textbf{Update Frequency} & \textbf{Monthly Fee (LUX)} \\
|
|
\midrule
|
|
Basic & 60 seconds & 100 \\
|
|
Standard & 10 seconds & 500 \\
|
|
Premium & 1 second & 2,000 \\
|
|
AI Oracle & On-demand & Pay-per-request \\
|
|
Enterprise & Custom & Custom pricing \\
|
|
\bottomrule
|
|
\end{tabular}
|
|
\caption{Oracle service pricing tiers}
|
|
\end{table}
|
|
|