You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Target of this ticket is to discuss and determin how to calculate the data farming and stake revenues for a slot.
The requirement is found in #618 but because this could be a higher complexity task and might require other tables decided to get it out into a separate issue and write down all the requirement here:
make sure all the subscriptions related data is fetched
add a list of addresses used by df to purchase the subscriptions
create a method that can filter a table based on df/non df addresses and returns the specific table
create a method that calculates the revenue for each contract+user+slot. For this we also need to read from pdr_slots table to get all the stakes from the specific slot.
The text was updated successfully, but these errors were encountered:
- As a first step we could filter out subscription based revenue from the stake revenue:
This is easy to do and doesn't require any extra data, just subtract the staked amount from the revenue
- In the second step we could further split the subscription based revenue into data farming and user purchase:
In this step we need to query the subscription purchases from the subgraph and filter them based on address so we know how much is coming from data farming and how much from other users.
After knowing how much OCEAN tokens are coming for each inflow, calculate the slot revenues
trentmc
changed the title
Calculate df and stake revenues for silver predictions table
[Lake] Calculate df and stake revenues for silver predictions table
Mar 12, 2024
Target of this ticket is to discuss and determin how to calculate the data farming and stake revenues for a slot.
The requirement is found in #618 but because this could be a higher complexity task and might require other tables decided to get it out into a separate issue and write down all the requirement here:
The text was updated successfully, but these errors were encountered: