@@ -190,6 +190,12 @@ class PayCalculate {
} else {
p.tp = this.ctx.helper.round(p.tp, this.decimal);
}
+ } else {
+ if (p.rprice) {
+ if (this._checkDeadline(p)) {
+ p.tp = this.ctx.helper.sub(p.rprice, p.pre_tp);
+ }
p.tp = 0;