Overview
ThePolygonBridgeFacet enables bridging of ETH and ERC20 tokens from Ethereum mainnet to Polygon PoS (Proof of Stake) using the official Polygon bridge infrastructure.
Contract Interface
Functions
startBridgeTokensViaPolygonBridge
Bridges tokens from Ethereum to Polygon PoS.Standard bridge data containing transaction details
swapAndStartBridgeTokensViaPolygonBridge
Performs a token swap on Ethereum before bridging to Polygon.Standard bridge data
Array of swap operations to execute before bridging
Usage Example
Bridging ETH to Polygon
Bridging ERC20 Tokens
Swap and Bridge
Events
LiFiTransferStarted(BridgeData bridgeData)- Emitted when bridge transfer is initiatedLiFiTransferCompleted- Emitted when transfer completesAssetSwapped- Emitted when using swapAndStart variant
Notes
- This facet only supports bridging FROM Ethereum mainnet TO Polygon PoS
- Bridging typically takes 7-8 minutes for checkpoint finality
- The bridge uses the Plasma bridge by default for faster finality
- For native ETH, the amount is sent as
msg.value - For ERC20 tokens, approve the facet contract before calling
- Token addresses on Polygon will be different from Ethereum (mapped tokens)
Bridge Times
- Ethereum → Polygon: ~7-8 minutes (PoS bridge)
- Polygon → Ethereum: ~3 hours (withdrawal requires checkpoint)