id | title |
---|---|
tokens_ecosystem_ERC20Burner |
ERC20Burner |
This contract does not accept tokens. It only burns tokens from users wallets when approved to do so, Allows Dapps to call this contract to burn ERC20 tokens as a usage fee.Source: tokens/ecosystem/ERC20Burner.solAuthor: Kyle Dewhurst, MyBit Foundation
- LogBurnerAuthorized
- LogBurnerRemoved
- LogMYBBurned
- authorizeBurner
- burn
- fallback
- fallback
- onlyAuthorizedBurner
- onlyOwner
- removeBurner
-
LogBurnerAuthorized
event
LogBurnerAuthorized
(address _owner, address _burningContract)
Parameters:
_owner
- address_burningContract
- address -
LogBurnerRemoved
event
LogBurnerRemoved
(address _owner, address _burningContract)
Parameters:
_owner
- address_burningContract
- address -
LogMYBBurned
event
LogMYBBurned
(address _tokenHolder, address _burningContract, uint _amount)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////.Parameters:
_tokenHolder
- address_burningContract
- address_amount
- uint
-
onlyAuthorizedBurner
modifier
onlyAuthorizedBurner
(address _burner)
Parameters:
_burner
- address -
onlyOwner
modifier
onlyOwner
()
///////////////////////////////////////////////////////////////////////////////////////////////////////////////.
-
authorizeBurner
function
authorizeBurner
(address _burningContract) external returns (bool)
Modifiers:onlyOwnerParameters:
_burningContract
- addressReturns:bool -
burn
function
burn
(address _tokenHolder, uint _amount) external returns (bool)
Modifiers:onlyAuthorizedBurnerParameters:
_tokenHolder
- address_amount
- uintReturns:bool -
fallback
function (address _myBitTokenAddress) public
Parameters:
_myBitTokenAddress
- address -
fallback
function () external payable
-
removeBurner
function
removeBurner
(address _burningContract) external returns (bool)
Modifiers:onlyAuthorizedBurner onlyOwnerParameters:
_burningContract
- addressReturns:bool