Files
zeekay abf99d05fc papers: reorganize into per-paper dirs, add Antje Worring as co-author
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.
2026-04-18 21:50:07 -07:00

67 lines
1.9 KiB
TeX

\section{Implementation}
\label{sec:implementation}
% ============================================================
\subsection{Contract Architecture}
The yield system comprises four contracts per source chain:
\begin{table}[h]
\centering
\small
\caption{Yield system contract architecture.}
\label{tab:contracts}
\begin{tabular}{@{}lp{4.8cm}@{}}
\toprule
\textbf{Contract} & \textbf{Function} \\
\midrule
\texttt{YieldBridgeVault} & Manages deposits, withdrawals, strategy routing, tier enforcement \\
\texttt{StrategyRouter} & Allocates capital across strategies per tier weights \\
\texttt{BackingOracle} & Receives MPC attestations, updates share price \\
\texttt{ShariaFilter} & Classifies strategies for Shariah compliance mode \\
\bottomrule
\end{tabular}
\end{table}
\subsection{Gas Costs}
\begin{table}[h]
\centering
\small
\caption{Gas costs for yield operations (Ethereum mainnet, 30 gwei gas price).}
\label{tab:gas_yield}
\begin{tabular}{@{}lrr@{}}
\toprule
\textbf{Operation} & \textbf{Gas} & \textbf{Cost} \\
\midrule
\texttt{deposit} (to vault) & $\sim$120,000 & $\sim$\$6.30 \\
\texttt{withdraw} (from vault) & $\sim$95,000 & $\sim$\$5.00 \\
\texttt{harvest} (per strategy) & $\sim$80,000 & $\sim$\$4.20 \\
\texttt{updateBacking} (attestation) & $\sim$45,000 & $\sim$\$2.35 \\
\texttt{rebalance} (strategy rotation) & $\sim$250,000 & $\sim$\$13.10 \\
\bottomrule
\end{tabular}
\end{table}
\subsection{Source Code}
All contracts are open-source under the MIT license:
\begin{table}[h]
\centering
\small
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Component} & \textbf{Repository} \\
\midrule
Yield vault & \texttt{luxfi/standard} \\
Strategy adapters & \texttt{luxfi/standard} \\
MPC attestation & \texttt{luxfi/mpc} \\
Threshold crypto & \texttt{luxfi/threshold} \\
Bridge contracts & \texttt{luxfi/bridge} \\
\bottomrule
\end{tabular}
\end{table}
% ============================================================