Skip to content

Commit 26dda5c

Browse files
committed
fix(GNS): use the correct token amount when curation or owner tax are zero
1 parent cfff549 commit 26dda5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/discovery/GNS.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ abstract contract GNS is GNSV3Storage, GraphUpgradeable, IGNS, Multicall {
732732
uint32 _curationTaxPercentage
733733
) internal returns (uint256) {
734734
if (_curationTaxPercentage == 0 || ownerTaxPercentage == 0) {
735-
return 0;
735+
return _tokens;
736736
}
737737

738738
// Tax on the total bonding curve funds

0 commit comments

Comments
 (0)