You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file wallets.js, the gas price for Ethereum transactions in wrapNative and unWrapNative functions is calculated using await credentials.WEB3.eth.getGasPrice(). This retrieves the current average gas price from the Ethereum network, which might not be optimal for all users depending on their priorities between speed and cost.
Suggestion: Implement a feature that allows users to specify a gas price strategy (e.g., average, fast, safe low) or a specific gas price. This can be done by providing an optional parameter in the request, and if not provided, defaulting to the current method.
Code Example: let gasPrice = req.body.gasPrice || await credentials.WEB3.eth.getGasPrice();
The text was updated successfully, but these errors were encountered:
In the file wallets.js, the gas price for Ethereum transactions in wrapNative and unWrapNative functions is calculated using await credentials.WEB3.eth.getGasPrice(). This retrieves the current average gas price from the Ethereum network, which might not be optimal for all users depending on their priorities between speed and cost.
Suggestion: Implement a feature that allows users to specify a gas price strategy (e.g., average, fast, safe low) or a specific gas price. This can be done by providing an optional parameter in the request, and if not provided, defaulting to the current method.
Code Example:
let gasPrice = req.body.gasPrice || await credentials.WEB3.eth.getGasPrice();
The text was updated successfully, but these errors were encountered: