- Configure the demo contract's constructor arguments and modifiers (example below)
- Deploy and fund the contract
- 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);
}
}