Skip to content

Commit 00cad1c

Browse files
authored
Implement AGW logic when hyperliquid is selected as destination (#935)
* restrict hyperliquid from agw recipients * feat: changeset
1 parent ec96b6a commit 00cad1c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/large-hornets-bet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@relayprotocol/relay-kit-ui': patch
3+
---
4+
5+
Implement AGW logic when hyperliquid is selected as destination

packages/ui/src/hooks/useIsWalletCompatible.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ export default (
3434
return true
3535
}
3636

37-
//Hyperliquid operates as a CEX, so there's no need to check for wallet compatibility
37+
// Hyperliquid operates as a CEX, so wallet compatibility checks are skipped.
38+
// AGW recipients are still incompatible with Hyperliquid deposits.
3839
if (chainId === 1337) {
39-
return true
40+
return !isRecipientAGW
4041
}
4142

4243
if (!linkedWallet) {

0 commit comments

Comments
 (0)