Skip to content

Commit

Permalink
fix: comment to clarify behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarranzav committed Nov 24, 2023
1 parent 4f3018c commit 322658e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/discovery/GNS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,11 @@ abstract contract GNS is GNSV3Storage, GraphUpgradeable, IGNS, Multicall {
address _owner,
uint32 _curationTaxPercentage
) internal returns (uint256) {
// If curation or owner tax are zero, we don't need to charge owner tax
// so the amount of tokens to signal will remain the same.
// Note if owner tax is zero but curation tax is nonzero, the curation tax
// will still be charged (in Curation or L2Curation) - this function just calculates
// the owner's additional tax.
if (_curationTaxPercentage == 0 || ownerTaxPercentage == 0) {
return _tokens;
}
Expand Down

0 comments on commit 322658e

Please sign in to comment.