repay
Repay borrowed assets on JustLend by specifying an amount or using 'max' to clear the full borrow. For TRC20 markets, prior approval of the underlying asset is required.
Instructions
Repay borrowed assets to a JustLend market. For TRC20 markets, must have approved underlying first. Use amount='max' to repay the full outstanding borrow. Typical cost: 80,00090,000 energy + 280320 bandwidth (TRX costs less than TRC20).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to repay (e.g. '500'), or 'max' for full repayment | |
| market | Yes | jToken symbol (e.g. 'jUSDT', 'jTRX') | |
| network | No | Network. Default: mainnet |