matter-labs / matter-labs/block-explorer
WETH balance is not updated on withdrawal
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up โ it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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