← All projects

Swift Yield

Borrow, trade and repay inside a single transaction.

EventETHGlobal Superhack 2024 · Tenderly and Worldcoin prizes
My roleTeam build
Swift Yield site preview
$1,280

won at Superhack 2024: Best Dapp on Tenderly Virtual Testnet, plus a Worldcoin pool prize

  • Zero-fee Balancer flash loan
  • Three DEXs integrated
  • World ID proof of personhood
The problem

Price gaps between DEXs close in seconds, and capturing them normally needs capital sitting idle, waiting.

What I did

Swift Yield was a team build: a Node.js bot and a flash-loan contract on Tenderly's Base Virtual Testnet.

SolidityBalancerNode.jsTenderlyWorld ID
How it works
  1. Borrow with no fee

    A Balancer flash loan lends 1 WETH with zero fee.

  2. Trade the gap

    The bot buys on one Uniswap V2-style DEX and sells on another: Uniswap, SushiSwap or PancakeSwap.

  3. Repay in the same transaction

    The loan is repaid before the transaction ends. If the trade isn't profitable, the whole thing reverts.

  4. Prove you're human

    World ID with zero-knowledge proofs gates who can deploy the contract.