Computing Provider Collateral

Introduction

In the Swan Chain network, Computing Providers (CPs) contribute their computational resources to support the network's decentralized computing infrastructure. To ensure stability and economic security, CPs are required to provide collateral in Swan tokens. This collateral acts as a financial commitment, incentivizing CPs to act in the best interest of the network while also sharing in the economic rewards generated from providing computing power.

Collateral Model

The collateral amount for each CP is determined by an inverse correlation model based on the total computing power contributed by the CP to the network. The formula for calculating the collateral amount is:

Cbase=CtotalCUtotal+bC_{base} = \frac{C_{total}}{CU_{total}} + b
CUtotal=max(kNECP(GPUk)×fk+kNFCP(GPUk)×fkWFCP,CU0)CU_{total} =\max ( \sum\limits_k N_{ECP}(GPU_k) \times f_k + \sum\limits_k N_{FCP}(GPU_k) \times f_k * W_{FCP}, CU_0)
{CU0=3000Ctotal=Circulating supply of SWAN×20% b=200\begin{cases}CU_0 = 3000 \\C_{total} = \text{Circulating supply of SWAN} \times 20\%  \\b=200\end{cases}

Where:

  • WFCPW_{FCP} represents the FCP resource bonus ratio, currently set at a constant value of 1.2

  • NFCP(GPUk)N_{\text{FCP}}(\text{GPU}_k)represents the number of GPUk\text{GPU}_k in FCP

  • NECP(GPUk)N_{\text{ECP}}(\text{GPU}_k) represents the number of GPUk\text{GPU}_k in ECP.

  • fkf_k represents the earnings growth factor

Currently, the computing units CUtotalCU_{\text{total}} in the network are capped at (CU_0 = 3000). If the computing units remain at or below (3000), the base collateral remains constant at:

Cbase=10,000,0003000+200=3533C_{\text{base}} = \frac{10,000,000}{3000} + 200 = 3533

Example: If CUtotalCU_{\text{total}} increases to 6000

  1. Substitute CUtotalCU_{\text{total}} = 6000 into the formula:

Cbase=10,000,0006000+200C_{\text{base}} = \frac{10,000,000}{6000} + 200
  1. Perform the calculation:

Cbase=1666.67+200=1866.67C_{\text{base}} = 1666.67 + 200 = 1866.67

So, if the computing units (CU) exceed 3000, the base collateral amount will start to decrease. In the example where CU is 6000, the base collateral amount is 1867, which is lower than the 3533 calculated earlier when CU was 3000.

Revenue Sharing and APR Calculation

Once a CP provides collateral, they are eligible to receive revenue generated from both Universal Basic Income (UBI) tokens and paid jobs. The revenue model includes:

  1. UBI Income: CPs receive UBI tokens as a baseline income for their participation, which is inversely related to their collateral and computing power.

  2. Paid Job Income: CPs can earn additional revenue by completing paid jobs, which are offered at a market rate determined by user demand.

The Annual Percentage Rate (APR) for the CPs is calculated separately for both their operating revenue and collateral revenue:

  • Operator APR: The revenue generated by CPs for providing computing power divided by their total operational costs.

  • Collateral APR: Calculated based on the revenue earned by providing collateral relative to the collateral amount itself.

The total APR includes both the operator APR and collateral APR, providing a complete picture of the financial returns for CPs participating in the Swan Chain network.

Slashing Mechanism

To maintain network performance and accountability, CPs are subject to a precise slashing mechanism that penalizes inefficient or unreliable computing services. For each failed task, CPs face graduated penalties:

  • Edge Computing Providers (ECP) lose 0.025% of their current full collateral amount per failed task (approximately 0.88 SWAN for a 3080 GPU), with around 48 tasks processed daily.

  • Fog Computing Providers (FCP) lose 0.1% of their current full collateral amount per failed task (approximately 3.533 SWAN for a 3080 GPU), with around 14 tasks processed daily.

If a CP's collateral amount falls below the required threshold, they become ineligible to receive Universal Basic Income (UBI) tasks. To mitigate the risk of unexpected task exclusion, CPs are advised to maintain a buffer in their collateral amount.

Impact of Collateral Model

The negative correlation between collateral and computing power has several benefits:

  1. Incentivizing Scale: CPs are encouraged to scale up their contributions to the network, as increasing their computing power reduces their collateral requirements.

  2. Risk Mitigation: Collateral serves as a safeguard, ensuring that CPs have a financial stake in the network's success and discouraging malicious behavior.

  3. Economic Participation: By allowing CPs to share in both operator and collateral revenue, the model promotes balanced economic participation, where CPs are rewarded not only for their computational contributions but also for their financial commitment.


Swan 2.0: Updated Collateral Model

circle-info

The collateral model above applies to the legacy UBI system (Swan 1.0). Swan 2.0 introduces additional collateral options and updated tiers for the Inference Cloud. See SIP-002arrow-up-right for the full proposal.

Stablecoin Collateral (New in Swan 2.0)

Swan 2.0 introduces stablecoin collateral via the ProviderCollateral smart contract. Providers can deposit USDC or USDT on-chain as an alternative to SWAN token collateral:

  • Supported tokens: USDC, USDT

  • Supported chains: Swan Chain (mainnet), Base, Ethereum (configurable)

  • Deposit method: Provider sends tokens to the contract and submits the tx_hash for on-chain verification

  • Refund waiting period: 7 days from request to withdrawal

Providers can also use USD (off-chain) via Stripe, PayPal, or bank transfer, with admin confirmation.

Collateral status follows the lifecycle: pending → confirmed → refund_requested → refunded

Updated Collateral Tiers (SIP-002)

Under the unified Computing Provider (CP) model, collateral requirements are based on hardware tier:

Hardware Tier
Minimum SWAN Collateral
Slashing Conditions

RTX 3090 / A4000

5,000 SWAN

Uptime < 50% for 7 days

RTX 4090 / A5000 / A6000

10,000 SWAN

Repeated failed requests (> 20% failure rate)

A100

25,000 SWAN

Malicious behavior or gaming detected

H100

50,000 SWAN

Unauthorized hardware changes

circle-exclamation

Benchmark-Based Slashing (Swan 2.0)

In addition to the existing task-failure slashing, Swan 2.0 introduces benchmark-based slashing for inference providers:

  • The benchmark worker runs every 24 hours, testing math accuracy, code generation, and response latency

  • Providers must pass all thresholds (≥ 50% math, ≥ 50% code, ≤ 5000ms latency)

  • Consecutive failures trigger slashing: configurable percentage (default 10%) of collateral per consecutive failure

  • Providers that fall below the minimum collateral threshold are suspended from receiving inference requests

Smart Contracts

Contract
Network
Address

ProviderCollateral (USDC)

Swan Chain Mainnet

0x557f306f917009cf83c32b8b32a79202e79948e5

SWAN Token

Swan Chain Mainnet

0xAF90ac6428775E1Be06BAFA932c2d80119a7bd02

Last updated