4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

Fix tradefee

This commit is contained in:
AlphaX-Projects 2023-08-20 14:11:45 +02:00
parent ebad3aa632
commit b30dfb62aa

View File

@ -708,7 +708,7 @@ class TradePortal extends LitElement {
balance: "0",
coinCode: "QORT",
coinAmount: this.amountString,
tradeFee: "0.002"
tradeFee: "0.02"
}
let bitcoin = {
@ -2699,9 +2699,10 @@ class TradePortal extends LitElement {
async sellAction() {
this.isSellLoading = true
this.sellBtnDisable = true
await this.tradeFee()
const sellAmountInput = this.shadowRoot.getElementById('sellAmountInput').value
const sellTotalInput = this.shadowRoot.getElementById('sellTotalInput').value
const fundingQortAmount = this.round(parseFloat(sellAmountInput) + 0.021)
const fundingQortAmount = this.round(parseFloat(sellAmountInput) + 0.001)
const makeRequest = async () => {
let _receivingAddress = null
@ -3032,10 +3033,11 @@ class TradePortal extends LitElement {
}
return Promise.reject(response)
}).then((json) => {
this.listedCoins.get("QORTAL").tradeFee = (Number(json) + 100000) / 1e8
this.listedCoins.get("QORTAL").tradeFee = (Number(json) * 2) / 1e8
})
}
getApiKey() {
const myNode = window.parent.reduxStore.getState().app.nodeConfig.knownNodes[window.parent.reduxStore.getState().app.nodeConfig.node];
let apiKey = myNode.apiKey;