Skip to content

Intra-Checkpoint Netting #13

@wakamex

Description

@wakamex

UPDATE: Spec is in this comment #13 (comment)

Problem: right now LPs can't exit when buffers are open, measured on gross as long buffer + short buffer. this can create very large buffers that greatly limit an LP's ability to withdraw.

Solution: count the buffers on net as net_buffer = long_buffer - short_buffer and make max(0,net_buffer) the amount LPs can't withdraw. buffers are not necessary for net short positions as max_loss sufficiently backs the LP short-sold into the market (which the LP has exposure to).

Benefit: now you can do two things:

  1. LPs can exit without any cost whenever the market is flat (longs = shorts)
  2. LPs can exit by paying the associated cost of making their position flat

simulation / code
TO DO: let's show this in a demo, to compare vs. current approach

Step 4: math formulas that show benefit
e.g. what is the associated cost an LP must pay to exit?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions