moolah_supply_collateral
Supply collateral to a Moolah market to enable borrowing. For TRC20, approve proxy first; for TRX, send directly.
Instructions
Supply collateral into a Moolah market to enable borrowing. For TRC20 collateral, call approve_moolah_proxy first. For TRX collateral, TRX is sent directly with no prior approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of collateral to supply (e.g. '10000' for 10000 TRX) | |
| network | No | Network. Default: mainnet | |
| marketId | Yes | Market ID (bytes32 hex) — from get_moolah_markets |