Staking Allowance
SDL is a staking allowance token which enables stakers to earn a percentage of protocol rewards and grants stakers the right to priority staking access over non SDL holders.
ERC20 Functions
All standard ERC20 functions are implemented for StakingAllowance
Write Functions
mint
Mints tokens to an account
Parameters
Name | Type | Description |
---|---|---|
_account | address | Address to mint to |
_amount | uint256 | Amount of tokens to mint |
mintToContract
Mints tokens to a contract on behalf of an account via ERC677
Parameters
Name | Type | Description |
---|---|---|
_contract | address | Address of contract to send tokens to |
_account | address | Address to mint to |
_amount | uint256 | Amount of tokens to mint |
_calldata | bytes |
burn
Burns tokens from the sender
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 | Amount of tokens to burn |
burnFrom
Burns _amount
tokens from _account
, deducting from the sender's allowance
Parameters
Name | Type | Description |
---|---|---|
_account | address | Address to burn from |
_amount | uint256 | Amount of tokens to burn |
transferAndCall
Transfers tokens to an address and calls onTokenTransfer
with additional data if the recipient is a contract
Parameters
Name | Type | Description |
---|---|---|
_to | address | Address to send the tokens to |
_value | uint256 | Value of token transfer |
_data | bytes | Calldata included in the transfer |
transferAndCallWithSender
Similar to transferAndCall
but allows the caller to specify a custom sender (used to mint allowance on behalf of an address and send to a contract fallback)
Parameters
Name | Type | Description |
---|---|---|
_sender | address | Specified sender of the tokens, the party who 'receives' them into a contract |
_to | address | Contract address to send the tokens to |
_value | uint256 | Value of token transfer |
_data | bytes | Calldata included in the transfer |
Last updated