Borrow and deposit math
morpho_loopWork out the net result over a year of borrowing USDG against a stock token on Morpho and putting it in a USDG vault, and the price at which the loan would be liquidated. A calculation at current rates, not advice: nothing is built or sent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticker": "<ticker>",
"usd": "<usd>"
},
"name": "morpho_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usd | Yes | Dollars of the stock token used as collateral. | |
| ticker | Yes | Ticker of the stock token to borrow against, like NVDA. | |
| borrow_pct | No | USDG to borrow, as a percent of the collateral value. Must stay below the market’s LLTV. 50 by default. |