Skip to content

Commit 010f167

Browse files
committed
changing pegout estimated fee calculation
1 parent a6991a6 commit 010f167

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)