Skip to content
New issue

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

Option for user/market specify their own gas price #1107

Closed
krisliew opened this issue Nov 9, 2021 · 0 comments
Closed

Option for user/market specify their own gas price #1107

krisliew opened this issue Nov 9, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@krisliew
Copy link
Contributor

krisliew commented Nov 9, 2021

Make multiplier value a parameter at:

export async function getFairGasPrice(web3: Web3): Promise<string> {
const x = new BigNumber(await web3.eth.getGasPrice())
return x.multipliedBy(1.05).integerValue(BigNumber.ROUND_DOWN).toString(10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants