```\nfunction getIndex() public view returns (uint256) {\n    if (totalEarnUSDCBalance == 0) {\n        return 1e18;\n    } else {\n        return SignedDecimalMath.decimalDiv(getNetValue(), totalEarnUSDCBalance);\n    }\n}\n```\n