Skip to content

Commit 1a6ecb5

Browse files
authored
Merge pull request #265 from EdgeApp/paul/lifiGasPrice
Lifi: Allow gas price lower than 1 gwei
2 parents 8fdebd2 + 4577ef0 commit 1a6ecb5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/swap/defi/lifi.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { round } from 'biggystring'
21
import { asArray, asNumber, asObject, asOptional, asString } from 'cleaners'
32
import {
43
EdgeCorePluginOptions,
@@ -295,7 +294,7 @@ export function makeLifiPlugin(opts: EdgeCorePluginOptions): EdgeSwapPlugin {
295294

296295
const { data, gasLimit, gasPrice } = quote.transactionRequest
297296
const gasPriceDecimal = hexToDecimal(gasPrice)
298-
const gasPriceGwei = round(div18(gasPriceDecimal, '1000000000'), 0)
297+
const gasPriceGwei = div18(gasPriceDecimal, '1000000000')
299298
const providers = includedSteps.map(s => s.toolDetails.name)
300299

301300
let preTx: EdgeTransaction | undefined

0 commit comments

Comments
 (0)