Skip to content

Commit

Permalink
Merge pull request #115 from TokelPlatform/development
Browse files Browse the repository at this point in the history
Changes for v 1.0.0
  • Loading branch information
piggydoughnut committed Jul 30, 2021
2 parents fe9700e + f226099 commit 73945eb
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const DashboardRoot = styled.div`
width: 100%;
flex: 1;
background-color: var(--color-black);
padding: 20px;
padding: 18px;
margin: 0;
`;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/Portfolio/Portfolio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Portfolio = (): ReactElement => {
{assets.map(asset => (
<PortfolioItem
key={asset.name}
name={`${asset.name} (${asset.ticker})`}
name={`${asset.name}`}
subtitle={`${formatDec(asset.balance)} ≈ $TBA`}
// subtitle={`${formatDec(asset.balance)} ≈ $${formatFiat(asset.balance * asset.usd_value)}`}
percentage={100}
Expand Down
4 changes: 2 additions & 2 deletions src/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "tokel_app",
"productName": "tokelPlatform",
"version": "0.1.0",
"version": "1.0.0",
"description": "Komodo ecosystem’s Token Platform",
"main": "./main.js",
"author": {
"name": "Daria Mikhailova",
"name": "Daria",
"email": "[email protected]",
"url": "https://daria.engineer"
},
Expand Down
6 changes: 4 additions & 2 deletions src/util/insightApi.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import axios from 'axios';

const INSIGHT_SERVER = `https://kmd.explorer.dexstats.info/insight-api-komodo`;
import { TICKER } from 'vars/defines';

import links from './links';

const http404 = 'Request failed with status code 404';

const getTransactionDetail = async (txId, txInfo) => {
try {
const resp = await axios(`${INSIGHT_SERVER}/tx/${txId}`);
const resp = await axios(`${links.insightApi[TICKER]}/tx/${txId}`);
return resp.data;
} catch (e) {
if (e.message && e.message === http404) {
Expand Down
6 changes: 5 additions & 1 deletion src/util/links.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
export default {
explorers: {
KMD: 'https://kmd.explorer.dexstats.info',
TKL: '',
TOKEL: 'https://tokel.explorer.dexstats.info',
TKLTEST: 'https://tkltest.explorer.dexstats.info',
TKLLIVE: '',
},
insightApi: {
TOKEL: 'https://tokel.explorer.dexstats.info/insight-api-komodo',
KMD: 'https://kmd.explorer.dexstats.info/insight-api-komodo',
},
discord: 'https://discord.gg/MHxJZVFkqa',
website: 'https://tokel.io',
websiteRoadmap: 'https://tokel.io/roadmap',
Expand Down
8 changes: 3 additions & 5 deletions src/util/transactions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from 'moment';

import { FEE, TICKER, USD_VALUE } from 'vars/defines';
import { FEE, INFORMATION_N_A, TICKER, USD_VALUE } from 'vars/defines';

import getTransactionDetail from './insightApi';

Expand All @@ -17,8 +17,7 @@ export const parseListTxsRpcTx = tx => {
height: tx[0].height,
value: -(tx[0].value + (tx[1].value + FEE)),
received: false,
recepient: 'See tx at the explorer for details',
recipient: 'See tx at the explorer for details',
recepient: INFORMATION_N_A,
},
];
}
Expand All @@ -32,8 +31,7 @@ export const parseListTxsRpcTx = tx => {
{
...tx[0],
received: false,
recepient: 'See tx at the explorer for details',
recipient: 'See tx at the explorer for details',
recepient: INFORMATION_N_A,
},
];
}
Expand Down

0 comments on commit 73945eb

Please sign in to comment.