/AZWorlds

Primary LanguageSolidityMIT LicenseMIT

AZWorlds Github Actions Foundry License: MIT

Frontend

https://github.com/0x73696d616f/azworlds-frontend

Backend

https://github.com/0x73696d616f/AZWorlds-backend

Description

AZWorlds is a cross chain finance/skill play to earn game where players compete for the most power and get real rewards in return. It can be played from any chain using LayerZero's infrastructure, giving access to many assets and defi protocols.

Players buy their characters in a variable rate gradual dutch auction with a target price of 10 USDC per character. 80% of the USDC is sent into the military and 20% to the developing team. Players can join the military and receive shares (gold) of the USDC deposits over a 1 year interval based on their power.

The power of characters can be increased by fighting bosses on each chain once a day that makes them level up and drop truly random items cryptographically proven using chainlink's VRF2 oracle.

Players can swap items for gold at the marketplace by placing sell and buy orders. They can then equip the bought items for more power.

In the bank, a ERC4626 vault, players can deposit USDC and retrieve gold (shares).

USDC deposited in the bank by either character sales or investors is invested in a protocol decided by governance. This means that players not only receive rewards based on their power, but also by investing in defi protocols of their choice. Each character gives a player 1 voting power unit.

Players can also play the UpVsDownGame with gold, betting on the DAI/MATIC price given by a 1 inch protocol price oracle, bringing full decentralization to AZWorlds. The oracle is flash loan protected by only allowing EOA's to fetch the oracle price.

Character Sale

The characters in the game are omnichain ERC721's, currently on Sepolia and Mumbai testnets. When a character is transfered, its level, power, equipped items and gold and also sent. The variables are tightly packed in a struct such that it only takes 1 storage space to store all char info, making it very easy to transfer characters between chains.

The sale is a variable rate gradual dutch auction with a target price of 10 USDC. This enables the price discovery of the game characters, due to the fact that the price lowers or increases based on demand.

Boss

The boss spawns every day (currently 5 minutes for testing), once per chain. Players attack the boss, and then after the round duration they can claim their reward. The randomness is provided by chainlink VRF2.

Marketplace

Players can place sell and buy orders, specifying the item ids and gold price of the items.

Military

Players can join the army and received gold rewards based on their power.

Bank

Anyone can deposit USDC and get gold (shares) in return. Character holders can also vote to invest in different protocols.

UpVsDownGame

Players can use gold to bet on the DAI/MATIC price. Fully decentralized by using the 1Inch spot price aggregator.

Testing the game

Head over to 0xaC5ded3fc6858cf82dD631a68b3Aed1C83afc05C at sepolia testnet and mint up to 1000e18 mock USDC for free. Then, buy a character at https://azworlds-frontend.vercel.app/characterSale.

About Us

Three Sigma is a venture builder firm focused on blockchain engineering, research, and investment. Our mission is to advance the adoption of blockchain technology and contribute towards the healthy development of the Web3 space.

If you are interested in joining our team, please contact us here.