-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: stack too deep issue in GeometricMean strategy * feat: revamp G3MExtendedLib to solve stack too deep issues * feat: remove deltaL from allocate and deallocate * chore: add terminology to README * feat: allocate and deallocate are using delta params * feat: add extra functions to compute deltas * feat: allocate / deallocate validation funcs are now using deltaLiquidity * test: update MockStrategy to new IStrategy interface * feat: IStrategy now passes pool struct, splits liquidity validation * feat: updates ConstantSum to new IStrategy pattern * feat: update ConstantSumSolver * feat: updates LogNormal to new IStrategy pattern * feat: solve stack too deep issues * feat: update LogNormalSolver * test: update ConstantSumTest * test: fix G3M allocate test * test: fix G3M init test * feat: fix deltaLiquidity in G3M * feat: add allocateGivenDeltaX in G3MSolver * feat: rename returned variables in IStrategy * feat: add allocateGivenDeltaY to G3MSolver * test: fix G3M allocate tests * feat: fix deallocate in G3M strategy * build: remove strategies deployment for now * test: fix G3M deallocate tests * feat: update validateAllocate and validateDeallocate in LogNormal strategy * feat: add allocateGivenDeltaX and DeltaY to LogNormalSolver * test: update LogNormal allocate tests * test: check multiple allocations in a row in a G3M pool * test: add revert check when maxDeltaX is reached in G3M strategy * test: add revert check when maxDeltaY is reached in G3M strategy * feat: rename returned variables of MockStrategy * feat: add new functions to compute deltas * feat: simplify G3M allocate and deallocate calculations * feat: simplify LogNormal allocate and deallocate calculations * feat: small trick to fix stack too deep * test: simplify allocate LogNormal test * feat: fix stack too deep errors * build: no more --via-ir, hell yeah * test: fix LogNormal allocate test * feat: add computeDeltaLGivenDeltaY * test: update deallocate LogNormal tests * chore: use named imports in DFMM contract * chore: use named imports in ScalingLib * chore: use named imports in DynamicParamLib * feat: add InvalidTransfer error to IDFMM * test: add deallocate scenario to MockStrategy * feat: move token balance checks after transfers into dedicated function * chore: use named import for LPToken in DFMM * test: add slippage to deallocate in LogNormal tests * chore: wip contribution guidelines * test: add token X and Y to DFMM setup * test: update MockStrategy * test: update deallocate tests in DFMM * test: update init tests for DFMM * test: remove duplicate test tokens * test: update DFMM general setup * test: update DFMM setup * test: fix some DFMM init tests * test: fix DFMM init reverts when not valid test * test: fix DFMM init event check * test: fix DFMM init reserves check * forge install: forge-std v1.7.6 * build: remove useless Forge remapping * test: skip broken test in ConstantSum tests * chore: fix conflicts merge error * test: add WETH, fix wrong constructor param for DFMM * test: add WETH address check in DFMM * test: add skipped test for DFMM allocate * fix: cleanup arb logic * fix optimalArbRaise signature * fmt * test: add DFMM receive revert check * test: add DFMM receive ETH from WETH check * chore: add missing NatSpec for weth function * test: change test tokens metadata * test: add LPToken metadata check * test: add DFMM lp tokens mint in init --------- Co-authored-by: kinrezc <matt.czernik@gmail.com>
- Loading branch information
Showing
35 changed files
with
1,269 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
# Contribution guidelines | ||
|
||
### General | ||
|
||
A few rules: | ||
1. Follow our [style guide](#style-guide). | ||
2. Format on save using Foundry formatter. | ||
|
||
## Style Guide | ||
|
||
|
||
### Imports | ||
|
||
1. Use named imports as much as possible. | ||
2. Import external dependencies first (libs, etc). | ||
|
||
### Tests | ||
|
||
1. Name the tests accordingly using the following format: | ||
`test_{name of the contract}_{name of the function}_{what should happen}` | ||
|
||
For example: | ||
`test_DFMM_init_IncrementsPoolId`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.