TS6234

TS6234: This expression is not callable because it is a get accessor. Did you mean to use it without '()'?

Broken Code ❌

if (this.isLong()) {
  return new Big(1).plus(this.toFactor(this.config.trailingPercentage)).mul(price);
}

Solution:

To correct this, remove the parentheses from isLong, allowing it to be accessed as a property.

Fixed Code ✔️

if (this.isLong) {
  return new Big(1).plus(this.toFactor(this.config.trailingPercentage)).mul(price);
}