Skip to content

lending:set-collateral

Enable or disable a supplied token as collateral for the connected account's borrows.

⚗️ 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.

lending:set-collateral <token> <mode>
NameTypeEvaluationDescription
tokenaddressRuntime in smart blocksSupplied token to toggle (use @token(SYM))
modecommandBuild timeon to use the token as collateral, off to stop
NameTypeEvaluationDescription
--usinglending-adapterBuild timeLending protocol: AaveV3, Spark or CompoundV3 (default: the best available on the chain)
# Stop using GNO as collateral on Aave v3 (Gnosis)
lending:set-collateral 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb off