Grant Application - PolySwap

Grant Application: PolySwap

PolySwap: Automated DeFi Swaps Powered by Predictive Markets


Author:

This project will be develop by :

In this github organisation where there is already the code done during the hackathon : EthGlobalBangkok repositories · GitHub


About You:

Baptiste is a blockchain engineer and entrepreneur formerly cofounder and CTO of Nefture a web3 security startup. He has extensive experience in launching web3 projects and has won multiple hackathon prizes.

Lucas is a computer science student at EPITECH, passionate about web3, building blockchain projects beside school. He’s doing an internship at Kiln, leading player in the staking ecosystem. He’s motivated to build a significant project to build up his experience.


Additional Links:

ETHGlobal project page with some pictures of the telegram mini app : PolySwap | ETHGlobal


Grant Category:

Other: new use case using CoW Swap Smart orders


Grant Description:

PolySwap allows for the automatic trigger of DeFi swaps based on predictive markets like Polymarket. The project was awarded during ETH Global Bangkok 2024 and its team is pushing for its development and release.

The value proposition is simple:

  1. the user selects a prediction market. For example, the winner of a presidential election or the performance of a new “state of the art” AI model,
  2. they then create a PolySwap order through CoW to trigger a swap in the conditions where the selected market’s odds reach a certain threshold,
  3. once the condition is achieved on-chain, solvers can execute the swap autonomously without the need for the user’s input

PolySwap enables web3 users to seamlessly automate trading execution based on real world predictions.

For the first version, because CoW Swap smart orders aren’t compatible with Polygon yet, we are using the prediction market limitless on Base.

We plan to deploy the second version of the protocol on Polygon POS once CoW is deployed there.
In upcoming versions, we plan on expanding deployments to all CoW compatible chains using cross-chain messaging technologies.


Grant Goals and Impact:

This project bridges DeFi automation with real-world predictive markets, offering users a powerful tool to manage risk and make smarter market decisions. With a simple frontend interface, it’s accessible to anyone. :rocket:

This DeFi tool will allow CoW users to access a whole new way to automate their trading workflows with trustless prediction market triggers. PolySwap is a very good way to demonstrate the power of the CoW Swap modular intent based architecture, potentially drawing new eyes to the CoW ecosystem.


Milestones:

Please identify the key milestones that will help track the progress of your grant. Use the provided table as a summary and expand on each milestone description and deliverables below.

Milestone Due Date payment
PolySwap contracts development and deployment 6 weeks 4k xDAI + 1k CoW
Open source solver 6 weeks 500 xDAI + 500 CoW
Frontend dapp design 3 weeks 250 xDAI + 250 CoW
Dapp development and deployment 6 weeks 250 xDAI + 250 CoW

Contracts development and deployment (6 weeks)

Create a smart contract able to read a CoW intent, verify that the prediction market’s trigger was achieved, and execute the swap through CoW swap.
Deploy the contract on Base.

Open source solver (1 week)

The PolySwap solver will continuously monitor prediction market outcomes and, once predefined conditions are met, trigger the execution of a corresponding CoW Swap intent. It validates both market resolution and swap parameters, ensuring seamless, trustless automation of conditional DeFi trades through the CoW Protocol infrastructure.

dApp development (3 weeks)

  1. design

Design a user experience capable of clearly conveying how to create, track and modify prediction market based swap intents.

  1. development

Integrate the design as a NextJS web application, integrate wagmi.sh for wallet connection, create a backend and database to index and serve on-chain data.


Funding Request:

We propose that milestone payments be released upon each milestone’s approval.


Budget Breakdown:

This funding would allow us to support the necessary development time to achieve completion of this project’s. Reaching this first milestone would then open us to many other development opportunities with different chains, prediction market solutions and other compatible web3 projects.


Gnosis Chain Address (to receive the grant):

gno:0x20D3Ab73226A5121Da6F2a33C8F78538f4F8D30a

Other Information:

  • All the code will be open sourced and is already
  • Feel free to provide any other trigger for the swap or something else that you think about and that can be added in the grant
  • We’re happy to answer any questions and are open to feedback about this proposal

Referral:

Alex Viñas


Terms and Conditions:

By submitting this grant application, I acknowledge and agree to be bound by the CoW DAO Participation Agreement and the CoW Grant Terms and Conditions.