Skip to content

Commit

Permalink
Merge pull request #453 from chain4travel/aeddaqqa/fix-gas-estimation
Browse files Browse the repository at this point in the history
fix(transfer): fix gas price estimation
  • Loading branch information
aeddaqqa authored Dec 17, 2024
2 parents 0785822 + dda4539 commit a627326
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/helpers/gas_helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export async function getGasPrice(): Promise<BN> {
*/
export async function getAdjustedGasPrice(): Promise<BN> {
let gasPrice = await getGasPrice()
let adjustedGas = adjustValue(gasPrice, 25)
return BN.min(adjustedGas, MAX_GAS)
return BN.min(gasPrice, MAX_GAS)
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"title": "Quell Chain"
},
"c_chain": {
"gasPrice": "Gas Preis (GWEI)",
"gasPrice": "Gas Preis (nCAM)",
"gasLimit": "Gas Grenze",
"confirm": "Bestätigen",
"cancel": "Abbrechen",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"title": "Source Chain"
},
"c_chain": {
"gasPrice": "Gas Price (GWEI)",
"gasPrice": "Gas Price (nCAM)",
"gasLimit": "Gas Limit",
"confirm": "Confirm",
"cancel": "Cancel",
Expand Down

0 comments on commit a627326

Please sign in to comment.