Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xchain-doge] Fix maximum fee rate #643

Merged
merged 1 commit into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/xchain-doge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v.0.5.1 (2022-09-27)

## Fix

- Increase value for `setMaximumFeeRate` to reflect current fees

# v.0.5.0 (2022-09-05)

## Update
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-doge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xchainjs/xchain-doge",
"version": "0.5.0",
"version": "0.5.1",
"description": "Custom Doge client and utilities used by XChain clients",
"keywords": [
"Xchain",
Expand Down
6 changes: 4 additions & 2 deletions packages/xchain-doge/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ export const buildTx = async ({

const psbt = new Dogecoin.Psbt({ network: dogeNetwork(network) }) // Network-specific
// TODO: Doge recommended fees is greater than the recommended by Bitcoinjs-lib (for BTC),
// so we need to increase the maximum fee rate. Currently, the fast rate fee is near ~650000sats/byte
psbt.setMaximumFeeRate(650000)
// so we need to increase the maximum fee rate. Currently, the fast rate fee is near ~750000sats/byte
// https://thornode.ninerealms.com/thorchain/inbound_addresses?height=7526662 (09-27-2022)
// For now we increase it by 10x
psbt.setMaximumFeeRate(7500000)
const params = { sochainUrl, network, address: sender }

for (const utxo of inputs) {
Expand Down