Prepare: put money into a farm
farm_depositUnsigned transactions to put USDG and a stock into its farm from the wallet: give usdg or stock (or both) and the other follows the farm's ratio (the feed's price for the first deposit, which sets the farm's price). Approvals of the exact amounts first, then the deposit, simulated from the wallet. Shares are accepted down to slip_bps under the quote.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usdg | No | USDG to put in (optional if stock is given), in whole units as a decimal string, like "1.5" | |
| stock | No | Stock to put in (optional if usdg is given), in whole units as a decimal string, like "1.5" | |
| symbol | Yes | A stock on Borro by its ticker, like NVDA or AAPL (markets lists every one) | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign | |
| slip_bps | No | Most the farm may move against the quote, in hundredths of a percent (default 50, 0.5%) |