Tweak cors regex for vercel

This commit is contained in:
James Grugett 2022-07-07 18:54:23 -05:00
parent f171462d0d
commit f0a7b9591f
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ export const CORS_ORIGIN_MANIFOLD = new RegExp(
)
// Vercel deployments, used for testing.
export const CORS_ORIGIN_VERCEL = new RegExp(
'^https?://(?:[a-zA-Z0-9\\-]+\\.)*' + escapeRegExp('vercel.app') + '$'
'^https?://[a-zA-Z0-9\\-]+' + escapeRegExp('mantic.vercel.app') + '$'
)
// Any localhost server on any port
export const CORS_ORIGIN_LOCALHOST = /^http:\/\/localhost:\d+$/

View File

@ -168,8 +168,6 @@ export const getBinaryCpmmBetInfo = (
const { taker, maker } = fill
amount -= taker.amount
if (maker.matchedBetId === null) {
// Matched against pool.
cpmmState = maker.state
@ -182,6 +180,8 @@ export const getBinaryCpmmBetInfo = (
i++
}
amount -= taker.amount
if (floatingEqual(amount, 0)) break
}