cw-wager matches owners of Pixel Wizards NFTs looking to make a bet on which of two crypto token assets will surge the most in price (by percentage points) in a specified amount of time. More info about the game available on Medium.
cw-wager matches owners of Pixel Wizards NFTs looking to make a bet on which of two assets will surge the most in price (by percentage points) in a specified amount of time.
Both parties must have bet the same amount (available in increments determined at instantiation). The winner of the wager gains all of the funds deposited, minus a set percentage for service fees and fair burn, both of which are set at instantiation and can be updated by the contract admin.
Party 1 submit their intentions to start a wager to the contract, which matches them immediately if another party's submission matches their specific conditions. If none are available, Party 1 is added to the matchmaking pool, and their wager will be started when a suitable opponent is found. The time in seconds for a matchmaking item to expire can be set at instantiation.
Example:
The contract will match both of these users, and a cosmjs agent will determine the winner of the wager based on data made publicly available by the Pixel Wizards Knowledge API, with prices pulled every two minutes from Coingecko's API.
Commonwealth: https://gov.stargaze.zone/discussion/10183-deploy-pixelwizards-cwwager-contract
Source: https://github.com/pixelwizardsnft/cw-wager
Testnet deployment: https://duel.pixelwizards.art
Twitter: https://twitter.com/pixlwizardsnft
Discord: https://discord.gg/pixelwizards
81d325cc6c8188b702fef5b058afd13248e218ca902bc7b9f9d8ebac20fc8265 cw_wager-aarch64.wasm