From 050163506a90f2a4dc6ca77e575417f633fad390 Mon Sep 17 00:00:00 2001 From: Papa Smurf Date: Mon, 29 Jan 2024 15:17:14 +0000 Subject: [PATCH 1/2] feat: adds accredited investor restriction to backed token --- src/constants/tokenRestrictions.tsx | 5 ++++- src/constants/tokens.ts | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/constants/tokenRestrictions.tsx b/src/constants/tokenRestrictions.tsx index e15f5e91..6cdd0902 100644 --- a/src/constants/tokenRestrictions.tsx +++ b/src/constants/tokenRestrictions.tsx @@ -1,6 +1,6 @@ import { SupportedChainId } from './chains' import TokenRestrictionCache from './TokenRestrictionLookupTable' -import { EURS, OUT2 } from './tokens' +import { EURS, OUT2, bIB01_MAINNET } from './tokens' export enum TOKEN_RESTRICTION_TYPE { NONE = -1, @@ -19,6 +19,9 @@ export const TOKEN_RESTRICTIONS: { [SupportedChainId.SEPOLIA]: { [EURS.address]: TOKEN_RESTRICTION_TYPE.ACCREDITED_INVESTOR, }, + [SupportedChainId.MAINNET]: { + [bIB01_MAINNET.address]: TOKEN_RESTRICTION_TYPE.ACCREDITED_INVESTOR, + }, } if (!process.env.REACT_APP_SUMSUB_ACCREDITED_INVESTOR_FORM_URL) { diff --git a/src/constants/tokens.ts b/src/constants/tokens.ts index 3c504e76..a6319150 100644 --- a/src/constants/tokens.ts +++ b/src/constants/tokens.ts @@ -45,6 +45,13 @@ export const STETH_MAINNET = new Token( 'stETH', 'Liquid staked Ether 2.0' ) +export const bIB01_MAINNET = new Token( + SupportedChainId.MAINNET, + "0xca30c93b02514f86d5c86a6e375e3a330b435fb5", + 18, + 'bIB01', + 'Backed IB01 $ Treasury Bond 0-1yr' +) export const OUT1 = new Token( SupportedChainId.OPTIMISM_GOERLI, '0x32307adfFE088e383AFAa721b06436aDaBA47DBE', From 950e329f86e39b9ddec73aceadf225b30cb0d635 Mon Sep 17 00:00:00 2001 From: Papa Smurf Date: Mon, 29 Jan 2024 15:21:01 +0000 Subject: [PATCH 2/2] lint --- src/constants/tokenRestrictions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants/tokenRestrictions.tsx b/src/constants/tokenRestrictions.tsx index 6cdd0902..9b9a9c51 100644 --- a/src/constants/tokenRestrictions.tsx +++ b/src/constants/tokenRestrictions.tsx @@ -1,6 +1,6 @@ import { SupportedChainId } from './chains' import TokenRestrictionCache from './TokenRestrictionLookupTable' -import { EURS, OUT2, bIB01_MAINNET } from './tokens' +import { bIB01_MAINNET,EURS, OUT2 } from './tokens' export enum TOKEN_RESTRICTION_TYPE { NONE = -1,