Use the power of prediction markets to automate your DeFi liquidity management based on major events across chains. Our easy to use telegram mini-app allows you to automatically fetch PolyMarket data from any chain thanks to LayerZero in order to trigger DeFi actions π
PolySwap solves an important consumer hurdle. The crypto market regularly lives through periods of market volatility caused by large events related to politics, sports or other.
Let's take the example of the latest US election. Many predicted that the election of Donald Trump would lead to a crypto pump and were in the need to swap from stable coins to various crypto currencies as soon as the result would approach finality in order to benefit from the price action.
This is easier said than done as you would need to manually make all swaps at the right time.
PolySwap allows you to trustlessly and automatically pull data from prediction markets to trigger DeFi swaps across chains.
Project Overview:
This project is a Telegram mini-app that simplifies the management and automation of crypto assets. Users can: Connect their wallet via WalletConnect or create one easily using social login options like Google or your email. Select token from their portfolio to monitor and swap automatically. Set custom triggers tied to predictive markets on Polymarket to automate swaps based on real-world events or probabilities. For example, if a user is following a market predicting "Will the price of Bitcoin reach $40,000 by December 31?", they can configure a trigger to swap a volatile tokens (e.g., WETH or LINK) into a stablecoin (e.g., USDC). This helps mitigate risk and respond to market shifts proactively.
Core Features:
Effortless Wallet Setup: Connect any wallet using WalletConnect (e.g., MetaMask, TrustWallet). Create a wallet instantly with social login for ease of use, even for crypto newcomers. Token and Stablecoin Selection
Users can select any erc20 token from their portfolio to be swapped automatically.
Crosschain polymarket Integration: Link swap automation on any chain to predictive markets on Polymarket (Polygon), using market status and LayerZero read as action triggers. Example: Set a swap trigger if the likelihood of an event drops below 10%.
CoW Swap smart orders: It allows for seamless automation of processes and prevents from overloading the LayerZero read execution callback.
Why This Project Matters This project bridges DeFi automation with real-world predictive markets, offering users a powerful tool to manage risk and make smarter crypto decisions. With a simple Telegram interface and flexible wallet options, itβs accessible to both crypto veterans and newcomers. π
Automated DeFi Swaps with CoW Swap: Swaps are executed using CoW Swap, a decentralized trading protocol optimized for efficient and secure token exchanges. CoW Swap ensures that transactions are matched optimally to minimize costs and slippage.
Crosschain Polymarket data Integration: Real-time market data from Polymarket is retrieved from different chains through LayerZero read capabilities.
Wallet Connection with Dynamic: Supports wallet integration via WalletConnect or dynamic creation of wallets using social logins (e.g., Google, Facebook). This ensures seamless onboarding for both experienced users and newcomers to DeFi.
Telegram Bot Interface: Provides a simple and intuitive platform for users to: Connect their wallets. Select tokens and stablecoins. Define market-based triggers for automated swaps. Smart-Order Execution Workflow
The smart-order contract is deployed and linked to the user's predefined trigger conditions. A solver continuously monitors Polymarket results and market conditions to detect when the trigger is met. Upon meeting the condition, the solver interacts with the smart-order contract to confirm the trigger event and initiate the token swap via CoW Swap (the smart-order will check again the result via Layer Zero).
This github link is our github organisation with all the repository used (backend and frontend): https://github.com/EthGlobalBangkok/