Borrow quote
gage_borrow_quoteThe largest loan the partner vaults fund now for at most maxCollateral of a token, at the lowest fixed cost they accept; or one exact loan (collateral and principal) at the lowest cost that funds it now, or at your own costBps, with what each Loan grade costs; in USDG or the lend asset named, with a prepare object for gage_prepare_borrow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | Loan term in seconds, one of the terms gage_capabilities lists | |
| token | Yes | ||
| wallet | No | ||
| costBps | No | With collateral and principal: your own fixed cost for the loan instead, bps of the amount borrowed, to a tenth (more digits are rounded); the quote's grades say what each Loan grade costs | |
| lendAsset | No | The asset the loan is paid in and repaid in: USDG when omitted, or a lend asset gage_capabilities lists (its token address) | |
| principal | No | With collateral: the exact amount to borrow, raw units of the loan's asset; priced at the lowest fixed cost the vaults funding it accept, or at costBps | |
| collateral | No | With principal: the exact pledge of one chosen loan, raw units | |
| maxCollateral | No | Most of the token to pledge, raw units: quotes the largest loan the vaults fund for it, at the lowest fixed cost they accept |