Protocols / Lending
JustLend V1
Compound V2 style lending market on TRON. Supply TRX or TRC20 assets to receive jTokens, borrow against collateral, and repay or redeem. Rates follow supply and demand through the interest rate model.
On-chainMIXED3 contractsWebsite · Docs
get_protocol({ "protocol": "justlend-v1" })Risks an agent should know
- Accounts can be liquidated when their borrows exceed their collateral limit. Check getAccountLiquidity after each borrow and after price moves.
- Most JustLend functions return an error code instead of reverting. Check the return value, not only the transaction status.
- Interest is accrued lazily. Stored balances and rates can be stale until accrueInterest runs.
- Rates are set by supply and demand through the interest rate model and change with utilization.
- Contracts are proxies and governance can change parameters, markets and oracles.
What an agent can do
| supply-trx | Supply TRX to earn interest call jTRX.mint() with TRX as call value; jTRX is credited to the caller |
| supply-usdt | Supply USDT to earn interest USDT.approve(jUSDT, amount), then jUSDT.mint(amount) |
| enable-collateral | Use a market as collateral Unitroller.enterMarkets([jTokenAddress]) |
| borrow | Borrow against collateral check getAccountLiquidity(user) shows liquidity, then call the borrow market's borrow(amount) |
| repay | Repay a borrow approve the underlying token for the jToken market, then jToken.repayBorrow(amount); TRX markets use the jTRX payable call |
| withdraw | Redeem supplied assets jToken.redeem(jTokenAmount) or jToken.redeemUnderlying(underlyingAmount) |
Contracts
tron
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Unitroller (Comptroller entrypoint) pool · proxy | TGjYzgCyPobsNS9n6WcbdLVR9dH7mWqFx7 source | writeenterMarkets(address[]) writeexitMarket(address) readgetAccountLiquidity(address) readgetAssetsIn(address) readgetAllMarkets() readmarkets(address) readcloseFactorMantissa() readliquidationIncentiveMantissa() +1 more via get_protocol | |
| jTRX token | TE2RzoSV3wFK99w6J9UnnZ4vLfXYoxvRwP source | writemint() writeredeem(uint256) writeredeemUnderlying(uint256) writeborrow(uint256) readbalanceOf(address) readexchangeRateStored() readborrowBalanceStored(address) readsupplyRatePerBlock() +2 more via get_protocol | |
| jUSDT token · proxy | TXJgMdjVX5dKiQaUi9QobwNxtSQaFqccvd source | writemint(uint256) writeredeem(uint256) writeredeemUnderlying(uint256) writeborrow(uint256) writerepayBorrow(uint256) readbalanceOf(address) readexchangeRateStored() readborrowBalanceStored(address) +3 more via get_protocol |
APIs
| JustLend API (SBM markets) auth: none | https://docs.justlend.org/developers/apis/ Lists the SBM jToken markets with their addresses (GET /lend/jtoken). Use it to find markets beyond those listed here. |
Notes
Tron addresses come from JustLend's official deployed-contracts page. The Comptroller function list is from the Comptroller implementation ABI, and the jToken lists are from the ABIs of each jToken, read from TronGrid. JustLend has 24 jToken markets (18 active, 6 legacy). Only jTRX and jUSDT are included here. Use the JustLend API to find the rest. The DefiLlama address (TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9) is not used because it is not on the official addresses page. Tron addresses are base58, so eth_getCode does not apply. Existence was checked with TronGrid getcontract.
Sources
- https://docs.justlend.org/developers/deployed_contracts/
- https://docs.justlend.org/developers/contracts_overview/
- https://docs.justlend.org/developers/apis/
- https://api.trongrid.io/wallet/getcontract
- https://api.llama.fi/protocol/justlend-v1
Researched 2026-11-28. Addresses are copied from the official sources above; check them before moving large amounts.