livepeer/livepeerjs

View on GitHub
packages/subgraph/src/mappings/minter.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function setCurrentRewardTokens has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function setCurrentRewardTokens(event: SetCurrentRewardTokens): void {
  let minter = Minter.bind(event.address);
  let round = createOrLoadRound(event.block.number);
  let protocol = Protocol.load("0");

Severity: Minor
Found in packages/subgraph/src/mappings/minter.ts - About 1 hr to fix

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

export function parameterUpdate(event: ParameterUpdate): void {
  let minter = Minter.bind(event.address);
  let round = createOrLoadRound(event.block.number);
  let protocol = Protocol.load("0");

Severity: Minor
Found in packages/subgraph/src/mappings/minter.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status