From 1dfa81ea57640763f56b0deb39a8ea9a4eeacbbd Mon Sep 17 00:00:00 2001 From: JulesCrown Date: Tue, 13 Aug 2024 20:30:59 +0200 Subject: [PATCH] allow for capital efficiency beyond 100% --- onchain/src/LiquidityManager.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onchain/src/LiquidityManager.sol b/onchain/src/LiquidityManager.sol index aaa51af..800e3d9 100644 --- a/onchain/src/LiquidityManager.sol +++ b/onchain/src/LiquidityManager.sol @@ -51,7 +51,7 @@ contract LiquidityManager { uint256 internal constant MAX_ANCHOR_LIQ_SHARE = 25; // virtual liabilities that are added to push the calculated floor price down artificially, // creating a security margin for attacks on liquidity - uint256 internal constant MIN_CAPITAL_INEFFICIENCY = 100; // 120 = 20% + uint256 internal constant MIN_CAPITAL_INEFFICIENCY = 70; uint256 internal constant MAX_CAPITAL_INEFFICIENCY = 200; // used to double-check price with uni oracle uint32 internal constant PRICE_STABILITY_INTERVAL = 300; // 5 minutes in seconds @@ -107,7 +107,7 @@ contract LiquidityManager { harb = Harberg(_harb); token0isWeth = _WETH9 < _harb; anchorLiquidityShare = MAX_ANCHOR_LIQ_SHARE; - capitalInfefficiency = MIN_CAPITAL_INEFFICIENCY; + capitalInfefficiency = MIN_CAPITAL_INEFFICIENCY; // starting at 95% fuzzer passes tests } /// @notice Callback function that Uniswap V3 calls for liquidity actions requiring minting or burning of tokens.