Skip to content

Commit

Permalink
feat: optimise add_share
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMist committed Nov 12, 2024
1 parent aa9ae77 commit 87906ea
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/BinHookTest#testMintSucceedsWithHook.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
311512
311472
2 changes: 1 addition & 1 deletion .forge-snapshots/BinMintBurnFeeHookTest#test_Mint.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
410594
410554
2 changes: 1 addition & 1 deletion .forge-snapshots/BinPoolManagerBytecodeSize.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23406
23421
Original file line number Diff line number Diff line change
@@ -1 +1 @@
970797
970437
Original file line number Diff line number Diff line change
@@ -1 +1 @@
330109
329749
Original file line number Diff line number Diff line change
@@ -1 +1 @@
337769
337729
Original file line number Diff line number Diff line change
@@ -1 +1 @@
140320
140280
Original file line number Diff line number Diff line change
@@ -1 +1 @@
304808
304768
2 changes: 1 addition & 1 deletion src/pool-bin/libraries/BinPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ library BinPool {
/// <WIP> to discuss if we want to enforce this -- otherwise user can potentially add below 1e9 liquidity
/// but can't withdraw if there's no other lp to help push the min share up
uint256 balanceShare = self.shareOfBin[binId];
if (balanceShare > 0 && balanceShare < MINIMUM_SHARE) {
if (balanceShare < MINIMUM_SHARE) {
revert BinPool__BelowMinimumShare(balanceShare);
}
}
Expand Down

0 comments on commit 87906ea

Please sign in to comment.