migration: don't migrate resolved markets after all

This commit is contained in:
mantikoros 2022-04-18 14:57:24 -05:00
parent 9dd98affb7
commit be314b318f

View File

@ -31,7 +31,11 @@ async function recalculateContract(contractRef: DocRef, isCommit = false) {
const contract = contractDoc.data() as FullContract<DPM, Binary>
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')
return
}