The Line of Credit makes external calls to the setRate() function of Interest Rate Credit contract
This contract stores interest rates and the last time interest was accrued for individual credit positions on a Line of Credit.
- It only calculates interest owed. LineOfCredit.sol is responsible for updating balances
- Only allows LineOfCredit.sol to call it
- It only has one external function, setRate() as mentioned below.
function setRate(bytes32 id,uint128 dRate,uint128 fRate) external onlyLineContract returns (bool)
setRate(): update the interest rates for a credit position (after being called by LineOfCredit.sol)