BOND
3 removals
Words removed | 6 |
Total words | 104 |
Words removed (%) | 5.77 |
28 lines
4 additions
Words added | 5 |
Total words | 103 |
Words added (%) | 4.85 |
29 lines
contract TBond is ERC20Burnable, Operator {
contract BHOG is ERC20Burnable, Operator {
/**
/**
* @notice Constructs the TOMB Bond ERC-20 contract.
* @notice Constructs the Bond HOG ERC-20 contract.
*/
*/
constructor() public ERC20("TBOND", "TBOND") {}
constructor() ERC20("BHOG", "BHOG") {}
/**
/**
* @notice Operator mints basis bonds to a recipient
* @notice Operator mints basis bonds to a recipient
* @param recipient_ The address of recipient
* @param recipient_ The address of recipient
* @param amount_ The amount of basis bonds to mint to
* @param amount_ The amount of basis bonds to mint to
* @return whether the process has been done
* @return whether the process has been done
*/
*/
function mint(address recipient_, uint256 amount_) public onlyOperator returns (bool) {
function mint(address recipient_, uint256 amount_) public onlyOperator returns (bool) {
uint256 balanceBefore = balanceOf(recipient_);
uint256 balanceBefore = balanceOf(recipient_);
_mint(recipient_, amount_);
_mint(recipient_, amount_);
uint256 balanceAfter = balanceOf(recipient_);
uint256 balanceAfter = balanceOf(recipient_);
return balanceAfter > balanceBefore;
return balanceAfter > balanceBefore;
}
}
function burn(uint256 amount) public override {
function burn(uint256 amount) public override {
super.burn(amount);
super.burn(amount);
}
}
function burnFrom(address account, uint256 amount) public override onlyOperator {
function burnFrom(address account, uint256 amount) public override onlyOperator {
super.burnFrom(account, amount);
super.burnFrom(account, amount);
}
}
}
}