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.508.0 #5914

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env.app
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ REACT_APP_UNCHAINED_AVALANCHE_HTTP_URL=https://api.avalanche.shapeshift.com
REACT_APP_UNCHAINED_AVALANCHE_WS_URL=wss://api.avalanche.shapeshift.com
REACT_APP_UNCHAINED_OPTIMISM_HTTP_URL=https://api.optimism.shapeshift.com
REACT_APP_UNCHAINED_OPTIMISM_WS_URL=wss://api.optimism.shapeshift.com
REACT_APP_UNCHAINED_BNBSMARTCHAIN_HTTP_URL=https://api.bnbsmartchain.shapeshift.com
REACT_APP_UNCHAINED_BNBSMARTCHAIN_WS_URL=wss://api.bnbsmartchain.shapeshift.com
REACT_APP_UNCHAINED_BNBSMARTCHAIN_HTTP_URL=https://dev-api.bnbsmartchain.shapeshift.com
REACT_APP_UNCHAINED_BNBSMARTCHAIN_WS_URL=wss://dev-api.bnbsmartchain.shapeshift.com
REACT_APP_UNCHAINED_POLYGON_HTTP_URL=https://api.polygon.shapeshift.com
REACT_APP_UNCHAINED_POLYGON_WS_URL=wss://api.polygon.shapeshift.com
REACT_APP_UNCHAINED_GNOSIS_HTTP_URL=https://api.gnosis.shapeshift.com
Expand All @@ -38,8 +38,8 @@ REACT_APP_UNCHAINED_THORCHAIN_WS_URL=wss://api.thorchain.shapeshift.com
REACT_APP_ETHEREUM_NODE_URL=https://daemon.ethereum.shapeshift.com
REACT_APP_AVALANCHE_NODE_URL=https://daemon.avalanche.shapeshift.com/ext/bc/C/rpc
REACT_APP_OPTIMISM_NODE_URL=https://daemon.optimism.shapeshift.com
REACT_APP_BNBSMARTCHAIN_NODE_URL=https://daemon.bnbsmartchain.shapeshift.com
REACT_APP_POLYGON_NODE_URL=https://polygon-mainnet.core.chainstack.com/eb3a68c1f74c00ffb911b2f389c70198
REACT_APP_BNBSMARTCHAIN_NODE_URL=https://dev-daemon.bnbsmartchain.shapeshift.com
REACT_APP_POLYGON_NODE_URL=https://daemon.polygon.shapeshift.com
REACT_APP_GNOSIS_NODE_URL=https://daemon.gnosis.shapeshift.com
REACT_APP_ARBITRUM_NODE_URL=https://daemon.arbitrum.shapeshift.com
REACT_APP_ARBITRUM_NOVA_NODE_URL=https://daemon.arbitrum-nova.shapeshift.com
Expand Down
8 changes: 4 additions & 4 deletions .env.private
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ REACT_APP_UNCHAINED_AVALANCHE_HTTP_URL=https://api.avalanche.shapeshift.com
REACT_APP_UNCHAINED_AVALANCHE_WS_URL=wss://api.avalanche.shapeshift.com
REACT_APP_UNCHAINED_OPTIMISM_HTTP_URL=https://api.optimism.shapeshift.com
REACT_APP_UNCHAINED_OPTIMISM_WS_URL=wss://api.optimism.shapeshift.com
REACT_APP_UNCHAINED_BNBSMARTCHAIN_HTTP_URL=https://api.bnbsmartchain.shapeshift.com
REACT_APP_UNCHAINED_BNBSMARTCHAIN_WS_URL=wss://api.bnbsmartchain.shapeshift.com
REACT_APP_UNCHAINED_BNBSMARTCHAIN_HTTP_URL=https://dev-api.bnbsmartchain.shapeshift.com
REACT_APP_UNCHAINED_BNBSMARTCHAIN_WS_URL=wss://dev-api.bnbsmartchain.shapeshift.com
REACT_APP_UNCHAINED_POLYGON_HTTP_URL=https://api.polygon.shapeshift.com
REACT_APP_UNCHAINED_POLYGON_WS_URL=wss://api.polygon.shapeshift.com
REACT_APP_UNCHAINED_GNOSIS_HTTP_URL=https://api.gnosis.shapeshift.com
Expand All @@ -36,8 +36,8 @@ REACT_APP_UNCHAINED_THORCHAIN_WS_URL=wss://api.thorchain.shapeshift.com
REACT_APP_ETHEREUM_NODE_URL=https://daemon.ethereum.shapeshift.com
REACT_APP_AVALANCHE_NODE_URL=https://daemon.avalanche.shapeshift.com/ext/bc/C/rpc
REACT_APP_OPTIMISM_NODE_URL=https://daemon.optimism.shapeshift.com
REACT_APP_BNBSMARTCHAIN_NODE_URL=https://daemon.bnbsmartchain.shapeshift.com
REACT_APP_POLYGON_NODE_URL=https://polygon-mainnet.core.chainstack.com/eb3a68c1f74c00ffb911b2f389c70198
REACT_APP_BNBSMARTCHAIN_NODE_URL=https://dev-daemon.bnbsmartchain.shapeshift.com
REACT_APP_POLYGON_NODE_URL=https://daemon.polygon.shapeshift.com
REACT_APP_GNOSIS_NODE_URL=https://daemon.gnosis.shapeshift.com
REACT_APP_ARBITRUM_NODE_URL=https://daemon.arbitrum.shapeshift.com
REACT_APP_ARBITRUM_NOVA_NODE_URL=https://daemon.arbitrum-nova.shapeshift.com
Expand Down
1 change: 1 addition & 0 deletions packages/swapper/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export type TradeQuote = {
affiliateBps: string | undefined // undefined if affiliate fees aren't supported by the swapper
isStreaming?: boolean
slippageTolerancePercentage?: string
isLongtail?: boolean
}

export type FromOrXpub = { from: string; xpub?: never } | { from?: never; xpub: string }
Expand Down
1 change: 1 addition & 0 deletions src/components/MultiHopTrade/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ export const getMixpanelEventData = () => {
[compositeBuyAsset]: buyAmountBeforeFeesCryptoPrecision,
[compositeSellAsset]: sellAmountBeforeFeesCryptoPrecision,
isStreaming: activeQuote?.isStreaming ?? false,
isLongtail: activeQuote?.isLongtail ?? false,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ import { store, useAppDispatch, useAppSelector } from 'state/store'
type MixPanelQuoteMeta = {
swapperName: SwapperName
differenceFromBestQuoteDecimalPercentage: number
quoteReceived: boolean
isStreaming: boolean
isLongtail: boolean
}

type GetMixPanelDataFromApiQuotesReturn = {
Expand All @@ -72,12 +75,13 @@ const getMixPanelDataFromApiQuotes = (quotes: ApiQuote[]): GetMixPanelDataFromAp
differenceFromBestQuoteDecimalPercentage,
quoteReceived: !!quote,
isStreaming: quote?.isStreaming ?? false,
isLongtail: quote?.isLongtail ?? false,
}
})
.filter(isSome)

// Add a version string, in the form of an ISO 8601 standard basic format date, to the JSON blob to help with reporting
const version = '20230824'
const version = '20231220'

return { quoteMeta, sellAssetId, buyAssetId, sellAmountUsd, version }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export const getLongtailToL1Quote = async (
sellAsset: input.sellAsset,
allowanceContract: ALLOWANCE_CONTRACT,
})),
isLongtail: true,
}))

return Ok(updatedQuotes)
Expand Down