fix import errors

This commit is contained in:
mantikoros 2022-05-09 17:14:00 -04:00
parent 5135135e79
commit 9fc9fc0dd6
2 changed files with 4 additions and 11 deletions

View File

@ -8,15 +8,12 @@ import {
FullContract, FullContract,
} from '../../common/contract' } from '../../common/contract'
import { User } from '../../common/user' import { User } from '../../common/user'
import { getLoanAmount, getNewMultiBetInfo } from '../../common/new-bet' import { getNewMultiBetInfo } from '../../common/new-bet'
import { Answer, MAX_ANSWER_LENGTH } from '../../common/answer' import { Answer, MAX_ANSWER_LENGTH } from '../../common/answer'
import { getContract, getValues } from './utils' import { getContract, getValues } from './utils'
import { sendNewAnswerEmail } from './emails' import { sendNewAnswerEmail } from './emails'
import { Bet } from 'common/bet' import { Bet } from 'common/bet'
import { import { hasUserHitManaLimit } from '../../common/calculate'
getContractBetMetrics,
hasUserHitManaLimit,
} from 'common/calculate'
export const createAnswer = functions.runWith({ minInstances: 1 }).https.onCall( export const createAnswer = functions.runWith({ minInstances: 1 }).https.onCall(
async ( async (

View File

@ -7,16 +7,12 @@ import {
getNewBinaryCpmmBetInfo, getNewBinaryCpmmBetInfo,
getNewBinaryDpmBetInfo, getNewBinaryDpmBetInfo,
getNewMultiBetInfo, getNewMultiBetInfo,
getLoanAmount,
} from '../../common/new-bet' } from '../../common/new-bet'
import { addObjects, removeUndefinedProps } from '../../common/util/object' import { addObjects, removeUndefinedProps } from '../../common/util/object'
import { Bet } from '../../common/bet' import { Bet } from '../../common/bet'
import { redeemShares } from './redeem-shares' import { redeemShares } from './redeem-shares'
import { Fees } from 'common/fees' import { Fees } from '../../common/fees'
import { import { hasUserHitManaLimit } from '../../common/calculate'
getContractBetMetrics,
hasUserHitManaLimit,
} from 'common/calculate'
export const placeBet = functions.runWith({ minInstances: 1 }).https.onCall( export const placeBet = functions.runWith({ minInstances: 1 }).https.onCall(
async ( async (