Skip to content
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

chore: release v1.725.0 #8431

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.base
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ REACT_APP_FEATURE_LIFI_SWAP=true
REACT_APP_FEATURE_THOR_SWAP=true
REACT_APP_FEATURE_THOR_SWAP_STREAMING_SWAPS=true
REACT_APP_FEATURE_ZRX_SWAP=true
REACT_APP_FEATURE_JUPITER_SWAP=false
REACT_APP_FEATURE_JUPITER_SWAP=true

# chat woot
REACT_APP_CHATWOOT_TOKEN=jmoXp9BPMSPEYHeJX5YKT15Q
Expand Down
1 change: 0 additions & 1 deletion .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ REACT_APP_FEATURE_SWAPPER_SOLANA=true
# Swapper feature flags
REACT_APP_FEATURE_CHAINFLIP_SWAP_DCA=true
REACT_APP_FEATURE_LIMIT_ORDERS=true
REACT_APP_FEATURE_JUPITER_SWAP=true
REACT_APP_FEATURE_NEW_TRADE_FLOW=true

# logging
Expand Down
1 change: 0 additions & 1 deletion .env.develop
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ REACT_APP_FEATURE_SWAPPER_SOLANA=true
# Swapper feature flags
REACT_APP_FEATURE_CHAINFLIP_SWAP_DCA=true
REACT_APP_FEATURE_LIMIT_ORDERS=true
REACT_APP_FEATURE_JUPITER_SWAP=true

# mixpanel
REACT_APP_MIXPANEL_TOKEN=1c1369f6ea23a6404bac41b42817cc4b
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"eip155:100/slip44:60":"xdai","eip155:100/erc20:0x8c88ea1fd60462ef7004b9e288afcb4680a3c50c":"0xmonero","eip155:100/erc20:0x4291f029b9e7acb02d49428458cf6fceac545f81":"1hive-water","eip155:100/erc20:0xd0dd6cef72143e22cced4867eb0d5f2328715533":"aave-v3-dai","eip155:100/erc20:0xedbc7449a9b594ca4e053d9737ec5dc4cbccbfb2":"aave-v3-eure","eip155:100/erc20:0xa1fa064a85266e2ca82dee5c5ccec84df445760e":"aave-v3-gno","eip155:100/erc20:0x7a5c3860a77a8dc1b225bd46d0fb2ac1c6d191bc":"aave-v3-sdai","eip155:100/erc20:0xc6b7aca6de8a6044e0e32d0c841a89244a10d284":"aave-v3-usdc","eip155:100/erc20:0xa818f1b57c201e092c4a2017a91815034326efd1":"aave-v3-weth","eip155:100/erc20:0x3a97704a1b25f08aa230ae53b352e2e72ef52843":"agave-token","eip155:100/erc20:0x4b1e2c2762667331bc91648052f646d1b0d35984":"ageur","eip155:100/erc20:0x0000206329b97db379d5e1bf586bbdb969c63274":"angle-usd","eip155:100/erc20:0x1509706a6c66ca549ff0cb464de88231ddbe213b":"aura-finance","eip155:100/erc20:0xce11e14225575945b8e6dc0d4f2dd4c570f79d9f":"autonolas","eip155:100/erc20:0xbbcb0356bb9e6b3faa5cbf9e5f36185d53403ac9":"backed-coinbase-global","eip155:100/erc20:0x1e2c4fb7ede391d116e6b41cd0608260e8801d59":"backed-cspx-core-s-p-500","eip155:100/erc20:0x0f76d32cdccdcbd602a55af23eaf58fd1ee17245":"backed-erna-bond","eip155:100/erc20:0x3f95aa88ddbb7d9d484aa3d482bf0a80009c52c9":"backed-ernx-bond","eip155:100/erc20:0x2f123cf3f37ce3328cc9b5b8415f9ec5109b45e7":"backed-govies-0-6-months-euro","eip155:100/erc20:0x20c64dee8fda5269a78f2d5bdba861ca1d83df7a":"backed-high-high-yield-corp-bond","eip155:100/erc20:0x52d134c6db5889fad3542a09eaf7aa90c0fdf9e4":"backed-ibta-treasury-bond-1-3yr","eip155:100/erc20:0x2f11eeee0bf21e7661a22dbbbb9068f4ad191b86":"backed-niu-technologies","eip155:100/erc20:0xade6057fcafa57d6d51ffa341c64ce4814995995":"backed-zpr1-1-3-month-t-bill","eip155:100/erc20:0xdfc20ae04ed70bd9c7d720f449eedae19f659d65":"badger-dao","eip155:100/erc20:0x7ef541e2a22058048904fe5744f9c7e4c57af717":"balancer","eip155:100/erc20:0x2086f52651837600180de173b09470f54ef74910":"balancer-stable-usd","eip155:100/erc20:0xdd96b45877d0e8361a4ddb732da741e97f3191ff":"bridged-busd","eip155:100/erc20:0x2a22f9c3b484c3629090feed35f17ff8f88f76f0":"bridged-usdc-gnosis","eip155:100/erc20:0x6c76971f98945ae98dd7d4dfca8711ebea946ea6":"bridged-wrapped-steth-gnosis","eip155:100/erc20:0x83ff60e2f93f8edd0637ef669c69d5fb4f64ca8e":"bright-token","eip155:100/erc20:0xfecb3f7c54e2caae9dc6ac9060a822d47e053760":"brla-digital-brla","eip155:100/erc20:0xe2e73a1c69ecf83f464efce6a5be353a37ca09b2":"chainlink","eip155:100/erc20:0x8b8407c6184f1f0fd1082e83d6a3b8349caced12":"circuits-of-value","eip155:100/erc20:0x58b9cb810a68a7f3e1e4f8cb45d1b9b3c79705e8":"connext","eip155:100/erc20:0x177127622c4a00f3d409b75571e12cb3c8973d3c":"cow-protocol","eip155:100/erc20:0xabef652195f98a91e490f047a5006b71c85f058d":"crvusd","eip155:100/erc20:0xb0c5f3100a4d9d9532a4cfd68c55f1ae8da987eb":"daohaus","eip155:100/erc20:0x97edc0e345fbbbd8460847fcfa3bc2a13bf8641f":"daosquare","eip155:100/erc20:0xd3d47d5578e55c880505dc40648f7f9307c3e7a8":"defipulse-index","eip155:100/erc20:0xfbdd194376de19a88118e84e279b977f165d01b8":"dehive","eip155:100/erc20:0x524b969793a64a602342d89bc2789d43a016b13a":"donut","eip155:100/erc20:0xb90d6bec20993be5d72a5ab353343f7a0281f158":"dxdao","eip155:100/erc20:0xeeeeeb57642040be42185f49c52f7e9b38f8eeee":"elk-finance","eip155:100/erc20:0x6a8cb6714b1ee5b471a7d2ec4302cb4f5ff25ec2":"energy-web-token","eip155:100/erc20:0x48b1b0d077b4919b65b4e4114806dd803901e1d9":"etherisc","eip155:100/erc20:0xec3f3e6d7907acda3a7431abd230196cda3fbb19":"ethichub","eip155:100/erc20:0xd589f00fa2eb83367f732ab3cda92ee0940389cf":"fuse-network-token","eip155:100/erc20:0x4f4f9b8d5b4d0dc10506e5551b0513b61fd59e75":"giveth","eip155:100/erc20:0x1a8805194d0ef2f73045a00c70da399d9e74221c":"gnobby","eip155:100/erc20:0x9c58bacc331c9aa871afd802db6379a98e80cedb":"gnosis","eip155:100/erc20:0xddafbb505ad214d7b80b1f830fccc89b60fb7a83":"gnosis-xdai-bridged-usdc-gnosis","eip155:100/erc20:0x4ecaba5870353805a9f068101a40e0f32ed605c6":"gnosis-xdai-bridged-usdt-gnosis","eip155:100/erc20:0x8e5bbbb09ed1ebde8674cda39a0c169401db4252":"gnosis-xdai-bridged-wbtc-gnosis-chain","eip155:100/erc20:0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1":"gnosis-xdai-bridged-weth-gnosis-chain","eip155:100/erc20:0xca5d8f8a8d49439357d3cf46ca2e720702f132b8":"gyroscope-gyd","eip155:100/erc20:0x3a3e9715018d80916740e8ac300713fdf6614d19":"hivewater","eip155:100/erc20:0x71850b7e9ee3f13ab46d67167341e4bdc905eef9":"honey","eip155:100/erc20:0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc":"hop-protocol","eip155:100/erc20:0xd057604a14982fe8d88c5fc25aac3267ea142a08":"hopr","eip155:100/erc20:0x9fb1d52596c44603198fb0aee434fac3a679f702":"jarvis-synthetic-euro","eip155:100/erc20:0x2d5563da42b06fbbf9c67b7dc073cf6a7842239e":"jarvis-synthetic-swiss-franc","eip155:100/erc20:0x417602f4fbdd471a431ae29fb5fe0a681964c11b":"jpyc","eip155:100/erc20:0x431d5dff03120afa4bdf332c61a6e1766ef37bdb":"jpy-coin","eip155:100/erc20:0x37b60f4e9a31a64ccc0024dce7d0fd07eaa0f7b3":"kleros","eip155:100/erc20:0x3f56e0c36d275367b8c502090edf38289b3dea0d":"mimatic","eip155:100/erc20:0x63e62989d9eb2d37dfdb1f93a22f063635b07d51":"minerva-wallet","eip155:100/erc20:0xcb444e90d8198415266c6a2724b7900fb12fc56e":"monerium-eur-money","eip155:100/erc20:0x5cb9073902f2035222b9749f8fb0c9bfe5527108":"monerium-gbp-emoney","eip155:100/erc20:0xfa57aa7beed63d03aaf85ffd1753f5f6242588fb":"mt-pelerin-shares","eip155:100/erc20:0x44fa8e6f47987339850636f88629646662444217":"omnibridge-bridged-dai-gnosis-chain","eip155:100/erc20:0xb5d592f85ab2d955c25720ebe6ff8d4d1e1be300":"particle-2","eip155:100/erc20:0x7ecf26cd9a36990b8ea477853663092333f59979":"perpetual-protocol","eip155:100/erc20:0x18e9262e68cc6c6004db93105cc7c001bb103e49":"raid-token","eip155:100/erc20:0x0aa1e96d2a46ec6beb2923de1e61addf5f5f1dce":"realtoken-ecosystem-governance","eip155:100/erc20:0x4d18815d14fe5c3304e87b3fa18318baa5c23820":"safe","eip155:100/erc20:0xaf204776c7245bf4147c2612bf6e5972ee483701":"savings-xdai","eip155:100/erc20:0x21a42669643f45bc0e086b8fc2ed70c23d67509d":"shapeshift-fox-token","eip155:100/erc20:0x1d1498166ddceee616a6d99868e1e0677300056f":"space-token-bsc","eip155:100/erc20:0x004626a008b1acdc4c74ab51644093b155e59a23":"staked-ageur","eip155:100/erc20:0xf490c80aae5f2616d3e3bda2483e30c4cb21d1a0":"stakewise-staked-gno-2","eip155:100/erc20:0x256eb8a51f382650b2a1e946b8811953640ee47d":"streamr","eip155:100/erc20:0x532801ed6f82fffd2dab70a19fc2d7b2772c4f4b":"swapr","eip155:100/erc20:0xdbf3ea6f5bee45c02255b2c26a16f300502f68da":"swarm-bzz","eip155:100/erc20:0x84e2c67cbefae6b5148fca7d02b341b12ff4b5bb":"swash","eip155:100/erc20:0xaad66432d27737ecf6ed183160adc5ef36ab99f2":"tellor","eip155:100/erc20:0x364b5975385b4de226cf450df82d7ed69902ac5a":"torg","eip155:100/erc20:0x4537e328bf7e4efa29d05caea260d7fe26af9d74":"uniswap","eip155:100/erc20:0xd4fdec44db9d44b8f2b6d529620f9c0c7066a2c1":"wrapped-xhopr","eip155:100/erc20:0xe91d153e0b41518a2ce8dd3d7944fa863463a97d":"xdai","eip155:100/erc20:0x38fb649ad3d6ba1113be5f57b927053e97fc5bf7":"xdai-native-comb","eip155:100/erc20:0xb7d311e2eb55f2f68a9440da38e7989210b9a05e":"xdai-stake","eip155:100/erc20:0xbf65bfcb5da067446cee6a706ba3fe2fb1a9fdfd":"yearn-finance","eip155:100/erc20:0x07279343ce61c11cb091142c8a20a1f8194d0ca8":"zenland"}
{"eip155:100/slip44:60":"xdai","eip155:100/erc20:0x8c88ea1fd60462ef7004b9e288afcb4680a3c50c":"0xmonero","eip155:100/erc20:0x4291f029b9e7acb02d49428458cf6fceac545f81":"1hive-water","eip155:100/erc20:0xd0dd6cef72143e22cced4867eb0d5f2328715533":"aave-v3-dai","eip155:100/erc20:0xedbc7449a9b594ca4e053d9737ec5dc4cbccbfb2":"aave-v3-eure","eip155:100/erc20:0xa1fa064a85266e2ca82dee5c5ccec84df445760e":"aave-v3-gno","eip155:100/erc20:0x7a5c3860a77a8dc1b225bd46d0fb2ac1c6d191bc":"aave-v3-sdai","eip155:100/erc20:0xc6b7aca6de8a6044e0e32d0c841a89244a10d284":"aave-v3-usdc","eip155:100/erc20:0xa818f1b57c201e092c4a2017a91815034326efd1":"aave-v3-weth","eip155:100/erc20:0x3a97704a1b25f08aa230ae53b352e2e72ef52843":"agave-token","eip155:100/erc20:0x4b1e2c2762667331bc91648052f646d1b0d35984":"ageur","eip155:100/erc20:0x0000206329b97db379d5e1bf586bbdb969c63274":"angle-usd","eip155:100/erc20:0x1509706a6c66ca549ff0cb464de88231ddbe213b":"aura-finance","eip155:100/erc20:0xce11e14225575945b8e6dc0d4f2dd4c570f79d9f":"autonolas","eip155:100/erc20:0xbbcb0356bb9e6b3faa5cbf9e5f36185d53403ac9":"backed-coinbase-global","eip155:100/erc20:0x1e2c4fb7ede391d116e6b41cd0608260e8801d59":"backed-cspx-core-s-p-500","eip155:100/erc20:0x0f76d32cdccdcbd602a55af23eaf58fd1ee17245":"backed-erna-bond","eip155:100/erc20:0x3f95aa88ddbb7d9d484aa3d482bf0a80009c52c9":"backed-ernx-bond","eip155:100/erc20:0x2f123cf3f37ce3328cc9b5b8415f9ec5109b45e7":"backed-govies-0-6-months-euro","eip155:100/erc20:0x20c64dee8fda5269a78f2d5bdba861ca1d83df7a":"backed-high-high-yield-corp-bond","eip155:100/erc20:0x52d134c6db5889fad3542a09eaf7aa90c0fdf9e4":"backed-ibta-treasury-bond-1-3yr","eip155:100/erc20:0x2f11eeee0bf21e7661a22dbbbb9068f4ad191b86":"backed-niu-technologies","eip155:100/erc20:0xade6057fcafa57d6d51ffa341c64ce4814995995":"backed-zpr1-1-3-month-t-bill","eip155:100/erc20:0xdfc20ae04ed70bd9c7d720f449eedae19f659d65":"badger-dao","eip155:100/erc20:0x7ef541e2a22058048904fe5744f9c7e4c57af717":"balancer","eip155:100/erc20:0x2086f52651837600180de173b09470f54ef74910":"balancer-stable-usd","eip155:100/erc20:0xdd96b45877d0e8361a4ddb732da741e97f3191ff":"bridged-busd","eip155:100/erc20:0x2a22f9c3b484c3629090feed35f17ff8f88f76f0":"bridged-usdc-gnosis","eip155:100/erc20:0x6c76971f98945ae98dd7d4dfca8711ebea946ea6":"bridged-wrapped-steth-gnosis","eip155:100/erc20:0x83ff60e2f93f8edd0637ef669c69d5fb4f64ca8e":"bright-token","eip155:100/erc20:0xfecb3f7c54e2caae9dc6ac9060a822d47e053760":"brla-digital-brla","eip155:100/erc20:0xe2e73a1c69ecf83f464efce6a5be353a37ca09b2":"chainlink","eip155:100/erc20:0x8b8407c6184f1f0fd1082e83d6a3b8349caced12":"circuits-of-value","eip155:100/erc20:0x58b9cb810a68a7f3e1e4f8cb45d1b9b3c79705e8":"connext","eip155:100/erc20:0x177127622c4a00f3d409b75571e12cb3c8973d3c":"cow-protocol","eip155:100/erc20:0xabef652195f98a91e490f047a5006b71c85f058d":"crvusd","eip155:100/erc20:0xb0c5f3100a4d9d9532a4cfd68c55f1ae8da987eb":"daohaus","eip155:100/erc20:0x97edc0e345fbbbd8460847fcfa3bc2a13bf8641f":"daosquare","eip155:100/erc20:0xd3d47d5578e55c880505dc40648f7f9307c3e7a8":"defipulse-index","eip155:100/erc20:0xfbdd194376de19a88118e84e279b977f165d01b8":"dehive","eip155:100/erc20:0x524b969793a64a602342d89bc2789d43a016b13a":"donut","eip155:100/erc20:0xb90d6bec20993be5d72a5ab353343f7a0281f158":"dxdao","eip155:100/erc20:0xeeeeeb57642040be42185f49c52f7e9b38f8eeee":"elk-finance","eip155:100/erc20:0x6a8cb6714b1ee5b471a7d2ec4302cb4f5ff25ec2":"energy-web-token","eip155:100/erc20:0x48b1b0d077b4919b65b4e4114806dd803901e1d9":"etherisc","eip155:100/erc20:0xec3f3e6d7907acda3a7431abd230196cda3fbb19":"ethichub","eip155:100/erc20:0xd589f00fa2eb83367f732ab3cda92ee0940389cf":"fuse-network-token","eip155:100/erc20:0x4f4f9b8d5b4d0dc10506e5551b0513b61fd59e75":"giveth","eip155:100/erc20:0x1a8805194d0ef2f73045a00c70da399d9e74221c":"gnobby","eip155:100/erc20:0x9c58bacc331c9aa871afd802db6379a98e80cedb":"gnosis","eip155:100/erc20:0xddafbb505ad214d7b80b1f830fccc89b60fb7a83":"gnosis-xdai-bridged-usdc-gnosis","eip155:100/erc20:0x4ecaba5870353805a9f068101a40e0f32ed605c6":"gnosis-xdai-bridged-usdt-gnosis","eip155:100/erc20:0x8e5bbbb09ed1ebde8674cda39a0c169401db4252":"gnosis-xdai-bridged-wbtc-gnosis-chain","eip155:100/erc20:0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1":"gnosis-xdai-bridged-weth-gnosis-chain","eip155:100/erc20:0xca5d8f8a8d49439357d3cf46ca2e720702f132b8":"gyroscope-gyd","eip155:100/erc20:0x3a3e9715018d80916740e8ac300713fdf6614d19":"hivewater","eip155:100/erc20:0x71850b7e9ee3f13ab46d67167341e4bdc905eef9":"honey","eip155:100/erc20:0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc":"hop-protocol","eip155:100/erc20:0xd057604a14982fe8d88c5fc25aac3267ea142a08":"hopr","eip155:100/erc20:0x9fb1d52596c44603198fb0aee434fac3a679f702":"jarvis-synthetic-euro","eip155:100/erc20:0x2d5563da42b06fbbf9c67b7dc073cf6a7842239e":"jarvis-synthetic-swiss-franc","eip155:100/erc20:0x417602f4fbdd471a431ae29fb5fe0a681964c11b":"jpyc","eip155:100/erc20:0x431d5dff03120afa4bdf332c61a6e1766ef37bdb":"jpy-coin","eip155:100/erc20:0x37b60f4e9a31a64ccc0024dce7d0fd07eaa0f7b3":"kleros","eip155:100/erc20:0x3f56e0c36d275367b8c502090edf38289b3dea0d":"mimatic","eip155:100/erc20:0x63e62989d9eb2d37dfdb1f93a22f063635b07d51":"minerva-wallet","eip155:100/erc20:0xcb444e90d8198415266c6a2724b7900fb12fc56e":"monerium-eur-money","eip155:100/erc20:0x5cb9073902f2035222b9749f8fb0c9bfe5527108":"monerium-gbp-emoney","eip155:100/erc20:0xfa57aa7beed63d03aaf85ffd1753f5f6242588fb":"mt-pelerin-shares","eip155:100/erc20:0x44fa8e6f47987339850636f88629646662444217":"omnibridge-bridged-dai-gnosis-chain","eip155:100/erc20:0xb5d592f85ab2d955c25720ebe6ff8d4d1e1be300":"particle-2","eip155:100/erc20:0x7ecf26cd9a36990b8ea477853663092333f59979":"perpetual-protocol","eip155:100/erc20:0x18e9262e68cc6c6004db93105cc7c001bb103e49":"raid-token","eip155:100/erc20:0x0aa1e96d2a46ec6beb2923de1e61addf5f5f1dce":"realtoken-ecosystem-governance","eip155:100/erc20:0x4d18815d14fe5c3304e87b3fa18318baa5c23820":"safe","eip155:100/erc20:0xaf204776c7245bf4147c2612bf6e5972ee483701":"savings-xdai","eip155:100/erc20:0x21a42669643f45bc0e086b8fc2ed70c23d67509d":"shapeshift-fox-token","eip155:100/erc20:0x1d1498166ddceee616a6d99868e1e0677300056f":"space-token-bsc","eip155:100/erc20:0x004626a008b1acdc4c74ab51644093b155e59a23":"staked-ageur","eip155:100/erc20:0xf490c80aae5f2616d3e3bda2483e30c4cb21d1a0":"stakewise-staked-gno-2","eip155:100/erc20:0x256eb8a51f382650b2a1e946b8811953640ee47d":"streamr","eip155:100/erc20:0x532801ed6f82fffd2dab70a19fc2d7b2772c4f4b":"swapr","eip155:100/erc20:0xdbf3ea6f5bee45c02255b2c26a16f300502f68da":"swarm-bzz","eip155:100/erc20:0x84e2c67cbefae6b5148fca7d02b341b12ff4b5bb":"swash","eip155:100/erc20:0xaad66432d27737ecf6ed183160adc5ef36ab99f2":"tellor","eip155:100/erc20:0x364b5975385b4de226cf450df82d7ed69902ac5a":"torg","eip155:100/erc20:0x4537e328bf7e4efa29d05caea260d7fe26af9d74":"uniswap","eip155:100/erc20:0xd4fdec44db9d44b8f2b6d529620f9c0c7066a2c1":"wrapped-xhopr","eip155:100/erc20:0xe91d153e0b41518a2ce8dd3d7944fa863463a97d":"xdai","eip155:100/erc20:0x38fb649ad3d6ba1113be5f57b927053e97fc5bf7":"xdai-native-comb","eip155:100/erc20:0xb7d311e2eb55f2f68a9440da38e7989210b9a05e":"xdai-stake","eip155:100/erc20:0xbf65bfcb5da067446cee6a706ba3fe2fb1a9fdfd":"yearn-finance"}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type {
} from '../../../types'
import { SwapperName, TradeQuoteError } from '../../../types'
import { getInputOutputRate, makeSwapErrorRight } from '../../../utils'
import { JUPITER_COMPUTE_UNIT_MARGIN_MULTIPLIER, TOKEN_2022_PROGRAM_ID } from '../utils/constants'
import { COMPUTE_UNIT_MARGIN_MULTIPLIER, TOKEN_2022_PROGRAM_ID } from '../utils/constants'
import {
calculateAccountCreationCosts,
createSwapInstructions,
Expand Down Expand Up @@ -176,7 +176,7 @@ export const getTradeQuote = async (
txFee: feeData.fast.txFee,
chainSpecific: {
computeUnits: bnOrZero(feeData.fast.chainSpecific.computeUnits)
.times(JUPITER_COMPUTE_UNIT_MARGIN_MULTIPLIER)
.times(COMPUTE_UNIT_MARGIN_MULTIPLIER)
.toFixed(0),
priorityFee: feeData.fast.chainSpecific.priorityFee,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ export const SOLANA_RANDOM_ADDRESS = '2zHKF6tqam3tnNFPK2E9nBDkV7GMXnvdJautmzqQdn

export const TOKEN_2022_PROGRAM_ID = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb'

// Jupiter use 40% as a compute unit margin while calculating them, some TX reverts without this
export const JUPITER_COMPUTE_UNIT_MARGIN_MULTIPLIER = 1.4
// Jupiter use 40% as a compute unit margin while calculating them, some TX reverts without this, as we add some compute units
// for account creations and referral, for stability purposes we add 60% margin
export const COMPUTE_UNIT_MARGIN_MULTIPLIER = 1.6

export const SHAPESHIFT_JUPITER_REFERRAL_KEY = 'Ajgmo453yGmcHDPoJBrMUj3GFwLVL7HaaZGNLkB8vREG'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const getJupiterPrice = ({
`?inputMint=${sourceAssetAddress}` +
`&outputMint=${destinationAssetAddress}` +
`&amount=${amount}` +
(slippageBps ? `&slippageBps=${slippageBps}` : `&autoSlippage=true`) +
(slippageBps ? `&slippageBps=${slippageBps}` : `&dynamicSlippage=true`) +
`&maxAccounts=${JUPITER_TRANSACTION_MAX_ACCOUNTS}` +
`&platformFeeBps=${commissionBps}`,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ export async function getTrade({
const routesResponse = await getRoutes(routesRequest)
.then(response => Ok(response))
.catch((e: SDKError) => {
// This shouldn't happen, but if it does (`/routes`) endpoint errors), Li.Fi probably went "down" for that specific request
// We should use the stale rate quote, though if it's a proper limit, `/stepTransaction` would fail too, meaning things will still fail at Tx execution time
// Which is much better than a blank screen
if (quoteOrRate === 'quote') return Ok({ routes: [] })

// This is a rate. All errors re: validation or internal server errors etc should be handled gracefully
const code = (() => {
switch (e.code) {
case LiFiErrorCode.ValidationError:
Expand Down
Loading
Loading