debtTokens
Debt tokens are interest-accruing tokens that are minted and burned on borrow and repay, representing the debt owed by the token holder.

ERC20 Methods

Although debt tokens are modeled on the ERC20 standard, they are non-transferrable. Therefore they do not implement any of the standard ERC20 functions relating to transfer() and allowance().
balanceOf() will always return the most up to date accumulated debt of the user.
totalSupply() will always return the most up to date total debt accrued by all protocol users for debt token.

Methods

UNDERLYING_ASSET_ADDRESS

Returns the address of the underlying asset of this debtToken.

POOL

Returns the address of the lend pool where this debtToken is used.

scaledBalanceOf

Returns the principal debt balance of user.

scaledTotalSupply

Returns the scaled total supply of the debt token.

getScaledUserBalanceAndSupply

Returns the principal balance of the user and principal total supply.
Copy link
On this page
ERC20 Methods
Methods
UNDERLYING_ASSET_ADDRESS
POOL
scaledBalanceOf
scaledTotalSupply
getScaledUserBalanceAndSupply