AugurProject/augur-ui

View on GitHub
src/modules/markets/actions/market-creator-fees-management.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function collectMarketCreatorFees has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

) => (dispatch, getState) => {
  const { loginAccount } = getState();
  if (!loginAccount.address) return callback(null);
  augur.api.Market.getMarketCreatorMailbox(
    { tx: { to: marketId } },
Severity: Major
Found in src/modules/markets/actions/market-creator-fees-management.js - About 2 hrs to fix

    Function loadUnclaimedFees has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const loadUnclaimedFees = (marketIds = [], callback = logError) => (
      dispatch,
      getState
    ) => {
      if (marketIds == null || marketIds.length === 0) return callback(null, []);
    Severity: Minor
    Found in src/modules/markets/actions/market-creator-fees-management.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status