compound-3-developer-faq icon indicating copy to clipboard operation
compound-3-developer-faq copied to clipboard

Example comet interface not consistent with CometMainInterface

Open Flip-Liquid opened this issue 3 years ago • 0 comments

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].

Flip-Liquid avatar Sep 25 '22 23:09 Flip-Liquid