SharedStake / SharedStake-ui

SharedStake User Interface using vue.js
https://www.sharedstake.org/
GNU General Public License v3.0
15 stars 15 forks source link

[Gas prices] Fix gas price api #145

Closed chimera-defi closed 11 months ago

chimera-defi commented 1 year ago

We currently use gasnow, a now defunct api to fetch gas prices for users. This is not used everywher, just on the stake page. The impl is in common.js and needs to be updated to :

  1. use a new live api
  2. use eip1559 gas pricing
mystic-mango commented 11 months ago

Getting live gas prices now... Screenshot 2023-07-24 at 21 20 27

@chimera-defi Let me know if we want to modify the multipliers?

low: lowGasPrice, // Here we're assuming low is 80% of the current gas price but a min of 2100wei.
medium: gasPriceInGwei,
high: gasPriceInGwei * 1.2, // Here we're assuming high is 120% of the current gas price.
    tip: {
        low: 1, // Adjust these priority fees as you see fit.
        medium: 2,
        high: 5,
      },