quote_borrow
Get pre-sign borrow metrics: health factor, liquidation price, and cap compliance. Validate the loan against Cluby's exact market arithmetic.
Instructions
What a borrow would do before it is signed: health factor, liquidation price, and whether it exceeds the cap the app enforces.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | ||
| borrowAmount | Yes | Loan asset in whole units (USDG) | |
| collateralAmount | Yes | Collateral in whole tokens |