```\n// Calculate value of all collaterals\n// collateralValuePerToken = underlyingPrice \* exchangeRate \* collateralFactor\n// collateralValue = balance \* collateralValuePerToken\n// sumCollateral += collateralValue\nuint256 \_len = \_accountData.collaterals.length();\nfor (uint256 i = 0; i < \_len; i++) {\n    IiToken \_token = IiToken(\_accountData.collaterals.at(i));\n```\n