NTokenMoonBirds
Implementation of the interest bearing token for the ParaSpace protocol
constructor
Constructor.
Parameters
Name | Type | Description |
---|---|---|
pool | contract IPool | The address of the Pool contract |
getXTokenType
return token type`of xToken
burn
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
Parameters
Name | Type | Description |
---|---|---|
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 |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint64 | old and new collateralized balance |
[1] | uint64 |
onERC721Received
toggleNesting
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
nestingPeriod
an additional function that is custom to MoonBirds reserve. This function allows NToken holders to get nesting the state for the underlying tokens
nestingOpen
an additional function that is custom to MoonBirds reserve. This function check if nesting is open for the underlying tokens