Skip to content

Commit

Permalink
- change penalty time to 7 mins
Browse files Browse the repository at this point in the history
- fix time conversion
  • Loading branch information
starknetdev committed Oct 7, 2023
1 parent c6d4468 commit b90b4a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ui/src/app/components/CountDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const PenaltyCountDown = ({
? formatDiscoveryTime
: formatBattleTime;

const formatLastAction = convertTime(lastAction);
const formatLastAction = lastAction;
const targetTime = formatLastAction + penaltyTime * 1000;

useEffect(() => {
Expand Down Expand Up @@ -87,6 +87,8 @@ export const PenaltyCountDown = ({
.padStart(2, "0")}:${seconds.toString().padStart(2, "0")}`;
};

console.log(seconds);

return (
<div className="text-xs sm:text-lg self-center border px-1 border border-terminal-green">
{!dataLoading ? (
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const notificationAnimations = [

// ---- CONTRACT PARAMS
// Penalty time is 12 blocks, where each block is ~ 15 seconds
export const penaltyTime = 12 * 15;
export const penaltyTime = 420;
export const itemCharismaDiscount = 1;
export const itemBasePrice = 4;
export const itemMinimumPrice = 1;
Expand Down

0 comments on commit b90b4a5

Please sign in to comment.