-
Notifications
You must be signed in to change notification settings - Fork 191
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
fix: bump hdwallet package versions to fix walletconnect txs for evm chains #5425
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conceptual stamps before hdwallet packages are published.
Tested locally with locally published packages and confirmed this does what it says on the box.
ethSwitchChain()
works with Trust, tested by switching chains in the chain switch menu. Note, this is transparent to the user here, so it may look like nothing is happening, but definitely is.- Approvals are using the right EVM chain, e.g when making a trade on BSC while being connected to mainnet, the approval is happening on BSC
- Same as above for trade execution
Note, the hdwallet PR (and consequently, this consumption) effectively break 1inch wc when a chain switch is needed, which is not an us concern. Gut feel is the endpoint isn't properly handled on 1inch side, which ends up returning an internal error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Resolves app attempting to broadcast non-eth-mainnet evm transactions on eth-mainnet, resulting in failed transaction broadcast in the case of trades, and incorrect approvals being sent on the wrong chain.
NOTE: This requires hdwallet changes to work (link to come when i have access)
See here for details:
#5421 (comment)
Pull Request Type
Issue (if applicable)
closes #5421
Risk
Risk of lost funds and broken trading + approvals when using a wallet connected to app via walletconnect.
Testing
Using a wallet connected via walletconnect:
ERC20 allowance approvals on eth mainnet
ERC20 -> ERC20 trade on eth mainnet
ETH -> ERC20 trade on eth mainnet
ERC20 -> ETH trade on eth mainnet
ERC20 allowance approvals on avalanche/polygon/gnosis/bnbsmartchain
ERC20 -> ERC20 trade on avalanche/polygon/gnosis/bnbsmartchain
ETH -> ERC20 trade on avalanche/polygon/gnosis/bnbsmartchain
ERC20 -> ETH trade on avalanche/polygon/gnosis/bnbsmartchain
Engineering
This requires hdwallet changes to work
Operations
☝️
Screenshots (if applicable)
DAI on avalanche approval before and after the fix: