migration: don't migrate resolved markets after all
This commit is contained in:
parent
9dd98affb7
commit
be314b318f
|
@ -31,7 +31,11 @@ async function recalculateContract(contractRef: DocRef, isCommit = false) {
|
||||||
const contract = contractDoc.data() as FullContract<DPM, Binary>
|
const contract = contractDoc.data() as FullContract<DPM, Binary>
|
||||||
console.log('recalculating', contract.slug)
|
console.log('recalculating', contract.slug)
|
||||||
|
|
||||||
if (contract.mechanism !== 'dpm-2' || contract.outcomeType !== 'BINARY') {
|
if (
|
||||||
|
contract.mechanism !== 'dpm-2' ||
|
||||||
|
contract.outcomeType !== 'BINARY' ||
|
||||||
|
contract.resolution
|
||||||
|
) {
|
||||||
console.log('invalid candidate to port to cfmm')
|
console.log('invalid candidate to port to cfmm')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user