Borrow a token from a lending market against the connected account's collateral (variable rate). The borrowed tokens go to the connected account.
lending:borrow <amount> <token>
| Name | Type | Description |
|---|
amount | number | Amount to borrow, in base units (wei) |
token | address | Token to borrow (use @token(SYM)) |
| 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) |
# Borrow 50 WXDAI at variable rate on Aave v3 (Gnosis)
lending:borrow 50e18 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d