Skip to content

Commit

Permalink
fix tron invalid fee limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong committed Aug 22, 2024
1 parent 404eaec commit 2467a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relay-relayer/src/client/contract_relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class RelayerContractClient {
console.log(energyPricesResult);
const energyPrices = energyPricesResult.split(",");
const latestPrice = (energyPrices[energyPrices.length - 1].split(":"))[1];
const feeLimit = 1.2 * energyRequired * latestPrice;
const feeLimit = Math.ceil(1.1 * energyRequired * latestPrice);
console.log("estimate energy: ", energyRequired, latestPrice, feeLimit);
return feeLimit;
} catch (e) {
Expand Down

0 comments on commit 2467a69

Please sign in to comment.