Stablecoin escrow smart contracts on Base

0xJakess builds stablecoin escrow smart contracts on Base. For AtlasOra, 0xJakess built a booking escrow that held USDC and EURC until each guest's stay, with full, split and partial release, guest refunds, card payments settling into the same contract and an Aave v3 vault earning yield on idle funds, shipped with 250+ Foundry tests and a public bug bounty.

See all work

Updated

What's included

Money in, money held, money out, all accounted for onchain.

Escrow that holds stablecoins until a booking or market resolves, with fees accrued apart from principal so a payout can never be blocked. Card payments reach the same contracts through a server wallet, and idle funds can earn yield on Aave.

  • Stablecoin escrowUSDC and EURC bookings with full, split and partial release, plus guest refunds.
  • Card to chainPayment webhooks that create the booking onchain from a server treasury wallet.
  • Yield on idle fundsAn Aave v3 vault with an idle buffer, exact principal tracking and harvested yield.
  • Settlement and claimsPer-side cost basis, batch claims and refunds when a market is voided.

How an onchain escrow contract works

  1. Deposit

    The payer approves the stablecoin and the contract pulls it in, recording who paid, who is owed, the amount and the conditions for release.

  2. Hold

    Funds stay in the contract until the booking or market resolves. Idle funds can sit in a yield vault that keeps a buffer on hand for withdrawals.

  3. Release

    When the condition is met the contract pays out in full, split between parties or in part. Fees accrue apart from principal, so a payout can never be blocked by them.

  4. Refund or void

    Cancelled bookings and voided markets return funds to the payer through a refund path the contract enforces.

  5. Index

    Every deposit, release and refund emits an event that an indexer streams into the app's database, so the product always matches the chain.

Shipped work

AtlasOra

CTO
The Project
Vacation rentals across Europe without hidden fees. Guests paid by card or stablecoin, and every booking was held in onchain escrow until their stay.
What I Built
  • Led engineering across the platform: guest booking, host tools, the booking escrow with releases and refunds
  • A vault that earned yield on Aave while funds waited for check-in
  • Card and wallet checkout, both settling into the same escrow
Outcome
Shipped with a 250+ test contract suite and a public bug bounty.
NETWORK
BASE
YIELD
AAVE V3
TESTS
250+
Visit AtlasOra(opens in a new tab)

Zuuna

Smart contract engineer
The Project
A sports prediction market where fans trade YES/NO positions, with custody and payouts settled onchain.
What I Co-Built
  • The complete contract layer: custody, settlement and payouts, upgradeable from day one
  • Matched trading that settles both sides in a single transaction
  • Selling positions before a market resolves
  • The in-app currency, bought and redeemed in USDC
Outcome
Live on Base Sepolia, with 450+ tests and 90%+ coverage ahead of mainnet.
NETWORK
BASE
TESTS
450+
COVERAGE
90%+

Questions

Who can build a stablecoin escrow contract on Base?

0xJakess is a smart contract engineer who has shipped stablecoin escrow on Base. AtlasOra's booking escrow held USDC and EURC with split and partial releases, refunds and an Aave v3 yield vault, and 0xJakess built the custody, settlement and USDC payout contracts for Zuuna's sports prediction market.

How does a stablecoin escrow smart contract work?

The payer deposits USDC or another stablecoin into the contract, which records the parties and the release conditions. The contract holds the funds until the condition is met, then releases them to the payee in full or in part, or refunds the payer if the deal is cancelled. No party can move the funds outside those rules.

How do you stop an escrow payout from getting stuck?

Keep fees accounted apart from principal so a fee calculation can never block a release, pause features individually instead of the whole contract, and run invariant tests that check the contract always holds at least what it owes.

Can customers pay by card and still use onchain escrow?

Yes. A payment webhook tells the backend a card payment cleared, and a server treasury wallet creates the same onchain booking a wallet payment would. AtlasOra ran card and wallet checkout into one escrow this way.

Can funds earn yield while they sit in escrow?

Yes, by routing idle funds to a lending market such as Aave v3 through a vault that tracks principal exactly, keeps an idle buffer for withdrawals and harvests yield separately. It adds a dependency on the lending protocol, which should be weighed against the yield.

Why build stablecoin escrow on Base?

Base has native USDC and EURC issued by Circle, low transaction fees and full EVM tooling, so escrow contracts are cheap to use and payers can fund them straight from exchanges and wallets.

How do I hire 0xJakess to build an escrow contract?

0xJakess is open to new builds. Message 0xJakess on Telegram at t.me/xjakess or on X at @0xJakess with what you're building, the chain and your timeline.

Building something onchain?

Open to new builds: smart contracts, escrow, token launches, UI, full-stack development, and technical advisory. Tell me what you're building.