Start off Atlas users with A$5000

This commit is contained in:
Austin Chen 2022-06-14 02:46:00 -07:00
parent 2dfe939656
commit 26bb228e90
3 changed files with 7 additions and 2 deletions

View File

@ -21,6 +21,7 @@ export const ATLAS_CONFIG: EnvConfig = {
adminEmails: [...PROD_CONFIG.adminEmails],
whitelistEmail: '',
moneyMoniker: 'A$',
startingBalance: 5000,
visibility: 'PRIVATE',
faviconPath: '/atlas/atlas-favicon.png',
navbarLogoPath: '',

View File

@ -19,6 +19,7 @@ export type EnvConfig = {
faviconPath?: string // Should be a file in /public
navbarLogoPath?: string
newQuestionPlaceholders: string[]
startingBalance?: number
}
type FirebaseConfig = {

View File

@ -1,3 +1,5 @@
import { ENV, ENV_CONFIG } from './envs/constants'
export type User = {
id: string
createdTime: number
@ -21,8 +23,9 @@ export type User = {
followedCategories?: string[]
}
export const STARTING_BALANCE = 1000
export const SUS_STARTING_BALANCE = 10 // for sus users, i.e. multiple sign ups for same person
export const STARTING_BALANCE = ENV_CONFIG.startingBalance ?? 1000
// for sus users, i.e. multiple sign ups for same person
export const SUS_STARTING_BALANCE = ENV_CONFIG.startingBalance ?? 10
export type PrivateUser = {
id: string // same as User.id