A castle mint is calcuted by the amount of units included plus $10, so that means after you minted you can immediately sell the units back to the treasury and end up with the same amount of money minus $10.
The battle winner will gain 5% experience from the size of your opponents army, and 5% of the opponents gold. The winner will also always lose a small amount of units (3% of the lowest damage unit) but will gain the value back with added experience.
The losing caste will lose 5% of your total army and 5% of their gold.
There is a <5%> that if you lose an invasion some of your losses will be recuperated from the games treasury. <3%> of the games treasury will be used to recoup the loser unit loses with experience. If the player does not choose to purchase units at a premium the game technically transform into a positive-sum game in the long run.
The amount a player get from selling a unit is calculated as follows (Unit price * Unit level ) * Amount of battalions
The game is operated by 9 interlinking Solidity smart contracts, which are connected through Solidity interfaces. These include the Base Contract, the Castle Controller, Castle Storer, Units Controller, Marketplace Controller, Marketplace Storer, Main Storer, and the NFT contract. Logic and data have been separated so logic can be updated without any data loss or data migration needed.