Background:
Proposal:
Implementation:
All numeric/date contracts are typical CPMMMulti
Introduce a new Numeric type to determine display logic (and to be able compute expectation quickly)
export type Numeric = {
displayType: "numeric" | "date"
bucketing: "range" | "discrete"
scale: "linear" | "log"
buckets: number[]
}
export type CPMMNumeric = Contract & CPMMMulti & Numeric
/*
if bucketing is "discrete":
first bucket = buckets[0], corresponds to answers[0]
if bucketing is "range":
first bucket = [buckets[0], buckets[1])
second bucket = [buckets[1], buckets[2])
last bucket = [buckets[n-1], buckets[n]]
*/
Create flow
Market page
Market cards / Browse
post bet logic