f48ae0170b
* sell bet * dev mode * single-pot no-refund payoff; bet selling * Increase default fetch size 25 -> 99 * Fix about page numbering * Don't flash no markets when loading on tag page. * Change Title to use body font * Make a bunch of predictions at once (#9) * Set up a page to make bulk predictions * Integrate preview into the same card * List created predictions * Make changes per James's comments * Increase the starting balance (#11) * Remove references to paying for our Mantic Dollars * Update simulator to use new calculations * Change simulator random to be evenly random again * Sell bet UI * Migrate contracts and bets script * Add comment to script * bets => trades; exclude sold bets * change sale formula * Change current value to uncapped sell value. * Disable sell button while selling * Update some 'bet' to 'trade' Co-authored-by: Austin Chen <akrolsmir@gmail.com> Co-authored-by: jahooma <jahooma@gmail.com>
29 lines
995 B
TypeScript
29 lines
995 B
TypeScript
import { getFirestore } from '@firebase/firestore'
|
|
import { initializeApp } from 'firebase/app'
|
|
|
|
export const isProd = process.env.NODE_ENV === 'production'
|
|
|
|
const firebaseConfig = isProd
|
|
? {
|
|
apiKey: 'AIzaSyDp3J57vLeAZCzxLD-vcPaGIkAmBoGOSYw',
|
|
authDomain: 'mantic-markets.firebaseapp.com',
|
|
projectId: 'mantic-markets',
|
|
storageBucket: 'mantic-markets.appspot.com',
|
|
messagingSenderId: '128925704902',
|
|
appId: '1:128925704902:web:f61f86944d8ffa2a642dc7',
|
|
measurementId: 'G-SSFK1Q138D',
|
|
}
|
|
: {
|
|
apiKey: 'AIzaSyBoq3rzUa8Ekyo3ZaTnlycQYPRCA26VpOw',
|
|
authDomain: 'dev-mantic-markets.firebaseapp.com',
|
|
projectId: 'dev-mantic-markets',
|
|
storageBucket: 'dev-mantic-markets.appspot.com',
|
|
messagingSenderId: '134303100058',
|
|
appId: '1:134303100058:web:27f9ea8b83347251f80323',
|
|
measurementId: 'G-YJC9E37P37',
|
|
}
|
|
|
|
// Initialize Firebase
|
|
export const app = initializeApp(firebaseConfig)
|
|
export const db = getFirestore(app)
|