Skip to content

Commit 322658e

Browse files
committed
fix: comment to clarify behavior
1 parent 4f3018c commit 322658e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contracts/discovery/GNS.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,11 @@ abstract contract GNS is GNSV3Storage, GraphUpgradeable, IGNS, Multicall {
731731
address _owner,
732732
uint32 _curationTaxPercentage
733733
) internal returns (uint256) {
734+
// If curation or owner tax are zero, we don't need to charge owner tax
735+
// so the amount of tokens to signal will remain the same.
736+
// Note if owner tax is zero but curation tax is nonzero, the curation tax
737+
// will still be charged (in Curation or L2Curation) - this function just calculates
738+
// the owner's additional tax.
734739
if (_curationTaxPercentage == 0 || ownerTaxPercentage == 0) {
735740
return _tokens;
736741
}

0 commit comments

Comments
 (0)