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.
Syntax
Section titled “Syntax”superfluid:wrap <amount> <into> <token>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
amount | number | Amount to wrap, in the underlying token's base units |
into | command | Keyword into |
token | supertoken | SuperToken symbol (e.g. USDCx) or address |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--no-approve | bool | Skip the automatic allowance check and approve action |
Examples
Section titled “Examples”# 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 automaticallysuperfluid:wrap 100e6 into USDCx