gage_lp_quote · LP loan quote
read-onlyA quote for a fixed-cost USDG loan against an ETH/USDG or stock/USDG liquidity position on Uniswap v3 or v4, SushiSwap v3, Ouro v3, Ramses or Fables, with no liquidation: it is never closed early because a price moves, and if it is not repaid by its end the position is unwound for its lenders and nothing else is taken: what the wallet receives and repays, its cost and loan-to-value, signed for the wallet for five minutes at most, with a prepare object for gage_prepare_lp_borrow. Signs nothing.
Input schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"adapter": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The position's adapter: one gage_capabilities lists under lpLane.adapters (Uniswap v3, SushiSwap v3, Ouro v3, Ramses V3, Uniswap v4 or Fables; gage_lp_positions names each position's)"
},
"tokenId": {
"type": "string",
"pattern": "^\\d{1,78}$",
"description": "The position's id: its NFT's token id at the adapter's position manager (gage_lp_positions)"
},
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The wallet that holds the position and will borrow: the quote is signed for it"
},
"term": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Loan term in seconds, one of gage_capabilities lpLane.terms"
},
"vault": {
"description": "The LP vault to borrow from; the lane's first one that can fund the loan whole when omitted",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
},
"required": [
"adapter",
"tokenId",
"wallet",
"term"
],
"additionalProperties": false
}