If unlocked capital in pool falls below minRequiredCapital, then protection can be bought for minimum premium
If the unlocked capital in a pool falls below the minRequiredCapital, then protection can be bought for minimum premium\\nIn PremiumCalculator.calculatePremium, we see that if the risk factor "cannot be calculated," it uses the minimum premium.\\n```\\n    if (\\n      RiskFactorCalculator.canCalculateRiskFactor(\\n        _totalCapital,\\n        _leverageRatio,\\n        _poolParameters.leverageRatioFloor,\\n        _poolParameters.leverageRatioCeiling,\\n        _poolParameters.minRequiredCapital\\n      )\\n    ) {\\n      // rest of code\\n    } else {\\n      /// This means that the risk factor cannot be calculated because of either\\n      /// min capital not met or leverage ratio out of range.\\n      /// Hence, the premium is the minimum premium\\n      _isMinPremium = true;\\n    }\\n```\\n\\nIn RiskFactor.canCalculateRiskFactor, we see there are three conditions when this is so:\\n```\\n  function canCalculateRiskFactor(\\n    uint256 _totalCapital,\\n    uint256 _leverageRatio,\\n    uint256 _leverageRatioFloor,\\n    uint256 _leverageRatioCeiling,\\n    uint256 _minRequiredCapital\\n  ) external pure returns (bool _canCalculate) {\\n    if (\\n      _totalCapital < _minRequiredCapital ||\\n      _leverageRatio < _leverageRatioFloor ||\\n      _leverageRatio > _leverageRatioCeiling\\n    ) {\\n      _canCalculate = false;\\n    } else {\\n      _canCalculate = true;\\n    }\\n  }\\n}\\n```\\n\\nIf the leverage ratio is above the ceiling, then protection should be very cheap, and it is correct to use the minimum premium. If the leverage ratio is above the floor, then protection cannot be purchased.\\nHowever, we see that the minimum premium is also used if _totalCapital is below _minRequiredCapital. In this case, protection should be very expensive, but it will instead be very cheap.
Issue If unlocked capital in pool falls below minRequiredCapital, then protection can be bought for minimum premium\\nProhibit protection purchases when capital falls below the minimum required capital
Buyers can get very cheap protection at a time when it should be expensive.
```\\n    if (\\n      RiskFactorCalculator.canCalculateRiskFactor(\\n        _totalCapital,\\n        _leverageRatio,\\n        _poolParameters.leverageRatioFloor,\\n        _poolParameters.leverageRatioCeiling,\\n        _poolParameters.minRequiredCapital\\n      )\\n    ) {\\n      // rest of code\\n    } else {\\n      /// This means that the risk factor cannot be calculated because of either\\n      /// min capital not met or leverage ratio out of range.\\n      /// Hence, the premium is the minimum premium\\n      _isMinPremium = true;\\n    }\\n```\\n