After each purchase, a new countdown begins. If no one else places a bid on the NFT before the countdown ends, the last bid wins it. Players receive a real NFT on the Solana blockchain. This process named as materialization, it converts in-game data into actual ownership of the NFT.
The length of the countdown increases with the value of the NFT. For NFTs priced under 1 SOL, the countdown is one day, while NFTs priced at 100,000 SOL or more have a seven-day countdown.
To facilitate the game's key mechanics, the NFT remains under the game's ownership, until the expiration time. This ensures the NFT bought by you can be resold without any action from you. After purchasing, you don't need to confirm the resale. When it happens - you will gain your profit. And only when NFT time has expired - it goes to the owner.
When an NFT is purchased, its price increases by 22%. The previous owner receives 120% of the sale price, and 2% goes to the game's account. This allows the game to cover all transaction fees on the Solana network.
The NFT has a 2% seller fee, which comes into effect after the materialization process, when the owner sells the NFT on other marketplaces.
Example of profit calculation:
The core of the game, including all logic for the transfer of coins, is located in the on-chain Solana program. This ensures predictability and consistency of the gaming process. Link to program
After your bid, a pre-signed transaction from the server is sent to you. The server is a necessary component, otherwise the game will not be able to sign the transaction and take fees on itself. The on-chain Solana program performs additional checks to ensure you pay exactly the intended amount.
You must then sign this transaction with your wallet, as the Solana network will not accept the purchase otherwise.
A series of checks are performed to ensure that all data is accurate and that no one else has purchased the NFT before you. This is a necessary verification to make sure you pay the exact price you intended. In the transaction, your money will be distributed between the previous owner and the game. The Solana network records that you are the new owner of the NFT in the data of the game core.
At this stage, the purchase process is complete. It takes a while to load and display new data where you are listed as the owner.
When the NFT's expiration period ends, another part of the same on-chain program is activats and starts materialization. It removes the NFT from the game market and transfers it to the owner. After this point, the NFT no longer participates in the game but remains a full-fledged NFT with all available options. This operation is conducted within a few minutes after the expiration period ends.
All logic of single bid puted into a single transaction. In this case the Solana blockchain ensures that a transaction is either successful or rejected due to an error. In the case of an error, no money is deducted from your account.