Skip to content

Commit

Permalink
Merge pull request #73 from beichenzhidi/qgastoethbsc
Browse files Browse the repository at this point in the history
fix qgas balance switch account
  • Loading branch information
beichenzhidi committed Apr 23, 2021
2 parents ed4311d + 37404b8 commit a576cf0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 2 additions & 4 deletions src/app/components/ccqgasswap/ccqgasswap.component.ts
Expand Up @@ -832,15 +832,13 @@ export class CcqgasswapComponent implements OnInit, OnDestroy {
.get('availableQLCBalance')
.setValue(
this.stakingForm.value.stakingType == 0
? selectedNEOWallet?.balances['QGAS']?.balance !== undefined
? selectedNEOWallet?.balances != undefined
? new BigNumber(selectedNEOWallet?.balances['QGAS']?.balance).dividedBy(Math.pow(10, 8))
.toNumber()
: 1
: 0
: localStorage.getItem('qgasbalance')
);

this.checkIfMinAmount();

}

checkIfMinAmount() {
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Expand Up @@ -47,7 +47,7 @@ export const environment = {
main: 'https://neotube.io/'
},
wsUrl: {
test: '',
test: 'wss://rpc-ws.qlcchain.online',
main: 'wss://rpc-ws.qlcchain.online'
},
nep5Url: {
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.testnet.ts
Expand Up @@ -51,7 +51,7 @@ export const environment = {
main: 'https://neotube.io/'
},
wsUrl: {
test: '',
test: 'wss://rpc-ws.qlcchain.online',
main: 'wss://rpc-ws.qlcchain.online'
},
nep5Url: {
Expand Down
8 changes: 4 additions & 4 deletions src/environments/environment.ts
Expand Up @@ -6,18 +6,18 @@ export const environment = {
production: false,
desktop: false,
version: '1.5.0',
qlcChainNetwork: 'main', // test or main
qlcChainNetwork: 'test', // test or main
neoNetwork: 'test', // test or main
chainxNetworkDefault: 'main', // test or main // test doesn't work
ethNetworkDefault: 'rinkeby', // mainnet, ropsten, rinkeby
infuraId: '111769056614454ba82f3c6a16be68bb',
mainRpcUrl: {
test: 'https://rpc-test.qlcchain.online',
main: 'https://rpc-test.qlcchain.online'
main: 'https://rpc.qlcchain.online'
},
rpcUrl: {
test: 'https://rpc-test.qlcchain.online',
main: 'https://rpc-test.qlcchain.online'
main: 'https://rpc.qlcchain.online'
},
swapUrl: {
test: 'http://seed2.ngd.network:20332/',
Expand Down Expand Up @@ -51,7 +51,7 @@ export const environment = {
main: 'https://neotube.io/'
},
wsUrl: {
test: '',
test: 'wss://rpc-ws.qlcchain.online',
main: 'wss://rpc-ws.qlcchain.online'
},
nep5Url: {
Expand Down

0 comments on commit a576cf0

Please sign in to comment.