Skip to content
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

Onchain margin position management #167

Closed
froooze opened this issue May 11, 2019 · 4 comments
Closed

Onchain margin position management #167

froooze opened this issue May 11, 2019 · 4 comments

Comments

@froooze
Copy link

froooze commented May 11, 2019

Problem

  1. Settlement is now only available from bitAsset -> BTS, but not from BTS -> bitAsset
  2. Target collateral ratio only works, when a margin call happens, but not before
  3. Increasing CR, needs a collateral removal first (decreasing CR)

Onchain margin tools

To cover the other side of margin trading and offer a BTS call outside of a margin call:

  • Increase CR (=target collateral ratio)
  • Close the margin position by selling as much BTS to cover the difference of BALANCE and DEBT
  • Close margin and sell afterwards X% of the BTS from the margin position to the borrowed bitAsset

Additional parameters:

  • Start date
  • MSSR
@abitmore
Copy link
Member

Context: earlier discussion in bitshares/bitshares-ui#2660

@froooze froooze changed the title Margin position management New BSIP: Margin position management May 11, 2019
@froooze froooze changed the title New BSIP: Margin position management Onchain margin position management May 20, 2019
@sschiessl-bcp
Copy link
Collaborator

Problem

  1. Settlement is now only available from bitAsset -> BTS, but not from BTS -> bitAsset
  2. Target collateral ratio only works, when a margin call happens, but not before
  3. Increasing CR, needs a collateral removal first (decreasing CR)

Onchain margin tools

To cover the other side of margin trading and offer a BTS call outside of a margin call:

  • Increase CR (=target collateral ratio)
  • Close the margin position by selling as much BTS to cover the difference of BALANCE and DEBT
  • Close margin and sell afterwards X% of the BTS from the margin position to the borrowed bitAsset

Additional parameters:

  • Start date
  • MSSR

Can you please elaborate a bit more on 1.-3. and what your desired functionality is?

@abitmore
Copy link
Member

As mentioned it's related to #156. Likely also related to #161. I'd like to have a big BSIP adding all the new parameters for bitAssets so asset creator can decide to apply what rule set.

@bitcrab
Copy link
Contributor

bitcrab commented Aug 8, 2019

why we need BTS -> bitAsset settlement? and how is it possible?

@froooze froooze closed this as completed Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants