Browse Source

fix fee

resolve-20231003
Phillip 1 year ago
parent
commit
d648435bc4
  1. 5
      plugins/plugins/core/qdn/browser/browser.src.js
  2. 3
      plugins/plugins/core/qdn/publish/publish.src.js
  3. 3
      plugins/plugins/utils/publish-image.js

5
plugins/plugins/core/qdn/browser/browser.src.js

@ -438,7 +438,8 @@ class WebBrowser extends LitElement {
const arbitraryFee = (Number(data) / 1e8).toFixed(8)
return {
timestamp,
fee : arbitraryFee
fee : Number(data),
feeToShow: arbitraryFee
}
}
async sendQortFee() {
@ -1043,7 +1044,7 @@ class WebBrowser extends LitElement {
identifier,
service,
encrypt: data.encrypt,
feeAmount
feeAmount: getArbitraryFee.feeToShow
}
);
if (res2.action === 'accept') {

3
plugins/plugins/core/qdn/publish/publish.src.js

@ -495,7 +495,8 @@ class PublishData extends LitElement {
})
return {
timestamp,
fee : (Number(fee) / 1e8).toFixed(8)
fee : Number(fee),
feeToShow: (Number(fee) / 1e8).toFixed(8)
}
}

3
plugins/plugins/utils/publish-image.js

@ -56,7 +56,8 @@ export const publishData = async ({
})
return {
timestamp,
fee : (Number(fee) / 1e8).toFixed(8)
fee : Number(fee),
feeToShow: (Number(fee) / 1e8).toFixed(8)
}
}

Loading…
Cancel
Save