Create Markets on Lista Lending
1. Confirm Market Parameters
loanToken
collateralToken
Oracle
Irm
lltv
Parameter
Type
Description
loanToken
address
Contract address of the borrowing token
collateralToken
address
Contract address of the collateral token
oracle
address
Address of the oracle
irm
address
Address of the interest model
lltv
uint256
Loan-To-Value rate
Note:
Oracle: The oracle must implement the following method, where asset is the token address. The function should return the asset price with 8 decimals of precision:
function peek(address asset) external view returns (uint256);
IRM (Interest Rate Model): This must be enabled by Lista Lending’s manager using enableIrm. By default, the protocol uses the IRM deployed by Lista Lending at the following address: [TBD]
LLTV (Loan-to-Value for Liquidation): This must also be set by Lista Lending’s manager using enableLltv. Users may choose from the enabled LLTV options to create a vault.
2. Create Markets
Jump to the contract address: https://bscscan.com/address/0x8F73b65B4caAf64FBA2aF91cC5D4a2A1318E5D8C
Fill in attributes
Approve and done!
Only the Manager address has the authority to set up market fees. Market fees will be default 0 if not set up.
4.1Jump to the main contract address: https://bscscan.com/address/0x8F73b65B4caAf64FBA2aF91cC5D4a2A1318E5D8C
4.2) Fill in the attributes, where newFee is the parameter for setting the fee rate, with 1e18 decimal places. For example, fill 100000000000000000 for 10% rates.
4.3) Verify results
4.4) marketId can be obtained from the transaction creating the market, where id refers to the marketId
4.5 Fee rate can be obtained via the market function in the contract by passing in the marketId as a parameter.
Check the transaction that successfully creates market
Check marketId
Check fee rate
Last updated