compound-3-developer-faq
compound-3-developer-faq copied to clipboard
Example comet interface not consistent with CometMainInterface
The type returned in the example is incorrect. In CometMainInterface (https://github.com/compound-finance/comet/blob/main/contracts/CometMainInterface.sol), getSupplyRate and getBorrowRate functions are defined as
function getSupplyRate(uint utilization) virtual public view returns (uint64);
function getBorrowRate(uint utilization) virtual public view returns (uint64);
Whereas in the example, the return type is specified as uint[256].