approve_moolah_proxy
Approve TRC20 token spending before supplying collateral or repaying on Moolah. Specify exact amount for limited approval; use 'max' only if user explicitly opts in for unlimited.
Instructions
Approve TRC20 token spending for the Moolah core contract before supplying collateral or repaying. Not needed for TRX operations. Pass the EXACT amount you intend to use (recommended). Pass amount='max' for unlimited approval ONLY when the user explicitly opts in — it lets the Moolah proxy spend the user's entire balance, present and future, until revoked (amount='0').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Exact amount to approve (e.g. '100'), or 'max' for unlimited (NOT recommended; user must opt in). | |
| network | No | Network. Default: mainnet | |
| tokenSymbol | Yes | Token symbol for display (e.g. 'USDT') | |
| tokenAddress | Yes | TRC20 contract address (Base58) | |
| tokenDecimals | Yes | Token decimals (e.g. 6 for USDT). Integer in [0, 38]. |