Here is a list of resources that helped me learn about Compound Finance version 2 DeFi protocol:
Introduction:
https://learn.bybit.com/defi/what-is-compound-crypto/
https://zengo.com/understanding-compounds-liquidation/
https://medium.com/mycrypto/learning-about-supplying-borrowing-with-compound-a2ca4eef7d6c
Code walk-through:
https://medium.com/compound-finance/supplying-assets-to-the-compound-protocol-ec2cf5df5aa
https://medium.com/compound-finance/borrowing-assets-from-compound-quick-start-guide-f5e69af4b8f4
https://cryptomarketpool.com/compound-finance-liquidation-bot/
Code Sample: