-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Market: Adding liquidity should be free #51
Comments
|
Most Market orders will not be adding liquidity as they cross the spread (they trade above the last traded price with a slippage % added) |
Due to fixing my incorrect FOK handling (thx @haasted 👍 ), I realized this spec ramification:
|
Both FOK and IOC orders are “taker” orders, they never add liquidity. So if IOC with current impl/logic receives rebate something is wrong 🙂
…Sent from my iPhone
On 20 May 2021, at 16.12, Mario Karagiorgas ***@***.***> wrote:
Due to fixing my incorrect FOK handling (thx @haasted 👍 ), I realized this spec ramification:
* FOK orders always cost the full Gas
* IOC orders never receive the full rebate. May receive partial credit.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#51 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEJSY5NJ3MER2L5QNPATWO3TOUKEXANCNFSM4YYWBTQA> . <https://github.com/notifications/beacon/AEJSY5PNGATWGI7LLTOKVW3TOUKEXA5CNFSM4YYWBTQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGJQB2AY.gif>
|
ACK |
The SDK is still solidifying around related Gas proposals dealing with enhanced centralized gas management. |
Is your feature request related to a problem? Please describe.
To incentivise market makers, net adding liquidity over time should be free. This can be unpacked as:
Describe the solution you'd like
em-ledger/x/market/keeper/keeper.go
Line 334 in 12b0302
Additional considerations
It must not be possible to exploit the rebate mechanism in a way where it becomes cheaper (or even free) to remove liquidity, i.e. crafting an order to get almost filled but adding a small amount to the book should not result in a rebate.
It must not be possible to spam the chain with useless transactions. Only behaviour that is net adding liquidity
Describe alternatives you've considered
Further investigation needed here.
The text was updated successfully, but these errors were encountered: