```\nfunction properDepositRatio(\n  address pos,\n  uint256 deposit0,\n  uint256 deposit1\n) public view returns (bool) {\n  (uint256 hype0, uint256 hype1) = IHypervisor(pos).getTotalAmounts();\n  if (IHypervisor(pos).totalSupply() != 0) {\n    uint256 depositRatio = deposit0 == 0 ? 10e18 : deposit1.mul(1e18).div(deposit0);\n    depositRatio = depositRatio > 10e18 ? 10e18 : depositRatio;\n    depositRatio = depositRatio < 10e16 ? 10e16 : depositRatio;\n    uint256 hypeRatio = hype0 == 0 ? 10e18 : hype1.mul(1e18).div(hype0);\n    hypeRatio = hypeRatio > 10e18 ? 10e18 : hypeRatio;\n    hypeRatio = hypeRatio < 10e16 ? 10e16 : hypeRatio;\n    return (FullMath.mulDiv(depositRatio, deltaScale, hypeRatio) < depositDelta &&\n            FullMath.mulDiv(hypeRatio, deltaScale, depositRatio) < depositDelta);\n  }\n  return true;\n}\n```\n