matter-labs / matter-labs/block-explorer

WETH balance is not updated on withdrawal

Open
#415 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
139
Forks
145
Avg merge
8h 3m
Merged PRs (30d)
3

Description

๐Ÿ› Bug Report
๐Ÿ“ Description

WETH balance is not updated for account on withdrawal as withdraw method doesn't produce transfer events.

๐Ÿ”„ Reproduction Steps
  • deposit some WETH;
  • withdraw it;
  • notice ETH balance is changed for account, but WETH balance remains the same;
๐Ÿค” Expected Behavior

Both ETH and WETH balances should be recalculated after WETH withdrawal

๐Ÿ˜ฏ Current Behavior

WETH balance is not updated

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up โ€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start at the withdraw method and trace the balance-update path, comparing it with the deposit handling; done means a withdrawal updates both the account's ETH and WETH balances, with a regression test covering the reported sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.