ed5f69db7a
* Split BuyAmountInput out of AmountInput * Buy and sell tabs. Compute some sell info * In progress * BuyPanel & SellPanel with banner above that shows current shares and toggle button * Remove "Remaining balance" * Bring back 'Place a trade'. Tweaks * Sell shares cloud function. * Sell all shares by default. Switch back to buy if sell all your shares. * Cache your shares in local storage so sell banner doesn't flicker. * Compute sale value of shares with binary search to keep k constant. * Update bets table to show BUY or SELL * Fixes from Stephen's review * Don't allow selling more than max shares in cloud function * Use modal for sell shares on desktop. * Handle floating point precision in max shares you can sell.
24 lines
678 B
TypeScript
24 lines
678 B
TypeScript
import * as admin from 'firebase-admin'
|
|
|
|
admin.initializeApp()
|
|
|
|
// export * from './keep-awake'
|
|
export * from './place-bet'
|
|
export * from './resolve-market'
|
|
export * from './stripe'
|
|
export * from './sell-bet'
|
|
export * from './sell-shares'
|
|
export * from './create-contract'
|
|
export * from './create-user'
|
|
export * from './create-fold'
|
|
export * from './create-answer'
|
|
export * from './on-create-comment'
|
|
export * from './on-fold-follow'
|
|
export * from './on-fold-delete'
|
|
export * from './unsubscribe'
|
|
export * from './update-contract-metrics'
|
|
export * from './update-user-metrics'
|
|
export * from './backup-db'
|
|
export * from './change-user-info'
|
|
export * from './market-close-emails'
|