uint256 pFees0 = feeProtocol == 0 ? 0 : paid0 / feeProtocol;
    function flash(address recipient, uint256 amount0, uint256 amount1, bytes calldata data) external override lock {
	
            if (paid0 > 0) {
-                uint256 pFees0 = feeProtocol == 0 ? 0 : paid0 / feeProtocol; 
+                uint256 pFees0 = feeProtocol == 0 ? 0 : paid0 * feeProtocol / 100; 

                if (uint128(pFees0) > 0) $.protocolFees.token0 += uint128(pFees0);
                $.feeGrowthGlobal0X128 += FullMath.mulDiv(paid0 - pFees0, FixedPoint128.Q128, _liquidity);
            }
            if (paid1 > 0) {
-                uint256 pFees1 = feeProtocol == 0 ? 0 : paid1 / feeProtocol; 
+                uint256 pFees1 = feeProtocol == 0 ? 0 : paid1 * feeProtocol / 100; 

                if (uint128(pFees1) > 0) $.protocolFees.token1 += uint128(pFees1);
                $.feeGrowthGlobal1X128 += FullMath.mulDiv(paid1 - pFees1, FixedPoint128.Q128, _liquidity);
            }


}
