Skip to content

Commit f67c9e6

Browse files
committed
remove temporary doge fee hackfix
Closes #763.
1 parent a75f559 commit f67c9e6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/electrumx_rpc/electrumx_client.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,18 +1020,6 @@ class ElectrumXClient {
10201020
],
10211021
);
10221022
try {
1023-
// If the response is -1 or null, return a temporary hardcoded value for
1024-
// Dogecoin. This is a temporary fix until the fee estimation is fixed.
1025-
if (coin == Coin.dogecoin &&
1026-
(response == null ||
1027-
response == -1 ||
1028-
Decimal.parse(response.toString()) == Decimal.parse("-1"))) {
1029-
// Return 0.05 for slow, 0.2 for average, and 1 for fast txs.
1030-
// These numbers produce tx fees in line with txs in the wild on
1031-
// https://dogechain.info/
1032-
return Decimal.parse((1 / blocks).toString());
1033-
// TODO [prio=med]: Fix fee estimation.
1034-
}
10351023
return Decimal.parse(response.toString());
10361024
} catch (e, s) {
10371025
final String msg = "Error parsing fee rate. Response: $response"

0 commit comments

Comments
 (0)