Soroban
Smart Contracts: Soroban on Stellar Blockchain
Last updated
Smart Contracts: Soroban on Stellar Blockchain
Last updated
To implement complex logic within the blockchain, Gethar uses Soroban smart contracts—a new high-performance smart contract mechanism in the Stellar network, based on the Rust programming language. Soroban allows the platform to introduce functions such as automated reward distribution, game conditions validation, and NFT management, ensuring transparency and immutability of the rules.
Within the Gethar: Meet & Earn ecosystem, Soroban smart contracts play a vital role in key processes, including:
Staking Rewards Distribution: Soroban contracts regularly distribute GTH tokens to users based on their staking share and the established emission reduction rules (outlined in the economic model section). This process is fully decentralized and open to audits, ensuring transparency and fairness.
In-Game Transactions: All transactions in the game, including buying and selling NFTs on the marketplace, transferring tokens between players, and paying for event participation, are handled by smart contracts. This eliminates the need for intermediaries, reducing the risk of fraud and enhancing trust in the system.
NFT Character Upgrades: The NFT character leveling mechanism is implemented through a smart contract, which:
Verifies token spending.
Calculates the success rate of the upgrade.
Burns tokens in case of failure and applies the results (such as improved character stats).
This contract ensures fairness: the upgrade rules are immutable and apply equally to all users, creating a level playing field.
Other Game Mechanics: Soroban contracts can manage various in-game mechanics, such as:
Prize pool distribution for tournaments.
Random reward issuance (loot boxes).
Tax calculations for room owners (related to NFTs).
All these actions occur on the blockchain level, ensuring that neither administrators nor developers can alter the logic or manipulate the economy, increasing trust within the community.
The Soroban contracts are designed to be easily scalable and secure. All computations are processed on the decentralized Stellar nodes, eliminating the risk of a single point of failure. Before deployment, the contract code undergoes thorough security audits, ensuring that the platform’s logic remains secure and reliable. This is also highlighted in the team section, where external auditors are mentioned to ensure transparency.The integration of Soroban allows Gethar to combine the flexibility of programmatic logic with the security and reliability of the Stellar blockchain, making the platform both scalable and trustworthy for users.