DYSON is an ERC20 contract for the $DYSON token.
Rescues ERC-20 tokens stuck in the contract and transfers them to a specified address.
function rescueERC20(
address tokenAddress,
address to,
uint256 amount) onlyOwner external
Parameters:
Address of the ERC-20 token to be rescued.
Address that will receive the rescued tokens.
Amount of tokens to be rescued.
Enables an address to mint new tokens. Currently, only the Farm contract is authorized as a minter who is responsible for minting $DYSN rewards.
function addMinter(
address _minter) external onlyOwner
Parameters:
Address to be added as a minter.
Removes an address from the list of minters, preventing it from minting new tokens.
Parameters:
Address to be removed from minters.
Approves the spender to spend a specified amount of tokens on behalf of the owner.
Parameters:
Address allowed to spend the tokens.
Amount of tokens to approve.
Return Values:
Boolean indicating success.
Transfers a specified amount of tokens to a target address.
Parameters:
Address to which tokens will be transferred.
Amount of tokens to transfer.
Return Values:
Boolean indicating success.
Transfers a specified amount of tokens from one address to another, subject to approval.
Parameters:
Address from which tokens will be transferred.
Address to which tokens will be transferred.
Amount of tokens to transfer.
Return Values:
Boolean indicating success.
Mints a specified amount of new tokens and assigns them to a specified address.
Parameters:
Address to receive the minted tokens.
Amount of tokens to mint.
Return Values:
Boolean indicating success.
Burns a specified amount of tokens from a specified address.
Parameters:
Address from which tokens will be burned.
Amount of tokens to burn.
Return Values:
Boolean indicating success.
Implements the EIP-2612 permit function, allowing an owner to approve token spending with a signature.
Parameters:
Address allowed to spend the tokens.
Amount of tokens to approve.
Must produce a valid secp256k1 signature from the holder along with _r and _s.
Must produce a valid secp256k1 signature from the holder along with _v and _s.
Must produce a valid secp256k1 signature from the holder along with _v and _r.