TTokens(etc ETH_TTOKEN) are interest-bearing tokens that are minted and burned upon deposit and withdraw. The tTokens' value is pegged to the value of the corresponding deposited asset at a 1:1 ratio, and can be safely stored, transferred or traded. All interest collected by the tTokens reserves are distributed to tTokens holders directly by continuously increasing their wallet balance.

For all minting and burning actions, see Deposit() and Withdraw() methods in the LendiningPool contract.

ERC20 Methods

All standard ERC20 methods are implemented, such as balanceOf(), transfer(), transferFrom(), approve(), totalSupply(), etc.

balanceOf() will always return the most up to date balance of the user, which includes their principal balance + the interest generated by the principal balance.



function compoundedBalanceOf(address account) public view override returns (uint256)

Returns the principal balance of user.


function compoundedTotalSupply() external view override returns (uint256)

Returns the scaled total supply of the token.

Last updated