Bridge
Interface
interface IPodBridge {
/// @notice Emitted when tokens are withdrawn for bridging to another chain.
event Withdraw(
bytes32 indexed id,
address indexed from,
address indexed to,
address token,
uint256 amount,
uint256 chainId
);
/// @notice Initiate a withdrawal to another chain. Burns tokens on Pod and emits
/// a Withdraw event. Use the transaction hash to obtain a claim proof
/// via pod_getBridgeClaimProof.
/// @param token Token address on Pod. Use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native token.
/// @param amount Amount of tokens to bridge.
/// @param to Recipient address on the target chain.
/// @param chainId Target chain ID where the claim will happen. Prevents replay across chains.
/// @return id Unique withdraw identifier.
function withdraw(
address token,
uint256 amount,
address to,
uint256 chainId
) external returns (bytes32 id);
}Decimal Scaling
Native Token Withdrawals
Last updated

