XRGE Bridge
Bridge XRGE tokens between Base (EVM) and RougeChain L1 using the BridgeVault contract.
Overview
Unlike qETH/qUSDC (which are wrapped assets), XRGE is the native token of RougeChain. The XRGE bridge allows moving XRGE between its ERC-20 representation on Base and the L1 network.
XRGE Token on Base: 0x147120faEC9277ec02d957584CFCD92B56A24317
Deposit (Base XRGE → L1 XRGE)
- Approve the BridgeVault contract to spend your XRGE
- Call
deposit(amount, rougechainPubkey)on the BridgeVault - The vault locks your XRGE and emits a
BridgeDepositevent - Call the
/api/bridge/xrge/claimendpoint with the transaction hash - The node verifies the receipt and credits XRGE on L1
Withdraw (L1 XRGE → Base XRGE)
- Go to the Bridge page and use the XRGE Bridge Out tab
- Enter the amount and your Base EVM address
- Submit the signed withdrawal
- The relayer calls
release()on the BridgeVault to unlock your XRGE on Base
BridgeVault Contract
The BridgeVault is a lock-and-release contract:
deposit(amount, rougechainPubkey)— Lock XRGE, emit event for relayerrelease(to, amount, l1TxId)— Owner (relayer) releases XRGE back to uservaultBalance()— View how much XRGE the vault holdsemergencyWithdraw(token)— Admin-only emergency recovery
Liquidity in the vault = total XRGE locked by depositors minus released amounts.