Open
Conversation
| uint32 counts; | ||
| }; | ||
|
|
||
| struct gameInfo |
Collaborator
There was a problem hiding this comment.
make sure all normal structs like gameInfo, stakeInfo, etc. start with a capital letter as specified in the style guide (https://github.com/qubic/core/blob/main/doc/contributing.md#style-guidelines)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Qusino Smart Contract
Overview
Qusino is a smart contract for a game platform economy. It introduces in-platform assets (STAR, QSC, QST), staking with time-based rewards, game proposal submission and community voting, and revenue sharing to LP, treasury, CCF, and shareholders.
Main ideas
Dual in-platform assets
STAR: earned by spending Qubic (at a fixed price). Used for voting on game proposals and can be staked.
QSC: earned by depositing QST with the contract; comes with a STAR bonus. Used as an alternative currency to buy QST and can be staked.
QST (Qusino Share Token)
Buy: Users can buy QST with Qubic (via QX order book integration) or with QSC. Sale inventory is supplied by depositing QST via depositQSTForSale.
Sell: Holders can sell QST back to the contract for Qubic at a fixed sale price, increasing the amount available for sale.
Staking
Users can stake STAR, QSC, or QST for 1, 3, 6, or 12 months. At maturity they receive principal plus a STAR reward (percentage depends on lock duration). Staking increases protocol engagement and lock-up.
Game lifecycle
Submit: Anyone can submit a game proposal (URI) by paying a fixed submission fee; fee goes to epoch revenue.
Vote: STAR holders pay a small vote fee (STAR is burnt) to vote yes/no on proposals. Voting is limited per user and only in the proposal epoch or a defined revote window.
Outcome: Proposals that get more “no” than “yes” (in the relevant epoch) are moved to a failed list; passed games remain in the active list.
Revenue distribution (end of epoch)
Epoch revenue (from STAR purchases, game submission fees, etc.) is split: LP, CCF, treasury, and shareholder dividends (with a fixed denominator for dividend math). This aligns incentives across liquidity providers, treasury, and token holders.
https://github.com/nineisten/qusino