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

fix: throw speed up mutation if depositor does not match signer #899

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

dohaki
Copy link
Contributor

@dohaki dohaki commented Nov 2, 2023

Fixes ACX-1667

Copy link

linear bot commented Nov 2, 2023

ACX-1667 Speed-ups are ineffective on SpokePoolVerifier deposits

Deposit: https://optimistic.etherscan.io/tx/0xd3d82765be8f50c427c4a02b63e29b837c07ec3a56b48c529e983e5cc3ed71e5

Speed-up: https://optimistic.etherscan.io/tx/0x2630058a9216c1d8defc9e84ced9cb849484b6545f68baac1ed8dbadf18b2d71

Problem: When ETH deposits are routed via the SpokePoolVerifier, only the SpokePoolVerifier is able to approve a speed-up. The FE still offers the ability to submit a speed-up, but the SpokePoolClient just ignores it because the depositor addresses do not match.

I'm not sure how speed-ups should be handled in this instance, since the SpokePoolVerifier is forced to be the depositor, and it cannot approve speed-ups.

The FE should perhaps add extra verification to prevent the user from signing a speed-up if their EOA does not match the depositor address in the related deposit event.

Copy link

vercel bot commented Nov 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontend-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2023 2:35pm
goerli-frontend-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2023 2:35pm

Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Nice, clean fix!

@dohaki dohaki merged commit 2fc157d into master Nov 2, 2023
6 checks passed
@dohaki dohaki deleted the prevent-speed-up-on-non-depositor-transfers branch November 2, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants