-
Notifications
You must be signed in to change notification settings - Fork 649
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
Implement BSIP 74: Margin Call Fee Ratio #2129
Comments
It seems this is very much like the market fee. It is calculated at order execution time, and modifies the quantity of the asset sent or received. It is unlike an operation fee, that is deducted up-front at order creation time. Prior to BSIP 74, no market fee was charged to the account that created the limit order that ended up going against the call order. With BSIP 74, there will be a fee charged, which will go to the asset issuer. The fee amount is not based on Note that this fee will only be charged to call orders that are matched to limit orders. Please review and comment on my assumptions, as this will help to assure an implementation that matches the spirit of the BSIP. |
The spirit is "the call order gets charged" but not the limit order gets charged, although technically it's almost the same thing but with a shift on price. |
This fee must can be shared a part of it (e.g. like 20%) to the margin call buyer which can be set by the asset owner. |
I do not see these requirements in the BSIP specifications. Was it agreed and voted upon elsewhere? |
I have give these requirements long times ago, but the author maybe didn't understand the spirit of this BSIP. This BSIP have two main aims:
|
@jmjatlanta please ignore comments from @shulthz and work based on the BSIP itself. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The development of BSIP74 required extensive iterations because the original specifications were sometimes ambiguous, incomplete, or incompatible with all of the market situations and subtleties that are handled by the DEX mechanics. These high-level and low-level problems were identified through a series of development pushes which are documented in discussions during the first code pull request which continued during the creation of the second version of the specifications and continued further during the development towards the second version of the specifications. A brief description of how margin calls are handled will provide some context of the encountered issues. Margin calls go through a two-step process that involves (1) matching a margin call against counter-offers on the order books, and (2) filling the margin call against the counter-offer. Both the matching process and filling process depends on such things as the "match price" and the "fill price". However those prices are highly dependent on other factors that were not addressed. The development identified problems with the matching process in the original specifications:
The development also identified problems with the filling process in the original specifications:
All of these problems have been fully defined and subsequently developed. A new pull request will be submitted later today with the code and unit tests. A third version of the BSIP74 specifications, which summarizes the resolved requirements, will also be submitted afterwards in a new pull request. |
@MichelSantos thank you for the detailed info. Looking forward to the new commits. |
Done via #2180. |
This issue is to track the implementation of BSIP 74.
Impacts
Additional Context
Discussion about the BSIP itself can be found here. This issue is to discuss implementation details.
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: