瀏覽代碼

fix: cooldown (#1945)

guibescos 1 年之前
父節點
當前提交
3ec255a3a9
共有 1 個文件被更改,包括 2 次插入2 次删除
  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>
           )}
         </>