From 3c897242fcb96dd2487c04e8c28a8bda520b77cc Mon Sep 17 00:00:00 2001 From: kylehoang92 Date: Wed, 18 Dec 2024 08:57:53 +0700 Subject: [PATCH] feat: announcement banner on deposit/withdraw screens --- config.schema.json | 59 ++++++++++++++++++++++++++++++++++++++++++++ configs/mainnet.json | 23 +++++++++++++++-- 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/config.schema.json b/config.schema.json index 683a082..9a970fd 100644 --- a/config.schema.json +++ b/config.schema.json @@ -515,6 +515,65 @@ "description": "Indicates whether or not to show APR tooltip on Spot Pools page" } } + }, + "transfer_banner": { + "type": "object", + "description": "Config parameters to show banner for deposit and withdraw screens", + "properties": { + "no_longer_supported_tokens": { + "type": "array", + "description": "List of tokens are no longer supported", + "items": { + "type": "string" + } + }, + "temporary_disabled_transfer_tokens": { + "type": "object", + "description": "List of tokens for which deposits and withdrawals have been temporarily disabled", + "properties": { + ".*": { + "type": "object", + "required": ["token", "start"], + "properties": { + "token": { + "type": "string" + }, + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + } + } + } + }, + "temporary_disabled_bridges": { + "type": "object", + "description": "List of bridges for which deposits and withdrawals have been temporarily disabled", + "properties": { + ".*": { + "type": "object", + "required": ["chainIds", "start"], + "properties": { + "chainIds": { + "type": "array", + "description": "List of chains are temporary disabled", + "items": { + "type": "integer" + } + }, + "start": { + "type": "integer" + }, + "end": { + "type": "integer" + } + } + } + } + } + } } } } diff --git a/configs/mainnet.json b/configs/mainnet.json index 94b3eaf..a047030 100644 --- a/configs/mainnet.json +++ b/configs/mainnet.json @@ -500,5 +500,24 @@ "label_denom": "brdg/a02afc2c1edf77cc023eefa25fc036c184612faf9365cda9c1daa3b1675ebf8f", "target_denom": "brdg/a02afc2c1edf77cc023eefa25fc036c184612faf9365cda9c1daa3b1675ebf8f" } - ] -} \ No newline at end of file + ], + "transfer_banner": { + "no_longer_supported_tokens": [ + "aave.1.2.06af06", + "ankr.1.6.fd0433" + ], + "temporary_disabled_transfer_tokens": { + "aave.1.2.06af06": { + "start": "2024-11-20T08:00:00Z", + "end": "2024-12-20T08:00:00Z" + } + }, + "temporary_disabled_bridges": { + "9a016ce184a22dbf6c17daa59eb7d3140dbd1c54": { + "chainIds": [2], + "start": "2024-11-20T08:00:00Z", + "end": "2024-12-20T08:00:00Z" + } + } + } +}