[PR #153] [MERGED] smp: simplify the economy: no taxes, fees, Treasury, bank, jobs or futures #154

Closed
opened 2026-11-03 04:03:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-mods/pull/153
Author: @rdbtCVS
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: smp/economy-simplify


📝 Commits (3)

  • e8bcd6f smp: simplify the economy, drop the tax code
  • 268b337 smp: remove the Treasury, the bank, jobs and futures, and every fee
  • efe5534 smp: keep the casino's float mark in economy.json

📊 Changes

21 files changed (+582 additions, -4338 deletions)

View changed files

📝 native/smp/README.md (+41 -99)
📝 native/smp/mixins/smp/casino_glue.rs (+1 -1)
📝 native/smp/mixins/smp/glue.rs (+17 -320)
📝 native/smp/mixins/smp/horizon-mixin.toml (+0 -24)
📝 native/smp/mixins/smp/smp_auction.rs (+67 -107)
➖ native/smp/mixins/smp/smp_bank.rs (+0 -442)
📝 native/smp/mixins/smp/smp_casino.rs (+53 -58)
📝 native/smp/mixins/smp/smp_claims.rs (+0 -9)
📝 native/smp/mixins/smp/smp_economy.rs (+274 -233)
➖ native/smp/mixins/smp/smp_futures.rs (+0 -1321)
📝 native/smp/mixins/smp/smp_games.rs (+2 -6)
➖ native/smp/mixins/smp/smp_jobs.rs (+0 -571)
📝 native/smp/mixins/smp/smp_lottery.rs (+2 -3)
📝 native/smp/mixins/smp/smp_market.rs (+16 -118)
📝 native/smp/mixins/smp/smp_market_prices.rs (+7 -71)
📝 native/smp/mixins/smp/smp_places.rs (+7 -72)
📝 native/smp/mixins/smp/smp_report.rs (+49 -137)
➖ native/smp/mixins/smp/smp_tax.rs (+0 -676)
📝 native/smp/proof.py (+39 -55)
📝 native/smp/proof_casino.py (+7 -7)

...and 1 more files

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally.

This PR strips the SMP economy down to the basics: balances, /pay, the market and shop, trades, the auction house, coinflips, the lottery and the casino. The tax code, the Treasury, the bank, jobs and futures are all removed, and so is every fee.

Removed

  • Taxes: VAT on auction sales, the weekly land and wealth taxes, /taxes and /eco taxes, the market's per-trade tax, and teleport fees.
  • The Treasury and its insurance fund: /treasury, /treasury log and /treasury pay.
  • Bank, jobs and futures: /bank and its interest, /jobs and the daily contracts, and /futures with its menu, funding and liquidations. smp_bank.rs, smp_jobs.rs and smp_futures.rs are deleted, along with the market price helpers only the futures used (twap, mark_price).
  • Fees: the auction listing fee and fee_percent on coinflips and the lottery. Winners now get all the stakes.

Where money comes from now

  • /eco give <player> <amount> <reason> is new, for operators of level 3. It creates money, the whole server sees it with its reason, and it's logged as eco_give.
  • /eco take <player> <amount> [reason] takes money out of the game, logged as eco_take.
  • The casino's pot: it gets its float (20,000) created once, then keeps every lost bet, so the house edge is a money sink. A pot that already holds money only gets what it's missing.
  • /eco stats and the daily report still show the money supply, what was made and destroyed, and how evenly money is spread. They no longer mention the Treasury.

Older servers (first start on this version)

  • Each player's bank savings and the margin of every open futures position are paid back to them. These payments are logged as bank_closed and futures_closed.
  • The Treasury, insurance, bank and futures pools are dropped, and so is the saved state of the bank, futures, jobs and land tax.
  • Old config keys (taxes, bank, jobs, futures, fee_percent, listing_fee_percent, places.fees, market.dynamic.tax_percent) are ignored.
  • web/market.json keeps "tax_percent": 0 for older readers. web/economy.json loses its treasury object, so the site's /hub will need to stop reading it.

I left the version alone; the maintainer bumps it at release. The README calls the cleanup release "0.30".

Checks

  • cargo fmt --check, cargo clippy --all-targets --locked -- -D warnings and cargo test --locked pass (137 tests). New tests cover the old-world cleanup, /eco give and /eco take, and the casino float being created once.
  • native.py check smp passes.
  • native.py proof smp ends with "ok": true, using two real clients:
    • It starts on an economy.json that still has an old Treasury pool and checks the pool is gone after the run.
    • /eco give is announced to everyone; a non-operator can't use it.
    • For a non-operator, /treasury, /bank, /jobs and /futures are unknown commands and /eco taxes is refused.
    • No fee or tax shows up anywhere.
  • SMP_PROOF=casino native.py proof smp ends with "ok": true. The pot gets its float once, every game is played through the menus, and the money in the game afterwards equals the float plus the two /eco gives.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-mods/pull/153 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `smp/economy-simplify` --- ### 📝 Commits (3) - [`e8bcd6f`](https://github.com/horizon-rust/horizon-mods/commit/e8bcd6f2275c7d95b373035b4320dd208322bf3c) smp: simplify the economy, drop the tax code - [`268b337`](https://github.com/horizon-rust/horizon-mods/commit/268b337184e337522cc5dd82c77e3fcd5310bfd3) smp: remove the Treasury, the bank, jobs and futures, and every fee - [`efe5534`](https://github.com/horizon-rust/horizon-mods/commit/efe5534fc487ac6cc7526777d134c7611ae46548) smp: keep the casino's float mark in economy.json ### 📊 Changes **21 files changed** (+582 additions, -4338 deletions) <details> <summary>View changed files</summary> 📝 `native/smp/README.md` (+41 -99) 📝 `native/smp/mixins/smp/casino_glue.rs` (+1 -1) 📝 `native/smp/mixins/smp/glue.rs` (+17 -320) 📝 `native/smp/mixins/smp/horizon-mixin.toml` (+0 -24) 📝 `native/smp/mixins/smp/smp_auction.rs` (+67 -107) ➖ `native/smp/mixins/smp/smp_bank.rs` (+0 -442) 📝 `native/smp/mixins/smp/smp_casino.rs` (+53 -58) 📝 `native/smp/mixins/smp/smp_claims.rs` (+0 -9) 📝 `native/smp/mixins/smp/smp_economy.rs` (+274 -233) ➖ `native/smp/mixins/smp/smp_futures.rs` (+0 -1321) 📝 `native/smp/mixins/smp/smp_games.rs` (+2 -6) ➖ `native/smp/mixins/smp/smp_jobs.rs` (+0 -571) 📝 `native/smp/mixins/smp/smp_lottery.rs` (+2 -3) 📝 `native/smp/mixins/smp/smp_market.rs` (+16 -118) 📝 `native/smp/mixins/smp/smp_market_prices.rs` (+7 -71) 📝 `native/smp/mixins/smp/smp_places.rs` (+7 -72) 📝 `native/smp/mixins/smp/smp_report.rs` (+49 -137) ➖ `native/smp/mixins/smp/smp_tax.rs` (+0 -676) 📝 `native/smp/proof.py` (+39 -55) 📝 `native/smp/proof_casino.py` (+7 -7) _...and 1 more files_ </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. This PR strips the SMP economy down to the basics: balances, `/pay`, the market and shop, trades, the auction house, coinflips, the lottery and the casino. The tax code, the Treasury, the bank, jobs and futures are all removed, and so is every fee. **Removed** - **Taxes:** VAT on auction sales, the weekly land and wealth taxes, `/taxes` and `/eco taxes`, the market's per-trade tax, and teleport fees. - **The Treasury and its insurance fund:** `/treasury`, `/treasury log` and `/treasury pay`. - **Bank, jobs and futures:** `/bank` and its interest, `/jobs` and the daily contracts, and `/futures` with its menu, funding and liquidations. `smp_bank.rs`, `smp_jobs.rs` and `smp_futures.rs` are deleted, along with the market price helpers only the futures used (`twap`, `mark_price`). - **Fees:** the auction listing fee and `fee_percent` on coinflips and the lottery. Winners now get all the stakes. **Where money comes from now** - `/eco give <player> <amount> <reason>` is new, for operators of level 3. It creates money, the whole server sees it with its reason, and it's logged as `eco_give`. - `/eco take <player> <amount> [reason]` takes money out of the game, logged as `eco_take`. - **The casino's pot:** it gets its `float` (20,000) created once, then keeps every lost bet, so the house edge is a money sink. A pot that already holds money only gets what it's missing. - `/eco stats` and the daily report still show the money supply, what was made and destroyed, and how evenly money is spread. They no longer mention the Treasury. **Older servers (first start on this version)** - Each player's bank savings and the margin of every open futures position are paid back to them. These payments are logged as `bank_closed` and `futures_closed`. - The Treasury, insurance, bank and futures pools are dropped, and so is the saved state of the bank, futures, jobs and land tax. - Old config keys (`taxes`, `bank`, `jobs`, `futures`, `fee_percent`, `listing_fee_percent`, `places.fees`, `market.dynamic.tax_percent`) are ignored. - `web/market.json` keeps `"tax_percent": 0` for older readers. `web/economy.json` loses its `treasury` object, so the site's /hub will need to stop reading it. I left the version alone; the maintainer bumps it at release. The README calls the cleanup release "0.30". **Checks** - `cargo fmt --check`, `cargo clippy --all-targets --locked -- -D warnings` and `cargo test --locked` pass (137 tests). New tests cover the old-world cleanup, `/eco give` and `/eco take`, and the casino float being created once. - `native.py check smp` passes. - `native.py proof smp` ends with `"ok": true`, using two real clients: - It starts on an `economy.json` that still has an old Treasury pool and checks the pool is gone after the run. - `/eco give` is announced to everyone; a non-operator can't use it. - For a non-operator, `/treasury`, `/bank`, `/jobs` and `/futures` are unknown commands and `/eco taxes` is refused. - No fee or tax shows up anywhere. - `SMP_PROOF=casino native.py proof smp` ends with `"ok": true`. The pot gets its float once, every game is played through the menus, and the money in the game afterwards equals the float plus the two `/eco give`s. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:03:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-mods#154
No description provided.