vegaprotocol / specs

Specs, designs and requirements 🦔
MIT License
7 stars 2 forks source link

Remove bond account and remove becoming an LP mechanism #2253

Closed davidsiska-vega closed 18 hours ago

davidsiska-vega commented 2 months ago

More radical

Remove bond account and remove becoming an LP mechanism.

To remove the transaction to become an LP, and to avoid having to evaluate SLA for all keys all the time, consider that a market param that sets what minimum % of maker fees you have to collect to count as an LP for the next epoch.

If in epoch n-1 you were given % of maker fees and in epoch n you meet the SLA you get included in the rewards.

In general, it would be good for LPs if at the end of epoch n-1 they knew what fraction of LP fees they're eligible at the end of epoch n (as long as they met the SLA that epoch).

Old suggestion; ignore for now Possibly two parts: 1) remove the need for an LP bond being provided upfront:

2) Providing liquidity on both sides of the book above the amount implied by the minimum bond amount netparam and meeting the minimum SLA will automatically register the party as an LP with the corresponding "intent" (backed out as the time-weighted average of the volume on the book divided by the scaling factor). From that point we create the bond account and start cumulating LP fees there (without the party having to send a transaction). At end of each epoch "intent" is recalculated increases, reductions are treated as in 1) above.

davidsiska-vega commented 2 months ago

Still too complicated; let's discuss before proceeding.