```\nfunction getZethTotal(uint256 vault) internal view returns (uint256 zethTotal) {\n    AppStorage storage s = appStorage();\n    address[] storage bridges = s.vaultBridges[vault];\n    uint256 bridgeCount = bridges.length;\n\n    for (uint256 i; i < bridgeCount;) {\n        zethTotal += IBridge(bridges[i]).getZethValue(); \n        unchecked {\n            ++i;\n        }\n    }\n}\n```\n