```\n        for (uint i; i < swapParams.length; ) {\n        // find excess amount after repay\n        uint swapAmt = swapParams[i].operation == SwapOperation.EXACT_IN\n          ? IERC20(swapParams[i].tokenIn).balanceOf(address(this)) - openTokenInfos[i].borrowAmt\n             : openTokenInfos[i].borrowAmt - IERC20(swapParams[i].tokenOut).balanceOf(address(this));\n                 swapAmt = (swapAmt * swapParams[i].percentSwapE18) / ONE_E18\n                 if (swapAmt == 0) {\n              revert SwapZeroAmount();\n             }\n```\n