Browse Source

fix: cooldown (#1945)

guibescos 1 năm trước cách đây
mục cha
commit
3ec255a3a9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      apps/staking/src/components/ProgramSection/index.tsx

+ 2 - 2
apps/staking/src/components/ProgramSection/index.tsx

@@ -210,13 +210,13 @@ const TokenOverview = ({
           {cooldown > 0n && (
             <div className="mt-2 text-xs text-neutral-500">
               <Tokens>{cooldown}</Tokens> end{" "}
-              {epochToDate(currentEpoch + 1n).toLocaleString()}
+              {epochToDate(currentEpoch + 2n).toLocaleString()}
             </div>
           )}
           {cooldown2 > 0n && (
             <div className="mt-2 text-xs text-neutral-500">
               <Tokens>{cooldown2}</Tokens> end{" "}
-              {epochToDate(currentEpoch + 2n).toLocaleString()}
+              {epochToDate(currentEpoch + 1n).toLocaleString()}
             </div>
           )}
         </>