From b9984fb4e748a16b0972e3a8dc0047063f30051d Mon Sep 17 00:00:00 2001 From: Pixel <81396266+KingND@users.noreply.github.com> Date: Sun, 1 Dec 2024 20:35:18 -0500 Subject: [PATCH] fix: sync minimum swap fee percentage in ConstantSumPool.sol with ConstantProductPool.sol (#117) * fix: sync minimum swap fee percentage in ConstantSumPool.sol with ConstantProductPool.sol * fix: correct comment value on _MIN_SWAP_FEE_PERCENTAGE in ConstantProductPool.sol --- packages/foundry/contracts/pools/ConstantProductPool.sol | 2 +- packages/foundry/contracts/pools/ConstantSumPool.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/foundry/contracts/pools/ConstantProductPool.sol b/packages/foundry/contracts/pools/ConstantProductPool.sol index eb7a2ed6..ba6f6d93 100644 --- a/packages/foundry/contracts/pools/ConstantProductPool.sol +++ b/packages/foundry/contracts/pools/ConstantProductPool.sol @@ -18,7 +18,7 @@ contract ConstantProductPool is BalancerPoolToken, IBasePool { uint256 private constant _MIN_INVARIANT_RATIO = 70e16; // 70% uint256 private constant _MAX_INVARIANT_RATIO = 300e16; // 300% - uint256 private constant _MIN_SWAP_FEE_PERCENTAGE = 1e12; // 0.00001% + uint256 private constant _MIN_SWAP_FEE_PERCENTAGE = 1e12; // 0.0001% uint256 private constant _MAX_SWAP_FEE_PERCENTAGE = 0.10e18; // 10% constructor(IVault vault, string memory name, string memory symbol) BalancerPoolToken(vault, name, symbol) {} diff --git a/packages/foundry/contracts/pools/ConstantSumPool.sol b/packages/foundry/contracts/pools/ConstantSumPool.sol index 2852e120..8044dd65 100644 --- a/packages/foundry/contracts/pools/ConstantSumPool.sol +++ b/packages/foundry/contracts/pools/ConstantSumPool.sol @@ -14,7 +14,7 @@ import { IVault } from "@balancer-labs/v3-interfaces/contracts/vault/IVault.sol" contract ConstantSumPool is IBasePool, BalancerPoolToken { uint256 private constant _MIN_INVARIANT_RATIO = 70e16; // 70% uint256 private constant _MAX_INVARIANT_RATIO = 300e16; // 300% - uint256 private constant _MIN_SWAP_FEE_PERCENTAGE = 0.001e18; // 0.001% + uint256 private constant _MIN_SWAP_FEE_PERCENTAGE = 1e12; // 0.0001% uint256 private constant _MAX_SWAP_FEE_PERCENTAGE = 0.10e18; // 10% constructor(IVault vault, string memory name, string memory symbol) BalancerPoolToken(vault, name, symbol) {}