@xchainjs/xchain-thorchain-query 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -451,7 +451,7 @@ const getLiquidityProtectionData = (depositValue, poolShare, block) => {
451
451
  const defaultThornodeConfig = {
452
452
  mainnet: {
453
453
  apiRetries: 3,
454
- thornodeBaseUrls: [`https://thornode.ninerealms.com`, `https://thornode.thorswap.net`],
454
+ thornodeBaseUrls: [`https://thornode.ninerealms.com`],
455
455
  },
456
456
  stagenet: {
457
457
  apiRetries: 3,
@@ -2075,7 +2075,7 @@ class ThorchainQuery {
2075
2075
  const oneTimeFee = params.isUpdate ? baseAmount(0) : baseAmount(constantsDetails['TNSRegisterFee']);
2076
2076
  const totalFeePerBlock = baseAmount(constantsDetails['TNSFeePerBlock']).times(numberOfBlocksToAddToExpirity > 0 ? numberOfBlocksToAddToExpirity : 0);
2077
2077
  const totalCost = new CryptoAmount(oneTimeFee.plus(totalFeePerBlock), AssetRuneNative);
2078
- const thornameMemo = `~:${params.thorname}:${params.chain}:${params.chainAddress}:${params.owner ? params.owner : ''}:${params.preferredAsset ? assetToString(params.preferredAsset) : ''}:${currentHeightForExpirity + numberOfBlocksToAddToExpirity}`;
2078
+ const thornameMemo = `~:${params.thorname}:${params.chain}:${params.chainAddress}:${params.owner ? params.owner : ''}:${params.preferredAsset ? assetToString(params.preferredAsset) : ''}:${params.isUpdate ? '' : currentHeightForExpirity + numberOfBlocksToAddToExpirity}`;
2079
2079
  return {
2080
2080
  memo: thornameMemo,
2081
2081
  value: totalCost,