This repository has been archived by the owner on May 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transferring KEEP rewards in notifyRewardAmount
Instead of adding approveAndCall function, it is cleaner to add a 'transfer' function in notifyRewardAmount which has to be called anyway by the reward distributor. Reward distributor in our case is escrow's beneficiary which is going to be set by PhasedEscrow contract. In tests, the role of PhasedEscrow beneficiary takes rewardDistribution account. We need to transfer funds from KEEP token owner to rewardDistribution address first, before we can call notifyRewardAmount().
- Loading branch information
Showing
2 changed files
with
50 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters