add liquidity: support pseudo numeric markets
This commit is contained in:
parent
1a6afaf44f
commit
218b18254c
|
@ -39,7 +39,8 @@ export const addLiquidity = functions.runWith({ minInstances: 1 }).https.onCall(
|
||||||
const contract = contractSnap.data() as Contract
|
const contract = contractSnap.data() as Contract
|
||||||
if (
|
if (
|
||||||
contract.mechanism !== 'cpmm-1' ||
|
contract.mechanism !== 'cpmm-1' ||
|
||||||
contract.outcomeType !== 'BINARY'
|
(contract.outcomeType !== 'BINARY' &&
|
||||||
|
contract.outcomeType !== 'PSEUDO_NUMERIC')
|
||||||
)
|
)
|
||||||
return { status: 'error', message: 'Invalid contract' }
|
return { status: 'error', message: 'Invalid contract' }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user