Skip to content

trustfractal/reward-pools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reward-pools

  1. Configure the demo contract's constructor arguments and modifiers (example below)
  2. Deploy and fund the contract
  3. Eligible addresses can now claim rewards, part of which is sent to their referrer
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "./sdk/RewardPool.sol";

contract DemoRewardPool is RewardPool(
    REWARD_TOKEN,
    REWARD_AMOUNT,
    REFERRAL_FEE,
    DID_REGISTRY_ADDRESS,
    CREDENTIAL_ISSUER_ADDRESS
)

{
    function claimReward(
        address referrer,
        bytes calldata signedCredential
    ) external override
        requiresDIDInList("KYC")
        requiresDIDInList("AML")
        requiresValidCredential("not US resident", signedCredential)
    {
        _claimReward(referrer);
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published