polkadot-js/api

View on GitHub
packages/api-derive/src/bounties/bounties.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function bounties has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function bounties (instanceId: string, api: DeriveApi): () => Observable<DeriveBounties> {
  const bountyBase = api.query.bounties || api.query.treasury;

  return memo(instanceId, (): Observable<DeriveBounties> =>
    bountyBase.bounties
Severity: Minor
Found in packages/api-derive/src/bounties/bounties.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status