Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
BOND
Created
last year
Diff never expires
Clear
Export
Share
Explain
5 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
28 lines
Copy
5 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
29 lines
Copy
Copy
Copied
Copy
Copied
contract
TBond
is ERC20Burnable, Operator {
contract
BHOG
is ERC20Burnable, Operator {
/**
/**
Copy
Copied
Copy
Copied
* @notice Constructs the
TOMB
Bond
ERC-20 contract.
* @notice Constructs the
Bond
HOG
ERC-20 contract.
*/
*/
Copy
Copied
Copy
Copied
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);
}
}
}
}
Copy
Copied
Copy
Copied
Saved diffs
Original text
Open file
contract TBond is ERC20Burnable, Operator { /** * @notice Constructs the TOMB Bond ERC-20 contract. */ constructor() public ERC20("TBOND", "TBOND") {} /** * @notice Operator mints basis bonds to a recipient * @param recipient_ The address of recipient * @param amount_ The amount of basis bonds to mint to * @return whether the process has been done */ function mint(address recipient_, uint256 amount_) public onlyOperator returns (bool) { uint256 balanceBefore = balanceOf(recipient_); _mint(recipient_, amount_); uint256 balanceAfter = balanceOf(recipient_); return balanceAfter > balanceBefore; } function burn(uint256 amount) public override { super.burn(amount); } function burnFrom(address account, uint256 amount) public override onlyOperator { super.burnFrom(account, amount); } }
Changed text
Open file
contract BHOG is ERC20Burnable, Operator { /** * @notice Constructs the Bond HOG ERC-20 contract. */ constructor() ERC20("BHOG", "BHOG") {} /** * @notice Operator mints basis bonds to a recipient * @param recipient_ The address of recipient * @param amount_ The amount of basis bonds to mint to * @return whether the process has been done */ function mint(address recipient_, uint256 amount_) public onlyOperator returns (bool) { uint256 balanceBefore = balanceOf(recipient_); _mint(recipient_, amount_); uint256 balanceAfter = balanceOf(recipient_); return balanceAfter > balanceBefore; } function burn(uint256 amount) public override { super.burn(amount); } function burnFrom(address account, uint256 amount) public override onlyOperator { super.burnFrom(account, amount); } }
Find difference