Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: send native token max without dust (#390)
* Implement sendMax for native tokens * Correctly handle "max fee per gas less than block base fee" error * Fix native send max for Optimism * Specify gasPrice when sending max to stop wallets from rugging us * Throw error when native balance < toll * yarn prettier + yarn lint * Add Chinese translation for error msg * Apply suggestions from code review Co-authored-by: Matt Solomon <matt@mattsolomon.dev> * If the network doesn't support 1559 pricing, base fee is 0 not 1 * Fix failing builds --------- Co-authored-by: garyghayrat <f255eb47-1441-48a5-be8e-0a9e3193245c@anonaddy.me> Co-authored-by: Matt Solomon <matt@mattsolomon.dev>
- Loading branch information
1 parent
56903d8
commit 31a72ae
Showing
5 changed files
with
145 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters