moolah_repay
Repay a Moolah market loan on JustLend. Use 'max' for full repayment; for TRC20, approve proxy first, TRX sent directly.
Instructions
Repay a Moolah market loan. Use amount='max' to repay the full outstanding borrow (uses shares math for exact settlement). For TRC20 loan tokens, call approve_moolah_proxy first. For TRX loans, TRX is sent directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Loan amount to repay, or 'max' for full repayment | |
| network | No | Network. Default: mainnet | |
| marketId | Yes | Market ID (bytes32 hex) |