Claiming COMP works fine for me on Ropsten.
The CompoundLens
contract needs an update for the new supply and borrow comp speeds CompoundLens on Ropsten 0xc1a7ab77932cfd41c4164a253faf5a06afc3906e.
function cTokenMetadata(CToken cToken) public returns (CTokenMetadata memory)
function cTokenMetadataAll(CToken[] calldata cTokens) external returns (CTokenMetadata[] memory)
The struct returned only has the old compSpeed
.
struct CTokenMetadata {
address cToken;
uint exchangeRateCurrent;
uint supplyRatePerBlock;
uint borrowRatePerBlock;
uint reserveFactorMantissa;
uint totalBorrows;
uint totalReserves;
uint totalSupply;
uint totalCash;
bool isListed;
uint collateralFactorMantissa;
address underlyingAssetAddress;
uint cTokenDecimals;
uint underlyingDecimals;
uint compSpeed;
uint borrowCap;
}
I think we might want to remove compSpeed
and add the two new mappings?
mapping(address => uint) public compBorrowSpeeds;
mapping(address => uint) public compSupplySpeeds;