From 272e2ee936d156f2a514aaa8f098d0b1fa95f2bf Mon Sep 17 00:00:00 2001 From: justcool393 Date: Mon, 21 Nov 2022 15:08:29 -0800 Subject: [PATCH] sneed (rename procoins to marseybux) (#472) * sneed (rename procoins to marseybux) * literally unusable Co-authored-by: TLSM --- files/classes/user.py | 10 +++---- files/helpers/const.py | 4 +-- files/helpers/cron.py | 18 ++++++------ files/helpers/regex.py | 2 +- files/helpers/roulette.py | 6 ++-- files/helpers/slots.py | 4 +-- files/routes/admin.py | 6 ++-- files/routes/awards.py | 4 +-- files/routes/casino.py | 28 +++++++++---------- files/routes/hats.py | 4 +-- files/routes/settings.py | 10 +++---- files/routes/users.py | 31 ++++++++++----------- files/templates/admin/admin_home.html | 2 +- files/templates/casino/game_screen.html | 16 +++++------ files/templates/casino/roulette_screen.html | 8 +++--- files/templates/comments.html | 2 +- files/templates/errors/patron.html | 2 +- files/templates/hats.html | 4 +-- files/templates/header.html | 10 +++---- files/templates/modals/award.html | 4 +-- files/templates/settings/personal.html | 2 +- files/templates/settings/security.html | 4 +-- files/templates/shop.html | 8 +++--- files/templates/userpage.html | 12 ++++---- schema.sql | 4 +-- 25 files changed, 101 insertions(+), 104 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 7aae028c70..00b20cf9ed 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -113,7 +113,7 @@ class User(Base): login_nonce = Column(Integer, default=0) coins = Column(Integer, default=0) truescore = Column(Integer, default=0) - procoins = Column(Integer, default=0) + marseybux = Column(Integer, default=0) mfa_secret = deferred(Column(String)) is_private = Column(Boolean, default=False) stored_subscriber_count = Column(Integer, default=0) @@ -175,7 +175,7 @@ class User(Base): if currency == 'coins': g.db.query(User).filter(User.id == self.id).update({ User.coins: User.coins + amount }) else: - g.db.query(User).filter(User.id == self.id).update({ User.procoins: User.procoins + amount }) + g.db.query(User).filter(User.id == self.id).update({ User.marseybux: User.marseybux + amount }) g.db.flush() @@ -192,11 +192,11 @@ class User(Base): if not should_check_balance or account_balance >= amount: g.db.query(User).filter(User.id == self.id).update({ User.coins: User.coins - amount }) succeeded = True - elif currency == 'procoins': - account_balance = in_db.procoins + elif currency == 'marseybux': + account_balance = in_db.marseybux if not should_check_balance or account_balance >= amount: - g.db.query(User).filter(User.id == self.id).update({ User.procoins: User.procoins - amount }) + g.db.query(User).filter(User.id == self.id).update({ User.marseybux: User.marseybux - amount }) succeeded = True if succeeded: g.db.flush() diff --git a/files/helpers/const.py b/files/helpers/const.py index 5fea1f17bd..d3b60ee34f 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -283,7 +283,7 @@ PERMS = { # Minimum admin_level to perform action. } FEATURES = { - 'PROCOINS': True, + 'MARSEYBUX': True, 'AWARDS': True, 'CHAT': True, 'PINS': True, @@ -1368,7 +1368,7 @@ if SITE_NAME == 'PCM': AWARDS_DISABLED.remove('ghost') elif SITE_NAME == 'WPD': AWARDS_DISABLED.remove('lootbox') -if not FEATURES['PROCOINS']: +if not FEATURES['MARSEYBUX']: AWARDS_DISABLED.append('benefactor') AWARDS2 = {x: AWARDS[x] for x in AWARDS if x not in AWARDS_DISABLED} diff --git a/files/helpers/cron.py b/files/helpers/cron.py index fc3549fe8d..687b9b3165 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -119,10 +119,10 @@ def _give_monthly_marseybux_task(): emails = [x['email'] for x in requests.get(f'https://api.gumroad.com/v2/products/{GUMROAD_ID}/subscribers', data=data, timeout=5).json()["subscribers"]] - def give_procoins(u): - procoins_reward = procoins_li[u.patron] - u.pay_account('procoins', procoins_reward) - send_repeatable_notification(u.id, f"@AutoJanny has given you {procoins_reward} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).") + def give_marseybux(u): + marseybux_reward = marseybux_li[u.patron] + u.pay_account('marseybux', marseybux_reward) + send_repeatable_notification(u.id, f"@AutoJanny has given you {marseybux_reward} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).") for badge in g.db.query(Badge).filter(Badge.badge_id > 20, Badge.badge_id < 28).all(): g.db.delete(badge) @@ -130,7 +130,7 @@ def _give_monthly_marseybux_task(): for u in g.db.query(User).filter(User.patron > 0, User.patron_utc == 0).all(): g.db.add(u) if u.admin_level or u.id in GUMROAD_MESSY: - give_procoins(u) + give_marseybux(u) elif u.email and u.is_activated and u.email.lower() in emails: data = {'access_token': GUMROAD_TOKEN, 'email': u.email} try: @@ -147,7 +147,7 @@ def _give_monthly_marseybux_task(): tier = tiers[response["variants_and_quantity"]] u.patron = tier badge_grant(badge_id=20+tier, user=u, notify=False) - give_procoins(u) + give_marseybux(u) else: u.patron = 0 @@ -173,9 +173,9 @@ def _give_monthly_marseybux_task_kofi(): u.patron = 0 continue - procoins_reward = procoins_li[u.patron] - u.pay_account('procoins', procoins_reward) - send_repeatable_notification(u.id, f"@AutoJanny has given you {procoins_reward} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).") + marseybux_reward = marseybux_li[u.patron] + u.pay_account('marseybux', marseybux_reward) + send_repeatable_notification(u.id, f"@AutoJanny has given you {marseybux_reward} Marseybux for the month of {month}! You can use them to buy awards in the [shop](/shop).") ma = ModAction( kind="monthly", diff --git a/files/helpers/regex.py b/files/helpers/regex.py index fc3c2a733a..a368604770 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -92,7 +92,7 @@ link_fix_regex = re.compile("(\[.*?\]\()(?!http|/)(.*?\))", flags=re.A) css_url_regex = re.compile('url\(\s*[\'"]?(.*?)[\'"]?\s*\)', flags=re.I|re.A) -procoins_li = (0,2500,5000,10000,25000,50000,100000,250000) +marseybux_li = (0,2500,5000,10000,25000,50000,100000,250000) linefeeds_regex = re.compile("([^\n])\n([^\n])", flags=re.A) diff --git a/files/helpers/roulette.py b/files/helpers/roulette.py index 6e9e1a05a4..f695b63414 100644 --- a/files/helpers/roulette.py +++ b/files/helpers/roulette.py @@ -176,10 +176,10 @@ def spin_roulette_wheel(): gambler = get_account(user_id) gambler_payout = payouts[user_id] coin_winnings = gambler_payout['coins'] - procoin_winnings = gambler_payout['procoins'] + procoin_winnings = gambler_payout['marseybux'] gambler.pay_account('coins', coin_winnings) - gambler.pay_account('procoins', procoin_winnings) + gambler.pay_account('marseybux', procoin_winnings) # Notify the winners. notification_text = f"Winning number: {number}\nCongratulations! One or more of your roulette bets paid off!\n" @@ -236,7 +236,7 @@ def determine_roulette_winners(number, bets): if not payouts.get(gambler_id): payouts[gambler_id] = { 'coins': 0, - 'procoins': 0 + 'marseybux': 0 } if not rewards_by_game_id.get(game_id): diff --git a/files/helpers/slots.py b/files/helpers/slots.py index d78df5c4e1..651e01a39c 100644 --- a/files/helpers/slots.py +++ b/files/helpers/slots.py @@ -126,7 +126,7 @@ def check_slots_command(v:User, u:User, c:Comment): if '!slotsmb' in body: command_word = '!slotsmb' - currency = 'procoins' + currency = 'marseybux' elif '!slots' in body: command_word = '!slots' currency = 'coins' @@ -151,7 +151,7 @@ def check_slots_command(v:User, u:User, c:Comment): abort(400, f"Wager must be 100 {currency} or more") return - if (currency == "coins" and wager > u.coins) or (currency == "procoins" and wager > u.procoins): + if (currency == "coins" and wager > u.coins) or (currency == "marseybux" and wager > u.marseybux): if v.id == u.id: abort(400, f"Not enough {currency} to make that bet") return diff --git a/files/routes/admin.py b/files/routes/admin.py index ab2cc0cdf7..eddded6a23 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -24,7 +24,7 @@ from .front import frontlist def kippy(v): if SITE != 'pcmemes.net': abort(404) kippy = get_account(KIPPY_ID) - kippy.pay_account('procoins', 10000) + kippy.pay_account('marseybux', 10000) g.db.add(kippy) return '10k marseybux printed!' @@ -88,7 +88,7 @@ def merge(v, id1, id2): g.db.add(exile) g.db.flush() - for kind in ('comment_count', 'post_count', 'winnings', 'received_award_count', 'coins_spent', 'lootboxes_bought', 'coins', 'truescore', 'procoins'): + for kind in ('comment_count', 'post_count', 'winnings', 'received_award_count', 'coins_spent', 'lootboxes_bought', 'coins', 'truescore', 'marseybux'): amount = getattr(user1, kind) + getattr(user2, kind) setattr(user1, kind, amount) setattr(user2, kind, 0) @@ -138,7 +138,7 @@ def merge_all(v, id): g.db.flush() for alt in user.alts_unique: - for kind in ('comment_count', 'post_count', 'winnings', 'received_award_count', 'coins_spent', 'lootboxes_bought', 'coins', 'truescore', 'procoins'): + for kind in ('comment_count', 'post_count', 'winnings', 'received_award_count', 'coins_spent', 'lootboxes_bought', 'coins', 'truescore', 'marseybux'): amount = getattr(user, kind) + getattr(alt, kind) setattr(user, kind, amount) setattr(alt, kind, 0) diff --git a/files/routes/awards.py b/files/routes/awards.py index 694a16a974..6b3a18d9f1 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -68,7 +68,7 @@ def buy(v, award): if award == "grass": abort(403, "You can't buy the grass award with marseybux.") - charged = v.charge_account('procoins', price) + charged = v.charge_account('marseybux', price) if not charged: abort(400, "Not enough marseybux.") else: @@ -331,7 +331,7 @@ def award_thing(v, thing_type, id): author.patron = 1 if author.patron_utc: author.patron_utc += 2629746 else: author.patron_utc = int(time.time()) + 2629746 - author.pay_account('procoins', 2500) + author.pay_account('marseybux', 2500) badge_grant(user=v, badge_id=103) elif kind == "rehab": if author.rehab: author.rehab += 86400 diff --git a/files/routes/casino.py b/files/routes/casino.py index 8add368204..37edefc6c8 100644 --- a/files/routes/casino.py +++ b/files/routes/casino.py @@ -87,22 +87,20 @@ def pull_slots(v): try: currency = request.values.get("currency", "").lower() - if currency not in ('coins', 'procoins'): raise ValueError() + if currency not in ('coins', 'marseybux'): raise ValueError() except: - abort(400, "Invalid currency (expected 'coins' or 'procoins').") + abort(400, "Invalid currency (expected 'coins' or 'marseybux').") - friendly_currency_name = "coins" if currency == "coins" else "marseybux" - - if (currency == "coins" and wager > v.coins) or (currency == "procoins" and wager > v.procoins): - abort(400, f"Not enough {friendly_currency_name} to make that bet") + if (currency == "coins" and wager > v.coins) or (currency == "marseybux" and wager > v.marseybux): + abort(400, f"Not enough {currency} to make that bet") game_id, game_state = casino_slot_pull(v, wager, currency) success = bool(game_id) if success: - return {"game_state": game_state, "gambler": {"coins": v.coins, "procoins": v.procoins}} + return {"game_state": game_state, "gambler": {"coins": v.coins, "marseybux": v.marseybux}} else: - abort(400, f"Wager must be 5 {friendly_currency_name} or more") + abort(400, f"Wager must be 5 {currency} or more") # 21 @@ -120,7 +118,7 @@ def blackjack_deal_to_player(v): state = dispatch_action(v, BlackjackAction.DEAL) feed = get_game_feed('blackjack', g.db) - return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "procoins": v.procoins}} + return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "marseybux": v.marseybux}} except Exception as e: abort(400, str(e)) @@ -135,7 +133,7 @@ def blackjack_player_hit(v): try: state = dispatch_action(v, BlackjackAction.HIT) feed = get_game_feed('blackjack', g.db) - return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "procoins": v.procoins}} + return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "marseybux": v.marseybux}} except: abort(400, "Unable to hit.") @@ -150,7 +148,7 @@ def blackjack_player_stay(v): try: state = dispatch_action(v, BlackjackAction.STAY) feed = get_game_feed('blackjack', g.db) - return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "procoins": v.procoins}} + return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "marseybux": v.marseybux}} except: abort(400, "Unable to stay.") @@ -165,7 +163,7 @@ def blackjack_player_doubled_down(v): try: state = dispatch_action(v, BlackjackAction.DOUBLE_DOWN) feed = get_game_feed('blackjack', g.db) - return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "procoins": v.procoins}} + return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "marseybux": v.marseybux}} except: abort(400, "Unable to double down.") @@ -180,7 +178,7 @@ def blackjack_player_bought_insurance(v): try: state = dispatch_action(v, BlackjackAction.BUY_INSURANCE) feed = get_game_feed('blackjack', g.db) - return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "procoins": v.procoins}} + return {"success": True, "state": state, "feed": feed, "gambler": {"coins": v.coins, "marseybux": v.marseybux}} except: abort(403, "Unable to buy insurance.") @@ -194,7 +192,7 @@ def roulette_get_bets(v): bets = get_roulette_bets() - return {"success": True, "bets": bets, "gambler": {"coins": v.coins, "procoins": v.procoins}} + return {"success": True, "bets": bets, "gambler": {"coins": v.coins, "marseybux": v.marseybux}} @app.post("/casino/roulette/place-bet") @@ -224,6 +222,6 @@ def roulette_player_placed_bet(v): try: gambler_placed_roulette_bet(v, bet, which, amount, currency) bets = get_roulette_bets() - return {"success": True, "bets": bets, "gambler": {"coins": v.coins, "procoins": v.procoins}} + return {"success": True, "bets": bets, "gambler": {"coins": v.coins, "marseybux": v.marseybux}} except: abort(400, "Unable to place a bet.") diff --git a/files/routes/hats.py b/files/routes/hats.py index 998e42cbc0..0641efb734 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -48,10 +48,10 @@ def buy_hat(v, hat_id): abort(403, "This hat is not for sale.") if request.values.get("mb"): - charged = v.charge_account('procoins', hat.price) + charged = v.charge_account('marseybux', hat.price) if not charged: abort(400, "Not enough marseybux.") - hat.author.pay_account('procoins', hat.price * 0.1) + hat.author.pay_account('marseybux', hat.price * 0.1) currency = "marseybux" else: charged = v.charge_account('coins', hat.price) diff --git a/files/routes/settings.py b/files/routes/settings.py index bc1770e1a2..8b7802da79 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -281,7 +281,7 @@ def settings_personal_post(v): success = v.charge_account('coins', cost) if not success: - success = v.charge_account('procoins', cost) + success = v.charge_account('marseybux', cost) if not success: abort(403) if house == "None": house = '' @@ -358,16 +358,16 @@ def gumroad(v): tier = tiers[response["variants_and_quantity"]] if v.patron == tier: abort(400, f"{patron} rewards already claimed") - procoins = procoins_li[tier] - procoins_li[v.patron] - if procoins < 0: abort(400, f"{patron} rewards already claimed") + marseybux = marseybux_li[tier] - marseybux_li[v.patron] + if marseybux < 0: abort(400, f"{patron} rewards already claimed") existing = g.db.query(User.id).filter(User.email == v.email, User.is_activated == True, User.patron >= tier).first() if existing: abort(400, f"{patron} rewards already claimed on another account") v.patron = tier - v.pay_account('procoins', procoins) - send_repeatable_notification(v.id, f"You have received {procoins} Marseybux! You can use them to buy awards in the [shop](/shop).") + v.pay_account('marseybux', marseybux) + send_repeatable_notification(v.id, f"You have received {marseybux} Marseybux! You can use them to buy awards in the [shop](/shop).") g.db.add(v) diff --git a/files/routes/users.py b/files/routes/users.py index 6eeeae478e..80db701eb7 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -273,24 +273,23 @@ def get_coins(v, username): user = get_user(username, v=v, include_shadowbanned=False) return {"coins": user.coins} -def transfer_currency(v:User, username:str, currency_name:Literal['coins', 'procoins'], apply_tax:bool): +def transfer_currency(v:User, username:str, currency_name:Literal['coins', 'marseybux'], apply_tax:bool): MIN_CURRENCY_TRANSFER = 100 TAX_PCT = 0.03 - friendly_currency_name = 'marseybux' if currency_name == 'procoins' else 'coins' receiver = get_user(username, v=v, include_shadowbanned=False) - if receiver.id == v.id: abort(400, f"You can't transfer {friendly_currency_name} to yourself!") + if receiver.id == v.id: abort(400, f"You can't transfer {currency_name} to yourself!") amount = request.values.get("amount", "").strip() amount = int(amount) if amount.isdigit() else None - if amount is None or amount <= 0: abort(400, f"Invalid number of {friendly_currency_name}") - if amount < MIN_CURRENCY_TRANSFER: abort(400, f"You have to gift at least {MIN_CURRENCY_TRANSFER} {friendly_currency_name}") + if amount is None or amount <= 0: abort(400, f"Invalid number of {currency_name}") + if amount < MIN_CURRENCY_TRANSFER: abort(400, f"You have to gift at least {MIN_CURRENCY_TRANSFER} {currency_name}") tax = 0 if apply_tax and not v.patron and not receiver.patron and not v.alts_patron and not receiver.alts_patron: tax = math.ceil(amount*TAX_PCT) reason = request.values.get("reason", "").strip() - log_message = f"@{v.username} has transferred {amount} {friendly_currency_name} to @{receiver.username}" - notif_text = f":marseycapitalistmanlet: @{v.username} has gifted you {amount-tax} {friendly_currency_name}!" + log_message = f"@{v.username} has transferred {amount} {currency_name} to @{receiver.username}" + notif_text = f":marseycapitalistmanlet: @{v.username} has gifted you {amount-tax} {currency_name}!" if reason: if len(reason) > TRANSFER_MESSAGE_LENGTH_LIMIT: abort(400, f"Reason is too long, max {TRANSFER_MESSAGE_LENGTH_LIMIT} characters") @@ -298,11 +297,11 @@ def transfer_currency(v:User, username:str, currency_name:Literal['coins', 'proc log_message += f"\n\n> {reason}" if not v.charge_account(currency_name, amount): - abort(400, f"You don't have enough {friendly_currency_name}") + abort(400, f"You don't have enough {currency_name}") if not v.shadowbanned: - if currency_name == 'procoins': - receiver.pay_account('procoins', amount - tax) + if currency_name == 'marseybux': + receiver.pay_account('marseybux', amount - tax) elif currency_name == 'coins': receiver.pay_account('coins', amount - tax) else: @@ -311,7 +310,7 @@ def transfer_currency(v:User, username:str, currency_name:Literal['coins', 'proc if GIFT_NOTIF_ID: send_repeatable_notification(GIFT_NOTIF_ID, log_message) send_repeatable_notification(receiver.id, notif_text) g.db.add(v) - return {"message": f"{amount - tax} {friendly_currency_name} have been transferred to @{receiver.username}"} + return {"message": f"{amount - tax} {currency_name} have been transferred to @{receiver.username}"} @app.post("/@/transfer_coins") @limiter.limit(DEFAULT_RATELIMIT_SLOWER) @@ -321,12 +320,12 @@ def transfer_coins(v, username): return transfer_currency(v, username, 'coins', True) @app.post("/@/transfer_bux") -@feature_required('PROCOINS') +@feature_required('MARSEYBUX') @limiter.limit(DEFAULT_RATELIMIT_SLOWER) @is_not_permabanned @ratelimit_user() def transfer_bux(v, username): - return transfer_currency(v, username, 'procoins', False) + return transfer_currency(v, username, 'marseybux', False) @app.get("/leaderboard") @auth_required @@ -1108,9 +1107,9 @@ def settings_kofi(v): tier = kofi_tiers[transaction.amount] - procoins = procoins_li[tier] - v.pay_account('procoins', procoins) - send_repeatable_notification(v.id, f"You have received {procoins} Marseybux! You can use them to buy awards in the [shop](/shop).") + marseybux = marseybux_li[tier] + v.pay_account('marseybux', marseybux) + send_repeatable_notification(v.id, f"You have received {marseybux} Marseybux! You can use them to buy awards in the [shop](/shop).") g.db.add(v) if tier > v.patron: diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index 2387ad9b64..e220af5c8c 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -51,7 +51,7 @@
  • Permachudded Users
  • Currently Grassed Users
  • {%- endif %} - {% if FEATURES['PROCOINS'] and (not AEVANN_ID or v.id in (AEVANN_ID, CARP_ID, SNAKES_ID)) -%} + {% if FEATURES['MARSEYBUX'] and (not AEVANN_ID or v.id in (AEVANN_ID, CARP_ID, SNAKES_ID)) -%}
  • Patrons
  • {%- endif %} {% if v.admin_level >= PERMS['VIEW_ACTIVE_USERS'] %} diff --git a/files/templates/casino/game_screen.html b/files/templates/casino/game_screen.html index e8d501fbfa..df6fb5b022 100644 --- a/files/templates/casino/game_screen.html +++ b/files/templates/casino/game_screen.html @@ -54,8 +54,8 @@ document.getElementById("user-coins-amount").innerText = updated.coins; } - if (updated.procoins) { - document.getElementById("user-bux-amount").innerText = updated.procoins; + if (updated.marseybux) { + document.getElementById("user-bux-amount").innerText = updated.marseybux; } } @@ -64,7 +64,7 @@ const currency = document.querySelector( 'input[name="wagerCurrency"]:checked' ).value; - const genericCurrency = currency == 'marseybux' ? 'procoins' : 'coins'; + const genericCurrency = currency == 'marseybux' ? 'marseybux' : 'coins'; return { amount, currency: genericCurrency, localCurrency: currency }; } @@ -72,13 +72,13 @@ function disableWager() { document.getElementById("wagerAmount").disabled = true; document.getElementById("wagerCoins").disabled = true; - document.getElementById("wagerProcoins").disabled = true; + document.getElementById("wagerMarseybux").disabled = true; } function enableWager() { document.getElementById("wagerAmount").disabled = false; document.getElementById("wagerCoins").disabled = false; - document.getElementById("wagerProcoins").disabled = false; + document.getElementById("wagerMarseybux").disabled = false; } function updateResult(text, className) { @@ -162,7 +162,7 @@ const [biggestWinnerAllTime, biggestWinner24h, biggestLoser24h, biggestLoserAllTime] = [ 'biggestWinnerAllTime', 'biggestWinner24h', 'biggestLoser24h', 'biggestLoserAllTime' ].map(id => document.getElementById(id)); - const formatLocalCurrencyName = currency => ({ coins: 'coins', procoins: 'marseybux' })[currency]; + const formatLocalCurrencyName = currency => ({ coins: 'coins', marseybux: 'marseybux' })[currency]; biggestWinnerAllTime.innerHTML = ` ${leaderboardData.all_time.biggest_win.user}
    ${leaderboardData.all_time.biggest_win.amount} ${formatLocalCurrencyName(leaderboardData.all_time.biggest_win.currency)} @@ -386,9 +386,9 @@ coin - -