🟢
warp.green | Docs
  • Users
    • FAQ
    • Creating a New Wrapped CAT
    • Contact Us
  • Developers
    • Introduction
    • Contract Addresses
    • warp.green
      • EVM - Sending And Receiving Messages
      • Chia - Sending Messages
      • Chia - Receiving Messages
      • Collecting Signatures
    • ERC-20 Bridge
      • Wrapping ERC-20s
      • Unwrapping ERC-20s
      • MilliETH
    • CAT Bridge
      • Wrapping CATs
      • Unwrapping CATs
  • Validators
    • Wallets
    • Deployment
    • Attestations
    • Rekeying
Powered by GitBook
On this page
  1. Developers
  2. ERC-20 Bridge

Unwrapping ERC-20s

PreviousWrapping ERC-20sNextMilliETH

Last updated 1 year ago

Unwrapping ERC-20s is initiated by burning wrapped ERC-20 CATs on Chia by building and submitting a spend bundle as depicted above. This operation generates a message coming from a trusted 'CAT Burner' puzzle, which can then be relayed to the destination chain. After the user calls the portal's receiveMessage function, the message will be relayed to the ERC20Bridge contract (message destination), which will send the equivalent amount of ERC-20 tokens (minus the bridging tip) to the destination address that was specified when bridging was initiated on Chia.

Overview of steps needed to unwrap ERC-20s & Chia-side initial transaction model