Gasless cross-border remittances via Uniswap v4 pricing, Yellow Network & Merkle proofs
TradeX PRISM solves the $42B/year remittance fee problem by separating price discovery from settlement—inspired by how TradFi FX markets handle $6.6T daily.
The protocol refracts each swap into two rays:
PRISMHook.sol then ties them together with on-chain Merkle attestations, creating permanent proof that settlements happened at the V4 fixing rate—auditable by anyone, forever.
For a Dubai worker sending AED 500 home to India:
The user gets ENS support, an address book, and automatic chain-switching between Sepolia (Yellow Network) and Base Sepolia (Uniswap V4). Every swap is verified on-chain while settlement happens off-chain—zero slippage, zero gas, maximum transparency.
Built for 280M migrant workers worldwide who deserve better than 3-7% fees and hidden FX markups.
PRISM is a multi-chain protocol spanning Sepolia and Base Sepolia, orchestrating three complex systems into one seamless UX.
CORE ARCHITECTURE:
UNISWAP V4 INTEGRATION (Base Sepolia)
YELLOW NETWORK SETTLEMENT (Sepolia)
MERKLE ATTESTATION LAYER
FRONTEND (Next.js 16 + React 19):
HACKY/NOTABLE BITS:
Cross-chain coordination without bridges: Sepolia holds Yellow Network state channels, Base Sepolia holds V4 pools + attestations. The frontend orchestrates both via automatic network switching.
sqrtPriceX96 math: Converting Uniswap's Q64.96 fixed-point format to decimal rates required careful precision handling. We use BigInt throughout to avoid floating-point errors.
Merkle tree optimization: Settlements are batched into epochs. Instead of posting every swap on-chain (expensive), we post one Merkle root per batch. This scales to 1000+ settlements/attestation.
Yellow Network integration was challenging—Nitrolite SDK is WebSocket-based, so we built a persistent connection manager in yellowNetwork.ts that handles reconnects, session persistence, and error recovery.
Hook address calculation: PRISMHook deploys to a deterministic address ending in specific flags (0x7992) to enable all hook callbacks. Used CREATE2 with salt mining.
ENS everywhere: Users can send to .eth names instead of addresses. The UI fetches ENS text records (avatar, description, Twitter) to show rich contact cards.
TECH STACK:
DEPLOYED & VERIFIED:
The result: A working cross-border remittance protocol that's 95% cheaper and 12,960x faster than SWIFT, with cryptographic proof of fair pricing.

