AlchemicTokenV2
This is the contract for version two alchemic tokens.
Functions
constructor
setFlashFee
Sets the flash minting fee.
This function reverts if msg.sender
is not an admin.
Parameters:
mint
Mints tokens to a recipient.
This function reverts if msg.sender
is not whitelisted. This function reverts if msg.sender
is paused.
Parameters:
setWhitelist
Sets minter
as whitelisted to mint.
This function reverts if msg.sender
is not an admin.
Parameters:
setSentinel
Sets sentinel
as a sentinel.
This function reverts if msg.sender
is not an admin.
Parameters:
pauseMinter
Pauses minter
from minting tokens.
This function reverts if msg.sender
is not a sentinel.
Parameters:
burn
Burns amount
tokens from msg.sender
.
Parameters:
burnFrom
Destroys amount
tokens from account
, deducting from the caller's allowance.
Parameters:
setMaxFlashLoan
Adjusts the maximum flashloan amount.
Parameters:
maxFlashLoan
Gets the maximum amount to be flash loaned of a token.
Parameters:
Return Values:
flashFee
Gets the flash loan fee of amount
of token
.
Parameters:
Return Values:
flashLoan
Performs a flash mint (called flash loan to confirm with ERC3156 standard).
Parameters:
Return Values:
Events
Paused
An event which is emitted when a minter is paused from minting.
Parameters:
)
An event which is emitted when the max flash loan is updated.
Parameters:
Last updated