aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-12-04 09:52:35 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 18:58:37 +0800
commit893e9f2731c4cbde898b46bd8f29184d69c9faf1 (patch)
tree99ee1b257e59a88ec623f113b3ce774a9d303604 /packages/website/ts
parent7a6339ae38d424508a9f41c818b20dd8b8f09dce (diff)
downloaddexon-sol-tools-893e9f2731c4cbde898b46bd8f29184d69c9faf1.tar
dexon-sol-tools-893e9f2731c4cbde898b46bd8f29184d69c9faf1.tar.gz
dexon-sol-tools-893e9f2731c4cbde898b46bd8f29184d69c9faf1.tar.bz2
dexon-sol-tools-893e9f2731c4cbde898b46bd8f29184d69c9faf1.tar.lz
dexon-sol-tools-893e9f2731c4cbde898b46bd8f29184d69c9faf1.tar.xz
dexon-sol-tools-893e9f2731c4cbde898b46bd8f29184d69c9faf1.tar.zst
dexon-sol-tools-893e9f2731c4cbde898b46bd8f29184d69c9faf1.zip
feat: update relayer list
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/pages/instant/config_generator.tsx20
1 files changed, 19 insertions, 1 deletions
diff --git a/packages/website/ts/pages/instant/config_generator.tsx b/packages/website/ts/pages/instant/config_generator.tsx
index 671b1f6df..4e25e3437 100644
--- a/packages/website/ts/pages/instant/config_generator.tsx
+++ b/packages/website/ts/pages/instant/config_generator.tsx
@@ -32,7 +32,11 @@ export interface ConfigGeneratorState {
availableTokens?: ObjectMap<ERC20AssetMetaData>;
}
-const SRA_ENDPOINTS = ['https://api.radarrelay.com/0x/v2/', 'https://api.openrelay.xyz/v2/'];
+const SRA_ENDPOINTS = [
+ 'https://api.radarrelay.com/0x/v2/',
+ 'https://api.sharkrelay.com/sra/v2/',
+ 'https://sra.bamboorelay.com/0x/v2/',
+];
export class ConfigGenerator extends React.Component<ConfigGeneratorProps, ConfigGeneratorState> {
public state: ConfigGeneratorState = {
@@ -212,6 +216,20 @@ export class ConfigGenerator extends React.Component<ConfigGeneratorProps, Confi
</Container>
);
}
+ const availableAssetDatas = _.keys(availableTokens);
+ if (availableAssetDatas.length === 0) {
+ return (
+ <Container
+ className="flex flex-column items-center justify-center"
+ height={multiSelectHeight}
+ backgroundColor={colors.white}
+ borderRadius="4px"
+ width="100%"
+ >
+ <Text fontSize="16px">No tokens available. Try another endpoint?</Text>
+ </Container>
+ );
+ }
const items = _.map(_.keys(availableTokens), assetData => {
const metaData = availableTokens[assetData];
return {