Skip to content

Commit

Permalink
feat: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ihoroleksiienko committed Aug 19, 2024
1 parent 513b3c3 commit 0cefa76
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions contracts/base/ERC20Freezable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ abstract contract ERC20Freezable is ERC20Base, IERC20Freezable {
revert ZeroAmount();
}

_freezeChange(account, amount, true);
_freezeChange(
account,
amount,
true // increasing
);
}

/**
Expand All @@ -132,7 +136,11 @@ abstract contract ERC20Freezable is ERC20Base, IERC20Freezable {
revert ZeroAmount();
}

_freezeChange(account, amount, false);
_freezeChange(
account,
amount,
false // decreasing
);
}

function _freezeChange(address account, uint256 amount, bool increasing) internal onlyBlocklister {
Expand Down

0 comments on commit 0cefa76

Please sign in to comment.