Skip to content

Commit e819439

Browse files
committed
feat(neuron-ui): update the warning in withdraw dialog.
1 parent df3eb0e commit e819439

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/neuron-ui/src/components/NervosDAO/WithdrawDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const WithdrawDialog = ({
7070
epochs <= BigInt(5)
7171
? t('nervos-dao.withdraw-alert', {
7272
epochs,
73-
nextLeftEpochs: epochs + BigInt(180),
73+
hours: epochs * BigInt(4),
7474
days: (epochs + BigInt(180)) / BigInt(6),
7575
})
7676
: ''

packages/neuron-ui/src/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
"minimal-fee-required": "The minimum deposit capacity is {{minimal}} CKB",
336336
"compensation-accumulated": "{{blockNumber}} blocks compensation accumulated",
337337
"blocks-left": "{{epochs}} epochs {{blocks}} blocks left(~{{days}} days)",
338-
"withdraw-alert": "Alert: these are only {{epochs}} epochs left before the next start withdrawing epoch number conforming to Nervos DAO, and it is possible that you have to do the withdraw after the next period(~{{days}}) due to the jam on CKB.",
338+
"withdraw-alert": "Warning: these are only {{epochs}} epochs (~ {{hours}} hours) left to the next deposit claim period. If your start withdrawing transaction is not confirmed before that, your deposit will be locked until the next period (~{{days}}). And you won’t get more compensation for the prolonged lock period.",
339339
"insufficient-period-alert-title": "Insufficient Period",
340340
"insufficient-period-alert-message": "Nervos DAO needs at least 4 epochs to handle your request."
341341
}

packages/neuron-ui/src/locales/zh.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
"minimal-fee-required": "存入金额应不少于 {{minimal}} CKB",
336336
"compensation-accumulated": "已累计 {{blockNumber}} 个块的锁定补贴",
337337
"blocks-left": " 还需等待 {{epochs}} epochs {{blocks}} 个块(~{{days}} 天)",
338-
"withdraw-alert": "风险提示:距离 NervosDAO 规定的最近一个允许提现 epoch 仅剩下 {{epochs}} 个 epoch,存在提现交易拥堵无法上链从而导致只能在下一个提现周期(约 {{days}} 天)的风险",
338+
"withdraw-alert": "风险提示:本补贴申请距离 Nervos DAO 规则允许的最近一个撤出周期仅剩下 {{epochs}} 个 epoch (约 {{hours}} 小时),存在交易拥堵无法上链从而导致只能在下一个撤出周期(约 {{days}} 天)撤出,且无法获得新增撤出周期期间补偿的风险。",
339339
"insufficient-period-alert-title": "未达到要求周期",
340340
"insufficient-period-alert-message": "Nervos DAO 要求您在至少 4 个 epochs 后执行此操作"
341341
}

0 commit comments

Comments
 (0)