Prepare: Open a loop
gage_prepare_leveragePrepare a leveraged loop: the loan buys more of the pledged token in one transaction. USDG only. Refused above maxCostBps. Returns the next unsigned transaction and a review link; never signs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| own | Yes | The tokens you put in, raw units | |
| term | Yes | Loan term in seconds, one of the terms gage_capabilities lists | |
| token | Yes | ||
| wallet | Yes | ||
| multiple | Yes | Leverage, 1.1 to 3 with at most two decimals (2 = twice the pledge held for the loan) | |
| lendAsset | No | USDG only: leverage lends USDG (a loop in a lend asset is refused) | |
| maxCostBps | Yes | Highest loan cost you accept, bps of the amount borrowed; the loop is refused above it |