diff --git a/.changeset/dry-weeks-bow.md b/.changeset/dry-weeks-bow.md new file mode 100644 index 000000000000..035ace8892aa --- /dev/null +++ b/.changeset/dry-weeks-bow.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": minor +--- + +Add safety margin to Hedera fee estimates diff --git a/libs/ledger-live-common/src/families/hedera/utils.ts b/libs/ledger-live-common/src/families/hedera/utils.ts index f1c483476b14..c87b399099e9 100644 --- a/libs/ledger-live-common/src/families/hedera/utils.ts +++ b/libs/ledger-live-common/src/families/hedera/utils.ts @@ -20,7 +20,8 @@ export async function getEstimatedFees(account: Account): Promise { if (data[0]) { return new BigNumber(10000) .dividedBy(new BigNumber(data[0])) - .integerValue(BigNumber.ROUND_CEIL); + .integerValue(BigNumber.ROUND_CEIL) + .multipliedBy(estimatedFeeSafetyRate); } // eslint-disable-next-line no-empty } catch {}