Skip to content

Commit

Permalink
Add xchf to correct place in dex
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshelkovenkov committed Sep 30, 2023
1 parent 0a76a2f commit 147a453
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"email": "[email protected]",
"url": "https://www.defichain-income.com"
},
"version": "10.2.21",
"version": "10.2.22",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": {
"productName": "DefiChain-Income",
"version": "10.2.21"
"version": "10.2.22"
},
"build": {
"distDir": "../dist/defichain-income",
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ export class AppComponent implements OnInit {

this.poolPairsOcean.data.forEach(oceanPool => {
if (+oceanPool.id >= 17 && +oceanPool.id != 102 && +oceanPool.id != 101 && +oceanPool.id != 217 && +oceanPool.id != 218
&& +oceanPool.id != 231 && +oceanPool.id != 230 && +oceanPool.id != 229 && +oceanPool.id != 233)
&& +oceanPool.id != 231 && +oceanPool.id != 230 && +oceanPool.id != 229 && +oceanPool.id != 233 && +oceanPool.id != 235 && +oceanPool.id != 236)
this.stocksPools.push(this.setFromPoolPair(oceanPool.id));
});

Expand All @@ -1144,7 +1144,7 @@ export class AppComponent implements OnInit {

this.poolPairsOcean.data.forEach(oceanPool => {
if (+oceanPool.id < 17 || +oceanPool.id === 101 || +oceanPool.id === 102 || +oceanPool.id === 217 || +oceanPool.id === 218
|| +oceanPool.id === 231 || +oceanPool.id === 230 || +oceanPool.id === 229 || +oceanPool.id === 233 ) {
|| +oceanPool.id === 231 || +oceanPool.id === 230 || +oceanPool.id === 229 || +oceanPool.id === 233 || +oceanPool.id === 235 || +oceanPool.id === 236) {
this.cryptoPools.push(this.setFromPoolPair(oceanPool.id))
}
})
Expand Down
6 changes: 6 additions & 0 deletions src/app/pages/dex-statistics/dex-statistics.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ export class DexStatisticsComponent implements OnInit {
case 'SUI-DFI': {
return new StockLongName('Sui', 'Sui');
}
case 'XCHF-DFI': {
return new StockLongName('CryptoFranc', 'CryptoFranc');
}
case 'XCHF-DUSD': {
return new StockLongName('CryptoFranc', 'CryptoFranc');
}
case 'USDT-DFI': {
return new StockLongName('Tether $', '');
}
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/dfi-statistics/dfi-statistics.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<option [selected]="coinpaprikaCurrency === 'Polkadot'" value='Polkadot'>DOT</option>
<option [selected]="coinpaprikaCurrency === 'Solana'" value='Solana'>SOL</option>
<option [selected]="coinpaprikaCurrency === 'Sui'" value='Sui'>SUI</option>
<option [selected]="coinpaprikaCurrency === 'CryptoFranc'" value='CryptoFranc'>XCHF</option>

<option *ngFor='let stock of getToken()'
[selected]="coinpaprikaCurrency === stock.tokenASymbol"
Expand Down
3 changes: 3 additions & 0 deletions src/app/pages/dfi-statistics/dfi-statistics.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export class DfiStatisticsComponent implements OnInit, AfterViewInit {
case 'Sui': {
return 'BINANCE:SUIUSDT';
}
case 'CryptoFranc': {
return 'XCHFUSDT';
}
default: {
return this.coinpaprikaCurrency;
}
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const environment = {
burninfo: 'https://api.mydefichain.com/v1/getburninfo/',
lock: 'https://api.lock.space/v1/staking/balance?userAddress=',
lockStats: 'https://api.lock.space/v1/analytics/staking',
version: '10.2.21',
version: '10.2.22',
bittrex: 'https://api.bittrex.com/v3/currencies/DFI',
kucoin: 'https://api.kucoin.com/api/v1/currencies/DFI',
graphql: server + '/graphql',
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const environment = {
burninfo: 'https://api.mydefichain.com/v1/getburninfo/',
lock: 'https://api.lock.space/v1/staking/balance?userAddress=',
lockStats: 'https://api.lock.space/v1/analytics/staking?asset=DFI&blockchain=DeFiChain&strategy=Masternode',
version: '10.2.21',
version: '10.2.22',
graphql: server + '/graphql',
income: server + '/income',
versionBackend: server + '/version',
Expand Down
7 changes: 6 additions & 1 deletion src/interface/Changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ export class Changelog {
this.logs = new Array<Log>();

this.log = new Log();
this.log.version = '10.2.201- 27.9.2023';
this.log.version = '10.2.22- 27.9.2023';
this.log.comment = 'Add xchf to correct place in dex';
this.logs.push(this.log);

this.log = new Log();
this.log.version = '10.2.21- 27.9.2023';
this.log.comment = 'Fix Tauri';
this.logs.push(this.log);

Expand Down

0 comments on commit 147a453

Please sign in to comment.