Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(fluid): implement dexT1 pools list updater * feat(fluid): implement dexT1 pool tracker * feat(fluid): add dex math * feat(fluid): dex integration pool simulator, fixes etc. * feat(fluid): finish implementing dex logic * tests(fluid): fix vault-t1 tests * refactor(fluid): improve token comparison logic * fix(ci): run go generate * fix(fluid): fix reserves sum calculation * Update pkg/liquidity-source/fluid/dex-t1/pool_list_updater.go Co-authored-by: SunSpirit <[email protected]> Signed-off-by: bergben <[email protected]> * Update pkg/liquidity-source/fluid/dex-t1/pool_tracker.go Co-authored-by: SunSpirit <[email protected]> Signed-off-by: bergben <[email protected]> * feat(fluid): remove duplicate log * feat(fluid): add nil check on reserves * refactor(fluid): replace big.newInt(0) with bignumber.ZeroBI * refactor(fluid): make fee percent precision a constant * refactor(fluid): remove unused struct Pool * fix(fluid): compare reserves against zero correctly * refactor(fluid): make panic in math.go an error instead * refactor(fluid): make dexAmountsDecimals a constant * refactor(fluid): make 1e18 a constant * fix(valueobject): fix merge compilation issue * refactor(fluid): move logic from math.go into pool_simulator.go * feat(fluid): finalize dex protocol integration * feat(fluid-dex): change swap gas cost to 150k * feat(fluid): finalize gas cost * docs(fluid): fix comment WETH * Update pkg/liquidity-source/fluid/dex-t1/pool_list_updater.go Signed-off-by: SunSpirit <[email protected]> * Update pkg/liquidity-source/fluid/dex-t1/pool_list_updater.go Signed-off-by: SunSpirit <[email protected]> * Update pkg/liquidity-source/fluid/dex-t1/pool_list_updater.go Signed-off-by: SunSpirit <[email protected]> * Update pkg/liquidity-source/fluid/dex-t1/constant.go Signed-off-by: SunSpirit <[email protected]> * Update pkg/valueobject/exchange.go Signed-off-by: SunSpirit <[email protected]> * Update pkg/pooltypes/pooltypes.go Signed-off-by: SunSpirit <[email protected]> * fix(fluidVaultT1): fix failing test because of hasNative in static extra * feat(fluid): finalize fetching reserves from updated resolver * refactor(poolTypes): fix formatting * feat(fluid-dex): add checks for insufficient liquidity * feat(fluid-dex): remove reserves check in pool_list_updater * feat(fluid-dex): remove reserves check in pool_tracker * feat(fluid-dex): fix native token use in pool * feat(fluid-dex): optimize only fetch new pools * feat(fluid-dex): optimize swapRouting methods * Update pkg/liquidity-source/fluid/dex-t1/pool_list_updater.go Co-authored-by: Phu Ngo <[email protected]> Signed-off-by: bergben <[email protected]> * Update pkg/liquidity-source/fluid/dex-t1/pool_simulator.go Signed-off-by: SunSpirit <[email protected]> --------- Signed-off-by: bergben <[email protected]> Signed-off-by: SunSpirit <[email protected]> Co-authored-by: SunSpirit <[email protected]> Co-authored-by: Phu Ngo <[email protected]>
- Loading branch information