diff --git a/src/main/index.js b/src/main/index.js index 8742ef7..80e9683 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -175,7 +175,7 @@ ipcMain.on('rpc_commit_wallet', (event, data) => { event.sender.send('rpc_wallet_committed'); }); -ipcMain.on('rate_usd_wow', (event, data) => { +ipcMain.on('rate_btc_wow', (event, data) => { console.log(data); }); diff --git a/src/renderer/components/Landing/LandingPage.vue b/src/renderer/components/Landing/LandingPage.vue index 0b00be3..7ed7238 100644 --- a/src/renderer/components/Landing/LandingPage.vue +++ b/src/renderer/components/Landing/LandingPage.vue @@ -118,8 +118,8 @@ mounted() { let select_node = jQuery('#selectnode'); const axios = require('axios'); - axios.get('https://funding.wownero.com/api/1/convert/wow-usd?amount=1000').then(response => { - this.$store.commit('addRate', response.data.usd); + axios.get('https://tradeogre.com/api/v1/ticker/btc-wow').then(response => { + this.$store.commit('addRate', response.data.ask); }); axios.get(`https://funding.wownero.com/api/1/wowlight?version=0.1.4`).then(response => { diff --git a/src/renderer/components/Landing/components/WarioPassword.vue b/src/renderer/components/Landing/components/WarioPassword.vue index e79986b..c9c8c0d 100644 --- a/src/renderer/components/Landing/components/WarioPassword.vue +++ b/src/renderer/components/Landing/components/WarioPassword.vue @@ -26,22 +26,22 @@ wallet() { return this.$store.getters.wallet; }, - usd(){ - return (this.$store.getters.usd_rate / 1000) * this.$store.getters.wallet.balance; + btc(){ + return (this.$store.getters.btc_rate) * this.$store.getters.wallet.balance; }, bubble_img() { - let rate = this.$store.getters.usd_rate; - let usd = (rate / 1000) * this.$store.getters.wallet.balance; + let rate = this.$store.getters.btc_rate; + let btc = rate * this.$store.getters.wallet.balance; - if(usd < 1){ + if(btc < 1){ return this.path_bubble(0); - } else if(usd < 100){ + } else if(btc < 100){ return this.path_bubble(1); - } else if(usd < 500){ + } else if(btc < 500){ return this.path_bubble(2); - } else if(usd < 1000){ + } else if(btc < 1000){ return this.path_bubble(3); - } else if(usd < 1000){ + } else if(btc < 1000){ return this.path_bubble(4); } } diff --git a/src/renderer/components/Pages/WarioTxs.vue b/src/renderer/components/Pages/WarioTxs.vue index f84938f..7faae36 100644 --- a/src/renderer/components/Pages/WarioTxs.vue +++ b/src/renderer/components/Pages/WarioTxs.vue @@ -6,23 +6,23 @@ -