mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-13 22:41:02 +00:00
Fix staking unbonding period display: correct era to days conversion
- Changed warning message calculation from ~{bondingDuration} days to ~{Math.floor(bondingDuration / 4)} days
- Correct conversion: 4 eras = 1 day (1 era = 6 hours)
- Example: 112 eras now correctly shows as ~28 days instead of ~112 days
- Location: src/components/staking/StakingDashboard.tsx:661
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -658,7 +658,7 @@ export const StakingDashboard: React.FC = () => {
|
|||||||
<Alert className="bg-yellow-900/20 border-yellow-500">
|
<Alert className="bg-yellow-900/20 border-yellow-500">
|
||||||
<AlertCircle className="h-4 w-4" />
|
<AlertCircle className="h-4 w-4" />
|
||||||
<AlertDescription className="text-sm">
|
<AlertDescription className="text-sm">
|
||||||
Unbonded tokens will be locked for {bondingDuration} eras (~{bondingDuration} days) before withdrawal.
|
Unbonded tokens will be locked for {bondingDuration} eras (~{Math.floor(bondingDuration / 4)} days) before withdrawal.
|
||||||
</AlertDescription>
|
</AlertDescription>
|
||||||
</Alert>
|
</Alert>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user