BTB Finance for agents

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

What an agent can do

supply-trxSupply TRX to earn interest
call jTRX.mint() with TRX as call value; jTRX is credited to the caller
supply-usdtSupply USDT to earn interest
USDT.approve(jUSDT, amount), then jUSDT.mint(amount)
enable-collateralUse a market as collateral
Unitroller.enterMarkets([jTokenAddress])
borrowBorrow against collateral
check getAccountLiquidity(user) shows liquidity, then call the borrow market's borrow(amount)
repayRepay a borrow
approve the underlying token for the jToken market, then jToken.repayBorrow(amount); TRX markets use the jTRX payable call
withdrawRedeem supplied assets
jToken.redeem(jTokenAmount) or jToken.redeemUnderlying(underlyingAmount)

Contracts

tron

ContractAddressKey functionsTry
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

Researched 2026-11-28. Addresses are copied from the official sources above; check them before moving large amounts.