code: private function getMaxPercentForInfinityBonus($cfgParams, $scheme)
      {
          $result = 0;
          $params = $cfgParams[$scheme];
          /** @var ECfgParam $item */
          foreach ($params as $item) {
              $percent = $item->getInfinity();
              if ($percent > $result) {
                  $result = $percent;
              }
          }
          return $result;
      }
docs: Walk through the all configuration parameters & get MAX percent for Infinity bonus
  
  @param array $cfgParams see \Praxigento\BonusHybrid\Service\Calc\Bonus\Infinity\Calc::getCfgParams
  @return int