Bridge or Wreck: Gamified cross-chain bridging with 50/50 bets powered by LayerZero & Pyth Entropy.
Users can opt to take a 50/50 leveraged bet during the bridging process, which makes cross-chain activity more engaging and lucrative. Bridge or Wreck is a decentralized cross-chain bridging protocol that adds a gamified layer to the conventional bridging experience. How It Works
Bridge Tokens
Users deposit and bridge their RISK tokens across supported networks (Base Sepolia, Arbitrum Sepolia currently supported).
Built on LayerZero for seamless cross-chain messaging.
Gamified Betting
During bridging, users can opt-in to a leveraged bet (2x–10x).
A small portion of their deposit becomes the “risked” amount.
Outcomes are determined by Pyth Entropy, ensuring provably fair 50/50 randomness.
Resolution & Settlement
Win: Users receive their full bridged tokens plus bonus rewards.
Lose: A small percentage of their deposit is deducted.
Settlement happens automatically across chains via LayerZero.
Key Features
✅ Cross-Chain Bridging – Transfer assets between Base Sepolia & Arbitrum Sepolia.
✅ Gamified Experience – Add thrill with 2x–10x leveraged betting options.
✅ Provably Fair – Randomness powered by Pyth Entropy.
✅ Seamless UX – Deposits, bets, and payouts all handled in one flow.
✅ Secure & Gas-Optimized – SafeERC20, ReentrancyGuard, and LayerZero security.
Smart Contracts
CrossChainRiskBridge.sol – Manages deposits, bets, and cross-chain settlement.
RiskToken.sol – Custom ERC20 (RISK) used for betting and bridging.
LayerZero Integration – Handles secure cross-chain message passing.
Pyth Entropy Integration – Provides verifiable 50/50 randomness for game outcomes.
Security – Protected with ReentrancyGuard, SafeERC20, and Ownable controls.
🔹 Cross-Chain Infrastructure
LayerZero ensures seamless and trust-minimized message delivery between Base Sepolia and Arbitrum Sepolia.(Currently only added two Base and Arbitrum)
Trusted Remotes setup prevents malicious relaying.
Settlement occurs automatically—no manual steps required.
🔹 Frontend
React + TypeScript – Modern, responsive web interface.
Wagmi + Viem – Wallet connections, contract calls, and chain switching.
TailwindCSS – Clean, mobile-friendly UI.
Real-Time UX – Balance updates, transaction loading states, and automatic network detection.
🔹 Dev Tools & Environment
Hardhat – Contract compilation, deployment, and testing.
Vite – Fast frontend development.
Testnet Setup – Runs on Base Sepolia and Arbitrum Sepolia with deployed RISK tokens.

