Skip to content

Commit

Permalink
Merge pull request #306 from KyberNetwork/listing_USDT
Browse files Browse the repository at this point in the history
default official
  • Loading branch information
toniqhz committed Aug 16, 2019
2 parents a1085ec + bc245c3 commit 9c18d60
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions config/network/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,14 @@ module.exports = {
"decimal": 18,
"address": "0xd4c435f5b09f855c3317c8524cb1f586e42795fa",
"hidden": 1565701200000
},

"USDT": {
"name": "Tether USD",
"decimal": 6,
"symbol" : "USDT",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"hidden": 1565960400000
}

},
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/core/request/AppRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import store from "../../core/helper/store";
class AppRequest extends BaseRequest {

isOfficial(){
return store.get('allTokens') ? false : true
return store.get('kyber-official-network') ? true : false
}

getTrades (page=0, limit=20, query={}, callback) {
Expand Down
6 changes: 3 additions & 3 deletions resources/assets/js/home/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -714,15 +714,15 @@ export default {
},
isAllTokens() {
return store.get("allTokens") ? true : false;
return store.get("kyber-official-network") ? false : true;
},
onChangeOfficial(value) {
if (value == "official") {
// window.OFFICIAL_TOKENS = true
store.set("allTokens", false);
store.set("kyber-official-network", true);
} else {
store.set("allTokens", true);
store.set("kyber-official-network", false);
}
location.reload();
},
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/home/components/ReserveList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default {
window.clearInterval(this._refreshInterval);
},
isAllTokens() {
return store.get("allTokens") ? true : false;
return store.get("kyber-official-network") ? false : true;
},
},
Expand Down

0 comments on commit 9c18d60

Please sign in to comment.