Compound

Compound-v1.5 resolver triggers methods like getPriceInEth, getCompoundData, getPosition. You can view details like source code, ABIs on Etherscan.

getPriceInEth

Returns the price of cToken in Eth and in USD.

function getPriceInEth(CTokenInterface cToken) public view returns (uint256 priceInETH, uint256 priceInUSD); 
paramstypeDescription
cTokenaddressThe address of the token whose price you need.

getCompoundData

Returns tokens data of address of an user.

function getCompoundData(        address owner,         address[] memory cAddress        ) public view returns (CompData[] memory); 
paramstypeDescription
owneraddressThe address of the user whose tokens data you want.
cAddressaddressString array of tokens whose data you want.

getPosition

Returns the position of user on compound.

 function getPosition(        address owner,         address[] memory cAddress        ) public returns (CompData[] memory, CompReadInterface.CompBalanceMetadataExt memory);
paramstypeDescription
owneraddressThe address of the user whose tokens data you want.
cAddressaddressString array of tokens whose data you want.

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.


Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.