MultiMerkleDistributor
Storage
questRewardToken
Mapping listing the reward token associated to each Quest ID
rewardTokens
Mapping of tokens this contract is or was distributing
questClosedPeriods
List of Closed QuestPeriods by Quest ID
questMerkleRootPerPeriod
Merkle Root for each period of a Quest (indexed by Quest ID)
questRewardsPerPeriod
Amount of rewards for each period of a Quest (indexed by Quest ID)
questBoard
Address of the QuestBoard contract
Events
Claimed
Event emitted when a user Claims
NewQuest
Event emitted when a New Quest is added
QuestPeriodUpdated
Event emitted when a Period of a Quest is updated (when the Merkle Root is added)
Modifiers
onlyAllowed
Check the caller is either the admin or the QuestBoard contract
Constructor
View Methods
isClaimed
Checks if the rewards were claimed for a user on a given period
Checks if the rewards were claimed for a user (based on the index) on a given period
Parameters
Return Values
getClosedPeriodsByQuests
Returns all current Closed periods for the given Quest ID
Returns all current Closed periods for the given Quest ID
Parameters
Return Values
State-changing Methods
claim
Claims the reward for a user for a given period of a Quest
Claims the reward for a user for a given period of a Quest if the correct proof was given
Parameters
ClaimParams
multiClaim
Claims multiple rewards for a given list
Calls the claim() method for each entry in the claims array
Parameters
claimQuest
Claims the reward for all the given periods of a Quest, and transfer all the rewards at once
Sums up all the rewards for given periods of a Quest, and executes only one transfer
Parameters
addQuest
Adds a new Quest to the listing
Adds a new Quest ID and the associated reward token
Parameters
Return Values
addQuestPeriod
Adds a new period & the rewards of this period for a Quest
Adds a new period & the rewards of this period for a Quest
Parameters
Return Values
fixQuestPeriod
updateQuestPeriod
Updates the period of a Quest by adding the Merkle Root
Add the Merkle Root for the eriod of the given Quest
Parameters
Return Values
recoverERC20
Recovers ERC2O tokens sent by mistake to the contract
Recovers ERC2O tokens sent by mistake to the contract
Parameters
Return Values
emergencyUpdateQuestPeriod
Allows to update the MerkleRoot for a given period of a Quest if the current Root is incorrect
Updates the MerkleRoot for the period of the Quest
Parameters
Return Values
Last updated