aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils/utils.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-05-30 08:57:22 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-05-30 08:57:22 +0800
commitb14c3fe48dc8eb5bad6eefceac872754eec34ffe (patch)
tree4b151a99b892d8adf3c53418c3a1b03600da87bc /packages/website/ts/utils/utils.ts
parentbc28a08dd0d4db99549122fb4912b4931a3aad78 (diff)
downloaddexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.gz
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.bz2
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.lz
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.xz
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.tar.zst
dexon-sol-tools-b14c3fe48dc8eb5bad6eefceac872754eec34ffe.zip
Onboarding: implement add ETH step, and stub for add WETH step
Diffstat (limited to 'packages/website/ts/utils/utils.ts')
-rw-r--r--packages/website/ts/utils/utils.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index c0d055070..b9d962b75 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -321,4 +321,9 @@ export const utils = {
shouldShowPortalV2(): boolean {
return this.isDevelopment() || this.isStaging() || this.isDogfood();
},
+ getEthToken(tokenByAddress: TokenByAddress): Token {
+ const tokens = _.values(tokenByAddress);
+ const etherToken = _.find(tokens, { symbol: constants.ETHER_TOKEN_SYMBOL });
+ return etherToken;
+ },
};