Skip to content

Added the Qusino smart contract#762

Merged
Franziska-Mueller merged 31 commits intoqubic:developfrom
TakaYuPP:feat/latest-qusino
Mar 27, 2026
Merged

Added the Qusino smart contract#762
Franziska-Mueller merged 31 commits intoqubic:developfrom
TakaYuPP:feat/latest-qusino

Conversation

@TakaYuPP
Copy link
Copy Markdown
Contributor

@TakaYuPP TakaYuPP commented Feb 14, 2026

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

@Franziska-Mueller Franziska-Mueller self-requested a review February 19, 2026 14:11
Comment thread build/_deps/googletest-src Outdated
Comment thread src/contract_core/contract_def.h Outdated
Comment thread src/contracts/Qusino.h Outdated
Comment thread build/_deps/googletest-src Outdated
Comment thread src/contracts/Qusino.h
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h Outdated
Comment thread src/contracts/Qusino.h
@cyber-pc
Copy link
Copy Markdown
Collaborator

Looks good from my side—these changes cover my comments.
About @Franziska-Mueller comment, I think it's more or less caused by tested machine memory, not by the public/protected, I saw it took about >8GB for your test.

@cyber-pc
Copy link
Copy Markdown
Collaborator

Disclaimer: I have spent several hours reviewing syntaxes, math overflows and compatability issue with qubic core to make sure this SC doesn't interrupt qubic network. I don’t have enough time for understanding all details and verifying the correctness of the code, but this also isn’t my responsibility as a core dev. Ensuring correctness of the code and security of the funds in the contract is the responsibility of the team developing the contract.

@Franziska-Mueller Franziska-Mueller merged commit 25827cd into qubic:develop Mar 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants