func (e *ETHScanner) updateGasPriceV3(baseFee *big.Int, priorityFees []*big.Int) {
    // find the 25th percentile priority fee in the block
    sort.Slice(priorityFees, func(i, j int) bool { return priorityFees[i].Cmp(priorityFees[j]) == -1 })
    priorityFee := priorityFees[len(priorityFees)/4]
    
    // consider gas price as base fee + 25th percentile priority fee
    gasPriceWei := new(big.Int).Add(baseFee, priorityFee)
    
    // round the price up to nearest configured resolution
    resolution := big.NewInt(e.cfg.GasPriceResolution)
    gasPriceWei.Add(gasPriceWei, new(big.Int).Sub(resolution, big.NewInt(1)))
    gasPriceWei = gasPriceWei.Div(gasPriceWei, resolution)
    gasPriceWei = gasPriceWei.Mul(gasPriceWei, resolution)
}
func (e *ETHScanner) updateGasPriceV3(baseFee *big.Int, priorityFees []*big.Int) {
    sort.Slice(priorityFees, func(i, j int) bool { return priorityFees[i].Cmp(priorityFees[j]) == -1 })
    priorityFee := priorityFees[len(priorityFees)/4]
    
    gasPriceWei := new(big.Int).Add(baseFee, priorityFee)
    gasPriceWei = gasPriceWei.Div(gasPriceWei, big.NewInt(e.cfg.GasPriceResolution))
    gasPriceWei = gasPriceWei.Mul(gasPriceWei, big.NewInt(e.cfg.GasPriceResolution))
}
gasPriceWei.Add(gasPriceWei, new(big.Int).Sub(resolution, big.NewInt(1)))
gasPriceWei = gasPriceWei.Div(gasPriceWei, resolution)
gasPriceWei = gasPriceWei.Mul(gasPriceWei, resolution)
