[PR #139] [MERGED] SMP 0.24.0: /pay received counts toward the daily selling limit #140

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

📋 Pull Request Information

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

Base: main ← Head: fix/smp-pay-cap


📝 Commits (1)

  • 964325b SMP 0.24.0: /pay received counts toward the daily selling limit

📊 Changes

6 files changed (+96 additions, -5 deletions)

View changed files

📝 native/smp/Cargo.lock (+1 -1)
📝 native/smp/Cargo.toml (+1 -1)
📝 native/smp/README.md (+3 -0)
📝 native/smp/mixins/smp/glue.rs (+36 -2)
📝 native/smp/mixins/smp/horizon-mixin.toml (+1 -1)
📝 native/smp/mixins/smp/smp_market.rs (+54 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Exploit fix reported by mod pointofpressure: a player sold up to the daily cap on alts, then /pay'd it all to their main, getting past the daily selling limit and topping the leaderboard.

Fix

  • Money received with /pay now counts toward the receiver's market.daily_sell_coins (the same counter /sell uses, kept in market.json).
  • A payment past what the receiver may still earn today is refused before any money moves: "Bob can only receive 50 coins more today: payments count toward the same daily limit as selling to the market."
  • A payment that goes through is counted (only when the receiver's balance actually rose by the amount).
  • Unchanged: /trade money, auction house sales, Treasury payments, daily_sell_coins: 0 (no limit).

Tests: new money_received_by_pay_counts_toward_the_daily_selling_limit (count, refusal with what's left, next day, no limit); cargo test --lib 123 passed, clippy -D warnings, fmt. Game build: CI.

Version 0.24.0 (main is 0.23.0; #134 and #135 move up one).

🤖 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/139 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/smp-pay-cap` --- ### 📝 Commits (1) - [`964325b`](https://github.com/horizon-rust/horizon-mods/commit/964325b819f3e2613a064210bc1f03bbf29ed188) SMP 0.24.0: /pay received counts toward the daily selling limit ### 📊 Changes **6 files changed** (+96 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `native/smp/Cargo.lock` (+1 -1) 📝 `native/smp/Cargo.toml` (+1 -1) 📝 `native/smp/README.md` (+3 -0) 📝 `native/smp/mixins/smp/glue.rs` (+36 -2) 📝 `native/smp/mixins/smp/horizon-mixin.toml` (+1 -1) 📝 `native/smp/mixins/smp/smp_market.rs` (+54 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Exploit fix reported by mod pointofpressure: a player sold up to the daily cap on alts, then `/pay`'d it all to their main, getting past the daily selling limit and topping the leaderboard. **Fix** - Money received with `/pay` now counts toward the receiver's `market.daily_sell_coins` (the same counter `/sell` uses, kept in `market.json`). - A payment past what the receiver may still earn today is refused before any money moves: "Bob can only receive 50 coins more today: payments count toward the same daily limit as selling to the market." - A payment that goes through is counted (only when the receiver's balance actually rose by the amount). - Unchanged: `/trade` money, auction house sales, Treasury payments, `daily_sell_coins: 0` (no limit). **Tests**: new `money_received_by_pay_counts_toward_the_daily_selling_limit` (count, refusal with what's left, next day, no limit); `cargo test --lib` 123 passed, clippy -D warnings, fmt. Game build: CI. Version 0.24.0 (main is 0.23.0; #134 and #135 move up one). 🤖 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:35 +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#140
No description provided.