-
Notifications
You must be signed in to change notification settings - Fork 80
LF-13997 LDA 2.0 #1328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mirooon
wants to merge
250
commits into
main
Choose a base branch
from
lf-13997-lda-2.0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+14,318
−6,712
Open
LF-13997 LDA 2.0 #1328
Changes from all commits
Commits
Show all changes
250 commits
Select commit
Hold shift + click to select a range
d1885a6
added initial base contracts, UniV3StyleFacet and tests
mirooon 722f31a
Merge branch 'main' into lf-13997-lda-2.0
mirooon 2672c1c
New changes for LDA
mirooon 64962b9
changes
mirooon 898424c
changes
mirooon 322bdd7
changes
mirooon 1516d88
adjusted new CoreRouteFacet, modified LibInputStream2, fixed LiFiDexA…
mirooon c5645ec
added comments and changed var name
mirooon 89d4f39
adjusted tests for Algebra
mirooon e7937a7
added deal
mirooon dac9e04
changes
mirooon c7a3ca7
changes
mirooon bd8320d
changes
mirooon 04765f2
added tests to facets
mirooon 3a629c5
tests changes
mirooon fcf7457
tests changes
mirooon 5c6211a
changes
mirooon 5d79362
changes
mirooon 5634a52
changed to _executeAndVerifySwap in Velodrome
mirooon 3af3cc7
changed to commandType in basedexFacet
mirooon d934fe2
changes
mirooon a7e2c38
abstracted top level vars
mirooon c1e9ab5
changed rpcEnvName to networkName
mirooon 24d9e25
Refactored BaseDexFacetTest: renamed _toUpper to _convertToUpperCase,…
mirooon 1c45137
tests fixes
mirooon 9ae4821
use auto swpa for univ3
mirooon d2efaed
abstracted test_CanSwap and test_CanSwap_FromDexAggregator for UniV3S…
mirooon 48acd95
Refactored swap tests across various facets to use _getDefaultAmountF…
mirooon cd176e6
changes
mirooon fedf71c
emit Route event
mirooon 8ec7a5e
Add minOut parameter to swap tests across multiple facets
mirooon b995295
Refactor swap tests in AlgebraFacet and VelodromeV2Facet to utilize _…
mirooon 6f66efa
Add IUniV3LikePool interface and refactor pool variable usage in swap…
mirooon 51581a1
implement onlyExpectedPool modifier in UniV3StyleFacet for callback v…
mirooon 3bd29d8
implement onlyExpectedPool modifier in UniV3StyleFacet for callback v…
mirooon 1308e4c
Rename IUniV3LikePool to IUniV3StylePool, update imports accordingly,…
mirooon f417527
Remove LdaDiamond contract and update CoreRouteFacet to utilize LibAs…
mirooon 1650f6a
Add LibPackedStream library for compact calldata handling and refacto…
mirooon bf25a66
Refactor CoreRouteFacet to optimize payload handling
mirooon 30e3b6a
Refactor test contracts to use pure functions for default token amoun…
mirooon 353093a
Enhance CoreRouteFacet tests to utilize LibAsset for native asset han…
mirooon b7e4f5c
Refactor facets to utilize LibAsset for ERC20 transfers, update impor…
mirooon 51f9ac2
Update EmergencyPauseFacet import paths and add new facet for emergen…
mirooon 8741d63
Add BaseRouteConstants contract and refactor facets to utilize it for…
mirooon 8056676
Add SwapCallbackNotExecuted error and BaseRouteConstants contract. Re…
mirooon 450e913
Add IUniV2StylePool interface for Uniswap V2 style pools, refactor Un…
mirooon 2bfdec6
Update version annotations in various contracts, remove unused LibInp…
mirooon 6eb87c9
Refactor addFacet calls in test contracts to remove redundant address…
mirooon df1cad8
Update test/solidity/utils/TestBaseForksConstants.sol
0xDEnYO 303be01
Remove new-lda-2.0.md file and update interface annotations in ICurve…
mirooon da81407
Merge branch 'lf-13997-lda-2.0' of github.com:lifinance/contracts int…
mirooon 94f4725
Update SPDX license in ReentrancyGuard, add new error handling in Err…
mirooon 5f6d8d4
Update version annotation in LibAsset to 2.1.2 and change transferNat…
mirooon 0900971
Rename `clear` function to `disarm` in LibCallbackManager for improve…
mirooon 42d65fe
Integrate LibAsset for ERC20 transfers in LibUniV3Logic, replacing di…
mirooon 0c18410
fixed test_OwnerCanInitializeFacet
mirooon 80e5170
Add LibCallbackAuthenticator for callback management. Moved modifier …
mirooon 1494fd3
Add constructor documentation and improve comments for native asset h…
mirooon e3b7b70
added dev description for _runRoute
mirooon 7da28f4
Refactor _executeRoute and balance handling in CoreRouteFacet.sol for…
mirooon 4bf7e9e
Renamed errors for clarity: MinimalInputBalanceViolation to TokenInSp…
mirooon e2c3990
Renamed error identifiers in CoreRouteFacet for consistency: TokenInS…
mirooon be26603
Refactor CoreRouteFacet to improve clarity and consistency in command…
mirooon 63dad2f
Update documentation in SyncSwapV2Facet to clarify support for both V…
mirooon 9a0247b
add comments
mirooon 546ab4d
Enhance comments in CoreRouteFacet for assembly
mirooon b50f8ab
Refactor UniV2StyleFacet to use a constant for fee denominator, enhan…
mirooon 77f334a
Refactor naming conventions in test contracts and library for consist…
mirooon 126c216
use super.setUp()
mirooon fa247e1
Update CoreRouteFacetTest to use USER_RECEIVER
mirooon 1b19ed1
Refactor swap execution in test contracts to utilize _buildRouteAndEx…
mirooon 2b6fbfa
Add LDADiamond contract and refactor addFacet calls in test contracts…
mirooon 88b61d1
improved documentation
mirooon cc2def9
Update conventions.md to enforce single-line comment format for funct…
mirooon 9fd51c9
enhance documentation in BaseDEXFacetWithCallbackTest
mirooon 03436c4
Enhance documentation in PoolCallbackAuthenticated and Errors contrac…
mirooon 02b95bc
Add deployment scripts
mirooon 8567c5e
added scripts
mirooon 3fdd94a
Update conventions.md
mirooon 529ee1b
Add error handling for invalid indexed parameter positions in BaseCor…
mirooon 096f038
Refactor parameter naming in swap functions across multiple facets to…
mirooon 6ddbe21
fixed LibPackedStream
mirooon 318d8c0
added PancakeV2
mirooon db268e8
Refactor Curve interfaces: removed ICurveLegacy, added ICurveV2 with …
mirooon aa4e0df
Enhance CurveFacet documentation and add unit tests for legacy 3pool …
mirooon 2866e2a
Implement logic to distribute amounts in CoreRouteFacet, ensuring the…
mirooon 1b4d000
Optimize payload handling in CoreRouteFacet by computing payload leng…
mirooon 8ec085a
Add error handling for zero addresses and invalid fees in LDADiamond …
mirooon 058fb8e
Remove DeployLiFiDEXAggregator scripts and LiFiDEXAggregator test fil…
mirooon 3bade33
Add custom error handling for token transfer failures in AlgebraLiqui…
mirooon 44d328a
Refactor NativeWrapperFacet to streamline ETH withdrawal logic and im…
mirooon 4655934
Refactor facet instance parameter naming in test contracts to use 'ld…
mirooon 3fe3b85
Update SPDX license identifier in TestBase.sol from Unlicense to LGPL…
mirooon 413c062
Update SPDX license identifier in IWETH.sol from MIT to LGPL-3.0-only
mirooon af30e79
Refactor BaseRouteConstants to rename INTERNAL_INPUT_SOURCE to FUNDS_…
mirooon e157a0d
Update functionSelectors array size in BaseUniV2StyleDexFacet
mirooon 308ec84
Merge branch 'main' into lf-13997-lda-2.0
mirooon b2546ee
Override setUp function in SwapperV2Test and PatcherTest to ensure pr…
mirooon 842d77e
Update ICurve interface and CurveFacet to support payable exchanges, …
mirooon b247edb
Enhance CurveFacet to support legacy ETH swaps with stETH, adding tes…
mirooon 0149234
Enhance SyncSwapV2Facet tests to validate error handling for invalid …
mirooon 1b308cc
Refactor CurveFacet to conditionally approve ERC20 tokens based on as…
mirooon 5cbf20a
Implement additional validation in AlgebraFacet and UniV3StyleFacet t…
mirooon cbebd52
Remove LiFiDEXAggregator.sol file
mirooon 289b8ce
FUNDS_IN_RECEIVER to address(1)
mirooon 7ebfdae
Update EmergencyPauseFacet to include InvalidConfig error handling an…
mirooon db1b10e
Merge branch 'main' into lf-13997-lda-2.0
mirooon 15c94b6
updated paths
mirooon 61c0c97
Update LDA diamond test setup with new owner and pauser addresses, an…
mirooon 38c6a38
Refactor swap amount calculation in BaseUniV2StyleDexFacet and BaseUn…
mirooon 9035ee0
Update AlgebraFacet test to reflect changes in aggregator address fro…
mirooon 0cf2654
Update sender logic in BaseUniV2StyleDexFacet and BaseUniV3StyleDexFa…
mirooon 067e252
Update sender address in CurveFacet, IzumiV3Facet, NativeWrapperFacet…
mirooon 7062247
Update minOutput calculation in AlgebraFacet test to prevent underflo…
mirooon 486f651
Increment version number in LibAsset library from 2.1.2 to 2.1.3
mirooon 642b0e6
Update sender address in CurveFacet and IzumiV3Facet tests to use lda…
mirooon 6140574
Refactor interface documentation comments in IAlgebraFactory, IAlgebr…
mirooon d2e69f3
Refactor isIndexed array in BaseCoreRouteTest to use dynamic sizing b…
mirooon 169361b
improve error handling in NativeWrapperFacetTest
mirooon d05f15a
changed paths
mirooon 337bc14
updates
mirooon f3de730
update paths
mirooon 3131cd6
changed folder name
mirooon eb7b196
changed folder name
mirooon fbad9a0
changed folder name
mirooon 06f73b1
changed folder name
mirooon 2957af5
changed file name
mirooon a10b05d
changed folder name
mirooon 7475797
Add KatanaV3Facet contract and corresponding unit tests for swap func…
mirooon 5bb5f3b
Update sentinel address documentation
mirooon d845798
Fix type conversion for fromIndex and toIndex in CurveFacet contract
mirooon ff1b511
Add revert condition for native ETH input in V2 pools and correspondi…
mirooon b20a5b1
Improve documentation for unwrapNative function in NativeWrapperFacet…
mirooon db43d44
Update CoreRouteFacet instantiation and fix typo in callback document…
mirooon b989300
Update CurveFacet and related tests to clarify token sourcing and fee…
mirooon f993b80
Add LDA (LiFi DEX Aggregator) conventions to conventions.md
mirooon e081ffb
fix
mirooon 1e1b503
Add LDA facets including EmergencyPause, Ownership, and Periphery Reg…
mirooon 6370f9a
Update SPDX license identifiers to LGPL-3.0-only for LDA deployment s…
mirooon 9aef00c
removed duplicates
mirooon 1cb9bb4
Add LDA deployment scripts and facets, including core facets and upda…
mirooon c82a1d3
Add ownership transfer stage to LDA deployment script, including heal…
mirooon dbfa258
Add NativeWrapperFacet and IzumiV3Facet to deployment configurations …
mirooon 0749556
Add zksync deployment configurations and scripts for LDA facets, incl…
mirooon d444ffe
Refactor CoreRouteFacet to remove WithdrawablePeriphery inheritance a…
mirooon 9e70242
Remove LDA related copied scripts and related deployment scripts, tes…
mirooon a501d3a
Rename LDADiamond to LiFiDEXAggregatorDiamond in conventions.md and u…
mirooon a210154
Add detailed documentation for token swap functions in ICurve and ICu…
mirooon 34afee3
add blank line
mirooon 6d5c2e4
Update LDA error handling conventions: rename error file to LiFiDEXAg…
mirooon ee259cc
changed cur to stream
mirooon d822cb4
Refactor NativeWrapperFacet to optimize destination address retrieval…
mirooon cc4d5b5
Refactor LiFiDEXAggregatorDiamond to inherit from LiFiDiamond
mirooon fdb2786
Rename PoolCallbackAuthenticated to PoolCallbackAuthenticator
mirooon 86fdc51
Refactor test files to improve structure and consistency: rename Base…
mirooon 2495a34
Refactor test structure by removing LiFiDiamondTest and LiFiDEXAggreg…
mirooon 58896e3
Add test for LiFiDEXAggregatorDiamond to ensure it reverts when const…
mirooon 4c45d4a
Update conventions.md to standardize naming from LDA to LiFiDEXAggreg…
mirooon 5992e3e
Refactor LiFiDiamond and LiFiDEXAggregatorDiamond to improve error ha…
mirooon 01bba97
added blank space
mirooon f5b55ea
merge with addresses comments
mirooon 675217b
Refactor deployment scripts and configurations to transition from LDA…
mirooon 3ea087c
Update deployment configurations and scripts for LDA to LiFiDEXAggreg…
mirooon 48b7faf
update deploySingleContract to also save addresses of lda contracts i…
mirooon bc3da25
Renamed test files
mirooon ef4c051
Merge branch 'lf-13997-lda-2.0-addressed-comments' into lf-13997-lda-…
mirooon 4da34d5
Refactor update scripts to enhance clarity and maintainability, inclu…
mirooon 5c82d5f
Update deployment files for LDA to LiFiDEXAggregator transition. Intr…
mirooon cd1c095
moved all lda deploy as a single for LiFiDEXAggregatorDiamond, add us…
mirooon 18f59f8
removed deployFacetAndAddToDLADiamond and updated deployFacetAndAddTo…
mirooon 5e6d280
removed IS_LDA_CONTRACT flag
mirooon 0a91cb3
improved script, removed create3factory deployment, removed staging, …
mirooon 97d1382
Update audit verification condition in gh workflow to ensure it only …
mirooon 761106b
updated description
mirooon 7b1b84c
Merge branch 'feat/audit-check-only-on-main-branch' into lf-13997-lda…
mirooon f25cf5f
Merge branch 'lf-13997-lda-2.0-addressed-comments' into lf-13997-lda-…
mirooon e827b74
Merge branch 'main' into lf-13997-lda-2.0
mirooon c2b3e58
Merge branch 'lf-13997-lda-2.0' into lf-13997-lda-2.0-addressed-comments
mirooon 8ec8cd1
updstes
mirooon 1eb847d
Merge branch 'lf-13997-lda-2.0-addressed-comments' into lf-13997-lda-…
mirooon ea98621
updates
mirooon 7c7bad7
changes
mirooon 05ad309
changes in deploy logs
mirooon 3524184
changes and new deployemnt
mirooon b67966b
updates
mirooon 83ad6f6
updates
mirooon 3d201a4
Refine LDA contract check in deploySingleContract script
mirooon ed3f453
update
mirooon e6d7c0e
changed BaseDiamondTest changed to DiamondTestHelpers
mirooon c2c99ba
Merge branch 'lf-13997-lda-2.0-addressed-comments' into lf-13997-lda-…
mirooon c3f6b6e
updates
mirooon 355b03c
Refactor UpdateScriptBase to use _getConfigContractAddress for facet …
mirooon 6b57cee
Refactor getRpcUrl function to improve RPC URL retrieval from environ…
mirooon f1897b5
updated, dont mix files between environments
mirooon c19904e
check ownership only for production env
mirooon 4eb8b19
updates
mirooon 40d3700
changing "Deploy LDA facet" to "Deploy LDA contract"
mirooon 24611c5
Merge branch 'main' into lf-13997-lda-2.0
mirooon 9461d43
Merge branch 'lf-13997-lda-2.0' into lf-13997-lda-2.0-addressed-comments
mirooon 3fea663
revert
mirooon 740bbf4
Merge branch 'lf-13997-lda-2.0' into lf-13997-lda-2.0-addressed-comments
mirooon 34e453d
Merge branch 'lf-13997-lda-2.0-addressed-comments' into lf-13997-lda-…
mirooon 03fa2ef
moved lda contract logic to 14 selector
mirooon 5fa279e
parallelize internal logic in diamondLogUpdate helper function
0xDEnYO f419d82
update saveDiamondFacets call
0xDEnYO 9a0abc4
quote parameters + minor fixes
0xDEnYO e45b558
fixed PID issue
0xDEnYO 04f1d33
changes
mirooon d2fc7e7
changes
mirooon aff1f53
changes
mirooon 547dd31
changes
mirooon fe50631
changes
mirooon eb4511c
refactor updateDiamondLogForNetwork to return a special exit code for…
mirooon e724ff3
changes
mirooon 215e9b8
changes
mirooon dc2a717
Merge branch 'main' into lf-13997-lda-2.0
mirooon dd83bde
Merge branch 'lf-13997-lda-2.0' into lf-13997-lda-2.0-addressed-comments
mirooon c6e074b
Merge branch 'lf-13997-lda-2.0-addressed-comments' into lf-13997-lda-…
mirooon fa09029
Merge branch 'lf-13997-lda-2.0-scripts' into lf-13997-lda-2.0-scripts…
mirooon 66b5391
update
mirooon ecff84c
space
mirooon 891a76a
removed space
mirooon ea25ccc
update
mirooon ab2dfad
removed quotes
mirooon 480800e
added quotes
mirooon 3e2a453
Merge branch 'lf-13997-lda-2.0-scripts' into lf-13997-lda-2.0-scripts…
mirooon 5cefa01
Update GitHub Actions workflow to run version control checks only for…
mirooon 62f6d10
Merge branch 'feat/version-control-check-only-on-main-branch' into lf…
mirooon a775644
update
mirooon fa291f4
Merge pull request #1370 from lifinance/lf-13997-lda-2.0-scripts-upda…
mirooon b71df7a
Merge pull request #1360 from lifinance/lf-13997-lda-2.0-scripts
mirooon 89e8a02
Merge pull request #1356 from lifinance/lf-13997-lda-2.0-addressed-co…
mirooon b605d2f
Merge branch 'main' into lf-13997-lda-2.0
mirooon 2004678
new staging arbitrum deployments
mirooon 77c720e
Changes
mirooon 33a05ef
Mark external swap functions as `payable` to support multihop routes …
mirooon 852128c
new deploy logs
mirooon 63cbebc
deploy core facets for lda for apechain
mirooon cf448a4
added apechain lifidexaggregator
mirooon ca99919
added ronin staging LDA
mirooon 257a4ed
celo deployed core LDA facets
mirooon a7dd359
added celo staging LDA deployment
mirooon 030b7b9
Merge branch 'main' into lf-13997-lda-2.0
mirooon 0e21a5e
added plume staging diamond
mirooon ea034d7
deployed zksync lifi dex aggregator setup
mirooon e86d18b
added deployment scripts for CoreRouteFacet, KatanaV3Facet, and Velod…
mirooon ac5ae2f
Merge branch 'main' into lf-13997-lda-2.0
mirooon 997a688
Enhance ABI cleaning script to remove duplicate contract ABIs and eve…
mirooon b005577
Fix json deployment file
mirooon 6718394
Update deployment log files to correct OPTIMIZER_RUNS format and clea…
mirooon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.