-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
5 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
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,11 @@ | ||
export const ALLOWED_CURRENCY_CONTRACTS = { | ||
BANK: '0x2d94AA3e47d9D5024503Ca8491fcE9A2fB4DA198', | ||
ETH: 'ETH', | ||
USDC: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', | ||
USDT: '0xdAC17F958D2ee523a2206206994597C13D831ec7', | ||
BTC: '', | ||
}; | ||
|
||
export const ALLOWED_CURRENCIES = Object.keys(ALLOWED_CURRENCY_CONTRACTS); | ||
|
||
export default ALLOWED_CURRENCIES; |
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,2 +1,3 @@ | ||
// Extract the string values of an object as a union of typescript string literals | ||
export type ObjectValues<T extends Record<string, string>> = T[keyof T]; | ||
export type ObjectKeys<T extends Record<string, string>> = keyof T; |