Skip to content
docs

wrapProvider

wrapProvider(config): CrossChainProvider

Defined in: protocol-swap2-wrap/src/provider.ts:72

Native ↔ wrapped native as a swap2 venue: deposit() with value to wrap, withdraw(amount) to unwrap. 1:1, no pool, no slippage, no approval. WETH9 credits and pays msg.sender, so the recipient must be the sender — a wrap “to someone else” is refused rather than silently paid to the wrong place.

WrapProviderConfig

CrossChainProvider