Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Expired short positions shouldn't accrue interest #1317

Open
theoreticalbts opened this issue Jan 27, 2015 · 5 comments
Open

Expired short positions shouldn't accrue interest #1317

theoreticalbts opened this issue Jan 27, 2015 · 5 comments

Comments

@theoreticalbts
Copy link
Contributor

I think not charging interest to expired short positions is more "correct" behavior in terms of being in line with user expectations. And it will be a side effect of the way short interest is currently implemented.

But there should be a unit test to verify that this is, in fact, the case.

@abitmore
Copy link
Member

So the owner will pay interest if she cover the short order manually, but pay nothing if she let it expire? Sounds unfair.

@bytemaster
Copy link
Contributor

I think he is saying there should be a CAP on interest. I disagree, interest should continue to accumulate even if the expired short is unable to get matched. This shouldn't happen given margin call and 110% above feed means that expiration can result in a short squeeze.

We need to verify that expired shorts only create a buy wall at the feed, where as margin called shorts can go down to 90% below the feed to get filled.

@bytemaster
Copy link
Contributor

market_engine::get_interest_owed() calculates it for any period based upon age_seconds.
age_seconds is determined by market_engine::get_current_cover_age() which can be more than BTS_BLOCKCHAIN_MAX_SHORT_PERIOD_SEC if there are no buy orders at or above the price feed thus I have confirmed that interest will accrue until the short is covered.

This may incentivize shorts to manually buy above the feed in an amount equal to the expected interest paid while waiting.

bytemaster added a commit that referenced this issue Jan 28, 2015
@theoreticalbts
Copy link
Contributor Author

First of all, the intent of this ticket was to task myself (or whoever decided to pick it up) to CREATE A UNIT TEST for how much interest short positions are charged after expiration. This ticket should remain open until there is:

  • A unit test showing an expired short including interest at various points in time
  • A link to that unit test in this ticket

Second, the referenced commit doesn't solve this issue, rather I think that commit is more relevant to #1277

Third, why the heck does that commit need to update FC, qt wallet and web wallet?

@arhag
Copy link

arhag commented Feb 8, 2015

We need to verify that expired shorts only create a buy wall at the feed, where as margin called shorts can go down to 90% below the feed to get filled.

I just want to make sure that the code is still checking whether an expired short should be margin called, correct? Meaning that as the price feed changes (thus changing the value of the collateral in BitAssets) and as the total BitAssets owed by the expired short changes (as interest accrues), the collateral ratio ((value of collateral in BitAssets) / (BitAsset quantity owed by short position)) will change, possibly falling below the 200% margin call threshold.

In that situation, the blockchain should change the status of the expired short cover into a margin-called short cover and be willing to buy up to 10% below the feed (in BitAsset/BTS price). If it does not, you risk allowing the system to gradually fall into a state of undercollateralization despite there being sufficient BitAsset sell orders at a price above 90% but below 100% of the price feed (in BitAsset/BTS price).

@vikramrajkumar vikramrajkumar modified the milestones: dvs/0.10.0, dvs/0.9.1 Apr 8, 2015
@vikramrajkumar vikramrajkumar modified the milestones: dvs/0.10.0, dvs/0.11.0 Apr 20, 2015
@vikramrajkumar vikramrajkumar removed this from the dvs/0.10.0 milestone Jun 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants