-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from oraichain/fix/circular-deps-dex-common
fix: remove circular deps from oraidex common
- Loading branch information
Showing
8 changed files
with
94 additions
and
198 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { flattenTokens } from "@oraichain/oraidex-common"; | ||
|
||
const notAllowSwapCoingeckoIds = ["kawaii-islands", "milky-token", "injective-protocol"]; | ||
// universal swap. Currently we dont support from tokens that are not using the ibc wasm channel | ||
const notAllowSwapFromChainIds = [ | ||
"kawaii_6886-1", | ||
"osmosis-1", | ||
"cosmoshub-4", | ||
"oraibridge-subnet-2", | ||
"injective-1", | ||
"noble-1" | ||
]; | ||
export const swapFromTokens = flattenTokens.filter( | ||
(token) => !notAllowSwapCoingeckoIds.includes(token.coinGeckoId) && !notAllowSwapFromChainIds.includes(token.chainId) | ||
); | ||
// universal swap. We dont support kwt & milky & injective for simplicity. We also skip OraiBridge tokens because users dont care about them | ||
const notAllowSwapToChainIds = ["oraibridge-subnet-2", "injective-1", "noble-1"]; | ||
export const swapToTokens = flattenTokens.filter( | ||
(token) => !notAllowSwapCoingeckoIds.includes(token.coinGeckoId) && !notAllowSwapToChainIds.includes(token.chainId) | ||
); |
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 |
---|---|---|
|
@@ -3298,15 +3298,6 @@ | |
resolved "https://registry.yarnpkg.com/@oraichain/immutable/-/immutable-4.3.9.tgz#ff8d5a7b39b5b01f3f72a902cffbfea32ccb20c3" | ||
integrity sha512-INpHnhL970OCkR7I71Kssb2aLl2l4Y/x8W6FlyRO0KmC8GHjxc/hlNB1t44BiI7lkOYmcWMRQoC8dwParsp1RQ== | ||
|
||
"@oraichain/oraidex-common@^1.0.43": | ||
version "1.0.43" | ||
resolved "https://registry.yarnpkg.com/@oraichain/oraidex-common/-/oraidex-common-1.0.43.tgz#3ce40dfd1cc33c129253fd59c8e227c05837c7fa" | ||
integrity sha512-Xtp00JnVUl1Z4QarJE+Gw02TrHcxUmXzuynGN9g/x7HVL5NymzbB//PShlJ2VFhJfZXHCBaSBqDniIBLPoQ+GQ== | ||
dependencies: | ||
"@ethersproject/providers" "^5.0.10" | ||
"@keplr-wallet/types" "^0.11.38" | ||
ethers "^5.0.15" | ||
|
||
"@oraichain/[email protected]": | ||
version "1.0.14" | ||
resolved "https://registry.yarnpkg.com/@oraichain/oraidex-universal-swap/-/oraidex-universal-swap-1.0.14.tgz#fd4b60e7cfc21984dbaa14a7b9a2c560f02da37d" | ||
|