- Stable debt tokens, representing a debt to the protocol with a stable interest rate
- Variable debt tokens, representing a debt to the protocol with a variable interest rate
Although debt tokens are modelled on the ERC20/EIP20 standard, they are non-transferrable. Therefore they do not implement any of the standard ERC20/EIP20 functions relating to
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 that specific type (stable vs variable) of debt token.
Returns the underlying asset of the debt token.
function approveDelegation(address delegatee, uint256 amount)
amountof allowance for
delegateeto borrow of a particular debt token.
function borrowAllowance(address fromUser, address toUser)
Returns the borrow allowance
toUserhas been given by
Returns the current allowance of
toUserfor a particular debt token.
Returns the supply / deposit data for the debt token.
Returns the total supply and average stable rate of the token.
function principalBalanceOf(address user)
Returns the principal debt balance of the
function getUserLastUpdated(address user)
Returns the timestamp of the last action taken by
Returns the average stable rate across all the stable rate debt in the protocol as
function getUserStableRate(address user)
Returns the stable rate of
function scaledBalanceOf(address user)
Returns the principal debt balance of
Returns the scaled total supply of the variable debt token.
function getScaledUserBalanceAndSupply(address user)
Returns the principal balance of the
userand principal total supply.