Update resolveMarket with numeric type
This commit is contained in:
parent
db2156f6b9
commit
ca7e9541d7
|
@ -45,6 +45,9 @@ export const resolveMarket = functions
|
|||
outcome !== 'CANCEL'
|
||||
)
|
||||
return { status: 'error', message: 'Invalid outcome' }
|
||||
} else if (outcomeType === 'NUMERIC') {
|
||||
if (isNaN(+outcome) && outcome !== 'CANCEL')
|
||||
return { status: 'error', message: 'Invalid outcome' }
|
||||
} else {
|
||||
return { status: 'error', message: 'Invalid contract outcomeType' }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user