Swan Chain
  • BULDERS
    • Getting Started
    • DApp Developer
      • Deploying Your First Smart Contract with Remix
      • Interacting with Smart Contract on Swan Chain Using Go
    • App Developer
      • Building Docker Images and Deployment file with LDL
        • Lagrange Definition Language(LDL)
      • Deploying with Swan SDK
      • Store and Retrieve a File with Swan Storage
        • 1. Set up the python-MCS-SDK
        • 2.Create and Manage Buckets
        • 3.Upload Files and Folders
        • 4.Retrieve and Download Files
        • 5.Delete Files and Buckets
    • Node Operator
      • Swan Node Snapshots
    • Market Provider
      • Storage Market
      • AI/ML Orchestrator
        • Decentralized AI Marketplace
        • Connect to Orchestrator
      • Web3 ZK Computing Market
        • ZK Auction Engine
        • Sequencer
        • Contribute zk-UBI-task
          • How to Contribute
        • Example
      • Customized Market Provider
    • Computing Provider
      • Fog Computing Provider(FCP)
        • FCP Setup
        • Migrating FCP to Swan Mainnet
        • FCP Funding Operations Guide
        • FCP FAQ
      • Edge Computing Provider (ECP)
        • ECP Setup
        • ECP Funding Operations Guide
        • ECP FAQ
      • FAQ
    • Storage Provider
      • Storage Auction System
    • Developer Tools
      • Swan SDK
        • Python Swan SDK
          • Special Case: Create ssh login instance
          • SWAN Orchestrator SDK - Function and Parameter Reference
        • Go Swan SDK
          • A Sample Tutorial
      • Swan Console
        • Getting Started
        • Blockchain GPU Task Example
        • Custom Blockchain GPU Task Pools
      • Lagrange
      • Swan IPFS Storage
      • Nebula Block Cloud
      • Ecosystem Projects
    • Mission 3.0
      • Get Started
        • For Users
        • For Space Holders
  • NETWORK REFERENCE
    • Network Info
      • Set Up Your Wallet
      • Bridge Token
    • Contract Addresses
    • Fees
  • Core Concepts
    • Introduction to Swan Chain
    • Consensus Layer
    • Peer-to-peer (P2P) Network
    • Payment Channels
    • Service Discovery
    • Market Provider
      • Storage Market
      • AI Computing Marketplace
        • Orchestrator
        • Auction Engine
        • Bidding Task State Machine
      • ZK Proof Marketplace
        • ZK Task
        • ZK Pool
    • Storage Layer
    • Computing Layer
      • Computing Provider Protocol
      • Computing Provider Account
      • Layer3 Computing Protocol
      • Reputation System
      • Dynamic Pricing
    • CDN Layer
    • Tokenomics
      • UBI Allocation Curve
      • Computing Provider Income
      • Computing Provider Collateral
        • Collateral Requirement and Computing Unit
        • DePIN Oracle
      • Governance
        • Treasure DAO
    • Glossary
  • Swan Chain Campaign
    • Swan CP UBI
    • Swan Chain Mainnet
      • Network Information
      • Swan Token
      • Swan Chain Mission
        • Social Mission
        • Onchain Mission
        • Mission: Celestial Bloom
      • Swan Provider Campaign
        • Fog Computing Provider (FCP)
        • Edge Computing Provider (ECP)
        • Market Provider (MP)
      • GALXE Campaign
      • Free Tier and Special Credit Programs
    • Atom Accelerator Race
      • Before You Get Started
        • Set Up MetaMask
        • Claim SepoliaETH
        • Claim testSWAN
      • CP Acceleration Program
      • Builder Acceleration Program
      • On-chain Interaction Race
      • Community Engagement Challenge
      • FAQ
    • Swan Saturn Testnet
      • Before You Get Started
        • Set Up MetaMask
        • Claim Faucet Tokens
        • Bridge Tokens
      • Transaction Drive Program
      • Community and Educational Events
      • Partnership and Integration Program
      • KOL Program
      • Computing Provider Program
        • FAQ
      • Developer Grant Program
      • FAQ
    • Swan Jupiter Testnet
      • How to Participate
      • Before You Get Started
      • Network Early Adopter
      • FAQ
  • RESOURCE
    • Links
    • Brand Kit
Powered by GitBook
On this page
  • Table of Contents
  • Introduction
  • Compensation Model
  • Algorithm Implementation
  • Visualization of Income Over Time
  • Interpretation of the Plots
  • Data Points Illustration
  • Impact of the Design
  • Conclusion
  • Future Work
  • Appendix
  • Sample Calculations
  1. Core Concepts
  2. Tokenomics

UBI Allocation Curve

Universal Basic Income (UBI) and Paid Job Compensation for Computing Providers (CP) in Swan Chain

PreviousTokenomicsNextComputing Provider Income

Last updated 2 months ago

Table of Contents

Introduction

Swan Chain is a decentralized network that connects computing providers with users requiring computational resources. To foster early network growth and incentivize CPs to join and contribute resources, a dual compensation mechanism has been designed:

  1. Universal Basic Income (UBI): Provides CPs with a predictable token income when their resources are underutilized.

  2. Paid Jobs: Offers market-priced compensation for computational tasks requested by users.

This mechanism ensures a fair and gradual distribution of tokens to providers, supporting the network's expansion until it reaches a critical mass of user-paid tasks. Importantly, the UBI distribution rate is influenced by the resource usage rate, and CPs earn market-based compensation when engaged in paid jobs.


Compensation Model

I(x)=A⋅xB⋅e−Cx⋅(1−u(x))+Pmarket(x)⋅u(x)I(x) = A \cdot x^{B} \cdot e^{-C x} \cdot (1 - u(x)) + P_{\text{market}}(x) \cdot u(x)I(x)=A⋅xB⋅e−Cx⋅(1−u(x))+Pmarket​(x)⋅u(x)

The total daily income I(x) I(x) I(x)for a computing provider on day (x)( x )(x) comprises two components:

  1. UBI Income yUBI(x)y_{\text{UBI}}(x)yUBI​(x)

  2. Paid Job Income yPaid(x)y_{\text{Paid}}(x) yPaid​(x)

The UBI income is modeled using a gamma-like function adjusted by the resource usage rate u(x)u(x) u(x):

yUBI(x)=A⋅xB⋅e−Cx⋅(1−u(x))y_{\text{UBI}}(x) = A \cdot x^{B} \cdot e^{-C x} \cdot (1 - u(x))yUBI​(x)=A⋅xB⋅e−Cx⋅(1−u(x))

Where:

  • A=20,000A = 20,000A=20,000 (Scaling factor)

  • B=0.3100B = 0.3100B=0.3100 (Growth rate exponent)

  • C=0.0017C = 0.0017C=0.0017 (Decay rate constant)

  • xxx is the day number, starting from 1

  • u(x)u(x)u(x) is the resource usage rate on day(x) ( x )(x) (ranging from 0 to 1)

The paid job income depends on the market demand and the resource utilization:

yPaid(x)=Pmarket(x)⋅u(x)y_{\text{Paid}}(x) = P_{\text{market}}(x) \cdot u(x)yPaid​(x)=Pmarket​(x)⋅u(x)

Where:

  • Pmarket(x)P_{\text{market}}(x)Pmarket​(x) is the total market value for computational resources on day (x)( x )(x)

  • u(x) u(x) u(x) represents the proportion of a CP's resources utilized by paid job

Defining u(x)u(x)u(x)

(1) Calculate the total duration of real GPU orders across the network

Tday=∑iTaskECP,i(GPUk)×fk+∑jTaskFCP,j(GPUk)×fk×WFCPT_{day}= \sum\limits_{i}Task_{ECP,i}(GPU_k) \times f_k + \sum\limits_{j}Task_{FCP,j}(GPU_k) \times f_k \times W_{FCP}Tday​=i∑​TaskECP,i​(GPUk​)×fk​+j∑​TaskFCP,j​(GPUk​)×fk​×WFCP​

Where:

  • TaskFCP,i(GPUk)Task_{\text{FCP},i}(GPU_k)TaskFCP,i​(GPUk​) represents the time that the iii-th FCP task uses GPUkGPU_kGPUk​.

  • TaskECP,j(GPUk)Task_{\text{ECP},j}(GPU_k)TaskECP,j​(GPUk​) represents the time that the jjj-th ECP task uses GPUkGPU_kGPUk​.

  • fkf_kfk​ represents the earnings growth factor

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

NOTE: The value of WFCPW_{FCP}WFCP​, 1.2, means that if the same configuration of servers is deployed for FCP, it will generate 20% more earnings than ECP.

(2)Calculate the total available usage time for all GPUs in the network

Ttotal=∑kNECP(GPUk)×24×fk+∑kNFCP(GPUk)×24×fk∗WFCPT_{total} = \sum\limits_k N_{ECP}(GPU_k) \times 24 \times f_k + \sum\limits_k N_{FCP}(GPU_k) \times 24 \times f_k * W_{FCP} Ttotal​=k∑​NECP​(GPUk​)×24×fk​+k∑​NFCP​(GPUk​)×24×fk​∗WFCP​

Where:

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

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

(3) Calculate u(x)u(x)u(x)

u(x)=TdayTtotalu(x) = \frac{T_{\text{day}}}{T_{\text{total}}}u(x)=Ttotal​Tday​​

Defining Total Market Value Pmarket(x)P_{\text{market}}(x)Pmarket​(x)

Pmarket(x)P_{\text{market}}(x)Pmarket​(x) represents the cost in Swan Tokens when all GPUs in the CP are fully utilized:

Pmarket(x)=∑kNECP(GPUk)×Price(GPUk)×24+∑kNFCP(GPUk)×WFCP×Price(GPUk)×24P_{market}{(x)} = \sum\limits_k N_{ECP}(GPU_k) \times Price({GPU_k}) \times 24 + \sum\limits_k N_{FCP}(GPU_k) \times W_{FCP} \times Price({GPU_k}) \times 24 Pmarket​(x)=k∑​NECP​(GPUk​)×Price(GPUk​)×24+k∑​NFCP​(GPUk​)×WFCP​×Price(GPUk​)×24

Where:

  • Price(GPUk)Price(GPU_k)Price(GPUk​) is the price of GPUkGPU_kGPUk​.

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

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

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

Algorithm Implementation

The compensation mechanism proceeds as follows:

  1. Initialization: Set day (x=1) (x = 1)(x=1).

  2. Determine Resource Usage Rate: Calculate u(x)u(x)u(x) based on the CP's resource utilization by paid jobs.

  3. Compute UBI Income:

yUBI(x)=20,000×x0.3100×e−0.0017x×(1−u(x))y_{\text{UBI}}(x) = 20,000 \times x^{0.3100} \times e^{-0.0017 x} \times (1 - u(x))yUBI​(x)=20,000×x0.3100×e−0.0017x×(1−u(x))
  1. Compute Paid Job Income:

yPaid(x)=Pmarket(x)×u(x)y_{\text{Paid}}(x) = P_{\text{market}}(x) \times u(x)yPaid​(x)=Pmarket​(x)×u(x)
  1. Calculate Total Income:

I(x)=yUBI(x)+yPaid(x)I(x) = y_{\text{UBI}}(x) + y_{\text{Paid}}(x)I(x)=yUBI​(x)+yPaid​(x)
  1. Distribute Income: Allocate I(x) I(x) I(x) to CPs based on their resource contributions and utilization.

  2. Increment Day: Increase x x x by 1.

  3. Repeat: Continue the process for each subsequent day.

This algorithm ensures that CPs are incentivized to contribute resources to the network, receiving UBI when their resources are underutilized and earning market-based compensation when engaged in paid jobs.


Visualization of Income Over Time

Scenarios

We consider three scenarios to illustrate how CPs' income evolves over time:

  1. No Paid Jobs u(x)=0u(x) = 0u(x)=0 : CPs receive income solely from UBI.

  2. Low Paid Job Demand u(x)=0.1u(x) = 0.1u(x)=0.1: CPs primarily earn UBI income with a small contribution from paid jobs.

  3. Increasing Paid Job Demand: Resource usage rate u(x) u(x) u(x) increases over time, shifting CPs' income from UBI to paid jobs.

Interpretation of the Plots

1. Total Income Over 720 Days

  • Scenario 1: u(x)=0u(x) = 0u(x)=0

    • CPs receive income solely from UBI.

    • The total income decreases gradually over time due to the decay in the UBI function.

  • Scenario 2: u(x)=0.1u(x) = 0.1u(x)=0.1

    • CPs receive slightly less UBI income than in Scenario 1 due to the 10% resource usage.

    • Paid job income contributes minimally, resulting in a slightly lower total income.

  • Scenario 3: Increasingu(x)Increasing u(x)Increasingu(x)

    • Initially, total income is similar to Scenario 1.

    • As u(x)u(x)u(x) increases, paid job income increases while UBI income decreases.

    • Total income remains relatively stable or increases slightly, demonstrating that paid job income offsets the reduction in UBI.

2. Income Components for Scenario 3

  • UBI Income:

    • Decreases over time as resource usage rate u(x)u(x)u(x) increases.

    • Reflects the transition from reliance on UBI to paid jobs.

  • Paid Job Income:

    • Increases over time with the increase in u(x)u(x)u(x) .

    • Compensates for the decrease in UBI income.

  • Total Income Stability:

    • The sum of UBI and paid job income maintains income stability for CPs.

3. Resource Usage Rate u(x)u(x)u(x) for Scenario 3

  • Shows a smooth increase from 0 to 0.8 over 720 days.

  • Reflects the gradual adoption of paid tasks in the network.

Data Points Illustration

Below is a example table of computed token allocations for selected days(assume u(x)u(x)u(x)=0):

Day
Daily UBI (y)
Cumulative UBI

1

19,966.03

19,966.03

30

54,549.22

1,261,976.56

60

64,262.68

3,062,143.25

90

69,246.55

5,072,341.49

120

71,941.60

7,194,431.61

150

73,261.06

9,375,212.61

180

73,666.56

11,581,013.65

210

73,430.22

13,788,817.87

240

72,728.28

15,982,188.47

270

71,682.24

18,149,084.82

300

70,379.70

20,280,565.34

330

68,885.86

22,369,958.88

360

67,250.50

24,412,305.58

390

65,512.29

26,403,963.32

420

63,701.70

28,342,321.28

450

61,843.01

30,225,585.83

480

59,955.70

32,052,616.78

510

58,055.51

33,822,799.99

540

56,155.17

35,535,946.61

570

54,265.01

37,192,212.48

600

52,393.39

38,792,032.93

630

50,547.09

40,336,069.55

660

48,731.55

41,825,166.37

690

46,951.10

43,260,313.71

720

45,209.18

44,642,617.97

Note: The "Cumulative UBI" column represents the definite integral of y(x) from day 1 to the specified day.

This table shows simulated data for UBI distribution calculated under the condition of U(x) = 0. The actual UBI release will dynamically change based on the network CP resource utilization rate.


Impact of the Design

Incentivizing Optimal Resource Utilization

  • Adaptive Compensation: CPs are motivated to engage in paid jobs as they become available, earning higher income through market rates.

  • Resource Availability: UBI ensures that CPs keep their resources available to the network, even during periods of low demand.

Sustainable Long-Term Distribution

  • Transition to Market-Based Economy: As the network matures and paid job demand increases, CPs naturally shift from UBI reliance to market compensation.

  • Controlled Token Issuance: The decreasing UBI allocation over time prevents token oversupply, maintaining economic stability.

Economic Implications

  • Income Stability: CPs benefit from a combination of UBI and paid job income, smoothing income fluctuations.

  • Market Alignment: Compensation reflects real-time network demand, promoting efficient resource allocation.


Conclusion

The combined UBI and paid job compensation model for Swan Chain computing providers effectively balances incentives, supporting early network growth while promoting efficient resource utilization. By dynamically adjusting CPs' income based on resource usage rates and market demand, the model ensures sustainable network development and economic stability as the network transitions to a mature, user-driven ecosystem.


Future Work

  • Dynamic Market Pricing: Implement real-time market pricing mechanisms for paid jobs to reflect supply and demand accurately.

  • Adaptive UBI Parameters: Explore methods to adjust UBI parameters ( A ), ( B ), and ( C ) based on network growth metrics.

  • Enhanced Monitoring Tools: Develop systems to track resource usage and job completion accurately, ensuring fair compensation.


Appendix

Sample Calculations

Scenario 1: No Paid Jobs

Day 1:

  • UBI Income: yUBI(1)=20000×10.31×e−0.0017×1≈19,965.90 tokensy_{\text{UBI}}(1) = 20000 \times 1^{0.31} \times e^{-0.0017 \times 1} \approx 19,965.90 \, \text{tokens}yUBI​(1)=20000×10.31×e−0.0017×1≈19,965.90tokens

  • Paid Job Income: 0 tokens0 \, \text{tokens}0tokens (No paid job demand)

  • Total Income: I(1)=19,965.90+0=19,965.90 tokensI(1) = 19,965.90 + 0 = 19,965.90 \, \text{tokens}I(1)=19,965.90+0=19,965.90tokens

Scenario 2: Low Paid Job Demand

Day 1:

  • UBI Income: yUBI(1)=20000×10.31×e−0.0017×1≈19,965.90 tokensy_{\text{UBI}}(1) = 20000 \times 1^{0.31} \times e^{-0.0017 \times 1} \approx 19,965.90 \, \text{tokens}yUBI​(1)=20000×10.31×e−0.0017×1≈19,965.90tokens

  • Paid Job Income: yPaid(1)=50000×0.1=5,000 tokensy_{\text{Paid}}(1) = 50000 \times 0.1 = 5,000 \, \text{tokens}yPaid​(1)=50000×0.1=5,000tokens

  • Total Income: I(1)=19,965.90+5,000=24,965.90 tokensI(1) = 19,965.90 + 5,000 = 24,965.90 \, \text{tokens}I(1)=19,965.90+5,000=24,965.90tokens

Scenario 3: Increasing Paid Job Demand

Day 360:

  • UBI Income: yUBI(360)=20000×3600.31×e−0.0017×360≈13,898.99 tokensy_{\text{UBI}}(360) = 20000 \times 360^{0.31} \times e^{-0.0017 \times 360} \approx 13,898.99 \, \text{tokens}yUBI​(360)=20000×3600.31×e−0.0017×360≈13,898.99tokens

  • Paid Job Income: yPaid(360)=50000×0.4=20,000 tokensy_{\text{Paid}}(360) = 50000 \times 0.4 = 20,000 \, \text{tokens}yPaid​(360)=50000×0.4=20,000tokens

  • Total Income: I(360)=13,898.99+20,000=33,898.99 tokensI(360) = 13,898.99 + 20,000 = 33,898.99 \, \text{tokens}I(360)=13,898.99+20,000=33,898.99tokens

Day 720:

  • UBI Income: yUBI(720)=20000×7200.31×e−0.0017×720×(1−0.8)≈2,477.66 tokensy_{\text{UBI}}(720) = 20000 \times 720^{0.31} \times e^{-0.0017 \times 720} \times (1 - 0.8) \approx 2,477.66 \, \text{tokens}yUBI​(720)=20000×7200.31×e−0.0017×720×(1−0.8)≈2,477.66tokens

  • Paid Job Income: yPaid(720)=50000×0.8=40,000 tokensy_{\text{Paid}}(720) = 50000 \times 0.8 = 40,000 \, \text{tokens}yPaid​(720)=50000×0.8=40,000tokens

  • Total Income: I(720)=2,477.66+40,000=42,477.66 tokensI(720) = 2,477.66 + 40,000 = 42,477.66 \, \text{tokens}I(720)=2,477.66+40,000=42,477.66tokens

Observations

  • Income Stability: Despite the decrease in UBI income over time, total income remains stable or increases due to higher compensation from paid jobs.

  • Incentive Alignment: Community participants (CPs) are incentivized to participate in paid jobs without experiencing significant income loss during transitions from UBI reliance to paid employment.


Introduction
Compensation Model
Algorithm Implementation
Visualization of Income Over Time
Interpretation of the Plots
Data Points Illustration
Impact of the Design
Conclusion
Future Work
Appendix
Sample Calculations