Skip to content

Commit

Permalink
comment: rounding is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
malteish committed Nov 26, 2022
1 parent 3afc6d8 commit f7f43f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ contract Token is ERC2771Context, ERC20Permit, Pausable, AccessControl {
if (feeSettings.tokenFeeDenominator() != 0) {
_mint(
feeSettings.feeCollector(),
_amount / feeSettings.tokenFeeDenominator()
_amount / feeSettings.tokenFeeDenominator() // result is rounded down, which is fine
);
}
return true;
Expand Down

0 comments on commit f7f43f3

Please sign in to comment.