addMarket
params of newMarketParams -> storage upd
Creates new token lending market.
Types
Parameter
Type
Description
interestRateModel
address
interestRate contract instance
asset
assetType
FA12 or FA2 token
collateralFactorF
nat
collateral factor
as float number multiplied by precision
= 1000000000000000000n; (1e+18)
reserveFactorF
nat
reserve factor
as float number multiplied by precision
= 1000000000000000000n; (1e+18)
maxBorrowRate
nat
token_metadata
map(string, bytes)
token metadata packed to bytes
threshold
nat
liquidReserveRateF
nat
Usage
Errors
yToken/token-has-already-been-added
-this token has been added to the market already.yToken/not-admin
-sender
is not contract admin.
Last updated