Tweak cors regex for vercel
This commit is contained in:
parent
f171462d0d
commit
f0a7b9591f
|
@ -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+$/
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user