forked from purefinance/pure.finance
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from hemilabs/support-multi-chain
Hemi fixes and improved multi-chain support
- Loading branch information
Showing
32 changed files
with
377 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,10 @@ | |
"@next/next/no-html-link-for-pages": [ | ||
"warn", | ||
"site/pages" | ||
], | ||
"complexity": [ | ||
"warn", | ||
20 | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
'use strict' | ||
|
||
const { tokens } = require('@uniswap/default-token-list') | ||
const { findTokenBySymbol } = require('token-list') | ||
|
||
const tokenAddress = function (symbol, extraTokens = []) { | ||
const tokenData = tokens.concat(extraTokens) | ||
const token = | ||
tokenData.find(t => t.symbol === symbol) || | ||
tokenData.find(t => t.symbol.toLowerCase() === symbol.toLowerCase()) | ||
return token && token.address | ||
const tokenAddress = function (symbol, chainId) { | ||
const token = findTokenBySymbol(symbol, chainId) | ||
return token?.address | ||
} | ||
|
||
module.exports = tokenAddress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"1": "0xe67516417a934b27cf0c14868f8165b1bc94bf73", | ||
"743111": "0xc2dA346E2f655B1013cB0f405Ca1b99553F7a580" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.