-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
- For now, all class-XP will be based 1-to-1 on stablecoins earned on a raid
- We should first run a script to calculate general XP based on stablecoins earned
- We’ll have to use Smart Escrow to figure out what the payouts were
- If the output looks fair, then we’ll move on to figuring out class-XP
- We should export XP data for all of January before implementing, so that RaidGuild members can deem it fair or not
- Implementation will primarily rely on Hasura events in DungeonMaster
- Back-tracking XP will be handled via different methods later
Implementation Idea
- Listen for a DungeonMaster Hasura event that triggers when a raid status is changed to "SHIPPED"
- When this occurs, the bot should query Hasura for the smart escrow address that the raiders were paid out from
- Bot then queries the subgraph to grab smart escrow data. If funds haven't been released yet, then the bot should store SHIPPED raid data in the DB. If it has been released then...
- Bot distributes class-XP based on the amount the raider was paid, and the role that they acted as (data from DM)
- If the smart escrow is released after the raid is marked SHIPPED, then we need to listen to that event, then perform step 5
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request