MOR OFT
MOROFT.sol
, the Morpheus token, is a LayerZero Omnichain Fungible Token (OFT). This allows the token to be transferred across supported networks such as Ethereum, Arbitrum, BNB Chain, and others without the need for wrapping.
Tokens can only be minted by the immutable minter_
– L2MessageReceiver
– when claimed by users.
Functions
Standard ERC20 and OFT functions are not listed below.
mint
Mints new tokens to the specified account. This function can only be called by the _minter_
– L2MessageReceiver
.
Parameters:
_account
address
The account to which tokens are minted.
_amount
uint256
The number of tokens to mint.
burn
Burns a specified amount of tokens from the caller's account, reducing the total supply.
Parameters:
_amount
uint256
The number of tokens to be burned (removed) from the total supply.
burnFrom
Burns a specified amount of tokens from the specified account, reducing the total supply. The caller must have allowance for at least the specified amount of tokens.
Parameters:
_account
uint256
The account from which to burn tokens.
_amount
uint256
The number of tokens to be burned (removed) from the total supply.
minter
Returns the address of the minter_
.
Return Values
address
The address of the minter_
.
Last updated
Was this helpful?