Implementation of the interest bearing token for the ParaSpace protocol
Constructor.
Name | Type | Description |
---|---|---|
return token type`of xToken
Burns nTokens from user
and sends the equivalent amount of underlying to receiverOfUnderlying
In some instances, the mint event could be emitted from a burn transaction if the amount to burn is less than the interest that the user accrued
Name | Type | Description |
---|---|---|
an additional function that is custom to MoonBirds reserve. This function allows NToken holders to toggle on/off the nesting the status for the underlying tokens
an additional function that is custom to MoonBirds reserve. This function allows NToken holders to get nesting the state for the underlying tokens
an additional function that is custom to MoonBirds reserve. This function check if nesting is open for the underlying tokens
Name | Type | Description |
---|---|---|
pool
contract IPool
The address of the Pool contract
from
address
The address from which the nTokens will be burned
receiverOfUnderlying
address
The address that will receive the underlying
tokenIds
uint256[]
The ids of the tokens getting burned
[0]
uint64
old and new collateralized balance
[1]
uint64