Skip to content

Commit f2b0b2e

Browse files
committed
Update API and some doc
1 parent afbc54e commit f2b0b2e

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

src/constants/localization.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const DORA_KEYS = {
3232
}
3333

3434
export const DORA_LONG_SENTENCE = {
35-
"CONFIRM_MIGRATION_DISCLAIMER_1": "I understand it may take 24~48 hours until my tokens are available on the Dora Vota.",
35+
"CONFIRM_MIGRATION_DISCLAIMER_1": "I understand it may take 48~96 hours until my tokens are available on the Dora Vota.",
3636
"CONFIRM_MIGRATION_DISCLAIMER_2": "I understand that my ethDORA tokens will be sent to a black hole address for permanent destruction in the Bridge Smart Contract and irrecoverable.",
3737
"PENDING_MIGRATIONS_DESCRIPTION_I": 'This table lists all pending DORA token migrations from Ethereum to the Dora Vota. It refreshes periodically or upon a manual page reload.',
3838
"PENDING_MIGRATIONS_DESCRIPTION_II": 'Once a pending migration is listed, the migration will be completed within ~48 hours. Once the migration has been settled, it will be removed from this table during the next automatic update or when the page is manually refreshed.',
@@ -43,7 +43,7 @@ export const DORA_LONG_SENTENCE = {
4343
"MIGRATION_FAQ_WHAT_ADDRESS_CAN_INTERACT_ANSWER": "Only Ethereum addresses holding Ethereum ERC20 DORA can successfully interact with the token migration smart contract to proceed with the token migration.",
4444
"MIGRATION_FAQ_GAS_FEES_ANSWER": "Please note that a gas fee will be charged during the token migration process. The user will pay all gas fees incurred.",
4545
"MIGRATION_FAQ_GAS_FEES": "Who will be paying the migration gas fees?",
46-
"MIGRATION_FAQ_HOW_LONG_ANSWER": "The migration will be finished within 48 hours. Note that the migration time is subject to change. As more addresses complete token migration, expected token migration time will prolong.",
46+
"MIGRATION_FAQ_HOW_LONG_ANSWER": "The migration will be finished within 96 hours. Note that the migration time is subject to change. As more addresses complete token migration, expected token migration time will prolong.",
4747
"MIGRATION_FAQ_HOW_LONG": "How long should the migration take?",
4848
"MIGRATION_FAQ_CUSTODY_TOKEN": "Will the token migration portal custody my tokens?",
4949
"MIGRATION_FAQ_CUSTODY_TOKEN_ANSWER": "Please note that the token migration portal and the smart contracts are non-custodial. You will interact with the smart contract to receive DORA on the Dora Vota Chain. After migration, your ethDORA tokens will be burnt (sent to a null address).",

src/lib/wagmi.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,18 @@ export const WAGMI_SUPPORTED_CHAINS: Chain[] = [mainnet, sepolia];
1919
const { chains, publicClient, webSocketPublicClient } = configureChains(
2020
WAGMI_SUPPORTED_CHAINS,
2121
[
22-
// use infura api key
23-
infuraProvider({apiKey: import.meta.env.VITE_INFURA_API_KEY}),
22+
// use custom JSON-RPC API endpoints based on chain
23+
jsonRpcProvider({
24+
rpc: (chain) => {
25+
if (chain.id === mainnet.id) {
26+
return { http: import.meta.env.VITE_MAINNET_RPC_URL };
27+
}
28+
if (chain.id === sepolia.id) {
29+
return { http: import.meta.env.VITE_SEPOLIA_RPC_URL };
30+
}
31+
return null;
32+
},
33+
}),
2434
publicProvider(),
2535
].filter(isTruthy)
2636
);

src/views/MigrateForm/ConfirmedStep/MigrateFormConfirmedStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const MigrateFormConfirmedStep = () => {
118118
</Styled.StartedTag>
119119
</Styled.InlineRow>
120120
),
121-
value: "~40 hours",
121+
value: "~72 hours",
122122
},
123123
{
124124
key: 'address',

src/views/MigrateForm/PreviewStep/MigrateFormPreviewStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const MigrateFormPreviewStep = () => {
6767
label: 'Dora Vota settlement',
6868
value: (
6969
<Tag>
70-
~40 hours
70+
~72 hours
7171
</Tag>
7272
),
7373
},

src/views/TermsOfUsePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export const TermsOfUsePage = () => (
311311
network, and you are solely responsible for these fees and costs. Once you initiate a
312312
migration, it cannot be modified, reversed, or otherwise altered, and the originating
313313
Ethereum-based ERC-20 DORA tokens will be unrecoverable. While migration will typically be
314-
completed within 48 hours, delays may occur due to network congestion.
314+
completed within 96 hours, delays may occur due to network congestion.
315315
</p>
316316

317317
<h3>Your Responsibility in Token Migration</h3>

0 commit comments

Comments
 (0)