        uint256 callerReward = _getCallerReward(
            //@audit - userBorrowPart[user] is incorrect as it does not include accumulated fees
            userBorrowPart[user],
            startTVLInAsset,
            maxTVLInAsset
        );
    function _isSolvent(
        address user,
        uint256 _exchangeRate
    ) internal view returns (bool) {
        ...
        return
            yieldBox.toAmount(
                collateralId,
                collateralShare *
                    (EXCHANGE_RATE_PRECISION / FEE_PRECISION) *
                    collateralizationRate,
                false
            ) >=
            //@audit - note that the collateralizion calculation is based on borrowed amount with fees (using totalBorrow.elastic)
            // Moved exchangeRate here instead of dividing the other side to preserve more precision
            (borrowPart * _totalBorrow.elastic * _exchangeRate) /
                _totalBorrow.base;
    }
    function _getCallerReward(
        uint256 borrowed,
        uint256 startTVLInAsset,
        uint256 maxTVLInAsset
    ) internal view returns (uint256) {
        if (borrowed == 0) return 0;
        if (startTVLInAsset == 0) return 0;

        if (borrowed < startTVLInAsset) return 0;
        if (borrowed >= maxTVLInAsset) return minLiquidatorReward;

        uint256 rewardPercentage = ((borrowed - startTVLInAsset) *
            FEE_PRECISION) / (maxTVLInAsset - startTVLInAsset);

        int256 diff = int256(minLiquidatorReward) - int256(maxLiquidatorReward);
        int256 reward = (diff * int256(rewardPercentage)) /
            int256(FEE_PRECISION) +
            int256(maxLiquidatorReward);

        return uint256(reward);
    }
        console.log("    callerReward (without fees) = \t %d (actual)", callerReward);
    
        callerReward= _getCallerReward(
            //userBorrowPart[user],
            //@audit borrowed amount with fees
            (userBorrowPart[user] * totalBorrow.elastic) / totalBorrow.base, 
            startTVLInAsset,
            maxTVLInAsset
        );
        console.log("    callerReward (with fees)  = \t %d (expected)", callerReward);
        uint256 callerReward = _getCallerReward(
            userBorrowPart[user],
            startTVLInAsset,
            maxTVLInAsset
        );
        uint256 callerReward = _getCallerReward(
            (userBorrowPart[user] * totalBorrow.elastic) / totalBorrow.base,
            startTVLInAsset,
            maxTVLInAsset
        );
