Skip to main content

Contract Architecture

Melt’s smart contracts implement a Lock & Mint bridge pattern using LayerZero V2 for cross-chain messaging.

Contracts

Tech Stack

  • Solidity 0.8.22
  • Foundry (Forge + Cast) for testing and deployment
  • LayerZero V2 OApp for cross-chain messaging
  • OpenZeppelin Contracts for ERC20, AccessControl, Pausable, ReentrancyGuard

Key Concepts

Config Key

Tokens are identified by a configKey — the keccak256 hash of (originalToken, sourceEid). This allows the same underlying token to have different configs when bridged from different source chains.

Roles

Next Steps