Skip to content

superfluid:auto-wrap

Keep a SuperToken balance topped up automatically: when the balance falls below --lower of outflow runway, Superfluid's keepers wrap enough underlying to reach --upper. WARNING: by default this grants the wrap strategy an unlimited allowance on the underlying token (matching Superfluid's own UI, since the schedule is open-ended) — cap it with --allowance.

superfluid:auto-wrap <token>
NameTypeDescription
tokensupertokenSuperToken symbol (e.g. USDCx) or address
NameTypeDescription
--lowernumberRunway threshold that triggers a wrap, in time units (default 7d; protocol minimum 2d)
--uppernumberRunway to top up to when triggered, in time units (default 14d; protocol minimum 7d)
--expirynumberUnix timestamp when the schedule expires (default: never)
--allowancenumberCap the underlying allowance granted to the wrap strategy (default: unlimited)
--no-approveboolSkip the automatic allowance action
# Keep your USDCx topped up from USDC automatically (wrap when below 7 days of runway, up to 14 days)
superfluid:auto-wrap USDCx
# Cap the strategy's allowance instead of granting unlimited
superfluid:auto-wrap USDCx --allowance 5000e6 --lower 3d --upper 8d