About
BetSwap AI, enables users to place and swap bets on real-world events (e.g., sports outcomes) between Ethereum and NEAR blockchains. Bets are represented as tokenized positions (e.g., ERC-20 on Ethereum or NEP-141 on NEAR) that can be swapped cross-chain. Payoffs are AI-driven, using oracle-fed data analyzed by AI models to determine outcomes automatically and trigger distributions. This ensures trustless, transparent resolutions without human intervention.
Key features:
+ Cross-chain swaps: Bidirectional swaps of bet tokens between Ethereum and NEAR using an extension of 1inch Fusion+. + AI-driven payoffs: Integrates AI (via NEAR's Shade Agents) to analyze real-world data from oracles (e.g., Chainlink on Ethereum, or custom oracles on NEAR) for event outcomes. + Enhancements: Dutch auctions for price discovery, partial fills for flexible swaps, and incentives (e.g., token rewards for liquidity providers and solvers). + Decentralized solver: A custom solver built with NEAR's Shade Agent Framework, deployed in a Trusted Execution Environment (TEE), that generates quotes and meta-orders for 1inch Fusion+.
The dApp preserves hashlock and timelock for atomicity on NEAR (non-EVM), ensuring secure, intent-based swaps. For the demo, we'll use testnets (Sepolia for Ethereum, NEAR Testnet) with on-chain token transfers.
Frontend (Stretch Goal - UI): A simple React-based UI for placing bets, initiating swaps, and viewing payoffs. Users connect wallets (MetaMask for Ethereum, NEAR Wallet). Smart Contracts:
Ethereum: Bet contract (ERC-20 tokens for bets), integrated with 1inch Limit Order Protocol for Fusion+. NEAR: Bet contract (NEP-141 tokens), hashlock/timelock logic for atomic swaps.
Cross-Chain Layer: Extended 1inch Fusion+ for ETH-NEAR swaps, using NEAR Chain Signatures for signing Ethereum txns from NEAR. Solver: Decentralized AI agent (Shade Framework in TEE) that listens for intents, generates Fusion+ meta-orders. AI Payoffs: Shade Agent queries oracles, runs AI models (e.g., simple ML for outcome prediction), and triggers payoffs. Incentives: Reward tokens (e.g., custom ERC-20/NEP-141) for solvers and LPs via staking yields.
The system uses intents: Users express "bet swap intents" (e.g., "Swap my ETH bet token for NEAR equivalent at best rate"), solved cross-chain.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






