From 06cf9b0f4e162edb4f8e3e33d87dad6dc356c56e Mon Sep 17 00:00:00 2001 From: Kingter <83567446+kingster-will@users.noreply.github.com> Date: Thu, 12 Dec 2024 09:26:27 -0800 Subject: [PATCH] Reset Reward Token Allowance to 0 to RoyaltyModule (#355) --- contracts/modules/grouping/EvenSplitGroupPool.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/modules/grouping/EvenSplitGroupPool.sol b/contracts/modules/grouping/EvenSplitGroupPool.sol index 3eb9283b..db4d6b8a 100644 --- a/contracts/modules/grouping/EvenSplitGroupPool.sol +++ b/contracts/modules/grouping/EvenSplitGroupPool.sol @@ -157,6 +157,7 @@ contract EvenSplitGroupPool is IGroupRewardPool, ProtocolPausableUpgradeable, UU // call royalty module to transfer reward to IP's vault as royalty ROYALTY_MODULE.payRoyaltyOnBehalf(ipIds[i], groupId, token, rewards[i]); } + IERC20(token).forceApprove(address(ROYALTY_MODULE), 0); } function getTotalIps(address groupId) external view returns (uint256) {