Update bet type to explain dpm props
This commit is contained in:
parent
cd520e6cfe
commit
aef14e49bb
|
@ -14,19 +14,21 @@ export type Bet = {
|
||||||
probBefore: number
|
probBefore: number
|
||||||
probAfter: number
|
probAfter: number
|
||||||
|
|
||||||
sale?: {
|
|
||||||
amount: number // amount user makes from sale
|
|
||||||
betId: string // id of bet being sold
|
|
||||||
// TODO: add sale time?
|
|
||||||
}
|
|
||||||
|
|
||||||
fees: Fees
|
fees: Fees
|
||||||
|
|
||||||
isSold?: boolean // true if this BUY bet has been sold
|
|
||||||
isAnte?: boolean
|
isAnte?: boolean
|
||||||
isLiquidityProvision?: boolean
|
isLiquidityProvision?: boolean
|
||||||
isRedemption?: boolean
|
isRedemption?: boolean
|
||||||
challengeSlug?: string
|
challengeSlug?: string
|
||||||
|
|
||||||
|
// Props for bets in DPM contract below.
|
||||||
|
// A bet is either a BUY or a SELL that sells all of a previous buy.
|
||||||
|
isSold?: boolean // true if this BUY bet has been sold
|
||||||
|
// This field marks a SELL bet.
|
||||||
|
sale?: {
|
||||||
|
amount: number // amount user makes from sale
|
||||||
|
betId: string // id of BUY bet being sold
|
||||||
|
}
|
||||||
} & Partial<LimitProps>
|
} & Partial<LimitProps>
|
||||||
|
|
||||||
export type NumericBet = Bet & {
|
export type NumericBet = Bet & {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user