Allow environments to override the referral bonus
This commit is contained in:
parent
8793288dc8
commit
dcd2ccae1b
|
@ -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 = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user