Skip to content

Commit db0f5e0

Browse files
authored
Merge pull request #122 from madfish-solutions/development
Release everything to prod
2 parents ae4dda9 + 8313bdc commit db0f5e0

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

.env.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ THREE_ROUTE_API_AUTH_TOKEN=
1010
REDIS_URL=
1111
ADD_NOTIFICATION_USERNAME=
1212
ADD_NOTIFICATION_PASSWORD=
13+
TZPRO_API_KEY=

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The Express backend which helps Temple Wallet to decrease amount of requests to
77
| Path | Description |
88
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
99
| /api/dapps | Provides a list of dApps with their TVL, summary TVL and amount of TEZ locked in them. |
10-
| /api/exchange-rates/tez | Returns a single number, which is TEZ to USD exchange rate according to markets tickers from tzstats.com |
10+
| /api/exchange-rates/tez | Returns a single number, which is TEZ to USD exchange rate according to markets tickers from TzPro API.com |
1111
| /api/exchange-rates | Returns the exchange rates of tokens to USD based on Quipuswap and Dexter pools (for most of them), stats from TZero (only for Aspencoin) and exchange rates from Coingecko (for WRAP tokens which are still not in pools). |
1212
| /api/moonpay-sign | Returns signed MoonPay url |
1313
| /api/mobile-check | Returns the minimum allowed versions of Android and IOS applications. Verifies App Check token. |

src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export const EnvVars = {
1212
THREE_ROUTE_API_AUTH_TOKEN: getEnv('THREE_ROUTE_API_AUTH_TOKEN'),
1313
REDIS_URL: getEnv('REDIS_URL'),
1414
ADD_NOTIFICATION_USERNAME: getEnv('ADD_NOTIFICATION_USERNAME'),
15-
ADD_NOTIFICATION_PASSWORD: getEnv('ADD_NOTIFICATION_PASSWORD')
15+
ADD_NOTIFICATION_PASSWORD: getEnv('ADD_NOTIFICATION_PASSWORD'),
16+
TZPRO_API_KEY: getEnv('TZPRO_API_KEY')
1617
};
1718

1819
for (const name in EnvVars) {

src/utils/dapp-list-constants.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,13 @@ export const dappList: DappList[] = [
144144
logo: 'https://pbs.twimg.com/profile_images/1538616711536156672/eRwz1uNE_400x400.jpg',
145145
slug: 'kordfi',
146146
categories: [DappType.DeFi]
147+
},
148+
{
149+
name: 'Lyzi',
150+
dappUrl: 'https://dapp.lyzi.fr/',
151+
type: DappType.DeFi,
152+
logo: 'https://assets-global.website-files.com/6475ceee719579d9e88c6c2f/6475d6f27dd17b6b206bf848_Design%20sans%20titre%20(20).png',
153+
slug: 'lyzi',
154+
categories: [DappType.DeFi]
147155
}
148156
];

src/utils/tezos.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { tzip12 } from '@taquito/tzip12';
33
import { tzip16 } from '@taquito/tzip16';
44
import memoizee from 'memoizee';
55

6+
import { EnvVars } from '../config';
67
import { ITicker } from '../interfaces/ticker.interface';
78
import fetch from './fetch';
89
import SingleQueryDataProvider from './SingleQueryDataProvider';
@@ -53,7 +54,9 @@ export const getStorage = memoizee(
5354
);
5455

5556
const getTezExchangeRate = async () => {
56-
const marketTickers = await fetch<Array<ITicker>>('https://api.tzstats.com/markets/tickers');
57+
const marketTickers = await fetch<Array<ITicker>>(
58+
`https://api.tzpro.io/markets/tickers?api_key=${EnvVars.TZPRO_API_KEY}`
59+
);
5760
const usdTickers = marketTickers.filter(e => e.quote === 'USD' && e.base === 'XTZ');
5861
// price index: use all USD ticker last prices with equal weight
5962
const vol = usdTickers.reduce((s, t) => s + t.volume_base, 0) || null;

0 commit comments

Comments
 (0)