Skip to content

Handle class-XP based on shipped raid data in DungeonMaster #17

@ECWireless

Description

@ECWireless
  • 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

  1. Listen for a DungeonMaster Hasura event that triggers when a raid status is changed to "SHIPPED"
  2. When this occurs, the bot should query Hasura for the smart escrow address that the raiders were paid out from
  3. 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...
  4. Bot distributes class-XP based on the amount the raider was paid, and the role that they acted as (data from DM)
  5. 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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions