DeFiCh/jellyfish

View on GitHub
apps/whale-api/src/module.indexer/model/dftx/pool.swap.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function indexSwap has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async indexSwap (block: RawBlock, transaction: DfTxTransaction<any>, poolPairId: string, fromTokenId: number, fromAmount: BigNumber): Promise<void> {
    await this.poolSwapMapper.put({
      id: `${poolPairId}-${transaction.txn.txid}`,
      txid: transaction.txn.txid,
      txno: transaction.txnNo,
Severity: Minor
Found in apps/whale-api/src/module.indexer/model/dftx/pool.swap.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status