Debt Token & Liquidity Token

JuiceDebtToken & JuiceLiquidityToken

These are instantiated by JuiceLendingPool when it is deployed. They are ERC20 rebasing tokens that represent a user's debt or liquidity provided.

balanceOf and totalSupply are modified to use values from the Lending Pool to determine how many underlying tokens the user either owes or can withdraw after some rates have been applied (getNormalizedDebt and getNormalizedIncome).

Last updated