PAR-143
Government-owned property payouts (lease refunds) land in the operator's personal account, not the GOVERNMENT account
Symptom
Realty payouts for government-operated properties (e.g. early-lease-termination refunds) are credited to a player personal account, not the government's Treasury GOVERNMENT account.
Evidence (prod)
The personal account of player DCGovernmentOR (PERSONAL #104236, UUID A3521F89-B5D0-4860-A0A0-5467F82E3233) has taken $549,082 in credits over time and currently holds $17,172, with a stream of Realty memos:
Early Lease Termination Refund: or-store-02 / or-store-01 / or-shop-02 / or-apt-07 / or-mall19 …
Meanwhile the GOVERNMENT account DCGovernmentOR (#27107, $3.35M) is the intended treasury for that state. So government property money is accumulating in the player-alt wallet instead of the gov account.
Root cause (hypothesis — needs Realty code confirmation)
DemocracyCraft runs governments as Minecraft player alt-accounts whose username matches a same-named Treasury GOVERNMENT account (see Treasury issue PAR-142). Realty resolves a property's owner → player UUID → that player's PERSONAL account and pays there. When the "owner" is a government operator alt, the refund lands in the personal account rather than the GOVERNMENT account.
Investigate + decide
- Confirm how Realty resolves the payee account for a property (owner UUID → personal account via TreasuryApi
resolveOrCreatePersonal?), and where lease/refund payouts are issued. - Decide the intended behaviour for government-owned properties: should payouts route to the GOVERNMENT account? If so, Realty needs a way to map a government-operated property to its GOVERNMENT account (e.g. via a flag, an owner→gov-account lookup through BusinessApi/TreasuryApi, or by the operator setting the receiving account).
- Consider a one-time reconciliation of the ~$549k already mis-routed into
#104236(and check the AV/other states similarly) — coordinate with the Treasury side.
Acceptance
- Government-operated property payouts credit the GOVERNMENT account (or an explicitly-configured receiving account), not the operator's personal account.
- Documented decision on government-owned-property money routing.
Sibling of Treasury PAR-142 (same root cause: government name-collision across account types).
Comments
No comments yet.
Activity
- tesks created the issue