Compound

Examples

Note

These examples are crafted as a Jupyter notebook. You can download the original notebook file here.

Also note that inside Jupyter notebooks, await can be used freely outside of asyncio.run().

compound

Reference

async ctc.protocols.compound_utils.async_get_borrow_apy(ctoken, block=None)
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)
async ctc.protocols.compound_utils.async_get_supply_apy_by_block(ctoken, blocks)