Skip to content

Latest commit

 

History

History
90 lines (51 loc) · 4.54 KB

api_tokens_ecosystem_erc20burner.md

File metadata and controls

90 lines (51 loc) · 4.54 KB
id title
tokens_ecosystem_ERC20Burner
ERC20Burner

api_tokens_ecosystem_ERC20Burner

contract 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

Index

Reference

Events

  • 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

Modifiers

  • onlyAuthorizedBurner

    modifier onlyAuthorizedBurner(address _burner)

    Parameters:_burner - address

  • onlyOwner

    modifier onlyOwner()

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////.

Functions

  • 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