lending:borrow
Borrow a token from a lending market against the connected account's collateral (variable rate). The borrowed tokens go to the connected account.
⚗️ Experimental — available at next.evmcrispr.com.
Syntax
Section titled “Syntax”lending:borrow <amount> <token>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
amount | number | Amount to borrow, in base units (wei) |
token | address | Token to borrow (use @token(SYM)) |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--using | lending-adapter | Lending protocol: AaveV3, Spark or CompoundV3 (default: the best available on the chain) |
--on-behalf-of | address | Account whose debt grows (requires prior credit delegation; defaults to the connected account) |
Examples
Section titled “Examples”# Borrow 50 WXDAI at variable rate on Aave v3 (Gnosis)lending:borrow 50e18 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d