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);
varF params multiplied by precision
also, amount returned to callback is multiplied by precision.
For admin methods, please look