diff --git a/src/views/Governance/Proposals/index.tsx b/src/views/Governance/Proposals/index.tsx index 25976eea3..663e1af6c 100644 --- a/src/views/Governance/Proposals/index.tsx +++ b/src/views/Governance/Proposals/index.tsx @@ -91,7 +91,7 @@ export const ProposalPage = () => { )} {pending && proposalDetails.startDate ? ( - `Voting Starts in ${DateTime.fromJSDate(proposalDetails.startDate).toRelative({ + `Voting Starts ${DateTime.fromJSDate(proposalDetails.startDate).toRelative({ base: DateTime.fromJSDate(currentBlockTime), })}` ) : proposalDetails.status === "Succeeded" ? ( diff --git a/src/views/Range/RangeChart.tsx b/src/views/Range/RangeChart.tsx index c6fa88e83..95b7f3056 100644 --- a/src/views/Range/RangeChart.tsx +++ b/src/views/Range/RangeChart.tsx @@ -123,7 +123,9 @@ const RangeChart = (props: { Upper Range @@ -132,7 +134,9 @@ const RangeChart = (props: { {label === "now" && ( <> diff --git a/src/views/Range/index.tsx b/src/views/Range/index.tsx index 3d490c143..fbfc77fb4 100644 --- a/src/views/Range/index.tsx +++ b/src/views/Range/index.tsx @@ -95,7 +95,13 @@ export const Range = () => { ? parseBigNumber(upperMaxPayout, 9) : parseBigNumber(rangeData.high.capacity, 9); - const maxCapacity = sellActive ? lowerMaxCapacity : upperMaxCapacity; + const maxCapacity = sellActive + ? rangeData.low.active + ? lowerMaxCapacity + : 0 + : rangeData.high.active + ? upperMaxCapacity + : 0; useEffect(() => { if (reserveAmount && ohmAmount) {