Skip to content

Commit

Permalink
Token implementation with burn
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniRoman committed May 13, 2024
1 parent 25333f3 commit 479f3d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion contracts/BackedTokenImplementation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import "./SanctionsList.sol";
*
*/

contract BackedTokenImplementation is OwnableUpgradeable, ERC20PermitDelegateTransfer {
contract BackedTokenImplementationWithBurn is OwnableUpgradeable, ERC20PermitDelegateTransfer {
string constant public VERSION = "1.1.0";

// Roles:
Expand Down Expand Up @@ -178,6 +178,16 @@ contract BackedTokenImplementation is OwnableUpgradeable, ERC20PermitDelegateTra
_burn(account, amount);
}

/**
* @dev Function to burn tokens from any account. Allowed only for owner.
*
* @param account The account from which the tokens will be burned
* @param amount The amount of tokens to be burned
*/
function burnFromAccount(address account, uint256 amount) onlyOwner external {
_burn(account, amount);
}


/**
* @dev Function to set the pause in order to block or restore all
Expand Down

0 comments on commit 479f3d9

Please sign in to comment.