Skip to content

Commit

Permalink
Reset Reward Token Allowance to 0 to RoyaltyModule (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster-will authored Dec 12, 2024
1 parent 81380f6 commit 06cf9b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/modules/grouping/EvenSplitGroupPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 06cf9b0

Please sign in to comment.