Skip to content

Commit

Permalink
feat(neuron-ui): update the warning in withdraw dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 15, 2019
1 parent df3eb0e commit e819439
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const WithdrawDialog = ({
epochs <= BigInt(5)
? t('nervos-dao.withdraw-alert', {
epochs,
nextLeftEpochs: epochs + BigInt(180),
hours: epochs * BigInt(4),
days: (epochs + BigInt(180)) / BigInt(6),
})
: ''
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
"minimal-fee-required": "The minimum deposit capacity is {{minimal}} CKB",
"compensation-accumulated": "{{blockNumber}} blocks compensation accumulated",
"blocks-left": "{{epochs}} epochs {{blocks}} blocks left(~{{days}} days)",
"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.",
"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.",
"insufficient-period-alert-title": "Insufficient Period",
"insufficient-period-alert-message": "Nervos DAO needs at least 4 epochs to handle your request."
}
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
"minimal-fee-required": "存入金额应不少于 {{minimal}} CKB",
"compensation-accumulated": "已累计 {{blockNumber}} 个块的锁定补贴",
"blocks-left": " 还需等待 {{epochs}} epochs {{blocks}} 个块(~{{days}} 天)",
"withdraw-alert": "风险提示:距离 NervosDAO 规定的最近一个允许提现 epoch 仅剩下 {{epochs}} 个 epoch,存在提现交易拥堵无法上链从而导致只能在下一个提现周期(约 {{days}} 天)的风险",
"withdraw-alert": "风险提示:本补贴申请距离 Nervos DAO 规则允许的最近一个撤出周期仅剩下 {{epochs}} 个 epoch (约 {{hours}} 小时),存在交易拥堵无法上链从而导致只能在下一个撤出周期(约 {{days}} 天)撤出,且无法获得新增撤出周期期间补偿的风险。",
"insufficient-period-alert-title": "未达到要求周期",
"insufficient-period-alert-message": "Nervos DAO 要求您在至少 4 个 epochs 后执行此操作"
}
Expand Down

0 comments on commit e819439

Please sign in to comment.