This repository was archived by the owner on Jul 24, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
src/services/tradeEngine/trade Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments