Claiming ERC20 Rewards
In the following scenarios, ERC20 payment tokens will be set aside as rewards to be claimed at a future date. Each owner of these rewards can let them accumulate and withdraw them at any point.
Maker Reward
Awarded to the owner who registered an NFT whenever a Reaction is purchased based on that NFT.
Maker Creator Reward
Awarded to the Creator of an NFT whenever a Reaction is purchased based on that NFT. The Maker must specify this Creator and percentage cut when registering the NFT.
Purchase Referrer Reward
Awarded to the application or user who facilitated the purchase of a Reaction. The referrer address is included in the purchase transaction parameters.
Spend Referrer Reward
Awarded to the application or user who facilitated the spending of a reaction against a Taker NFT. The referrer address is included in the spend transaction parameters.
Taker Creator Reward
Awarded to the Creator of an NFT whenever the associated Taker claims rewards and sells Curation Tokens. The Taker must specify this Creator and percentage cut when registering the NFT.
Each of these rewards are allocated for a specific address and payment token. If the same account or address is used for multiple purposes, all rewards will accumulate in the same manner for that account. These rewards can be looked up via the “ownerToRewardsMapping” mapping in the ReactionVault Contract.
To claim any rewards, the function “withdrawErc20Rewards()” must be called in the Reaction Vault Contract. The logic will look up the balance of the rewards for the calling account and transfer the balance of rewards to that account.
Claim Function
Any address that has accumulated tokens can call the claim function and any owed tokens will transferred back to that address.
The current active payment token address can be queried from the ParameterManager
contract in the protocol.
Last updated