Skip to content

Commit 2d30bce

Browse files
alexjavabrazronaldsg20
authored andcommitted
changing pegout estimated fee calculation
1 parent 06cc05b commit 2d30bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function getEstimatedFee(): Promise<SatoshiBig> {
6363
bridgeService.getQueuedPegoutsCount(),
6464
])
6565
.then(([nextPegoutCost, pegoutQueueCount]) => {
66-
const estimatedFee = pegoutQueueCount > 0 ? nextPegoutCost / pegoutQueueCount : 0;
66+
const estimatedFee = nextPegoutCost / (pegoutQueueCount + 1);
6767
resolve(new SatoshiBig(estimatedFee, 'satoshi'));
6868
})
6969
.catch(reject);

0 commit comments

Comments
 (0)