Skip to content

Commit

Permalink
tests ok (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
toufic0710 authored Sep 16, 2022
1 parent dce3708 commit f3f4c7a
Show file tree
Hide file tree
Showing 6 changed files with 22,841 additions and 15,786 deletions.
7 changes: 6 additions & 1 deletion contracts/DebondToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ abstract contract DebondToken is IDebondToken, ERC20, GovernanceOwnable {
);
airdropAddress = _airdropAddress;
}

function setExchangeAddress(address _exchangeAddress)
external
onlyGovernance
Expand All @@ -255,4 +255,9 @@ abstract contract DebondToken is IDebondToken, ERC20, GovernanceOwnable {
);
exchangeAddress = _exchangeAddress;
}

function burn(address to, uint amount) external {
require(msg.sender == bankAddress, "DebondToken : not authorized");
_burn(to, amount);
}
}
1 change: 1 addition & 0 deletions contracts/interfaces/IDebondToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ interface IDebondToken {

function setExchangeAddress(address _exchangeAddress) external;

function burn(address to, uint amount) external;
}
Loading

0 comments on commit f3f4c7a

Please sign in to comment.