We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think the current calculateGasPriceFromGasNow() implementation make it hard to read the function or to change it for a new developer.
calculateGasPriceFromGasNow()
export async function calculateGasPriceFromGasNow() { return BigNumber.from((await (await fetch(gasNowUrl)).json()).data.rapid) .mul(Math.round(Number(process.env.GAS_PRICE_MULTIPLIER) * 100000000)) .div(100000000); }
IMO make sense to separate and assign values to some variables.
E.g
const rapidGasNow = (await fetch(gasNowUrl)).json()).data.rapid; const multipliedGasNow = rapidGasNow.mul(...); ...
The text was updated successfully, but these errors were encountered:
CruzMolina
No branches or pull requests
I think the current
calculateGasPriceFromGasNow()
implementation make it hard to read the function or to change it for a new developer.IMO make sense to separate and assign values to some variables.
E.g
The text was updated successfully, but these errors were encountered: