diff --git a/packages/chain-adapters/src/utxo/dogecoin/DogecoinChainAdapter.ts b/packages/chain-adapters/src/utxo/dogecoin/DogecoinChainAdapter.ts index 09df9b3ad56..47b3c4bf149 100644 --- a/packages/chain-adapters/src/utxo/dogecoin/DogecoinChainAdapter.ts +++ b/packages/chain-adapters/src/utxo/dogecoin/DogecoinChainAdapter.ts @@ -69,7 +69,7 @@ export class ChainAdapter extends UtxoBaseAdapter if (!value) throw new Error('value is required') if (!pubkey) throw new Error('pubkey is required') - const { slow, average, fast } = await this.providers.http.getNetworkFees() + const { fast, average, slow } = await this.providers.http.getNetworkFees() if (!(fast?.satsPerKiloByte && average?.satsPerKiloByte && slow?.satsPerKiloByte)) { throw new Error('UtxoBaseAdapter: failed to get fee data') @@ -77,9 +77,9 @@ export class ChainAdapter extends UtxoBaseAdapter // sane default for invalid fee data from the node // see: https://github.com/dogecoin/dogecoin/issues/3385 - if (slow.satsPerKiloByte <= 0) slow.satsPerKiloByte = 50000000 // .5 DOGE per kB - if (average.satsPerKiloByte <= 0) average.satsPerKiloByte = 100000000 // 1 DOGE per kB if (fast.satsPerKiloByte <= 0) fast.satsPerKiloByte = 500000000 // 5 DOGE per kB + if (average.satsPerKiloByte <= 0) average.satsPerKiloByte = 100000000 // 1 DOGE per kB + if (slow.satsPerKiloByte <= 0) slow.satsPerKiloByte = 50000000 // .5 DOGE per kB // ensure higher confirmation speeds never have lower fees than lower confirmation speeds if (slow.satsPerKiloByte > average.satsPerKiloByte)