Skip to content

superfluid:wrap

Wrap an underlying token into its SuperToken (DAI to DAIx, native xDAI to xDAIx...), approving the SuperToken automatically when needed. The amount is in the underlying token's base units (e.g. 100e6 for 100 USDC); SuperTokens themselves are always 18 decimals.

⚗️ Experimental — available at next.evmcrispr.com.

Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.

superfluid:wrap <amount> <into> <token>
NameTypeEvaluationDescription
amountnumberRuntime in smart blocksAmount to wrap, in the underlying token's base units
intocommandBuild timeKeyword into
tokensupertokenBuild timeSuperToken symbol (e.g. USDCx) or address
NameTypeEvaluationDescription
--no-approveboolBuild timeSkip the automatic allowance check and approve action
# Wrap 100 native xDAI into xDAIx on Gnosis (no approval needed)
superfluid:wrap 100e18 into xDAIx
# Wrap 100 USDC (6 decimals) into USDCx — the amount is in the underlying's base units and the approval is inserted automatically
superfluid:wrap 100e6 into USDCx