Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
convert to gwei
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmeanjan committed Jul 21, 2021
1 parent f8a06c2 commit ef745a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/data/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (m *MemPoolTx) HasGasPriceMoreThan(x float64) bool {
return false
}

given := big.NewFloat(x)
given := big.NewFloat(x * 1_000_000_000)
return gp.Cmp(given) >= 0
}

Expand All @@ -207,7 +207,7 @@ func (m *MemPoolTx) HasGasPriceLessThan(x float64) bool {
return false
}

given := big.NewFloat(x)
given := big.NewFloat(x * 1_000_000_000)
return gp.Cmp(given) <= 0
}

Expand Down

0 comments on commit ef745a6

Please sign in to comment.