Closed lanceaper closed 2 weeks ago
Sometime failed to calc fee, says divided by zero, so catch the error first
feeBips: BigInt(feeUSD.div(positionUSD).mul(feeCoefficient).toFixed(0)),
Sometime failed to calc fee, says divided by zero, so catch the error first
feeBips: BigInt(feeUSD.div(positionUSD).mul(feeCoefficient).toFixed(0)),