project screenshot 1
project screenshot 2
project screenshot 3

The CoWncil

The coWncil: A fully on-chain trading tournament platform powered by CowSwap, where users create and join tournaments to compete and crown the best trader.

The CoWncil

Created At

ETHGlobal Bangkok

Winner of

Blockscout - Blockscout Explorer Big Pool Prize

Prize Pool

Project Description

The coWncil is a fully on-chain trading tournament platform designed to bring competition and excitement to crypto trading. It allows users to create and join trading tournaments with various customizable parameters. Users can define the tournament name, set an entry fee in USD that contributes to the prize pool, limit the number of participants or set no limit, establish a maximum trading budget for participants, and specify the start and end dates of the tournament. Stablecoins like USDC are used for entry fees and prize pools, ensuring simplicity and stability in the financial aspect of tournaments.

To ensure accurate profit and loss tracking, all trades made during tournaments must be executed through our custom swap interface, which integrates pre-hooks from CowSwap. This ensures that every trade is registered and accounted for in the tournament calculations, providing a fair and transparent way to rank participants based on their trading performance.

The platform offers a dedicated profile space where users can view all the tournaments they have created, as well as those they are participating in. Users can track detailed statistics, rankings, and personal performance within their tournaments. A create tournament page allows users to define all parameters for their tournaments, while the tournaments page displays all active and upcoming tournaments, enabling users to browse and join competitions. The swap page facilitates token swaps directly, ensuring trades are valid for tournament participation and are seamlessly tracked by the platform.

The coWncil leverages CowSwap’s pre-hooks to provide real-time profit and loss calculations based on user trades. Rankings are dynamically updated throughout the tournament, reflecting participants' performance with high accuracy. Entry fees are pooled into a decentralized prize pool, which is distributed at the end of the tournament based on trading results.

By operating entirely on-chain, the coWncil ensures transparency and trustworthiness in every aspect, from tournament creation to prize distribution. The platform not only tests trading skills but also offers users a unique opportunity to compete for rewards in a decentralized, transparent, and secure environment.

How it's Made

Our application is built with Next.js 15, styled using Tailwind CSS and ShadCN for a modern and responsive interface. We leverage Viem, Wagmi, and an Ethers.js adapter to handle blockchain interactions seamlessly. Data is fetched either directly on-chain or via the CowSwap API using a custom backend, ensuring accurate and efficient tournament tracking.

Our smart contract, written in Solidity and deployed on Sepolia, manages key features like entry fees, prize pools, and participant tracking. By integrating CowSwap’s pre-hooks with our custom swap interface, we accurately track user trades for real-time profit and loss calculations in tournaments.

This stack combines modern front-end tools, blockchain frameworks, and API integrations to deliver a transparent, fully on-chain trading competition platform.

background image mobile

Join the mailing list

Get the latest news and updates