Skip to content

Commit

Permalink
chore: added comment regarding sustainability proof
Browse files Browse the repository at this point in the history
  • Loading branch information
Agilulfo1820 committed Jul 23, 2024
1 parent af3f055 commit fd9e7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/contracts/contracts/EcoEarn.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ contract EcoEarn is AccessControl {
rewardsLeft[getCurrentCycle()] -= amount;

// Transfer the reward to the participant, will revert if the transfer fails
// The last parameter is the proof of the sustainable action the user is rewarded for.
// It is optional and can be left empty, but it is recommended to provide a proof for transparency and to avoid disputes.
// Read more about proofs in the VeBetterDAO documentation: https://docs.vebetterdao.org/developer-guides/sustainability-proofs
x2EarnRewardsPoolContract.distributeReward(appId, amount, participant, '');

emit Submission(participant, amount);
Expand Down

0 comments on commit fd9e7ad

Please sign in to comment.