Skip to content

Commit 0fe2456

Browse files
authored
Merge pull request #1233 from curvefi/task/add-pool-alert
Add pool alert
2 parents dd8516d + d012493 commit 0fe2456

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

apps/main/src/dex/hooks/usePoolAlert.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,24 @@ const usePoolAlert = (poolData?: PoolData | PoolDataCache) => {
178178
</MessageWrapper>
179179
),
180180
})
181+
const synthetixUsdAlert = (): PoolAlert => ({
182+
alertType: 'danger',
183+
isDisableDeposit: true,
184+
isDisableSwap: true,
185+
isInformationOnly: true,
186+
isCloseOnTooltipOnly: true,
187+
message: (
188+
<MessageWrapper>
189+
<div>
190+
Deposit and swap are disabled, see{' '}
191+
<ExternalLink $noStyles href="https://x.com/synthetix_io/status/1953054538610688198">
192+
https://x.com/synthetix_io/status/1953054538610688198
193+
</ExternalLink>{' '}
194+
for additional information.
195+
</div>
196+
</MessageWrapper>
197+
),
198+
})
181199

182200
// Fantom networks
183201
const crossCurveAlert = (externalLinks: { label: string; url: string }[]): PoolAlert => ({
@@ -276,6 +294,7 @@ const usePoolAlert = (poolData?: PoolData | PoolDataCache) => {
276294
'0x8818a9bb44fbf33502be7c15c500d0c783b73067': synthetixAlert(),
277295
'0x3f1b0278a9ee595635b61817630cc19de792f506': synthetixAlert(),
278296
'0x2dded6da1bf5dbdf597c45fcfaa3194e53ecfeaf': ironbankAlert(),
297+
'0xa5407eae9ba41422680e2e00537571bcc53efbfd': synthetixUsdAlert(),
279298
"0x4f493b7de8aac7d55f71853688b1f7c8f0243c85": crossCurveAlert([CrossCurveLabel.swap(CrossCurveChain.Ethereum, token1, CrossCurveChain.Ethereum, token2)]),
280299
'0x3ee841f47947fefbe510366e4bbb49e145484195': crossCurveAlert([CrossCurveLabel.swap(CrossCurveChain.Ethereum, token1, CrossCurveChain.Ethereum, token2)]),
281300
'0x74345504eaea3d9408fc69ae7eb2d14095643c5b': crossCurveAlert([CrossCurveLabel.swap(CrossCurveChain.Ethereum, token1, CrossCurveChain.Ethereum, token2)]),

0 commit comments

Comments
 (0)