Contracts Overview
JustLend DAO Protocol contracts are divided in these repositories:
Core-Repository: Contains core contracts for JustLend, including logic for supplying, borrowing, comptroller, and interest rate models.
Price-Oracle: This repository contains the price oracle contracts we support, along with the logic validation for prices returned by these oracles.
Governance: The contracts used for proposing, voting and executing proposals.
Staked TRX: The contracts utilized for staking TRX to earn high rewards.
Energy Rental: Contracts enable users to rent energy anytime with a low price.
Core Contracts
There are 3 categories of core repository contracts:
JTokens Contract
Interest Rate Model Contract
Comptroller Contract
JTokens Contract
JToken:
The contract used to support all assets by JustLend DAO, such as the jTRX, jUSDT, jSUN and jBTC you receive after supplying the corresponding assets.
Interest Rate Model Contract
WhitePaperInterestRateModel:
The contract used to set up a straightforward interest rate model, which the borrowing rate is directly proportional to the utilization.
JumpRateModelV2:
The Contract used to set up a complex interest rate model, which the interest rate jumps to a higher tier when the utilization rate exceeds .
Comptroller Contract
Comptroller:
The Comptroller contract is the central contract for each lending pool. It contains functionality central to borrowing activity in the pool like supplying and borrowing assets and liquidations.
Price Oracle Contracts
Price Oracle:
The JustLend Protocol use WinkLink's price service to fetch the token price. The PriceOracle contract is responsible for setting and display token prices.
Governance Contracts
GovernorBravo:
The main JustLend Governance Contract. Users interact with it to:
Submit new proposal
Vote on a proposal
Cancel a proposal
Queue a proposal for execution with a time lock executor contract
Timelock:
The contract used to execute or cancel a queued transaction.
Staked TRX Contracts
Staked TRX(sTRX):
The contract utilized for staking TRX to earn high rewards.
Energy Rental Contracts
Energy Rental:
Contracts enable users to rent energy anytime with a low price.
Last updated