Taker
Search
K
Comment on page

DebtToken

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

compoundedBalanceOf

function compoundedBalanceOf(address account) public view override returns (uint256)
Returns the principal debt balance of user.

compoundedTotalSupply

function compoundedTotalSupply() external view override returns (uint256)
Returns the scaled total supply of the debt token.