InterestRate contract
This contract implements InterestRateModel logic and provides methods to calculate supply, borrow, utilization rate.
Common usage
Common usage is to call view with needed params of type rateParams
where callback is contract entrypoint that receives yAssetParams
.
type rateParams is [@layout:comb] record [
tokenId : nat;
borrowsF : nat;
cashF : nat;
reservesF : nat;
precision : nat;
reserveFactorF : nat;
callback : contract(yAssetParams);
]
For admin
methods, please look
Last updated