allow for capital efficiency beyond 100%
This commit is contained in:
parent
c7582350a0
commit
1dfa81ea57
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue