This repository was archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Do not block on EOAs low native balance * Updated InsufficientNativeBalance error message * Added estimatedGas and related boilerplate to claim redux state * Refactored useClaimCallback hook Split claimCallback in 3: - claimCallback - does the same as before - estimateGasCallback - exposed externally to estimate gas usage based on claim input - getClaimInput - internal callback to prepare claimMany call args * Refactored when claimInputData is calculated to be used when estimating gas * Estimating gas usage based on claimInput and storing it on redux * Refactored gas cost calculation and displayig it in the UI when needed * Using the gasMargin only for executing the call * We don't need to track whether it's a smart contract wallet Co-authored-by: Leandro <[email protected]>
- Loading branch information
1 parent
f58f3f0
commit 9b3cde3
Showing
5 changed files
with
157 additions
and
81 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
Oops, something went wrong.