Book a free call

Cross-Chain Bridge Best Practices for Teams That Run One

A cross-chain bridge moves assets between blockchains, and a mistake can strand funds. Here are the practices that keep a bridge safe, liquid and honest.

Hertiv engineering teamReviewed by a senior engineer
5 min read
Cross-Chain Bridge Best Practices for Teams That Run One
On this page

Short answer

A cross-chain bridge moves tokens between blockchains by locking them on one chain and minting or releasing them on another. The practices that matter most are audited contracts, capped exposure per chain, honest fees, deep liquidity for the routes you support and monitoring that can pause the bridge when something looks wrong.

What is a cross-chain bridge?

A cross-chain bridge is software that moves tokens between two blockchains by locking them on the source chain and minting or releasing an equivalent amount on the destination chain. It lets a token held on one chain be used in an application on another. If the concept is new, start with what a cross-chain bridge is before reading the practices below.

Bridges work in two main ways. A lock-and-mint bridge holds the original token and issues a wrapped version on the other chain, while a liquidity-pool bridge swaps through pools on both sides. Either way, the bridge holds value on at least one chain, which is why its security matters so much.

Running a bridge is different from using one. A team that runs a bridge takes on the contracts, the liquidity, the fees and the monitoring, and a failure in any of those can strand user funds. That is why the practices below exist.

Which practices matter most for a bridge?

The practices that matter most for a bridge cover five areas, and a weak spot in any one of them can undo the others. Use the table below as a checklist before launch and after every change. Revisit the checklist after every contract change, because a small change in one area can open a gap in another.

Area Practice Why it matters
Contracts Audits plus a bug bounty Code holds the funds
Liquidity Deep pools on each route Users can exit at a fair price
Fees Clear fees, no hidden spread Users trust the quoted price
Limits Caps per chain and per transaction One failure stays small
Monitoring Alerts plus a pause switch Bad transfers stop early

The table is a starting point, not a finish line. Each area needs an owner on the team, a written rule and a test that proves the rule works, because a practice nobody checks is only a hope.

How do you keep bridge contracts safe?

You keep bridge contracts safe by auditing them, limiting what they can do and testing the failure cases before launch. An audit by an independent firm is the floor, not the ceiling: the team should also run its own tests on every path a user and an attacker could take. The build steps are covered in how to implement a cross-chain bridge, which this article builds on.

Three controls matter most:

  • Least privilege. Each contract holds only the funds and permissions its job needs, so a flaw in one part cannot drain the rest.
  • Timelocks on upgrades. Contract changes wait a fixed period before taking effect, so users and watchers can react.
  • A pause switch. The team can halt deposits and withdrawals when monitoring flags something wrong.

A bug bounty adds a second pair of eyes after launch, but it is not a substitute for the controls above. Paying a researcher to find a flaw is cheaper than paying for a loss, and a public bounty signals that the team expects scrutiny.

How do you manage liquidity and fees?

You manage bridge liquidity by keeping enough funds on each route for users to exit at a fair price, and by watching the balance on every route every day. A route that runs dry leaves users waiting, and waiting users lose trust fast.

Fees need to be clear before a user starts a transfer: the network fee, the bridge fee and any price impact from the pool. A quote that changes after the user commits is a common source of complaints, so show the full cost up front and honour it.

Caps are the tool that keeps a bad day small. A cap on how much can cross a route in an hour or a day limits the loss if a contract or a key is compromised, and it gives the team time to pause the bridge before the damage grows. If the terms are new, start with what a blockchain is before designing fees and liquidity.

How do you monitor a bridge and respond to incidents?

You monitor a bridge by watching every transfer, every balance change and every contract event, and by alerting a person when a number moves outside its normal range. Monitoring that nobody watches is the same as no monitoring at all.

A workable incident plan has four steps:

  1. Detect the anomaly through alerts on volume, balance or failed transfers.
  2. Pause the affected route, not the whole bridge, if that is enough.
  3. Tell users what happened and what is frozen, in plain language.
  4. Fix the cause, test the fix and reopen the route in stages.

Practice the plan before you need it. A team that has rehearsed a pause and a user notice will act in minutes; a team that has not will spend the first hour deciding who is allowed to act.

Example (hypothetical): a bridge caps a bad day

Example (hypothetical): a bridge moves about $2 million a day across four routes, roughly $500,000 per route. One route has a daily cap of $750,000 and an alert when a single transfer tops $100,000.

A faulty price feed lets an attacker drain value at a wrong rate, and the alert fires after $120,000 has crossed. The team pauses that route within 10 minutes, so the loss stops at $120,000 instead of running to the $750,000 cap, and the other three routes keep working.

The arithmetic shows the value of the cap and the alert together: without the alert, the drain could have reached the $750,000 cap, or six times the actual loss. The pause switch and the per-route cap are what kept one bad feed from becoming a bridge-wide failure.

What are the common mistakes?

The most common mistakes in running a bridge are trusting unaudited code, running a route with thin liquidity and having no pause switch when something goes wrong. Each one has caused real losses on real bridges, and each one is avoidable with the controls in this article.

  • Skipping a second audit after a change. A contract that was safe before an upgrade may not be safe after it.
  • Thin liquidity on a new route. Users who cannot exit at a fair price will not come back.
  • Hidden fees in the quote. A price that changes after the user commits breaks trust fast.
  • No incident plan. Without a rehearsed pause and notice, a team loses hours at the worst moment.
  • One key for everything. If a single key can move funds and change contracts, its loss is a total loss.

Key takeaways

  • A bridge holds user funds, so audited contracts and a pause switch are the floor, not extras
  • Caps per route and per transaction keep one failure small
  • Show the full fee up front and honour the quote
  • Monitor every route daily and rehearse the incident plan before you need it
  • A second audit after every contract change is part of the job, not a luxury

Frequently asked questions

What is a cross-chain bridge?

It is software that moves tokens between blockchains by locking them on one chain and minting or releasing an equivalent amount on another. It lets a token held on one chain be used in an application on a different chain.

Why are cross-chain bridges risky?

A bridge holds funds on at least one chain, so a flaw in its contracts, a compromised key or a bad price feed can drain value. The risk is managed with audits, caps, timelocks, deep liquidity and monitoring that can pause a route when something looks wrong.

What is the difference between a lock-and-mint bridge and a liquidity-pool bridge?

A lock-and-mint bridge holds the original token and issues a wrapped version on the other chain. A liquidity-pool bridge swaps through pools on both sides instead. Both hold value, so both need the same controls on contracts, liquidity and monitoring.

How much liquidity does a bridge route need?

Enough for users to exit at a fair price on a normal day, plus a margin for busy days. Watch the balance on every route daily, and set a cap per route so a bad day stays small. A route that runs dry leaves users waiting and damages trust.

What should a bridge do when something goes wrong?

Pause the affected route, tell users what happened and what is frozen in plain language, fix the cause, test the fix and reopen in stages. Rehearse this plan before launch, so the team acts in minutes instead of spending the first hour deciding who may act.

Do bridge fees change after a transfer starts?

They should not. Show the network fee, the bridge fee and any price impact before the user commits, and honour that quote. A price that changes after the user commits is a common source of complaints and lost trust.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Running a bridge or planning one? Talk to Hertiv.

A senior engineer replies within one business day. Or see our DEX Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call