-
Notifications
You must be signed in to change notification settings - Fork 1
Tokenomics 2.1 #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dzhelezov
wants to merge
7
commits into
main
Choose a base branch
from
tokenomics-2.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b89d0f9
tokenomics 2.1
dzhelezov 190a04e
adding smart contracts design
Gradonsky c51f999
Revise terminology for Portal and Portal Pool
Gradonsky 5b49a16
Revise portal pool design and withdrawal mechanisms
Gradonsky ff85042
add: frictionless payments
Gradonsky 1478c67
del: wrong link
Gradonsky 8658120
fix: chart
Gradonsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| # Tokenomics 2.1 | ||
|
|
||
| ## Overview | ||
|
|
||
| Tokenomics 2.1 addresses the centralization issues of Tokenomics 2.0, namely: | ||
|
|
||
| - That there is a single (de-facto centralized) pool for providing SQD for yield, which makes SQD a security | ||
| - The lack of dynamic pricing and many parameters that has to be hard-coded/adjusted in a centralized (or, at best, DAO-like) fashion. The subscription fee is not established by an open market and the marketplace. | ||
| - Removing the treasury-initiated buyback-and-burn mechanics which makes SQD a security | ||
| - Moving the reward token out of scope | ||
| - Introducing the fee switch to the Portals (to be activated in the future if necessary) | ||
| - Making it possible to register Portals on EVMs (in particular, Base) and Solana. For Solana users, it opens up the posibility to pay in USDC or SOL. | ||
|
|
||
|
|
||
| ## The SQD Flows | ||
|
|
||
| **Workers** | ||
| Workers serve the data and receive rewards in SQD. The reward depend on the number of served queries, the amount of delegated tokens and the uptime of the worker. The worker has to lock 100k SQD to participate in the network. The maximal amount of rewards distributed per worker and the delegators is controlled by a single parameter called `TARGET_APR`. The reward is then split abetween the worker and the delegators for the worker. | ||
|
|
||
| **Delegators** | ||
| Delegators delegate SQD to workers to get a part of the worker reward. Both the amount of delegated tokens and the served queries affect the reward per query served. | ||
|
|
||
| **Data consumers** | ||
| Data consumers query the network p2p using a Portal. The maximal bandwidth that can be consumed by a Portal is determined by the amount of SQD locked in the Portal contract. Thus, the data consumer either buys SQD on the open market and locks the desired amount themselves, or makes an _SQD Provision Offer_ to SQD holders willing to provide SQD in return to the fee. | ||
|
|
||
| An SQD Provision Offer is an agreement to lock SQD for a specified amount of time for a fee, paid as continuosly during the whole lock period. The fee is locked by the consumer in advance and can be paid in any of the supported tokens. Special conditions apply for extending the provision offer and withdrwals. | ||
|
|
||
| **SQD providers** | ||
| SQD providers hold SQD and fullfill the matching _SQD Provision Offers_. Active providers can advertise their target fees in advance to make the market and set the expectations for the data consumers. | ||
|
|
||
| ## Emission reduction | ||
|
|
||
| The `TARGET_APR` currently set to 25% yearly, will be gradually reduced and replaced by the fees collected from the portals. | ||
|
|
||
| ## Portal Payments | ||
|
|
||
| The are two options to get data through the portals: | ||
| - Lock SQD tokens (the existing flows) | ||
| - Pay a subscription fee in one of the supported tokens, so that the SQD is locked by one or multiple SQD providers. | ||
|
|
||
| **The subscription flow** | ||
|
|
||
| The user specifies: | ||
| - the required bandwidth (which translates into the required SQD to be locked) | ||
| - the terms (fix-term or auto-extension) | ||
| - the price (the dApp will provide the current quotes of the SQD providers to give a reasonable offer) | ||
|
|
||
| The user: | ||
| - creates a Portal Registration Contract | ||
| - makes the fee deposits | ||
| - the willing SQD providers lock the SQD for the required term | ||
|
|
||
| The fee is deducted every epoch and automatically split: | ||
| - 50% to the SQD providers | ||
| - 45% to the worker reward pool | ||
| - 5% gets burnt | ||
|
kalabukdima marked this conversation as resolved.
|
||
|
|
||
| The fee parameters are adjustable. | ||
|
|
||
|  | ||
|
|
||
|
|
||
| ## The fee switch | ||
|
|
||
| Apart from the fees collected from the subscription fees, Tokenomics 2.1 introduces a fee switch directly to the portals. | ||
| The fee switch is initiall set to zero, but can be switched on at a later time. | ||
|
|
||
| When it is on, the fee is deduced from SQD locked in every Portal contract, and distributed between burn and the reward pool. | ||
| That way even the users self-staking SQD will pay a usage tax. For SQD providers the tax may be compensated directly by the fee. | ||
|
|
||
|
|
||
| ## Deployments to Solana and other networks | ||
|
|
||
| The Poral Registration factories allow deployments on foreign networks, such as Base and Solana, assuming the two-way bridging is possible. In order to integrate a foreign chain one would need | ||
|
|
||
| - Update the Worker nodes to listen to the registration events | ||
| - Establish a canonical "bridged" token on the target chain with minimal liqidity pools | ||
| - Implement bridging of the fees to be teleported to the host chain regularly, to top up the reward pool on the host chain | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.