Allow environments to override the referral bonus

This commit is contained in:
Austin Chen 2022-07-18 23:29:32 -07:00
parent 8793288dc8
commit dcd2ccae1b
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ export type EnvConfig = {
// Currency controls // Currency controls
fixedAnte?: number fixedAnte?: number
startingBalance?: number startingBalance?: number
referralBonus?: number
} }
type FirebaseConfig = { type FirebaseConfig = {

View File

@ -45,7 +45,7 @@ export type User = {
export const STARTING_BALANCE = ENV_CONFIG.startingBalance ?? 1000 export const STARTING_BALANCE = ENV_CONFIG.startingBalance ?? 1000
// for sus users, i.e. multiple sign ups for same person // for sus users, i.e. multiple sign ups for same person
export const SUS_STARTING_BALANCE = ENV_CONFIG.startingBalance ?? 10 export const SUS_STARTING_BALANCE = ENV_CONFIG.startingBalance ?? 10
export const REFERRAL_AMOUNT = 500 export const REFERRAL_AMOUNT = ENV_CONFIG.referralBonus ?? 500
export type PrivateUser = { export type PrivateUser = {
id: string // same as User.id id: string // same as User.id
username: string // denormalized from User username: string // denormalized from User