KO/EN
← Back to projects
closedClient work·2025.05 – 2025.06

LayerZero v2 OFT

An omnichain token across Ethereum and BNB Chain — a LayerZero v2 OFT extended with permit and pause

My role
Smart contract, Deployment & ops scripts

The challenge

One token had to live on Ethereum and BNB Chain with a single supply and no wrapping, plus signature-based approvals and an emergency stop that the stock OFT template doesn't have.

Key decisions

Permit and Pausable on top of OFT

Built a PermitOFT that composes OFTCore with ERC20Permit and ERC20Pausable, so gasless approvals and pausing work while bridging stays burn-and-mint.

Five DVNs verifying every message

Cross-chain messages are verified by five DVNs with per-direction confirmation counts, so a single faulty verifier can't pass a message.

Timelock plus Safe multisig

Token ownership sits behind a timelock that only Safe multisigs can propose to and execute through, so no single key can mint or change settings; only an emergency pause skips the delay.

In-house security review with AI

Reviewed the contracts and ops procedures in-house with Claude and folded the findings into the permission model and handover steps.

Ops as scripts

Peer wiring, mint/burn, cross-chain transfers, pause and ownership handover are Foundry scripts, with the run order and verification commands written up as an ops guide.

Results

  • Deployed to Ethereum and BNB Chain mainnet, wired both ways
  • Later reused as the Defi Project's main token

Tech

  • Solidity
  • LayerZero v2 (OFT) — OFT customization, DVN and confirmation config
  • EIP-712 — ERC20Permit signature approvals
  • Foundry — Deploy/ops scripts and tests
  • Hardhat — LayerZero config wiring
  • Multisig operations (Safe) — Timelock + Safe multisig operations

Planning & collaboration

  • AI-assisted build & review — In-house security review with Claude