```\nFile: blueberry-core\contracts\spell\CurveSpell.sol\n        // 2. Borrow specific amounts\n        uint256 borrowBalance = _doBorrow(\n            param.borrowToken,\n            param.borrowAmount\n        );\n\n        // 3. Add liquidity on curve\n        address borrowToken = param.borrowToken;\n        _ensureApprove(param.borrowToken, pool, borrowBalance);\n        if (tokens.length == 2) {\n            uint256[2] memory suppliedAmts;\n            for (uint256 i = 0; i < 2; i++) {\n                     //this 'if' check is the fix from the previous contest\n110:->               if (tokens[i] == borrowToken) {\n                    suppliedAmts[i] = IERC20Upgradeable(tokens[i]).balanceOf(\n                        address(this)\n                    );\n                    break;\n                }\n            }\n            ICurvePool(pool).add_liquidity(suppliedAmts, minLPMint);\n        } else if (tokens.length == 3) {\n```\n