Compound

Examples

compound

Reference

async ctc.protocols.compound_utils.async_get_borrow_apy(ctoken, block=None)
Parameters
  • ctoken (Address) –

  • block (BlockNumberReference | None) –

Return type

float

async ctc.protocols.compound_utils.async_get_borrow_apy_by_block(ctoken, blocks)
async ctc.protocols.compound_utils.async_get_supply_apy(ctoken, block=None)
Parameters
  • ctoken (Address) –

  • block (BlockNumberReference | None) –

Return type

float

async ctc.protocols.compound_utils.async_get_supply_apy_by_block(ctoken, blocks)