diff --git a/public/futarchy_kleros.png b/public/futarchy_kleros.png
index 29862da..7aeff02 100644
Binary files a/public/futarchy_kleros.png and b/public/futarchy_kleros.png differ
diff --git a/src/app/(homepage)/components/AdvancedSection.tsx b/src/app/(homepage)/components/AdvancedSection.tsx
index 26760ee..89ac4fa 100644
--- a/src/app/(homepage)/components/AdvancedSection.tsx
+++ b/src/app/(homepage)/components/AdvancedSection.tsx
@@ -23,10 +23,9 @@ const AdvancedSection: React.FC = () => {
Check the opportunities if you want to LP or Trade specific outcome
tokens in Seer.
+ {/* TODO: update link */}
= ({
return (
onToggleMarket(name)}
className={clsx(
diff --git a/src/app/(homepage)/components/Chart/index.tsx b/src/app/(homepage)/components/Chart/index.tsx
index 5a0b6c5..a358600 100644
--- a/src/app/(homepage)/components/Chart/index.tsx
+++ b/src/app/(homepage)/components/Chart/index.tsx
@@ -81,7 +81,7 @@ const Chart: React.FC<{ data: IChartData[] }> = ({ data }) => {
const latestTimestamp = Date.now() / 1000;
// Generate common timestamps for all markets
- const timestamps = getTimestamps(1754407213, latestTimestamp);
+ const timestamps = getTimestamps(1751328000, latestTimestamp);
const seriesData: Record<
string,
diff --git a/src/app/(homepage)/components/Header/index.tsx b/src/app/(homepage)/components/Header/index.tsx
index 9cd8098..5589709 100644
--- a/src/app/(homepage)/components/Header/index.tsx
+++ b/src/app/(homepage)/components/Header/index.tsx
@@ -12,7 +12,7 @@ const Header: React.FC = () => {
return (
- Session 1 - Retro PGF Experiment
+ Session 1 - Movie Scores
@@ -21,7 +21,7 @@ const Header: React.FC = () => {
Trading Period:
- Until Monday 18th 23:59 UTC
+ 1 Month
@@ -41,7 +41,7 @@ const Header: React.FC = () => {
- If rated, what score would the gourmet committee give to the meal?
+ If watched, what score will Clément give to the movie?
diff --git a/src/app/(homepage)/components/ParticipateSection/index.tsx b/src/app/(homepage)/components/ParticipateSection/index.tsx
index c6d1ad0..177dd7e 100644
--- a/src/app/(homepage)/components/ParticipateSection/index.tsx
+++ b/src/app/(homepage)/components/ParticipateSection/index.tsx
@@ -1,9 +1,12 @@
import { Card } from "@kleros/ui-components-library";
+import { useIsParentResolved } from "@/hooks/useIsParentResolved";
+
import Mint from "./Mint";
import RedeemParentMarket from "./RedeemParentMarket";
const ParticipateSection: React.FC = () => {
+ const isParentResolved = useIsParentResolved();
return (
@@ -23,7 +26,7 @@ const ParticipateSection: React.FC = () => {
you want to predict.
-
+ {isParentResolved ? : null}
);
};
diff --git a/src/app/(homepage)/components/ProjectFunding/Details.tsx b/src/app/(homepage)/components/ProjectFunding/Details.tsx
index 73caded..313d184 100644
--- a/src/app/(homepage)/components/ProjectFunding/Details.tsx
+++ b/src/app/(homepage)/components/ProjectFunding/Details.tsx
@@ -6,20 +6,16 @@ import { IDetails } from "@/consts/markets";
const Details: React.FC
= ({ imdbURL, posterURL, summary }) => (
- {posterURL ? (
-

- ) : null}
+
- {imdbURL ? (
-
- IMDB
-
- ) : null}
+
+ IMDB
+
{summary}
diff --git a/src/app/apple-icon.png b/src/app/apple-icon.png
index 545ec43..c016424 100644
Binary files a/src/app/apple-icon.png and b/src/app/apple-icon.png differ
diff --git a/src/app/favicon.ico b/src/app/favicon.ico
index 68c5ed8..37d78d1 100644
Binary files a/src/app/favicon.ico and b/src/app/favicon.ico differ
diff --git a/src/app/icon.png b/src/app/icon.png
index 545ec43..b5d53fc 100644
Binary files a/src/app/icon.png and b/src/app/icon.png differ
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 253d9f7..ddd3334 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,5 +1,4 @@
import type { Metadata } from "next";
-import { ThemeProvider } from "next-themes";
import clsx from "clsx";
import localFont from "next/font/local";
@@ -12,6 +11,8 @@ import "./globals.css";
import Footer from "@/components/layout/Footer";
import Header from "@/components/layout/Header";
+import { ThemeProvider } from "next-themes";
+
const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
diff --git a/src/assets/png/retro_PGF.png b/src/assets/png/retro_PGF.png
deleted file mode 100644
index 9fb271b..0000000
Binary files a/src/assets/png/retro_PGF.png and /dev/null differ
diff --git a/src/assets/png/retro_PGF_dark.png b/src/assets/png/retro_PGF_dark.png
deleted file mode 100644
index a16b103..0000000
Binary files a/src/assets/png/retro_PGF_dark.png and /dev/null differ
diff --git a/src/components/layout/Header/Logo.tsx b/src/components/layout/Header/Logo.tsx
index 0369584..cb2129d 100644
--- a/src/components/layout/Header/Logo.tsx
+++ b/src/components/layout/Header/Logo.tsx
@@ -3,11 +3,10 @@ import React from "react";
import { useTheme } from "next-themes";
-import Image from "next/image";
+import clsx from "clsx";
import Link from "next/link";
-import _Logo from "@/assets/png/retro_PGF.png";
-import _LogoDark from "@/assets/png/retro_PGF_dark.png";
+import _Logo from "@/assets/svg/futarchy-logo.svg";
const Logo: React.FC = () => {
const { theme } = useTheme();
@@ -15,10 +14,11 @@ const Logo: React.FC = () => {
return (
-
diff --git a/src/consts/markets.ts b/src/consts/markets.ts
index 4607bf5..af9be72 100644
--- a/src/consts/markets.ts
+++ b/src/consts/markets.ts
@@ -1,23 +1,23 @@
import { Address } from "viem";
-export const projectsChosen = 2;
+export const projectsChosen = 5;
export const marketsParentOutcome = 4n;
export const parentMarket: Address =
- "0x582d1692198561a7594c5034e57340bc10621e86";
+ "0x6f7ae2815e7e13c14a6560f4b382ae78e7b1493e";
export const parentConditionId =
- "0x4fa791cbbddce9857e1331094273e3834a4a08df5ff4e947027ca3c5eb87751c";
+ "0x0d6c99d7eb9fa657236905b6cf464eaa938371ae5ce8cf153af450321377241d";
export const invalidMarket: Address =
- "0xBF9696d9a921a9F79f3d6f07556Fb7E7052a0B1D";
+ "0x45F2d1Bfa638E0A5f04dFacAAdbDbd0c2044eae8";
-export const endTime: number = 1755561599;
+export const endTime: number = 1760343107;
export interface IDetails {
- imdbURL?: string;
- posterURL?: string;
+ imdbURL: string;
+ posterURL: string;
summary: string;
}
@@ -37,83 +37,337 @@ export interface IMarket {
export const markets: Array
= [
{
- name: "Armenian lentil soup by chef Carl and Sharfy",
+ name: "Judge Dredd (1995)",
color: "#E6194B",
- upToken: "0x4d14D2c9cfa9Fbad1a2c37e861613B39811b5930",
- downToken: "0x1e28C4aA38b58075995303AB65f43351381F44e5",
- underlyingToken: "0xA208E85696Cd7723e7FFBf7394977929ecb848eE",
+ upToken: "0x0ee25eb2e22c01fa832dd5fea5637fba4cd5e870",
+ downToken: "0x4abea4bf9e35f4e957695374c388cee9f83ca1d0",
+ underlyingToken: "0xb72a1271caa3d84d3fbbbcbb0f63ee358b94f96a",
minValue: 0,
- maxValue: 10,
+ maxValue: 100,
precision: 1,
- marketId: "0x966A88Fb357FAc86004beB9618Fb76B39aaD146d",
+ marketId: "0x105d957043ee12f7705efa072af11e718f8c5b83",
conditionId:
- "0x1998e68781b600d412d5e7dc5f5600a1fe061020cb08b793391faf08cd4551d3",
+ "0x3d963acd72df546f58bf4ea76fda6957c830e6e3f8965517c396fc76dc2c08a3",
details: {
- summary: "Meal prepared by chef Carl and Sharfy on Tuesday 28th of July.",
+ imdbURL:
+ "https://www.imdb.com/title/tt0113492/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_judge%2520dredd",
+ posterURL:
+ "https://resizing.flixster.com/BsX7kI5BwBsc9xSQPEt5ddA3PI4=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p16918_p_v8_ae.jpg",
+ summary:
+ "In a dystopian future, Joseph Dredd, the most famous Judge (a police officer with instant field judiciary powers), is convicted for a crime he did not commit and must face his murderous counterpart.",
},
},
{
- name: "Rests by chef Nidhi",
+ name: "Bacurau (2019)",
color: "#3CB44B",
- upToken: "0xAc0d139040CA273348b87fA7cE5a29313e71DdC3",
- downToken: "0x6f3d0aF35C1593659db3f53D51399D58B8729f43",
- underlyingToken: "0x9D92FD3E34b05110988F7e69ee1C8980016aA6C4",
+ upToken: "0x028ec9938471bbad5167c2e5281144a94d1acbe9",
+ downToken: "0x53f82c3f6836dcba9d35450d906286a6ea089a26",
+ underlyingToken: "0xcb1f243baaf93199742e09dc98b16fc8b714b67c",
minValue: 0,
- maxValue: 10,
+ maxValue: 100,
precision: 1,
- marketId: "0xbD77A9454f4dBB99a22eEa1FEbd4a0380f9Ff5B7",
+ marketId: "0x68af0afe82dda5c9c26e6a458a143caad35708d6",
conditionId:
- "0xe164ff8c0eb2ce35e7577c834450b0f7c5a400384bbaac608614f0b6234b5d7f",
+ "0xa4cc97a4e4f6e02c546a5b3bb49e2c411dcb4c6dcd478cef9cd0c86605c59878",
details: {
- summary: "Meal prepared by chef Nidhi on Thursday 29th of July.",
+ imdbURL:
+ "https://www.imdb.com/title/tt2762506/?ref_=nv_sr_srsg_0_tt_7_nm_1_in_0_q_bacura",
+ posterURL:
+ "https://resizing.flixster.com/MUNwK1o6mdxwkgj-2v86bWf6xXM=/206x305/v2/https://resizing.flixster.com/-cGVSNCtYaLQDwteIiI9LUMoqJ0=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzL2Y3NWE5YWNjLTRlNzktNGEzYi05NTg5LWNhOTBiYTJlODM1OC53ZWJw",
+ summary:
+ "After the death of her grandmother, Teresa comes home to her matriarchal village in a near-future Brazil to find a succession of sinister events that mobilizes all of its residents.",
},
},
{
- name: "Crêpes by chef Clément",
+ name: "The Hitchhiker's Guide to the Galaxy (2005)",
color: "#FFA500",
- upToken: "0xa12B6c17068BbeD4D67898FbC9630B5A32e02319",
- downToken: "0x34802E9d1C06b846d4B6b3e56FfA2Bde4259E582",
- underlyingToken: "0x73ADB9f2907839833A96721b41AEAE4Ba37BfC09",
+ upToken: "0xad2248b8eaa3e3a405c1ba79dd436947f8b427df",
+ downToken: "0xdd510abc6a848662371c3455717949035cc24019",
+ underlyingToken: "0xfb06c25e59302d8a0318d6df41a2f29deeea1c8a",
minValue: 0,
- maxValue: 10,
+ maxValue: 100,
precision: 1,
- marketId: "0xF681F411466bdBDA81384Da94C9FFD4D53e807e4",
+ marketId: "0xfdd8af90af2722d5fe39adf1002fbd069b8a76c0",
conditionId:
- "0xa656847808341964a1223418a18b519df76566b48ee32c65d0a30897284f41cf",
+ "0xe97f19928d4143377d3cb97043c90408ccb9c51788447f42d2df9d65694c8171",
details: {
- summary: "Meal prepared by chef Clément on Friday 30th of July.",
+ imdbURL:
+ "https://www.imdb.com/title/tt0371724/?ref_=nv_sr_srsg_0_tt_7_nm_1_in_0_q_the%2520hitch",
+ posterURL:
+ "https://resizing.flixster.com/otfSVWc26cetfV0acq5Z5-E9A60=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p35755_p_v8_am.jpg",
+ summary: `Mere seconds before the Earth is to be demolished by an alien construction crew, journeyman Arthur Dent is swept off the planet by his friend Ford Prefect, a researcher penning a new edition of "The Hitchhiker's Guide to the Galaxy."`,
},
},
{
- name: "Takeout Sandwiches",
+ name: "Everything, Everywhere, All At Once (2022)",
color: "#911EB4",
- upToken: "0x808000c9001BE6665F9Aa2Ac608C908830DFD0bC",
- downToken: "0xC418B2885925Dfe063BdAa0ad801104788a5105F",
- underlyingToken: "0x7cf8005B84ea5413f339Cdc711F918a834A52110",
+ upToken: "0xfa020fcd05e0b91dae83a2a08c5b5533edf8c851",
+ downToken: "0x372d0798ffe8c3aa982a15258c0fea22c6a768df",
+ underlyingToken: "0xe85d556d1aaae2f6027336e468e9c981251a4bef",
minValue: 0,
- maxValue: 10,
+ maxValue: 100,
precision: 1,
- marketId: "0x93D5F295f714f4b425E3E74523eD6FDF75754B1a",
+ marketId: "0x1f2e76d66047e7f8e0deea373a0c04ffecab31df",
conditionId:
- "0xeed90eb06cd31126b544abb589b320107b4aae29fc19562b01764ba6a056add2",
+ "0xdc8f8277da182ee2d5293c754a1cfb8d3761720259cf17a65df61b7cb6983721",
details: {
- summary: "Takeout sandwiches on Monday 4th of August.",
+ imdbURL: "https://www.imdb.com/title/tt6710474/?ref_=fn_all_ttl_1",
+ posterURL:
+ "https://resizing.flixster.com/I2Z0zDTKJdvO7Akh819HROIhZQ4=/206x305/v2/https://resizing.flixster.com/mx-agGjjsUK1QMyuv3AJhHI3hgo=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzA3ZjU2MGU1LWMxODItNDlkMC1hYzJhLTY2YzMwOGZkMDhiZi5qcGc=",
+ summary:
+ "A middle-aged Chinese immigrant is swept up into an insane adventure in which she alone can save existence by exploring other universes and connecting with the lives she could have led.",
},
},
{
- name: "Indian-Spanish fusion by Nidhi/Carlos/David.",
+ name: "12 angry men (1957)",
color: "#46F0F0",
- upToken: "0x2D14505D0551F58236469c09945d9114aFF22bdc",
- downToken: "0x4A82570C62f57C25228D694a1616C17B1e2fd894",
- underlyingToken: "0x81b1d03fD5Ca06A801ECa2259446D2c9b2237d1C",
+ upToken: "0x7ee3806d16dc6a76bef2b11880b70cc70f74fa1a",
+ downToken: "0x34f8572eab463606a014c37ff68b78ac9361cacc",
+ underlyingToken: "0xb3933fd994af5db7ae985a0d62ed2dda918a839b",
minValue: 0,
- maxValue: 10,
+ maxValue: 100,
precision: 1,
- marketId: "0xe93b7cE7911B16f5E72C2Bb347fBcE8f81BAc69F",
+ marketId: "0x2338ca7d59b7e15bd03dd81cf5f5bb59b6c6c6d4",
conditionId:
- "0xaffd86c9d68bf40f00a54e97709f37d2cb937ae3e406553911be1779174fec71",
+ "0xf857ab39ef39d99f00d38ab07a5676406dfd5382f6d2177c44642e147d8dd0ad",
details: {
- summary: "Meal prepared by Nidhi/Carlos/David on Tuesday 5th of August.",
+ imdbURL:
+ "https://www.imdb.com/title/tt0050083/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_12%2520angry",
+ posterURL:
+ "https://resizing.flixster.com/FDNKxkwCqhqdzh-IvaGBfzqRb74=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p2084_p_v8_ar.jpg",
+ summary:
+ "The jury in a New York City murder trial is frustrated by a single member whose skeptical caution forces them to more carefully consider the evidence before jumping to a hasty verdict.",
+ },
+ },
+ {
+ name: "Alien (1979)",
+ color: "#BFEF45",
+ upToken: "0x37e70bae5e87327feece73a7c227446571f92137",
+ downToken: "0x31e3d82a613e5aeea7c3a65c3d657cacaaaf2674",
+ underlyingToken: "0x6d0407b5ae419fdd92ffdc64abf04c5f28950e02",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0x9a274ea86665d872fc58c8f26fd97a18b844c6ac",
+ conditionId:
+ "0x8054990ae8221c8a08581381a0d2e3e5f23144a4d18a2398858be52dd94cc8c9",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt0078748/?ref_=nv_sr_srsg_3_tt_8_nm_0_in_0_q_alien",
+ posterURL:
+ "https://resizing.flixster.com/5R4bkJZC-W_K-YjmIMKAXCbts5Y=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p2571_p_v8_aw.jpg",
+ summary:
+ "After investigating a mysterious transmission of unknown origin, the crew of a commercial spacecraft encounters a deadly lifeform.",
+ },
+ },
+ {
+ name: "Demolition Man (1993)",
+ color: "#F032E6",
+ upToken: "0x53a9011c5570bfb8148954c4f49a6625dc44077b",
+ downToken: "0x64974d3bf944fafec6fa19a900f3679a716b3a86",
+ underlyingToken: "0x20025021e440edd39d486f3c6a1d7adb9c269faf",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0xc25af7d4a5cb36bb3ce9faf652a5f7f989a1d57a",
+ conditionId:
+ "0xe35db6fb9992ab689e21751f036ccc9a8548b71dec3089874cf4a19a13cd34bb",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt0106697/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_demolition%2520man",
+ posterURL:
+ "https://resizing.flixster.com/e3iHOpnnUZKRPz_xHJVoLz8TkGM=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p15098_p_v10_ab.jpg",
+ summary:
+ "A police officer is brought out of suspended animation in prison to pursue an old ultra-violent nemesis who is loose in a non-violent future society.",
+ },
+ },
+ {
+ name: "Barbie (2023)",
+ color: "#FFE119",
+ upToken: "0xaed0fad91e7149ec84bb4d0a2a77be819169275f",
+ downToken: "0x044e1b6d8aacbda5699423578bd200484f7473c3",
+ underlyingToken: "0x67d0f938ea12e7e30b8ccc24dd031d656cc3927d",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0xd31d05158722f64b6a49e25bccc47d3203eecbe9",
+ conditionId:
+ "0x3c102db4f274983b648bd27a4092866e1b81dbc08b8738a5c694a8d8c3948a81",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt1517268/?ref_=nv_sr_srsg_1_tt_6_nm_1_in_0_q_barbie",
+ posterURL:
+ "https://resizing.flixster.com/r409CsU-O1gEcAP0VtU6tDD9sKI=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p13472534_p_v8_am.jpg",
+ summary:
+ "Barbie and Ken are having the time of their lives in the seemingly perfect world of Barbie Land. However, when they get a chance to go to the outside world, they soon discover the joys and perils of living among regular humans.",
+ },
+ },
+ {
+ name: "Eduardo e Mônica (2020)",
+ color: "#4363D8",
+ upToken: "0x9d64a3e7e55880f3c8f9c584ed32397bb6f0b9f6",
+ downToken: "0xe9d025d3cbd783d6a92626b650a32f7cbaca0e7d",
+ underlyingToken: "0x58ce7a53abeca1db90cec0e6b7dcbe3a36d986c4",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0x13d48a73811c01f574e1bfa4c58b7d95d2f590e4",
+ conditionId:
+ "0x2dcf754f36437ea0c298e5d27a0f3904dc2335a6e239b15a104f3ca7787c5926",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt8747460/?ref_=nv_sr_srsg_0_tt_2_nm_0_in_0_q_Eduardo%2520e%2520M%25C3%25B4nica%2520(2020)",
+ posterURL:
+ "https://resizing.flixster.com/IaXbRF4gIPh9jireK_4VCPNfdKc=/200x0/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p18824656_k_v8_aa.jpg",
+ summary:
+ "On an unusual day, a series of coincidences lead Eduardo to meet Monica at a party. Curiosity is aroused between the two and, despite not being alike, they fall madly in love. This love needs to mature and learn to overcome differences.",
+ },
+ },
+ {
+ name: "Thor: The Dark World (2013)",
+ color: "#008080",
+ upToken: "0x0c569fbc021119b778ea160efd718a5d592ef46c",
+ downToken: "0xd8d2dfe1912239451b5a4a0462006e95393f2151",
+ underlyingToken: "0x72ec9aade867b5b41705c6a83f66bc56485669b5",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0x878a332b5efc0a4bf983036beece050352baa73d",
+ conditionId:
+ "0xb223aad8405c321b761e3cba872e556c1de3a8b552a38249d626bc5aff7c6ba2",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt1981115/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_thor%2520the%2520dark",
+ posterURL:
+ "https://resizing.flixster.com/HtozfP_2NYit3_l7s-cbtsiuWps=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p9530219_p_v13_aa.jpg",
+ summary:
+ "When the Dark Elves attempt to plunge the universe into darkness, Thor must embark on a perilous and personal journey that will reunite him with doctor Jane Foster.",
+ },
+ },
+ {
+ name: "Talk to me (2022)",
+ color: "#9A6324",
+ upToken: "0xf3c17e909bd1f9367ecdc786d137465d7ee96b6a",
+ downToken: "0xf99be182b6b0e6d994509ecdced281b94100435f",
+ underlyingToken: "0x2b3a8ac53ba42da13f542a867d2859642fb1db44",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0xee4a77447069f32f555f3d75aaba18a4acb54ac4",
+ conditionId:
+ "0x715f9e8ccc373f85e2f9ec02bba8d23c5f87090b729750ca8adac5b0f969213e",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt10638522/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_talk%2520to%2520me",
+ posterURL:
+ "https://resizing.flixster.com/ejS3S8JOBfvZr_fQ_--6SyKKJpQ=/206x305/v2/https://resizing.flixster.com/9WxKriao1BmRamIaqig2k8hd5uM=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzL2YyZDQwYTM2LWZmYzEtNGUwMC05NzRkLTA3ODM0NThiNDE4Ny5qcGc=",
+ summary:
+ "When a group of friends discover how to conjure spirits using an embalmed hand, they become hooked on the new thrill, until one of them goes too far and unleashes terrifying supernatural forces.",
+ },
+ },
+ {
+ name: "Fast & Furious 6 (2013)",
+ color: "#FF1493",
+ upToken: "0x850d2ffa4475296cfbbd76247894a773e3b1be6c",
+ downToken: "0xb28c716f63b0dd272f62e25765a914baeebab8c2",
+ underlyingToken: "0x71c3df5edcab48cfb6a1a99255eff063f33b6265",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0x38a2923cc391b9cd926e5a2d07462dc7d189c407",
+ conditionId:
+ "0x27f341cdecacbd7ff0e4bb7b28add74ddaa388ff9f16bc749e2828a71fe6a5f6",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt1905041/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_fast%2520%2526%2520furious%25206",
+ posterURL:
+ "https://resizing.flixster.com/dJUU6CNK8IBSjsImW4nXCxxUVwU=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p9573130_p_v7_ab.jpg",
+ summary:
+ "Hobbs has Dominic and Brian reassemble their crew to take down a team of mercenaries, but Dominic unexpectedly gets sidetracked with facing his presumed deceased girlfriend, Letty.",
+ },
+ },
+ {
+ name: "Elysium (2013)",
+ color: "#808080",
+ upToken: "0xe9427a7a32daad2d29db2aad809b2a44060d8fc8",
+ downToken: "0x75b5cd86828f7c9009e30619a83b1b2da67f1342",
+ underlyingToken: "0xf52e0e144b73a0d5748bc53667efe3ba62fe5695",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0xc0dab34c6c2008391bdc742cec0bd0afb60d4d59",
+ conditionId:
+ "0x2d2ee6e67d4ffa2c2a14898a29d0afe3d3cdd8ad362811aad64770a90553cb3a",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt1535108/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_elysium",
+ posterURL:
+ "https://resizing.flixster.com/WlkdhZWddtMIv8U2Tmlb74rmBZ4=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p9360879_p_v10_ar.jpg",
+ summary:
+ "In the year 2154, the very wealthy live on a man-made space station while the rest of the population resides on a ruined Earth. A man takes on a mission that could bring equality to the polarized worlds.",
+ },
+ },
+ {
+ name: "Session 9 (2001)",
+ color: "#006400",
+ upToken: "0xe080c03ad6bc9f8fd5b45b5d3bf14ebcfa1ec0b5",
+ downToken: "0x76cce8491785789c2c5542f043ec6c35b12cd909",
+ underlyingToken: "0x1086a95c224dd586809a7f4d875b4f09d2ac9290",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0xa7cf69c4c93d2f6811a394e92320979c3cf86b37",
+ conditionId:
+ "0x6bc6c6fd532a02ec128e7c8dfe3e496295f677c861405a88b7da503f1882eef8",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt0261983/?ref_=nv_sr_srsg_0_tt_8_nm_0_in_0_q_session%25209",
+ posterURL:
+ "https://resizing.flixster.com/pMiw8blJew0YXddZivo7mtYlUDg=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p28177_p_v13_ac.jpg",
+ summary:
+ "Tensions rise within an asbestos cleaning crew as they work in an abandoned mental hospital with a horrific past that seems to be coming back.",
+ },
+ },
+ {
+ name: "Mamma Mia! (2008)",
+ color: "#20B2AA",
+ upToken: "0xfa82984fc8ddeb71fdb2e6e471f30995178ad5f0",
+ downToken: "0x5d528dbec7e37927d8af41bfb1b54e7641dd3ccb",
+ underlyingToken: "0x11ed86c399f455819f495cda1256e9b52afd0971",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0x96638d67ac5bc5f8223f9e2d60e92f4d8dcf3147",
+ conditionId:
+ "0x6e5b27306498d2917cdde6a3ea4791cd5a6fe8d8bf33d491c97524c431eda325",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt0795421/?ref_=nv_sr_srsg_0_tt_7_nm_1_in_0_q_mamma%2520mia",
+ posterURL:
+ "https://resizing.flixster.com/sD29k0EMFXDWY0DPiFoQsaxqDNU=/206x305/v2/https://resizing.flixster.com/-XZAfHZM39UwaGJIFWKAE8fS0ak=/v3/t/assets/p176344_p_v8_al.jpg",
+ summary:
+ "Donna, an independent hotelier, is preparing for her daughter's wedding with the help of two old friends. Meanwhile Sophie, the spirited bride, has a plan. She invites three men from her mother's past in hope of meeting her real father.",
+ },
+ },
+ {
+ name: "Ethereum (2022)",
+ color: "#FF8066",
+ upToken: "0xf8313845248f2392a39bdcd50be0781c7cf497c1",
+ downToken: "0x3befdfbd7c2a7139acafc3005369d30ff2cd8f9a",
+ underlyingToken: "0x78c2edb5639af0ed4351f001c728c9026820887e",
+ minValue: 0,
+ maxValue: 100,
+ precision: 1,
+ marketId: "0x002c70343ddef063d0ad8da91104934318800d30",
+ conditionId:
+ "0x2b9e73d1da8dc051ffe4972114f59e61ad1bfd65fda93d88bcfb6644ffb07f4b",
+ details: {
+ imdbURL:
+ "https://www.imdb.com/title/tt22069858/?ref_=nv_sr_srsg_2_tt_8_nm_0_in_0_q_ethereum",
+ posterURL:
+ "https://play-lh.googleusercontent.com/ARlYF4lUWeSFL9CgcKmHIesZwjsRjB0qkCKyIcLYckxYdrAkmvz1RKLQ_RFPRQuedofL8xOeCBtz-MIStG8=w240-h480-rw",
+ summary:
+ "Learn About the hottest cryptocurrency around, Ethereum. This amazing documentary explores the history of Ethereum, a decentralized, open-source blockchain with smart contract functionality.",
},
},
];
diff --git a/src/context/MarketContext.tsx b/src/context/MarketContext.tsx
index 17a108b..da25a63 100644
--- a/src/context/MarketContext.tsx
+++ b/src/context/MarketContext.tsx
@@ -17,12 +17,13 @@ import { useAlternateRoute } from "@/hooks/useAlternateRoute";
import { useBalance } from "@/hooks/useBalance";
import { IChartData } from "@/hooks/useChartData";
import { useGetWinningOutcomes } from "@/hooks/useGetWinningOutcomes";
+import { useIsParentResolved } from "@/hooks/useIsParentResolved";
import { useMarketPrice } from "@/hooks/useMarketPrice";
import { useMarketQuote } from "@/hooks/useMarketQuote";
import { isUndefined } from "@/utils";
-import { IMarket, parentConditionId } from "@/consts/markets";
+import { IMarket } from "@/consts/markets";
import { useCardInteraction } from "./CardInteractionContext";
@@ -144,6 +145,7 @@ const MarketContextProvider: React.FC = ({
if (
isUndefined(prediction) &&
!isUndefined(marketEstimate) &&
+ marketEstimate > 0 &&
isFinite(marketEstimate)
) {
setPrediction(
@@ -276,15 +278,7 @@ const MarketContextProvider: React.FC = ({
[winningOutcomes],
);
- const { data: parentWinningOutcomes } =
- useGetWinningOutcomes(parentConditionId);
- const isParentResolved = useMemo(
- () =>
- isUndefined(parentWinningOutcomes)
- ? false
- : parentWinningOutcomes.some((val) => val === true),
- [parentWinningOutcomes],
- );
+ const isParentResolved = useIsParentResolved();
const value = useMemo(
() => ({
diff --git a/src/hooks/useIsParentResolved.ts b/src/hooks/useIsParentResolved.ts
new file mode 100644
index 0000000..a35ef14
--- /dev/null
+++ b/src/hooks/useIsParentResolved.ts
@@ -0,0 +1,19 @@
+import { useMemo } from "react";
+
+import { useGetWinningOutcomes } from "@/hooks/useGetWinningOutcomes";
+
+import { isUndefined } from "@/utils";
+
+import { parentConditionId } from "@/consts/markets";
+
+export const useIsParentResolved = () => {
+ const { data: parentWinningOutcomes } =
+ useGetWinningOutcomes(parentConditionId);
+ return useMemo(
+ () =>
+ isUndefined(parentWinningOutcomes)
+ ? false
+ : parentWinningOutcomes.some((val) => val === true),
+ [parentWinningOutcomes],
+ );
+};