Skip to content

Commit e447171

Browse files
committed
Merge remote-tracking branch 'origin/master' into chore/bump-next-13-4
2 parents 9b5fba6 + dc19116 commit e447171

File tree

145 files changed

+59357
-9008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+59357
-9008
lines changed

.changeset/big-panthers-sip.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sushiswap/chain': patch
3+
---
4+
5+
additional chains

.changeset/real-vans-occur.md

-5
This file was deleted.

apps/_root/app/partner/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const SUPPORTED_CHAINS = [
2121
ChainId.BOBA,
2222
ChainId.BOBA_AVAX,
2323
ChainId.ARBITRUM_NOVA,
24+
ChainId.THUNDERCORE,
2425
] as const
2526

2627
export type SupportedChainIds = typeof SUPPORTED_CHAINS

apps/_root/components/Hero/Search.tsx

+7-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const Search: FC = () => {
6262

6363
const { data: tokenList } = useQuery<TokenList>(
6464
['https://token-list.sushi.com'],
65-
() => fetch(`https://token-list.sushi.com`).then((response) => response.json()),
65+
() => fetch('https://token-list.sushi.com').then((response) => response.json()),
6666
{
6767
enabled: debouncedQuery.length > 2 && !isAddress(debouncedQuery),
6868
}
@@ -241,13 +241,15 @@ const Row: FC<{ currency: Type; onClick?(): void; isNetwork?: boolean }> = ({
241241
)
242242

243243
if (onClick) {
244-
return <button onClick={onClick}>{content}</button>
244+
return (
245+
<button type="button" onClick={onClick}>
246+
{content}
247+
</button>
248+
)
245249
}
246250

247251
return (
248-
<a
249-
href={`https://www.sushi.com/swap?token1=${currency.wrapped.address}&token0=0x0000000000000000000000000000000000000000&chainId=${currency.chainId}`}
250-
>
252+
<a href={`https://www.sushi.com/swap?token0=NATIVE&token1=${currency.wrapped.address}&chainId=${currency.chainId}`}>
251253
{content}
252254
</a>
253255
)

apps/_root/lib/swap/swapErrorToUserReadableMessage.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export function didUserReject(error: any): boolean {
3737
* @param error - An error from the ethers provider
3838
*/
3939
export function swapErrorToUserReadableMessage(error: any): string {
40+
if (!error) return ''
4041
if (didUserReject(error)) {
4142
return 'Transaction rejected'
4243
}

apps/_root/ui/swap/trade/TradeReviewDialogCrossChain.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,9 @@ export const TradeReviewDialogCrossChain: FC = () => {
149149
`Swap ${token0?.symbol} for ${token1?.symbol}`
150150
)}
151151
</Button>
152-
<Collapsible open={!!error}>
153-
<div className="scroll bg-red/20 text-red-700 dark:bg-black/20 p-2 px-3 rounded-lg border border-slate-200/10 text-[10px] break-all max-h-[80px] overflow-y-auto">
154-
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
155-
{/* @ts-ignore */}
152+
<Collapsible open={Boolean(error)}>
153+
<div className="scroll bg-red/10 text-red-700 p-2 px-3 rounded-lg break-all">
156154
{swapErrorToUserReadableMessage(error)}
157-
{/* <code>{error ? ('data' in error ? error?.data?.message : error.message) : ''}</code> */}
158155
</div>
159156
</Collapsible>
160157
</div>

apps/_root/ui/swap/trade/TradeReviewDialogSameChain.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,9 @@ export const TradeReviewDialogSameChain: FC = () => {
191191
`Swap ${token0?.symbol} for ${token1?.symbol}`
192192
)}
193193
</Button>
194-
<Collapsible open={!!error}>
195-
<div className="scroll bg-red/20 text-red-700 dark:bg-black/20 p-2 px-3 rounded-lg border border-slate-200/10 text-[10px] break-all max-h-[80px] overflow-y-auto">
196-
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
197-
{/* @ts-ignore */}
194+
<Collapsible open={Boolean(error)}>
195+
<div className="scroll bg-red/10 text-red-700 p-2 px-3 rounded-lg break-all">
198196
{swapErrorToUserReadableMessage(error)}
199-
{/* <code>{error ? ('data' in error ? error?.data?.message : error.message) : ''}</code> */}
200197
</div>
201198
</Collapsible>
202199
</div>

apps/_root/ui/swap/widget/ChainSelectors.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { useSwapActions, useSwapState } from '../trade/TradeProvider'
77
import { ArrowRightIcon, ChevronDownIcon } from '@heroicons/react/24/outline'
88
import { STARGATE_SUPPORTED_CHAIN_IDS } from '@sushiswap/stargate'
99
import { classNames } from '@sushiswap/ui'
10-
import { SwapChainId } from '../../../types'
1110

1211
export const ChainSelectors: FC<{ open: boolean }> = ({ open }) => {
1312
const { network0, network1 } = useSwapState()

apps/analytics/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const AMM_ENABLED_NETWORKS = [
2626
ChainId.BOBA,
2727
ChainId.BOBA_AVAX,
2828
ChainId.BOBA_BNB,
29+
ChainId.THUNDERCORE
2930
]
3031

3132
export const SUPPORTED_CHAIN_IDS = Array.from(new Set([...AMM_ENABLED_NETWORKS, ...TRIDENT_ENABLED_NETWORKS]))

apps/earn/components/ConcentratedLiquidityHarvestButton.tsx

-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { Address } from 'wagmi'
66
import { BigNumber } from '@ethersproject/bignumber'
77

88
interface ConcentratedLiquidityHarvestButton {
9-
poolAddress: string | undefined
109
account: Address | undefined
1110
enabled?: boolean
1211
chainId: ChainId
@@ -15,15 +14,13 @@ interface ConcentratedLiquidityHarvestButton {
1514

1615
export const ConcentratedLiquidityHarvestButton: FC<ConcentratedLiquidityHarvestButton> = ({
1716
account,
18-
poolAddress,
1917
chainId,
2018
enabled,
2119
children,
2220
}) => {
2321
const { data: rewards } = useAngleRewards({
2422
chainId,
2523
account,
26-
poolAddress,
2724
})
2825

2926
const args = useMemo(() => {

apps/earn/components/NewPositionSection/SelectPricesWidget.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export const SelectPricesWidget: FC<SelectPricesWidget> = ({
136136
)}
137137
</div>
138138
)}
139-
<div className="flex flex-col">
139+
<div className="flex flex-col gap-3">
140140
<div className="flex items-center justify-between gap-2">
141141
<div className="flex justify-end lg:hidden">
142142
{isLoading || !pool || !token0 || !token1 ? (
@@ -291,10 +291,11 @@ export const PriceBlock: FC<PriceBlockProps> = ({
291291
'flex flex-col gap-2 w-full bg-gray-100 dark:bg-white/[0.04] rounded-lg p-3'
292292
)}
293293
>
294-
<p className="text-sm font-medium text-gray-600 dark:text-slate-400 text-slate-600">{label}</p>
294+
<p className="text-sm font-medium text-gray-600 dark:text-slate-400">{label}</p>
295295
<div className="flex items-center justify-between">
296296
<div className="flex flex-col">
297297
<Input.Numeric
298+
variant="unstyled"
298299
testdata-id={`${id}-input`}
299300
value={localValue}
300301
onUserInput={setLocalValue}

0 commit comments

Comments
 (0)