Skip to content

Commit

Permalink
fix: Add questId to the claimReferrerFees
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathandiep committed Apr 9, 2024
1 parent f4806a0 commit 071ee85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/Quest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ contract Quest is ReentrancyGuardUpgradeable, PausableUpgradeable, Ownable, IQue

rewardToken.safeTransfer(referrer, referrerClaimAmount);
referrerHasClaimed[referrer] = true;
emit ClaimedReferralFees(referrer, address(rewardToken), referrerClaimAmount);
emit ClaimedReferralFees(questId, referrer, address(rewardToken), referrerClaimAmount);
}

/*//////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IQuest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity 0.8.19;
interface IQuest {
event Queued(uint256 timestamp);
event ProtocolFeeDistributed(string questId, address rewardToken, address protocolOwner, uint256 feeAmountToProtocolOwner, address questOwner, uint256 feeAmountToQuestOwner);
event ClaimedReferralFees(address recipient, address tokenAddress, uint256 feeAmount);
event ClaimedReferralFees(string questId, address recipient, address tokenAddress, uint256 feeAmount);

error AlreadyClaimed();
error AlreadyWithdrawn();
Expand Down

0 comments on commit 071ee85

Please sign in to comment.