vegaprotocol / topgun-service

Leaderboard API service for Fairground incentives (code name TOPGUN)
0 stars 0 forks source link

Create and configure topgun-service to track xyzAlpha asset balances for lp-incentive-1 #61

Closed cdm closed 2 years ago

cdm commented 2 years ago

https://github.com/vegaprotocol/topgun-service

cdm commented 2 years ago

dates are placeholder for now, proposed range could be Tuesday 15 March 12:00 to Friday 18 March 12:00

Jiajia-Cui commented 2 years ago

we agreed to ask for minimum requirement (5000 on buy and 5000 on sell) on LP commitment, and only sort the trader who made enough LP commitment, do you think this is easily achievable?

cdm commented 2 years ago

Ah yes, I'll investigate adding a check on LP commitment for each party in a new topgun algo.

So to double check, a LP user need to maintain at least active 5000 on buy and active 5000 on sell commitment to be ranked on the leaderboard ?

cdm commented 2 years ago

I just checked with @jeremyletang and we don't keep a history of LP commitments, just the current/last commitment. Will this be sufficient for what is needed?

Once the market has settled I'll need to write a custom script that can check users who have placed an LP but not sure how to check if it was active when the market settled?

arnevega commented 2 years ago

Maybe we can be generous with the users? If someone submitted any LP order, it should be enough to be whitelisted for the leaderboard? we can still ask them to commit more and then are just generous in the background.

cdm commented 2 years ago

@Jiajia-Cui what do you think about this idea?

Jiajia-Cui commented 2 years ago

can we ask the users to have non-zero in the bond account before the market terminate? Is it possible to track it?

cdm commented 2 years ago

Discussed the approach with @Jiajia-Cui on a call today, outcome is as follows:

TOPGUN: 1 - Create a new algo for topgun service that includes users so long as they've made an LP commitment (since the reset of the network) on the particular SOLUSD market, with asset xyzAlpha

INCENTIVE-TOOLS (not TOPGUN): 2 - Create a script to run locally that will be run just before market termination that records all registered users who have a bond account before termination

3 - Post termination, run a script locally to csv list a ranking of registered users who have xyzAlpha in general account, and merge with list from step 2 to get 'winners'

Jiajia-Cui commented 2 years ago

Looks good to me

cdm commented 2 years ago

This is in testing locally, will speak to ops to get them to deploy it to Vega infra when we're ready