How to enable your smart contract to claim CSR
If you would like to build smart contracts that custody CSR tokens and are able to earn rewards, you will be able to do so manually during the deploy of your contract.
Accounts that receive CSR tokens will become automatically eligible for rewards except for existing contracts. Fortunately, contracts that receive some CSR tokens during construction will be able to bypass the existing contract check since they are not "seen" as contracts until the construction is complete.
The technique we recommend and have supporting examples for is to use a simple faucet contract, calling the drip function inside your contracts constructor.
It's important to keep in mind that your contract will need to have the supporting interface for claiming, receiving and handling rewards.
Last updated