agentleFS
SperaxSperax/sperax-skills/skills/cross-chain-bridge-guide/SKILL.md

cross-chain-bridge-guide

Skill8 starsChanged 9 months agoMITView on GitHub

Guide to cross-chain bridges — bridge architectures, trust assumptions, security risks, major bridges comparison, and bridging best practices. Covers Stargate, Across, Hop, Wormhole, and official L2 bridges. Use when helping users move assets between chains safely.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Risk: If bridge contract is hacked, all locked tokens are at risk.

    line 84
  2. Distinctive:

    Use L2-to-L2 bridges: when possible (skip L1 entirely)

    line 175

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cross-Chain Bridge Guide

Bridges move assets between blockchains. This guide covers how they work, which to use, and how to stay safe.

Why Bridges Exist

Each blockchain is an isolated system. Bridges connect them:

Ethereum ←──Bridge──→ Arbitrum
    ↕                      ↕
  Bridge                 Bridge
    ↕                      ↕
 Base    ←──Bridge──→  Polygon

Use cases:

  • Move ETH from Ethereum to Arbitrum for cheaper DeFi
  • Access protocols only available on specific chains
  • Consolidate assets scattered across chains

Bridge Architectures

Type 1: Native Bridges (Official L2 Bridges)

Used by rollup L2s to move between L1 and L2.

BridgeRouteDeposit TimeWithdrawal Time
Arbitrum BridgeETH ↔ Arbitrum~10 min7 days (fraud proof)
Optimism BridgeETH ↔ Optimism~10 min7 days (fraud proof)
Base BridgeETH ↔ Base~10 min7 days
zkSync BridgeETH ↔ zkSync~10 min~1 hour (ZK proof)

The 7-day problem: Optimistic rollups require a 7-day challenge period for withdrawals to L1. This is why third-party bridges exist.

Type 2: Liquidity Network Bridges

Pre-fund liquidity on both chains. Users swap locally:

User deposits ETH on Chain A → Receives ETH from liquidity pool on Chain B
(No actual cross-chain message needed — just liquidity matching)
BridgeSpeedChainsBest For
Stargate1–5 min15+Stablecoins, large amounts
Across2–10 min10+ETH, fast transfers
Hop5–20 min5+ETH, stablecoins

Pros: Fast, no 7-day wait Cons: Limited by available liquidity, fees

Type 3: Message-Passing Bridges

Send a message cross-chain, mint/release on destination:

BridgeMechanismChains
WormholeGuardian network validates30+
LayerZeroOracle + relayer (ultralight)30+
AxelarPoS validator network50+

Pros: Support many chains and token types Cons: Trust additional validator set, historically targeted by hackers

Type 4: Lock-and-Mint

1. Lock tokens on Chain A
2. Mint wrapped tokens on Chain B
3. To return: Burn on Chain B → Unlock on Chain A

Used by: Wormhole (wETH), Multichain (any-token), many protocol-specific bridges

Risk: If bridge contract is hacked, all locked tokens are at risk.

Bridge Comparison

BridgeSpeedCostSecurityBest For
Official L2 Bridge10 min in / 7 days outGas onlyHighest (L1 security)Large amounts, no rush
Stargate1–5 min~$0.50–5High (LayerZero)Stablecoins
Across2–10 min~$0.50–3High (UMA optimistic)ETH, fast transfers
Hop5–20 min~$1–5High (AMM model)Proven, reliable
Wormhole5–15 minVariableMedium (guardian set)Multi-chain (Solana)
Synapse5–15 min~$1–5MediumWide chain support

Security History

Bridges have been the #1 target for hacks in crypto:

BridgeDateLossWhat Happened
Ronin (Axie)Mar 2022$625MValidator keys compromised
WormholeFeb 2022$325MSmart contract bug
NomadAug 2022$190MLogic error in verification
MultichainJul 2023$130MAdmin key compromise
HarmonyJun 2022$100MMultisig key theft

Lesson: Bridges are high-value targets. Use established bridges with strong security track records.

Bridging to Arbitrum (Sperax's Home Chain)

To use Sperax (USDs, SPA staking, Farms), you need assets on Arbitrum:

Recommended Paths

FromAssetRecommended BridgeTimeCost
EthereumETHAcross or Stargate2–5 min~$1–3
EthereumUSDCStargate1–5 min~$0.50–2
EthereumAny ERC-20Arbitrum Official Bridge10 minGas only
BaseETH/USDCStargate or Across2–5 min~$0.50–2
OptimismETH/USDCStargate or Across2–5 min~$0.50–2
PolygonUSDCStargate1–5 min~$0.50

Step-by-Step: Bridge ETH to Arbitrum

1. Go to bridge.arbitrum.io (official) or across.to (faster)
2. Connect wallet
3. Select: From Ethereum → To Arbitrum
4. Enter ETH amount
5. Review fees and estimated time
6. Approve and send transaction
7. Wait for confirmation on Arbitrum
8. Verify on Arbiscan that funds arrived

Best Practices

Safety Checklist

  • Use established bridges only — Stargate, Across, Hop, official L2 bridges
  • Verify the URL — bookmark bridge sites, don't click links
  • Start with a small test — bridge $10 first before large amounts
  • Check bridge TVL — higher TVL = more battle-tested
  • Verify on destination — confirm tokens arrived on the destination chain
  • Understand wrapped vs native — bridged USDC might be different from native USDC

Common Mistakes

MistakeHow to Avoid
Bridging to wrong chainDouble-check destination chain before confirming
Not having gas on destinationKeep 0.001+ ETH on Arbitrum/L2 for gas
Using a hacked/deprecated bridgeCheck if bridge is still active and maintained
Bridging during congestionCheck L1 gas prices if bridging via Ethereum
Getting wrapped tokens instead of nativeSome bridges give wrapped USDC.e instead of native USDC

Native vs Wrapped Tokens

TermMeaningExample on Arbitrum
NativeIssued directly on the chainUSDC (Circle native)
Bridged/WrappedBridged version of an L1 tokenUSDC.e (bridged from Ethereum)

Both are usable, but native is preferred for DeFi (better liquidity, no bridge risk).

Sperax accepts both: USDs can be minted with both USDC (native) and USDC.e (bridged) on Arbitrum.

Cost Optimization

Tips

  1. Use L2-to-L2 bridges when possible (skip L1 entirely)
  2. Bridge during low-gas periods (weekends, US nighttime)
  3. Batch your bridging — one $1000 bridge is cheaper than ten $100 bridges
  4. Compare on aggregators — Li.Fi, Bungee, and Socket aggregate multiple bridges

Bridge Cost Aggregators

AggregatorWhat It Does
Li.FiCompares routes across bridges + DEXes
Bungee (Socket)Multi-bridge route optimization
JumperCross-chain swap + bridge in one tx

Agent Tips

  1. Official L2 bridges are safest but slowest (7-day withdrawal)
  2. Stargate for stablecoins, Across for ETH — best speed/security balance
  3. Never use unknown bridges — bridge hacks are the largest losses in crypto
  4. Always keep gas on destination — users forget they need ETH for gas on L2
  5. Test with small amount first — especially on a new bridge or chain
  6. For Sperax/Arbitrum users: Across or Stargate from Ethereum is the recommended path

Links

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.