packages/api-derive/src/bounties/bounties.ts
Function bounties
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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