Skip to content

Commit 4208394

Browse files
committed
feat: add new condition
1 parent 6e98547 commit 4208394

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,5 @@
134134
"last 1 safari version"
135135
]
136136
},
137-
"license": "GPL-3.0-or-later",
138-
"dependencies": {}
137+
"license": "GPL-3.0-or-later"
139138
}

src/utils/currencyId.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Currency } from '@alagunoff/uniswap-sdk-core'
22

33
export function currencyId(currency: Currency): string {
44
if (currency.isEther) return 'ETH'
5+
if (currency.isPol) return 'POL'
56
if (currency.isToken) return currency.address
67
throw new Error('invalid currency')
78
}

0 commit comments

Comments
 (0)