I would like to recreate compound.finance as a project but I don't really understand the architecture. Their white paper of website wasn't really helpful in this matter.
When I want to borrow I first have to add tokens that can be used as a collateral.
Then I can borrow but which contract stores the collateral? Is it the Comptroller or cToken contract?
Thanks