diff --git a/src/renderer/components/Landing/LandingPage.vue b/src/renderer/components/Landing/LandingPage.vue
index 7ed7238..c555f83 100644
--- a/src/renderer/components/Landing/LandingPage.vue
+++ b/src/renderer/components/Landing/LandingPage.vue
@@ -122,6 +122,10 @@
this.$store.commit('addRate', response.data.ask);
});
+ axios.get('https://tradeogre.com/api/v1/ticker/btc-xmr').then(response => {
+ this.$store.commit('addRateXMR', response.data.ask);
+ });
+
axios.get(`https://funding.wownero.com/api/1/wowlight?version=0.1.4`).then(response => {
if(response.data.data === false) {
const {dialog} = require('electron').remote
diff --git a/src/renderer/components/Landing/components/WarioPassword.vue b/src/renderer/components/Landing/components/WarioPassword.vue
index c9c8c0d..e9c6390 100644
--- a/src/renderer/components/Landing/components/WarioPassword.vue
+++ b/src/renderer/components/Landing/components/WarioPassword.vue
@@ -30,18 +30,18 @@
return (this.$store.getters.btc_rate) * this.$store.getters.wallet.balance;
},
bubble_img() {
- let rate = this.$store.getters.btc_rate;
- let btc = rate * this.$store.getters.wallet.balance;
+ let rate = this.$store.getters.usd_rate;
+ let usd = (rate / 1000) * this.$store.getters.wallet.balance;
- if(btc < 1){
+ if(usd < 1){
return this.path_bubble(0);
- } else if(btc < 100){
+ } else if(usd < 100){
return this.path_bubble(1);
- } else if(btc < 500){
+ } else if(usd < 500){
return this.path_bubble(2);
- } else if(btc < 1000){
+ } else if(usd < 1000){
return this.path_bubble(3);
- } else if(btc < 1000){
+ } else if(usd < 1000){
return this.path_bubble(4);
}
}
diff --git a/src/renderer/components/Pages/WarioTxs.vue b/src/renderer/components/Pages/WarioTxs.vue
index 7faae36..50d6770 100644
--- a/src/renderer/components/Pages/WarioTxs.vue
+++ b/src/renderer/components/Pages/WarioTxs.vue
@@ -47,18 +47,18 @@
return this.$store.getters.btc_rate * this.$store.getters.wallet.balance;
},
bubble_img() {
- let rate = this.$store.getters.btc_rate;
- let btc = rate * this.$store.getters.wallet.balance;
+ let rate = this.$store.getters.usd_rate;
+ let usd = (rate / 1000) * this.$store.getters.wallet.balance;
- if(btc < 1){
+ if(usd < 1){
return this.path_bubble(0);
- } else if(btc < 100){
+ } else if(usd < 100){
return this.path_bubble(1);
- } else if(btc < 500){
+ } else if(usd < 500){
return this.path_bubble(2);
- } else if(btc < 1000){
+ } else if(usd < 1000){
return this.path_bubble(3);
- } else if(btc < 1000){
+ } else if(usd < 1000){
return this.path_bubble(4);
}
}
diff --git a/src/renderer/components/Pages/components/Navbar.vue b/src/renderer/components/Pages/components/Navbar.vue
index 16339be..72524d8 100644
--- a/src/renderer/components/Pages/components/Navbar.vue
+++ b/src/renderer/components/Pages/components/Navbar.vue
@@ -17,6 +17,10 @@
BTC: {{Number(btc_rate*wallet.balance).toFixed(9)}}
+ |
+
+ XMR: {{Number(btc_rate*wallet.balance/xmr_rate).toFixed(9)}}
+