Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 30efbdc

Browse files
author
Aaron
authored
Merge pull request #8 from aaron-binary/remove-sell-expired
Remove sellExpired()
2 parents dc9ea4e + b27b204 commit 30efbdc

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/services/tradeEngine/trade/OpenContract.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export default Engine =>
2121

2222
this.setContractFlags(contract);
2323

24-
this.sellExpired();
25-
2624
this.data = this.data.set('contract', contract);
2725

2826
broadcastContract({ accountID: this.accountInfo.loginid, ...contract });
@@ -49,11 +47,6 @@ export default Engine =>
4947
this.store.dispatch(openContractReceived());
5048
if (!this.isExpired) {
5149
this.resetSubscriptionTimeout();
52-
return;
53-
}
54-
if (!this.retriedUnsuccessfullSellExpired) {
55-
this.retriedUnsuccessfullSellExpired = true;
56-
this.resetSubscriptionTimeout(AFTER_FINISH_TIMEOUT);
5750
}
5851
}
5952
});
@@ -67,7 +60,6 @@ export default Engine =>
6760

6861
subscribeToOpenContract(contractId = this.contractId) {
6962
if (this.contractId !== contractId) {
70-
this.retriedUnsuccessfullSellExpired = false;
7163
this.resetSubscriptionTimeout();
7264
}
7365
this.contractId = contractId;

src/services/tradeEngine/trade/Sell.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,4 @@ export default Engine =>
4747
delayIndex++
4848
).then(onSuccess);
4949
}
50-
51-
sellExpired() {
52-
if (this.isSellAvailable && this.isExpired) {
53-
doUntilDone(() => this.api.sellExpiredContracts());
54-
}
55-
}
5650
};

0 commit comments

Comments
 (0)