GoodDollar
The GoodDollar G$ token follows the ERC-20 token standard and also supports ERC-677.
Events
Transfer
Emitted when value
tokens are moved from one account (from
) to another (to
).
Note that value
may be zero.
Approval
Emitted when the allowance of a spender
for an owner
is set by a call to {approve}. value
is the new allowance.
transfer
Processes fees from given value and sends remainder to given address.
Returns: a boolean that indicates if the operation was successful.
approve
Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
.
Returns: a boolean that indicates if the operation was successful.
transferFrom
Transfer tokens from one address to another on behalf of the third party as msg.sender
.
Returns: a boolean that indicates if the operation was successful.
transferAndCall
Processes transfer fees and calls ERC677Token transferAndCall function.
Returns: a boolean that indicates if the operation was successful.
mint
Minting function.
Who can execute: An address who is in minter role.
Returns: a boolean that indicates if the operation was successful.
burn
Burns a specific amount of tokens.
Who can execute: An address who is not blocklisted by the administration.
burnFrom
Burns a specific amount of tokens from the target address and decreases an allowance.
Who can execute: An address who is not blocklisted by the administration.
increaseAllowance
Increase the amount of tokens that an owner allows a spender.
Returns: a boolean that indicates if the operation was successful.
decreaseAllowance
Decrease the amount of tokens that an owner allowed to a spender.
Returns: a boolean that indicates if the operation was successful.
getFees
Gets the current transaction fees.
Returns: tuple of uint256
and bool
, first is an absolute amount of fees based on value and the second is whether msg.sender
paying or not.
setFeeRecipient
Sets the address that receives the transactional fees.
Who can execute: An adminstrator only.
Last updated