Notes
deposit: For canonical tokens supported directly by the bridgedepositAndSwap: For bridging with an automatic swap on destination (e.g. bridge nUSD, swap to USDC on arrival)redeem: For synthetic bridge tokens (nUSD, nETH) — burns on source, mints on destination- Also supports CCTP-based USDC bridging via separate cctpRouter contract
- Finality: typically 5-15 minutes depending on route
- Requires ERC-20 approval to the SynapseBridge
Its names in a program
On Ethereum,Synapse is a namespace: its contracts need no import.
Deployments
ABI
SynapseBridgeABI
import SynapseBridgeABI from "./protocols/synapse/SynapseBridgeABI.json"; Speaks for: synapseBridge.
deposit(address to, uint256 chainId, address token, uint256 amount)depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline)redeem(address to, uint256 chainId, address token, uint256 amount)
Next steps
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
