tToken, which include minting, burning and even strategies. Let's take a look at what's under the hood here.
ITTokenStrategyThe interface with the functions required to be implemented in a Dapp strategy contract. It contains the strategy to
rebalance(), allows users to
withdraw()from a pool or give us the
totalUnderlyingSupply()of an underlying asset.
compoundSo far, we only have one current strategy for our
ttokenand that is related to the compounddecentralized application
TTokencontains all the functions required to interact with a
ERC20Upgradeable, which means we can upgrade the interface contract to add more functions down the line
LendingFacet.solcontains all the functions required to both create a lending pool (to allow DeFi developers to create their own markets) and to deposit into a pool. Depositing into a pool transfers the underlying asset to the pool and mints new
ttokensof the underlying asset into the lender's wallet