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
Volume to next tier find the fraction needed for teh next minimumPartyMakerVolumeFraction on currentVolumeRebateProgram and show the gap in % to get there
Taker volume discount
Current tier shoudl come from partyDiscountStats
Current volume shuld come from runningVolume on volumeDiscountStats for the current epoch
Volume to next tier find the volume needed fro the next minimumRunningNotionalTakerVolume up on currentVolumeDiscountProgram and show the gap to get there
Referral discount
Current tier shoudl come from partyDiscountStats
Current running volume shoudl come from referralSetRunningNotionalTakerVolume on referralSetStats
You may be able to do this simply by adding a partyId
Or maybe you need to first query referralSetReferees for referee = partyId to find the referralSetId.. then use that
We will need to set up some tests to check this because I think the referrer doesnt get the discount but the referee does, so we need to make sure we're showing the right info
Volume to next tier find the volume needed for the next tier up on currentReferralProgram and show the gap to get there
Next section should be the fees by market which now focuses on the below and SHOULD all be available on the new partyDiscountStats API
Show discountedTakerFee as "Taker fee"
Show undiscountedTakerFee - discountedTakerFee / undiscountedTakerFee in brackets
Show baseMakerFee + userMakerRebate as "Maker rebate"
Show userMakerRebate in brackets
Show the full grids of the programs for use as reference, likely these will need to move to just stacked on top of each other since they are too large now, also probably remove the colours as these are now not the focus
We're basically just goiing to be showing the full content of the APIs for
The Chore
Taken from Vega project repo ...
Fee page
partyDiscountStats
makerVolumeFraction
onvolumeRebateStats
for the current epoch and show as % vegaprotocol/frontend-monorepo#7013minimumPartyMakerVolumeFraction
oncurrentVolumeRebateProgram
and show the gap in % to get therepartyDiscountStats
runningVolume
onvolumeDiscountStats
for the current epochminimumRunningNotionalTakerVolume
up oncurrentVolumeDiscountProgram
and show the gap to get therepartyDiscountStats
referralSetRunningNotionalTakerVolume
onreferralSetStats
referralSetReferees
forreferee
=partyId
to find thereferralSetId
.. then use thatcurrentReferralProgram
and show the gap to get therepartyDiscountStats
APIdiscountedTakerFee
as "Taker fee"undiscountedTakerFee - discountedTakerFee / undiscountedTakerFee
in bracketsbaseMakerFee + userMakerRebate
as "Maker rebate"userMakerRebate
in bracketsExample of volume
Referral page
Additional details / background info
Spec PR
vegaprotocol/specs#2293
Core ticket for the maker rebate boost tier
vegaprotocol/vega#11530
Core ticket to update existing referral / volume discount program APIs
vegaprotocol/vega#11531
Party Discount Stats output
The text was updated successfully, but these errors were encountered: