diff --git a/docs/design/FINAL-UI-RATES-AUDIT.md b/docs/design/FINAL-UI-RATES-AUDIT.md new file mode 100644 index 00000000..9e32d0f3 --- /dev/null +++ b/docs/design/FINAL-UI-RATES-AUDIT.md @@ -0,0 +1,13 @@ +# Rates publication and scoped UI cleanup + +Ticket 408 · 21 November 2026. The active bank rules and anonymous immutable publication a01361cd-80e4-4440-a752-6429becf5d4b have matching SHA-256 591aefc44f956363eaa21155129587c1a70fbaecd972a945a6221a1b50467329 across policy versions, packages, credit, taxes, payroll and service availability. All three active financial policy versions are zero. Inspection used SELECT-only read transactions; no financial policy, contract or bank publication was changed. + +The new eleven-page handbook alpha-1.0.1.2-20261121 uses that verified snapshot and current shared formula/claim/publication schedules. Its publication date is distinct from the bank snapshot date. The old 18 November PDF is preserved byte-for-byte. The manifest records the source publication, data path, policy versions and PDF digest 09e57315d35dea73e92221720bb38e8e9541cadec7d9635acfe330b43f431bc2. Existing versioned public-bank snapshot downloads remain available. Generator: website/scripts/render-rates-guide.py (ReportLab), explicit immutable input website/web/downloads/rates-guide-20261121.json; no automatic rewrite of prior editions. All pages were rendered and visually checked for readable tables, wrapping, repeated headings and margins. + +## Exact cleanup + +Removed twelve redundant legacy CHOAM placeholder definitions and duplicate stock-router targets already handled earlier by the shared design-page router. The two remaining legacy company views and actual commodity exchange bridge remain. This is presentation cleanup, not a claim that planned stock trading became operational. No active financial/security/audit code, shared page component, contract, history or old PDF was deleted. + +The two targeted presentation sources shrink from 79149 to 74909 bytes: 4240 bytes removed. Complete tracked website source/artifact blob payload before this batch: 549466704 bytes; after this batch: 549550325 bytes; net 83621 bytes added, including the new immutable PDF, explicit public source data and reproducible renderer. These are repository payload bytes, not server disk allocation or a claim of reclaimed production disk space. Pre-existing uncommitted generated artifacts are excluded. + +The existing shared CP page/form/table components and separate POL palette are retained. No unavailable replacement is used as justification to delete an active implementation. diff --git a/website/control-panel/public/cp-v2/cp-v2-choam-pages.mjs b/website/control-panel/public/cp-v2/cp-v2-choam-pages.mjs index 7c8d3915..6c4aced2 100644 --- a/website/control-panel/public/cp-v2/cp-v2-choam-pages.mjs +++ b/website/control-panel/public/cp-v2/cp-v2-choam-pages.mjs @@ -1,22 +1,10 @@ -import {mountNativeService} from './cp-v2-native-services.mjs'; -import {createCPV2Page,element as el} from './cp-v2-page-template.mjs'; -// Presentation-only CHOAM workspace. No trading endpoints, invented prices or orders. -const PAGES={ - 'stock-overview':{title:'Market Overview',description:'CHOAM markets and exchange intelligence.',tabs:[['pulse','Market pulse','Market activity, trends and sector summaries'],['sectors','Market sectors','Industry categories and market participation'],['notices','Market notices','Official CHOAM exchange announcements']]}, - 'stock-listings':{title:'Listed Enterprises',description:'Registered companies and exchange listings.',tabs:[['directory','Listing directory','Listed companies and market identifiers'],['profiles','Enterprise profiles','Issuer details and public disclosures'],['criteria','Listing requirements','Market eligibility and disclosure rules']]}, - 'stock-quotes':{title:'Market Prices',description:'Future real-time Solari-denominated price information.',tabs:[['quotes','Price board','Current market quotes and trading sessions'],['charts','Price history','Historical charts and volume trends'],['reference','Market reference','Ticker symbols and trading units']]}, - 'stock-portfolio':{title:'My Holdings',description:'Personal CHOAM investments and positions.',tabs:[['positions','My positions','Owned securities and investment positions'],['performance','Performance','Cost basis, returns and portfolio valuation'],['income','Investment income','Dividends and distributions']]}, - 'stock-orders':{title:'Trading Floor',description:'Future authenticated market order service.',tabs:[['ticket','Order ticket','Buy and sell order entry with validation'],['open','Open orders','Pending orders, cancellations and execution status'],['rules','Trading rules','Market hours, limits and order safeguards']]}, - 'stock-trades':{title:'Trade Ledger',description:'Personal market execution history and settlement.',tabs:[['executions','Trade executions','Completed market trades and references'],['settlement','Settlement','Trade settlement and Solari movements'],['records','Trade records','Exportable trade confirmations and account records']]}, - 'stock-watchlist':{title:'Watchlist',description:'Personal market monitoring and saved enterprises.',tabs:[['saved','Saved enterprises','Followed tickers and watched companies'],['alerts','Price alerts','Future thresholds and watchlist notifications'],['discovery','Discover markets','Explore exchange sectors and listed issuers']]}, - 'companies':{title:'My Companies',description:'Personal enterprise ownership and management.',tabs:[['holdings','My enterprises','Company ownership and membership records'],['management','Company management','Authorized enterprise administration'],['activity','Company activity','Enterprise updates and governance notices']]}, - 'company-directory':{title:'Company Registry',description:'CHOAM registry of registered enterprises.',tabs:[['registry','Registered companies','Public enterprise directory and registration details'],['sectors','Enterprise sectors','Industry classifications and business activities'],['records','Registry records','Corporate registration and filing history']]}, - 'company-profile':{title:'Corporate Profiles',description:'Enterprise identity and public corporate disclosures.',tabs:[['identity','Corporate identity','Company overview, emblem and officers'],['ownership','Ownership','Corporate ownership and capital structure'],['disclosures','Disclosures','Corporate reports and official filings']]}, - 'stock-ipo':{title:'Listing Applications',description:'Future CHOAM market listing process.',tabs:[['apply','Apply for listing','New listing applications and eligibility'],['review','Application review','Authorized assessment and application progress'],['requirements','Listing requirements','Exchange rules and required disclosures']]}, - 'stock-dividends':{title:'Dividends',description:'Future shareholder distributions and corporate dividends.',tabs:[['calendar','Dividend calendar','Declared and upcoming distribution dates'],['receipts','My distributions','Personal dividend entitlements and receipts'],['policy','Distribution policy','Company payout rules and authorizations']]}, - 'stock-admin':{title:'Market Authority',description:'Restricted exchange operations and market governance.',tabs:[['operations','Exchange operations','Authorized market configuration and listing controls'],['approvals','Approval queue','Pending listings and official market decisions'],['policy','Market policy','Trading rules and administrative authorizations']]}, - 'stock-surveillance':{title:'Market Surveillance',description:'Restricted CHOAM market integrity monitoring.',tabs:[['monitoring','Market monitoring','Suspicious trading and exchange activity signals'],['cases','Investigation cases','Authorized market integrity investigations'],['reports','Surveillance reports','Oversight reports and audit trails']]} -}; -export function mountCHOAMPlaceholder(host,id){const spec=PAGES[id];if(!spec)throw Error('Unknown CHOAM page');const tabs=spec.tabs.map(([key,label,detail])=>{const content=el('div',undefined,'cp-v2-bank-placeholder');const image=el('img');image.src='https://www.dunerealms.com/assets/nav-exchange-v2.webp';image.alt='';image.width=82;image.height=82;content.append(image,el('h4',label),el('p',detail),el('p','V2 · PLANNED — market data and trading actions are not connected.','cp-v2-bank-status'));return{id:key,label,artwork:'nav-exchange-v2.webp',content}});const {root}=createCPV2Page({title:spec.title,description:spec.description,artwork:'nav-exchange-v2.webp',tabs});host.replaceChildren(root);return()=>root.remove()} - +import {mountNativeService} from './cp-v2-native-services.mjs'; +import {createCPV2Page,element as el} from './cp-v2-page-template.mjs'; +// Presentation-only CHOAM workspace. No trading endpoints, invented prices or orders. +const PAGES={ + 'company-directory':{title:'Company Registry',description:'CHOAM registry of registered enterprises.',tabs:[['registry','Registered companies','Public enterprise directory and registration details'],['sectors','Enterprise sectors','Industry classifications and business activities'],['records','Registry records','Corporate registration and filing history']]}, + 'company-profile':{title:'Corporate Profiles',description:'Enterprise identity and public corporate disclosures.',tabs:[['identity','Corporate identity','Company overview, emblem and officers'],['ownership','Ownership','Corporate ownership and capital structure'],['disclosures','Disclosures','Corporate reports and official filings']]}, +}; +export function mountCHOAMPlaceholder(host,id){const spec=PAGES[id];if(!spec)throw Error('Unknown CHOAM page');const tabs=spec.tabs.map(([key,label,detail])=>{const content=el('div',undefined,'cp-v2-bank-placeholder');const image=el('img');image.src='https://www.dunerealms.com/assets/nav-exchange-v2.webp';image.alt='';image.width=82;image.height=82;content.append(image,el('h4',label),el('p',detail),el('p','V2 · PLANNED — market data and trading actions are not connected.','cp-v2-bank-status'));return{id:key,label,artwork:'nav-exchange-v2.webp',content}});const {root}=createCPV2Page({title:spec.title,description:spec.description,artwork:'nav-exchange-v2.webp',tabs});host.replaceChildren(root);return()=>root.remove()} + export function mountCommodityExchange(host,id,{fetcher=fetch}={}){let active=true,dispose=()=>{};import('./cp-v2-exchange-design.mjs').then(({mountExchangeDesign})=>{if(active)dispose=mountExchangeDesign(host,{context:'user',view:id==='commodity-mine'?'mine':'browse',fetcher});}).catch(()=>{if(active)host.textContent='Item exchange unavailable.';});return()=>{active=false;dispose();};} diff --git a/website/control-panel/public/cp-v2/v2.js b/website/control-panel/public/cp-v2/v2.js index 1488662a..cb915546 100644 --- a/website/control-panel/public/cp-v2/v2.js +++ b/website/control-panel/public/cp-v2/v2.js @@ -221,7 +221,7 @@ if(w.id==='bureau'&&item.id==='permissions'){const host=el('div','citizen-live-h if(w.id==='bureau'&&item.id==='manual-seals'){const host=el('div','citizen-live-host');overview.append(host);host.append(el('p','alpha-muted','Loading Honours & Seals…'));import('/v2/honours-seals.mjs?v=sealupload-20261112a').then(({mountHonoursSeals})=>{if(host.isConnected)mountHonoursSeals(host)}).catch(error=>{if(host.isConnected)host.textContent='Honours & Seals unavailable: '+error.message});history.replaceState(null,'','#'+w.id+'/'+item.id);return;} if(w.id==='bureau'&&['company-management','company-management-v2','company-audit','staff-bank','server-kits','kit-publishing','kit-claims','exchange-admin','shop-admin','items','website-posts','staff-tickets','bans','ban-evidence','forum-admin','quests-admin','community-goals','support-management','server-operations','hosting-control','dev-approvals'].includes(item.id)){const host=el('div','citizen-live-host');overview.append(host);import('/v2/cp-v2-bureau-pages.mjs?v=bureau-registers-20261112c').then(({mountBureauPlaceholder})=>{if(host.isConnected)disposePage=mountBureauPlaceholder(host,item.id)}).catch(error=>{if(host.isConnected)host.textContent='Bureau page unavailable: '+error.message});history.replaceState(null,'','#'+w.id+'/'+item.id);return;} if(w.id==='bank'&&['bank-information','bank-overview','personal-bank','bank-transfers','bank-statements','bank-history','bank-beneficiaries','loan-centre','bank-loans','loan-administration','bank-dashboard','staff-bank','company-finance','bank-audit'].includes(item.id)){const host=el('div','citizen-live-host');overview.append(host);import('/v2/cp-v2-planned-pages.mjs?v=bank-admin-20261112a').then(({mountBankPlaceholder})=>{if(host.isConnected)mountBankPlaceholder(host,item.id)}).catch(error=>{if(host.isConnected)host.textContent='Postbank placeholder unavailable: '+error.message});history.replaceState(null,'','#'+w.id+'/'+item.id);return;} -if(w.id==='market'&&['stock-overview','stock-listings','stock-quotes','stock-portfolio','stock-orders','stock-trades','stock-watchlist','companies','company-directory','company-profile','stock-ipo','stock-dividends','stock-admin','stock-surveillance'].includes(item.id)){const host=el('div','citizen-live-host');overview.append(host);import('/v2/cp-v2-choam-pages.mjs?v=choam-all-20261112a').then(({mountCHOAMPlaceholder})=>{if(host.isConnected)mountCHOAMPlaceholder(host,item.id)}).catch(error=>{if(host.isConnected)host.textContent='CHOAM page unavailable: '+error.message});history.replaceState(null,'','#'+w.id+'/'+item.id);return;} +if(w.id==='market'&&['company-directory','company-profile'].includes(item.id)){const host=el('div','citizen-live-host');overview.append(host);import('/v2/cp-v2-choam-pages.mjs?v=choam-all-20261112a').then(({mountCHOAMPlaceholder})=>{if(host.isConnected)mountCHOAMPlaceholder(host,item.id)}).catch(error=>{if(host.isConnected)host.textContent='CHOAM page unavailable: '+error.message});history.replaceState(null,'','#'+w.id+'/'+item.id);return;} overview.append(renderStaticComponents(w.id,item.id)); diff --git a/website/scripts/bank-rates-page.mjs b/website/scripts/bank-rates-page.mjs index 0c5f8d5d..adb2c9a0 100644 --- a/website/scripts/bank-rates-page.mjs +++ b/website/scripts/bank-rates-page.mjs @@ -9,5 +9,5 @@ export function bankRatesPage(){ const version=createHash('sha256').update(JSON.stringify([PACKAGES,CREDIT_PRODUCTS])).digest('hex').slice(0,10); const packages=PACKAGES.map(p=>`${p.name}${p.kinds.join(' / ')}${(p.monthly/100).toFixed(2)} DM${p.extra}${p.extra?(p.extraFee/100).toFixed(2)+' DM':'—'}${p.unlimitedInstant?'Unlimited':p.instant}`).join(''); const credit=CREDIT_PRODUCTS.filter(p=>!p.revolving).map(p=>`${p.name}${(p.annualBps/100).toFixed(2)}%${p.min}–${p.max} DM${p.terms?p.terms.join(', '):'Up to '+p.maxMonths} months`).join(''); -return `Rates & Charges | Imperial Postbank${SHARED_HEADER}
Imperial Postbank

YOUR MONEY. CLEAR TERMS.

Rates & Charges

Banking, taxation, reserve policy and the rules behind the realm economy.

PUBLIC TARIFF GUIDE · ${version}
01 / EVERYDAY BANKING

Accounts & packages

One current account is included in each package.

${packages}
PackageClientMonthly priceExtra current accounts¹Each / month¹Instant quota / month

¹ Published additional-account limits and prices, subject to feature availability. Flow and Pro include a savings account. Pro includes unlimited instant payments with no per-transfer fee. Transfers have no package amount cap; available funds and payment security apply. Start has no instant payments. Instant quotas are server usage limits.

02 / BORROWING

Credit rates

Annual rates for new applications. Your accepted contract and repayment schedule govern your loan.

${credit}
ProductAnnual ratePrincipal rangeAvailable terms

Launch grants are repayable at 0% interest. Ordinary loans require review and a first instalment of 5% from your own funds before issue. This instalment counts toward repayment and reduces the remaining loan balance. Eligibility, available funding and refinancing conditions apply. Existing fixed-rate contracts retain their agreed rate. Revolving credit is not available.

03 / TRANSPARENCY

Services & taxes

Monthly statements

Free

Automatically archived PDF statements after month-end.

Balance Guard

1.00 DM / month

Published optional price per eligible account. Preference saving is available; protection and charging are not active yet.

Tax policy

Public register

Configured VAT, account tax and payroll deductions are loaded from the public bank publication. The tax-rule tables below explain their application.

${rihlaRatesSection()}${claimRatesSection()}${ratesReferenceHTML()}

Your tariff guide

Generated from the bank catalogues on each build. Version ${version}. Package terms: ${BANK_VERSION}. Credit terms: ${CREDIT_VERSION}.

Catalogue references identify source terms, not a new effective date. The live financial register supplies configured bank and tax values. The expanded handbook also records reserve instruments, calculation rules and availability.

Download complete guide · PDFHandbook ${RATES_GUIDE_EDITION}

No private account or transaction data is published here.

`; +return `Rates & Charges | Imperial Postbank${SHARED_HEADER}
Imperial Postbank

YOUR MONEY. CLEAR TERMS.

Rates & Charges

Banking, taxation, reserve policy and the rules behind the realm economy.

PUBLIC TARIFF GUIDE · ${version}
01 / EVERYDAY BANKING

Accounts & packages

One current account is included in each package.

${packages}
PackageClientMonthly priceExtra current accounts¹Each / month¹Instant quota / month

¹ Published additional-account limits and prices, subject to feature availability. Flow and Pro include a savings account. Pro includes unlimited instant payments with no per-transfer fee. Transfers have no package amount cap; available funds and payment security apply. Start has no instant payments. Instant quotas are server usage limits.

02 / BORROWING

Credit rates

Annual rates for new applications. Your accepted contract and repayment schedule govern your loan.

${credit}
ProductAnnual ratePrincipal rangeAvailable terms

Launch grants are repayable at 0% interest. Ordinary loans require review and a first instalment of 5% from your own funds before issue. This instalment counts toward repayment and reduces the remaining loan balance. Eligibility, available funding and refinancing conditions apply. Existing fixed-rate contracts retain their agreed rate. Revolving credit is not available.

03 / TRANSPARENCY

Services & taxes

Monthly statements

Free

Automatically archived PDF statements after month-end.

Balance Guard

1.00 DM / month

Published optional price per eligible account. Preference saving is available; protection and charging are not active yet.

Tax policy

Public register

Configured VAT, account tax and payroll deductions are loaded from the public bank publication. The tax-rule tables below explain their application.

${rihlaRatesSection()}${claimRatesSection()}${ratesReferenceHTML()}

Your tariff guide

Generated from the bank catalogues on each build. Version ${version}. Package terms: ${BANK_VERSION}. Credit terms: ${CREDIT_VERSION}.

Catalogue references identify source terms, not a new effective date. The live financial register supplies configured bank and tax values. The expanded handbook also records reserve instruments, calculation rules and availability.

Download complete guide · PDFHandbook ${RATES_GUIDE_EDITION}

No private account or transaction data is published here.

`; } diff --git a/website/scripts/rates-reference.mjs b/website/scripts/rates-reference.mjs index e4943215..cda9d8ba 100644 --- a/website/scripts/rates-reference.mjs +++ b/website/scripts/rates-reference.mjs @@ -3,11 +3,11 @@ import {CAMPAIGN_RATES} from '../node/election-campaigns.mjs'; import {OFFICE_AUCTION_RULES} from '../node/jarvis-office-auctions.mjs'; import {CLAIM_ORGANISATIONS,claimTariffs,claimMoney} from '../control-panel/public/cp-v2/cp-v2-claim-tariffs.mjs'; const dm=n=>(n/100).toFixed(2)+' DM'; -export const RATES_GUIDE_EDITION='alpha-1.0.1.2-20261118'; +export const RATES_GUIDE_EDITION='alpha-1.0.1.2-20261121'; export function ratesReferenceSections(){return [ - {id:'tax-rules',title:'Tax rules & payment destinations',art:'imperial-postbank-v2.png',paragraphs:['A configured tax rate does not make every website or Minecraft action taxable. The relevant transaction handler must apply the tax and record its ledger entries. No blanket extra tax is added to the prices below.','Rihla: 1% for transfers up to and including 3,000 DM; 5% on the full amount above 3,000 DM. The sender pays principal plus tax; the recipient receives the full principal. Tax rounds upward to the next cent. In-game sending and collection remain a separate integration.'],headers:['Charge','Who pays / basis','Destination / status'],rows:[['Applicable game-sales VAT','Configured public VAT rate; supported taxable sales only','Tax treasury; game-flow integration dependent'],['VAT on bank fees','Configured bank-fee VAT rate shown in the live register','Tax treasury; a zero rate adds no VAT'],['Monthly account tax','Configured fixed amount shown in the live register','A zero amount adds no account tax'],['Package and account charges','Accepted package terms; automated monthly billing remains disabled','Website bank treasury; published fees are not yet monthly collection'],['Rihla transfer tax','Sender; 1% / 5% of full principal','Tax treasury on collection; game execution pending'],['Payroll deductions','Employee social contribution and income tax; employer social contribution is additional','Tax treasury through supported P&O payroll posting'],['Recruitment and campaigns','Publishing organisation or officeholder; accepted quote','Tax treasury; listing charge is distinct from VAT'],['Office auction','Winning bidder; accepted final bid','Tax treasury; losing holds released'],['Claim upkeep / unlock','Original organisation, including upgrades by its mother','Tax treasury; published schedule and supported claim flow apply'],['Server project funding','Approved budget paid from available Tax funds','Dedicated 979 project account; project workflow in development']]}, + {id:'tax-rules',title:'Tax rules & payment destinations',art:'imperial-postbank-v2.png',paragraphs:['A configured tax rate does not make every website or Minecraft action taxable. The relevant transaction handler must apply the tax and record its ledger entries. No blanket extra tax is added to the prices below.','Rihla: 1% for transfers up to and including 3,000 DM; 5% on the full amount above 3,000 DM. The sender pays principal plus tax; the recipient receives the full principal. Tax rounds upward to the next cent. In-game sending and collection remain a separate integration.'],headers:['Charge','Who pays / basis','Destination / status'],rows:[['Applicable game-sales VAT','Configured public VAT rate; supported taxable sales only','Tax treasury; game-flow integration dependent'],['VAT on bank fees','Configured bank-fee VAT rate shown in the live register','Tax treasury; a zero rate adds no VAT'],['Monthly account tax','Configured fixed amount shown in the live register','A zero amount adds no account tax'],['Package and account charges','Accepted package terms; automated monthly billing remains disabled','Website bank treasury; published fees are not yet monthly collection'],['Rihla transfer tax','Sender; 1% / 5% of full principal','Tax treasury on collection; game execution pending'],['Payroll deductions','Employee social contribution and income tax; employer social contribution is additional','Tax treasury through supported P&O payroll posting'],['Recruitment and campaigns','Publishing organisation or officeholder; accepted quote','Tax treasury; listing charge is distinct from VAT'],['Office auction','Winning bidder; accepted final bid','Tax treasury; losing holds released'],['Claim upkeep / unlock','Original organisation, including upgrades by its mother','Tax treasury; published schedule and supported claim flow apply'],['Server project funding','Approved budget paid from available Tax funds','Dedicated 979 project account; approved funded project consumer']]}, {id:'publication-charges',title:'Recruitment, campaigns & office auctions',art:'exchange-political-positions-v1.png',paragraphs:['Recruitment: Basic clans are free. Keyed/Royal recruitment uses 10 DM + 0.25 DM per occupied member. Protected institutions do not use ordinary recruitment. Political custom vacancies use the same agreed recruitment tariff.','Campaign bookings use whole hourly slots, may cover multiple hours and open no earlier than seven days before the election. A featured slot is exclusive for its election scope and hour. Forum/Discord promotion is optional: 25 DM per selected channel per booking, not per hour; retries do not create another charge.'],headers:['Election campaign','Standard / hour','Featured / hour'],rows:Object.entries(CAMPAIGN_RATES).map(([kind,price])=>[({clan_delegate:'Clan Delegate',house:'House leader',bene:'Veiled Concord',guild:'Vaerkring',imperial:'Emperor'})[kind],dm(price),dm(price*1.5)]).concat([['Office auction opening bid',dm(OFFICE_AUCTION_RULES.startMinor),'Minimum increase '+dm(OFFICE_AUCTION_RULES.incrementMinor)]])}, - {id:'reserve-instruments',title:'Federal Reserve & J.A.R.V.I.S. instruments',art:'imperial-postbank-v2.png',paragraphs:['An instrument records a purpose and authority; knowing a reference is not permission. Public references never disclose secret codes. These are fictional game-economy instruments, not real-world securities.','Reserve issuance is restricted to the designated reserve owner and existing administration checks. It uses balanced grant postings to the Tax treasury; this guide creates no reserve budget or money. The new baseline and seasonal budget still require configuration.'],headers:['Instrument / flow','Purpose','Availability'],rows:[['Economic snapshot · ECO-SNAP','Sealed observation, baseline, policy version, index and rates; immutable payload hash','Implemented archival instrument; automatic collection is not connected'],['Reserve grant','Existing owner-controlled issuance to the Tax treasury, recorded in both ledgers','Existing restricted bank flow; no public redeemable reserve key'],['Policy / baseline change','Versioned configuration followed by a new observation','Requires a reviewed implementation or supported dev batch; no invented player code'],['Developer batch instrument','Exact manifest, server identity, short expiry, once-only action and audit receipt','Server/CLI only; never a website generator, download or player entitlement'],['Rihla instrument · RIA','Account-bound transfer reference, parties, amount and state','Private website register; in-game execution pending'],['News record · NEWS','Sealed public fact linked to its source and article','Gazette backend batch; not a redeemable reward']]}, + {id:'reserve-instruments',title:'Federal Reserve & J.A.R.V.I.S. instruments',art:'imperial-postbank-v2.png',paragraphs:['An instrument records a purpose and authority; knowing a reference is not permission. Public references never disclose secret codes. These are fictional game-economy instruments, not real-world securities.','Reserve issuance is restricted to the designated reserve owner and existing administration checks. It uses balanced grant postings to the Tax treasury; this guide creates no reserve budget or money. The new baseline and seasonal budget still require configuration.'],headers:['Instrument / flow','Purpose','Availability'],rows:[['Economic snapshot · ECO-SNAP','Sealed observation, baseline, policy version, index and rates; immutable payload hash','Implemented archival instrument; automatic collection is not connected'],['Reserve grant','Existing owner-controlled issuance to the Tax treasury, recorded in both ledgers','Existing restricted bank flow; no public redeemable reserve key'],['Policy / baseline change','Versioned configuration followed by a new observation','Requires a reviewed implementation or supported dev batch; no invented player code'],['Developer batch instrument','Exact manifest, server identity, short expiry, once-only action and audit receipt','Server/CLI only; never a website generator, download or player entitlement'],['Rihla instrument · RIA','Account-bound transfer reference, parties, amount and state','Private website register; in-game execution pending'],['News record · NEWS','Sealed public fact linked to its source and article','Confirmed Gazette article and publication receipt; not a redeemable reward']]}, {id:'economy-formulas',title:'Economic formulas & limits',art:'imperial-postbank-v2.png',paragraphs:['Calculation policy v'+p.version+'. Formula support is implemented; automatic price, savings-interest, lending-rate and wage adjustments are not enabled by publishing this guide. Existing accepted loans keep their contracted rates. Player-set listing prices are not silently rewritten.','M = verified circulating DM; M0 = a strictly positive approved baseline. E is an index, not a direct annual inflation percentage. Unfunded issuance positions and system reserves must be classified by the approved collector; issued minus returned alone is not a complete inflation measure.'],headers:['Calculation','Formula','Limits / meaning'],rows:[['Money index','E = (M / M0)^'+p.moneyExponent,'M0 > 0; a fresh baseline starts at E = 1'],['Demand factor','D = ((sold + '+p.demandSmoothing+') / (offered + '+p.demandSmoothing+'))^'+p.demandExponent,'Verified counts; smoothing avoids empty-market division'],['System price target','target = clamp(base price × E × D, 0.5 × base, 2 × base)','System catalogue prices only; quote policy/version must be stored'],['Published system price','clamp(target, 0.95 × previous, 1.05 × previous)','Maximum ±5% per daily step; round in cents within bounds'],['Savings rate','S = clamp(round(S0 + 500 × (E − 1)), Smin, Smax)','Basis points; +5 percentage points per +1 index unit. Base and bounds require configuration'],['New lending rate','L = clamp(round(L0 + 1000 × (E − 1)), Lmin, Lmax)','Basis points; +10 percentage points per +1 index unit. Existing contracts unchanged'],['Indexed staff wage','target = base wage × E; next = clamp(target, 0.95 × previous, 1.05 × previous)','Maximum ±5% per monthly step; use P&O approved wages'],['Tax-inclusive price','gross = net + applicable tax','Only when that transaction implements the relevant tax rule']]}, {id:'payroll-formulas',title:'Payroll calculation',art:'nav-staff-v2.webp',paragraphs:['All amounts use integer DM cents. Contribution and tax calculations round to the nearest cent using the existing payroll model. This is a fictional game model with selected Belgian-inspired parameters; household deductions and real-world tax advice are outside its scope.'],headers:['Step','Calculation'],rows:[['Employee contribution','round(gross monthly × employee social rate)'],['Monthly taxable pay','gross monthly − employee contribution'],['Annual progressive tax','Apply the configured marginal bands to 12 × monthly taxable pay'],['Basic allowance credit','Apply the same tax bands to the annual basic allowance; subtract this credit from annual tax, floor at zero'],['Monthly income tax','round(max(annual tax − allowance credit, 0) / 12)'],['Net wage','gross monthly − employee contribution − monthly income tax'],['Employer cost','gross monthly + round(gross monthly × employer social rate)'],['Tax treasury receipt','employee contribution + monthly income tax + employer contribution']]}, ...Object.entries(CLAIM_ORGANISATIONS).map(([kind,group])=>({id:'guide-claims-'+kind,title:group.name+' · claim schedule',paragraphs:['Capacity and price schedule; the published guide does not itself reserve land, upgrade a deed or enable recurring billing.'],headers:['Tier','Chunks','Monthly','Unlock'],rows:claimTariffs(kind).map(r=>[r.code,String(r.chunks),claimMoney(r.upkeepMinor),claimMoney(r.unlockMinor)])})) diff --git a/website/scripts/render-rates-guide.py b/website/scripts/render-rates-guide.py new file mode 100644 index 00000000..7140b4ba --- /dev/null +++ b/website/scripts/render-rates-guide.py @@ -0,0 +1,43 @@ +from pathlib import Path +import json,sys,datetime,html +from reportlab.lib import colors +from reportlab.lib.styles import getSampleStyleSheet,ParagraphStyle +from reportlab.lib.enums import TA_LEFT +from reportlab.platypus import SimpleDocTemplate,Paragraph,Spacer,Table,TableStyle,PageBreak,KeepTogether +from reportlab.pdfbase import pdfmetrics +from reportlab.pdfbase.ttfonts import TTFont +from reportlab.lib.utils import ImageReader +D=json.loads(Path(sys.argv[1]).read_text());out=sys.argv[2] +import reportlab +font=Path(reportlab.__file__).parent/'fonts/Vera.ttf';bold=font.with_name('VeraBd.ttf') +if font.exists(): + pdfmetrics.registerFont(TTFont('Guide',str(font)));pdfmetrics.registerFont(TTFont('GuideBold',str(bold)));pdfmetrics.registerFontFamily('Guide',normal='Guide',bold='GuideBold') +else: raise RuntimeError('Reviewed readable fonts required') +green=colors.HexColor('#12382d');gold=colors.HexColor('#9c792b');muted=colors.HexColor('#52665d') +styles=getSampleStyleSheet();styles.add(ParagraphStyle(name='BodyGuide',fontName='Guide',fontSize=8.3,leading=12,spaceAfter=7,textColor=green));styles.add(ParagraphStyle(name='CellGuide',parent=styles['BodyGuide'],fontSize=7.1,leading=10,spaceAfter=0));styles.add(ParagraphStyle(name='HGuide',fontName='GuideBold',fontSize=18,leading=23,textColor=green,spaceBefore=12,spaceAfter=12,keepWithNext=True));styles.add(ParagraphStyle(name='SubGuide',fontName='GuideBold',fontSize=10,leading=14,textColor=gold,spaceAfter=9));styles.add(ParagraphStyle(name='CoverGuide',fontName='GuideBold',fontSize=31,leading=38,textColor=green,spaceAfter=20)) +p=lambda text,style='BodyGuide':Paragraph(html.escape(str(text).replace('\u00c2\u00b7','\u00b7')),styles[style]) +flow=[] +def paragraph(t):flow.append(p(t)) +def table(headers,rows,widths=None): + data=[[p(x,'CellGuide') for x in headers]]+[[p(x,'CellGuide') for x in row] for row in rows] + t=Table(data,colWidths=widths or [499/len(headers)]*len(headers),repeatRows=1,hAlign='LEFT');t.setStyle(TableStyle([('BACKGROUND',(0,0),(-1,0),colors.HexColor('#e2e8df')),('ROWBACKGROUNDS',(0,1),(-1,-1),[colors.white,colors.HexColor('#f1f4ef')]),('LINEBELOW',(0,0),(-1,0),1,gold),('VALIGN',(0,0),(-1,-1),'TOP'),('LEFTPADDING',(0,0),(-1,-1),7),('RIGHTPADDING',(0,0),(-1,-1),7),('TOPPADDING',(0,0),(-1,-1),7),('BOTTOMPADDING',(0,0),(-1,-1),7)]));flow.extend([t,Spacer(1,12)]) +date=lambda ms:datetime.datetime.fromtimestamp(ms/1000,datetime.timezone.utc).strftime('%d %B %Y') +pub=D['publication'];flow.extend([Spacer(1,35),p('IMPERIAL POSTBANK','SubGuide'),p('Rates & Charges','CoverGuide'),p('The DuneRealms financial handbook','HGuide')]);paragraph('Edition '+D['edition']+' · Published '+date(D['publishedAt']));paragraph('Fictional game economy · all amounts in Dunemarks (DM).');paragraph('Bank snapshot '+pub['version']+' · Bank rules dated '+date(pub['publishedAt'])+'. The handbook publication date is distinct from the immutable bank snapshot date.');paragraph('The active bank rules were independently checked against this public snapshot. Existing contracts keep their agreed conditions. A newly published guide never retroactively changes a loan or accepted contract.');paragraph('Package terms: '+D['bankVersion']+'. Credit terms: '+D['creditVersion']+'.');paragraph('For changes after this edition, consult https://www.dunerealms.com/rates-and-charges.html and the versioned public bank tariff snapshot. Earlier guides and snapshots remain available.');flow.append(p('Service availability','HGuide')) +for notice in pub['serviceNotices']:paragraph(notice) +flow.append(PageBreak());flow.append(p('Accounts & packages','HGuide'));rates={r['key']:r for r in pub['packages']} +table(['Package / client','Monthly','Extra accounts','Each extra / month','Instant / month'],[[x['name']+' / '+', '.join(x['kinds']),f"{rates[x['key']]['monthlyMinor']/100:.2f} DM",x['extra'],f"{rates[x['key']]['extraMinor']/100:.2f} DM" if x['extra'] else '—','Unlimited' if x.get('unlimitedInstant') else x['instant']]for x in D['packages']],[140,78,90,106,85]);paragraph('One current account is included. Flow and Pro include savings. Extra-account limits and prices apply only where the service is available. No package transfer-amount cap; available funds and payment authorization still apply. Published monthly package billing remains disabled.') +flow.append(p('Credit & accepted contracts','HGuide'));credit={r['key']:r for r in pub['credit']};table(['Product','Annual rate','Principal range','Term'],[[x['name'],f"{credit[x['key']]['annualBps']/100:.2f}%",f"{x['min']}–{x['max']} DM",', '.join(map(str,x['terms']))+' months' if x.get('terms') else 'Up to '+str(x.get('maxMonths','—'))+' months']for x in D['credit']],[145,80,124,150]);paragraph('Launch grants are repayable at 0%. Ordinary loans require review and an initial 5% instalment from own funds, which reduces the loan balance. Pro ceilings and collateral conditions are in the service notices. No revolving credit is offered. A new rate is not a rewrite of an existing fixed-rate contract.') +flow.append(p('Configured tax register','HGuide'));tax=pub['taxes'];table(['Tax','Current configured value'],[['Applicable sales VAT',f"{tax['vatBps']/100:.2f}%"],['Bank fee VAT',f"{tax['bankFeeVatBps']/100:.2f}%"],['Monthly account tax',f"{tax['monthlyAccountTaxMinor']/100:.2f} DM"]]);paragraph('A configured tax does not enable tax collection for unsupported flows. The specific transaction consumer must implement it and post its ledger entries.') +pay=pub['payrollTax'];flow.append(p('Payroll register','HGuide'));paragraph(f"Employee social contribution {pay['employeeSocialBps']/100:.2f}%; employer contribution {pay['employerSocialBps']/100:.2f}%. Annual basic allowance {pay['annualAllowanceMinor']/100:.2f} DM. Game model basis year {pay['basisYear']}.");lower=0;bands=[] +for b in pay['bands']: + bands.append([('Above '+f'{lower/100:.2f}') if b['upToMinor'] is None else f"{lower/100:.2f}–{b['upToMinor']/100:.2f}",f"{b['bps']/100:.2f}%"]);lower=b['upToMinor'] +table(['Annual taxable DM','Marginal rate'],bands) +for section in D['sections']: + flow.append(PageBreak());flow.append(p(section['title'],'HGuide')) + for text in section.get('paragraphs',[]):paragraph(text) + table(section['headers'],section['rows']) +flow.append(p('Versioned instruments and rewards','HGuide'));paragraph('Keys define scoped authority; a generated or listed key is not proof of execution. System accounts have no player/staff banking rights. Reputation quest payouts require an explicitly configured reward, a consumed verified claim and existing funded treasury money. Eligible Mentat bonuses are recorded by policy; no automatic default cash reward is enabled. Personal XP and ordinary accepted contract conditions remain independent.');paragraph('Political v2.2 proposal amounts use the same numerical DM values. A proposal is not an active charge or effect. Current deed, target, cost, cooldown and duration must be implemented by its registered domain consumer before execution is available.') +def page(c,doc): + c.saveState();w,h=doc.pagesize;c.setStrokeColor(gold);c.setLineWidth(1);c.line(48,h-57,w-48,h-57);c.setFont('GuideBold',9);c.setFillColor(green);c.drawString(48,h-40,'IMPERIAL POSTBANK');c.setFont('Guide',7);c.drawRightString(w-48,h-40,'DUNEREALMS · RATES & CHARGES');c.line(48,42,w-48,42);c.setFillColor(muted);c.setFont('Guide',6.7);c.drawString(48,29,D['edition']);c.drawRightString(w-48,29,'Fictional game economy · Page '+str(doc.page));c.restoreState() +SimpleDocTemplate(out,pagesize=(595,842),rightMargin=48,leftMargin=48,topMargin=73,bottomMargin=59,title='DuneRealms Rates & Charges '+D['edition'],author='Imperial Postbank').build(flow,onFirstPage=page,onLaterPages=page) +print(json.dumps({'pdf':out,'bytes':Path(out).stat().st_size,'edition':D['edition']})) diff --git a/website/web/downloads/dunerealms-rates-guide-20261121.pdf b/website/web/downloads/dunerealms-rates-guide-20261121.pdf new file mode 100644 index 00000000..21690695 Binary files /dev/null and b/website/web/downloads/dunerealms-rates-guide-20261121.pdf differ diff --git a/website/web/downloads/rates-guide-20261121.json b/website/web/downloads/rates-guide-20261121.json new file mode 100644 index 00000000..7810e15f --- /dev/null +++ b/website/web/downloads/rates-guide-20261121.json @@ -0,0 +1 @@ +{"edition":"alpha-1.0.1.2-20261121","publishedAt":1795259666943,"publication":{"version":"a01361cd-80e4-4440-a752-6429becf5d4b","publishedAt":1794750949281,"policyVersions":{"bank":0,"taxes":0,"payrollTax":0},"packages":[{"key":"pb_start","name":"Start","instant":0,"unlimitedInstant":false,"transferAmountCap":null,"monthlyMinor":0,"extraMinor":0},{"key":"pb_flow","name":"Flow","instant":5,"unlimitedInstant":false,"transferAmountCap":null,"monthlyMinor":500,"extraMinor":300},{"key":"pb_pro","name":"Pro","instant":null,"unlimitedInstant":true,"transferAmountCap":null,"monthlyMinor":1500,"extraMinor":200},{"key":"pb_connect","name":"Connect","instant":15,"unlimitedInstant":false,"transferAmountCap":null,"monthlyMinor":1000,"extraMinor":300},{"key":"pb_scale","name":"Scale","instant":40,"unlimitedInstant":false,"transferAmountCap":null,"monthlyMinor":2500,"extraMinor":200},{"key":"pb_civic","name":"Civic","instant":10,"unlimitedInstant":false,"transferAmountCap":null,"monthlyMinor":0,"extraMinor":0},{"key":"pb_public","name":"Public","instant":25,"unlimitedInstant":false,"transferAmountCap":null,"monthlyMinor":0,"extraMinor":0}],"credit":[{"key":"grant_start","name":"Launch Start","annualBps":0,"availability":"Automatic launch grant"},{"key":"grant_build","name":"Launch Build","annualBps":0,"availability":"Automatic launch grant"},{"key":"grant_advance","name":"Launch Advance","annualBps":0,"availability":"Automatic launch grant"},{"key":"personal_loan","name":"Personal Loan","annualBps":839,"availability":"Subject to credit review"},{"key":"personal_overdraft","name":"One-Month Advance","annualBps":1039,"availability":"Subject to credit review"},{"key":"personal_card","name":"Personal Credit Line","annualBps":839,"availability":"Planned credit line"},{"key":"business_loan","name":"Business Loan","annualBps":450,"availability":"Subject to credit review"},{"key":"civic_loan","name":"Civic Loan","annualBps":350,"availability":"Subject to credit review"},{"key":"personal_refinance","name":"Personal Refinancing","annualBps":1200,"availability":"Subject to credit review"},{"key":"business_refinance","name":"Business Refinancing","annualBps":650,"availability":"Subject to credit review"},{"key":"civic_refinance","name":"Civic Refinancing","annualBps":550,"availability":"Subject to credit review"}],"taxes":{"vatBps":2100,"bankFeeVatBps":0,"monthlyAccountTaxMinor":0},"payrollTax":{"employeeSocialBps":1307,"employerSocialBps":2500,"annualAllowanceMinor":1155000,"bands":[{"upToMinor":1672000,"bps":2500},{"upToMinor":2951000,"bps":4000},{"upToMinor":5107000,"bps":4500},{"upToMinor":null,"bps":5000}],"basisYear":2026,"sources":["https://fin.belgium.be/en/private-individuals/tax-return/income/tax-rates","https://www.socialsecurity.be/site_nl/employer/infos/employers_nsso/which-contributions.htm"]},"serviceNotices":["Monthly package billing is not enabled.","Standard transfers settle every four hours in Europe/Brussels. Instant transfers post immediately.","Pro includes unlimited instant payments at no per-transfer fee. Transfers have no package amount cap; available funds and payment security apply.","Pro personal borrowing ceilings: Personal Loan 75,000 DM; One-Month Advance 7,500 DM; Personal Refinancing 300,000 DM. Credit review and 25% collateral still apply. Launch grants are unchanged.","Balance Guard is a configured option; protection and billing remain inactive until that service is enabled.","Service compensation posts immediately. Statements are free for every package."],"pdfReady":true,"pdfUrl":"/api/bank/public/rates.pdf?version=a01361cd-80e4-4440-a752-6429becf5d4b"},"bankVersion":"postbank-foundation-2026-11-13","creditVersion":"postbank-credit-2026-11-15-first-instalment","packages":[{"key":"pb_start","name":"Start","kinds":["person"],"monthly":0,"code":"108","extra":0,"extraFee":0,"instant":0},{"key":"pb_flow","name":"Flow","kinds":["person"],"monthly":500,"code":"102","extra":1,"extraFee":300,"instant":5,"savings":true},{"key":"pb_pro","name":"Pro","kinds":["person"],"monthly":1500,"code":"102","extra":3,"extraFee":200,"instant":null,"unlimitedInstant":true,"savings":true},{"key":"pb_connect","name":"Connect","kinds":["clan","company"],"monthly":1000,"code":"105","extra":2,"extraFee":300,"instant":15},{"key":"pb_scale","name":"Scale","kinds":["clan","company"],"monthly":2500,"code":"105","extra":9,"extraFee":200,"instant":40},{"key":"pb_civic","name":"Civic","kinds":["house","office"],"monthly":0,"code":"107","extra":0,"extraFee":0,"instant":10},{"key":"pb_public","name":"Public","kinds":["staff"],"monthly":0,"code":"979","extra":0,"extraFee":0,"instant":25}],"credit":[{"key":"grant_start","name":"Launch Start","group":"grants","kinds":["person"],"amount":"2500.00","min":"2500.00","max":"2500.00","annualBps":0,"maxMonths":12,"automatic":true,"art":"postbank-grant-start-v1.png"},{"key":"grant_build","name":"Launch Build","group":"grants","kinds":["person"],"amount":"5000.00","min":"5000.00","max":"5000.00","annualBps":0,"maxMonths":12,"automatic":true,"art":"postbank-grant-build-v1.png"},{"key":"grant_advance","name":"Launch Advance","group":"grants","kinds":["person"],"amount":"10000.00","min":"10000.00","max":"10000.00","annualBps":0,"maxMonths":12,"automatic":true,"art":"postbank-grant-advance-v1.png"},{"key":"personal_loan","name":"Personal Loan","group":"personal","kinds":["person"],"min":"1000.00","max":"25000.00","annualBps":839,"terms":[3,6,9,12]},{"key":"personal_overdraft","name":"One-Month Advance","group":"personal","kinds":["person"],"min":"250.00","max":"2500.00","annualBps":1039,"terms":[1]},{"key":"business_loan","name":"Business Loan","group":"professional","kinds":["clan","company"],"min":"5000.00","max":"100000.00","annualBps":450,"terms":[3,6,12,18,24]},{"key":"civic_loan","name":"Civic Loan","group":"professional","kinds":["house","office"],"min":"5000.00","max":"100000.00","annualBps":350,"terms":[3,6,12]},{"key":"personal_refinance","name":"Personal Refinancing","group":"refinancing","kinds":["person"],"min":"0.01","max":"100000.00","annualBps":1200,"terms":[3,6,9,12,18,24]},{"key":"business_refinance","name":"Business Refinancing","group":"refinancing","kinds":["clan","company"],"min":"0.01","max":"500000.00","annualBps":650,"terms":[3,6,12,18,24]},{"key":"civic_refinance","name":"Civic Refinancing","group":"refinancing","kinds":["house","office"],"min":"0.01","max":"500000.00","annualBps":550,"terms":[3,6,12]}],"sections":[{"id":"tax-rules","title":"Tax rules & payment destinations","art":"imperial-postbank-v2.png","paragraphs":["A configured tax rate does not make every website or Minecraft action taxable. The relevant transaction handler must apply the tax and record its ledger entries. No blanket extra tax is added to the prices below.","Rihla: 1% for transfers up to and including 3,000 DM; 5% on the full amount above 3,000 DM. The sender pays principal plus tax; the recipient receives the full principal. Tax rounds upward to the next cent. In-game sending and collection remain a separate integration."],"headers":["Charge","Who pays / basis","Destination / status"],"rows":[["Applicable game-sales VAT","Configured public VAT rate; supported taxable sales only","Tax treasury; game-flow integration dependent"],["VAT on bank fees","Configured bank-fee VAT rate shown in the live register","Tax treasury; a zero rate adds no VAT"],["Monthly account tax","Configured fixed amount shown in the live register","A zero amount adds no account tax"],["Package and account charges","Accepted package terms; automated monthly billing remains disabled","Website bank treasury; published fees are not yet monthly collection"],["Rihla transfer tax","Sender; 1% / 5% of full principal","Tax treasury on collection; game execution pending"],["Payroll deductions","Employee social contribution and income tax; employer social contribution is additional","Tax treasury through supported P&O payroll posting"],["Recruitment and campaigns","Publishing organisation or officeholder; accepted quote","Tax treasury; listing charge is distinct from VAT"],["Office auction","Winning bidder; accepted final bid","Tax treasury; losing holds released"],["Claim upkeep / unlock","Original organisation, including upgrades by its mother","Tax treasury; published schedule and supported claim flow apply"],["Server project funding","Approved budget paid from available Tax funds","Dedicated 979 project account; approved funded project consumer"]]},{"id":"publication-charges","title":"Recruitment, campaigns & office auctions","art":"exchange-political-positions-v1.png","paragraphs":["Recruitment: Basic clans are free. Keyed/Royal recruitment uses 10 DM + 0.25 DM per occupied member. Protected institutions do not use ordinary recruitment. Political custom vacancies use the same agreed recruitment tariff.","Campaign bookings use whole hourly slots, may cover multiple hours and open no earlier than seven days before the election. A featured slot is exclusive for its election scope and hour. Forum/Discord promotion is optional: 25 DM per selected channel per booking, not per hour; retries do not create another charge."],"headers":["Election campaign","Standard / hour","Featured / hour"],"rows":[["Clan Delegate","100.00 DM","150.00 DM"],["House leader","250.00 DM","375.00 DM"],["Veiled Concord","250.00 DM","375.00 DM"],["Vaerkring","250.00 DM","375.00 DM"],["Emperor","1000.00 DM","1500.00 DM"],["Office auction opening bid","100.00 DM","Minimum increase 10.00 DM"]]},{"id":"reserve-instruments","title":"Federal Reserve & J.A.R.V.I.S. instruments","art":"imperial-postbank-v2.png","paragraphs":["An instrument records a purpose and authority; knowing a reference is not permission. Public references never disclose secret codes. These are fictional game-economy instruments, not real-world securities.","Reserve issuance is restricted to the designated reserve owner and existing administration checks. It uses balanced grant postings to the Tax treasury; this guide creates no reserve budget or money. The new baseline and seasonal budget still require configuration."],"headers":["Instrument / flow","Purpose","Availability"],"rows":[["Economic snapshot · ECO-SNAP","Sealed observation, baseline, policy version, index and rates; immutable payload hash","Implemented archival instrument; automatic collection is not connected"],["Reserve grant","Existing owner-controlled issuance to the Tax treasury, recorded in both ledgers","Existing restricted bank flow; no public redeemable reserve key"],["Policy / baseline change","Versioned configuration followed by a new observation","Requires a reviewed implementation or supported dev batch; no invented player code"],["Developer batch instrument","Exact manifest, server identity, short expiry, once-only action and audit receipt","Server/CLI only; never a website generator, download or player entitlement"],["Rihla instrument · RIA","Account-bound transfer reference, parties, amount and state","Private website register; in-game execution pending"],["News record · NEWS","Sealed public fact linked to its source and article","Confirmed Gazette article and publication receipt; not a redeemable reward"]]},{"id":"economy-formulas","title":"Economic formulas & limits","art":"imperial-postbank-v2.png","paragraphs":["Calculation policy v1. Formula support is implemented; automatic price, savings-interest, lending-rate and wage adjustments are not enabled by publishing this guide. Existing accepted loans keep their contracted rates. Player-set listing prices are not silently rewritten.","M = verified circulating DM; M0 = a strictly positive approved baseline. E is an index, not a direct annual inflation percentage. Unfunded issuance positions and system reserves must be classified by the approved collector; issued minus returned alone is not a complete inflation measure."],"headers":["Calculation","Formula","Limits / meaning"],"rows":[["Money index","E = (M / M0)^0.25","M0 > 0; a fresh baseline starts at E = 1"],["Demand factor","D = ((sold + 10) / (offered + 10))^0.15","Verified counts; smoothing avoids empty-market division"],["System price target","target = clamp(base price × E × D, 0.5 × base, 2 × base)","System catalogue prices only; quote policy/version must be stored"],["Published system price","clamp(target, 0.95 × previous, 1.05 × previous)","Maximum ±5% per daily step; round in cents within bounds"],["Savings rate","S = clamp(round(S0 + 500 × (E − 1)), Smin, Smax)","Basis points; +5 percentage points per +1 index unit. Base and bounds require configuration"],["New lending rate","L = clamp(round(L0 + 1000 × (E − 1)), Lmin, Lmax)","Basis points; +10 percentage points per +1 index unit. Existing contracts unchanged"],["Indexed staff wage","target = base wage × E; next = clamp(target, 0.95 × previous, 1.05 × previous)","Maximum ±5% per monthly step; use P&O approved wages"],["Tax-inclusive price","gross = net + applicable tax","Only when that transaction implements the relevant tax rule"]]},{"id":"payroll-formulas","title":"Payroll calculation","art":"nav-staff-v2.webp","paragraphs":["All amounts use integer DM cents. Contribution and tax calculations round to the nearest cent using the existing payroll model. This is a fictional game model with selected Belgian-inspired parameters; household deductions and real-world tax advice are outside its scope."],"headers":["Step","Calculation"],"rows":[["Employee contribution","round(gross monthly × employee social rate)"],["Monthly taxable pay","gross monthly − employee contribution"],["Annual progressive tax","Apply the configured marginal bands to 12 × monthly taxable pay"],["Basic allowance credit","Apply the same tax bands to the annual basic allowance; subtract this credit from annual tax, floor at zero"],["Monthly income tax","round(max(annual tax − allowance credit, 0) / 12)"],["Net wage","gross monthly − employee contribution − monthly income tax"],["Employer cost","gross monthly + round(gross monthly × employer social rate)"],["Tax treasury receipt","employee contribution + monthly income tax + employer contribution"]]},{"id":"guide-claims-clan","title":"Clans · claim schedule","paragraphs":["Capacity and price schedule; the published guide does not itself reserve land, upgrade a deed or enable recurring billing."],"headers":["Tier","Chunks","Monthly","Unlock"],"rows":[["BC_T0","1","0.00 DM","0.00 DM"],["BC_T1","2","2.00 DM","40.00 DM"],["BC_T2","3","4.00 DM","60.00 DM"],["BC_T3","4","6.00 DM","80.00 DM"],["KC_T0","4","5.00 DM","50.00 DM"],["KC_T1","6","8.00 DM","120.00 DM"],["KC_T2","9","12.00 DM","180.00 DM"],["KC_T3","12","16.00 DM","220.00 DM"],["KC_T4","16","22.00 DM","300.00 DM"],["RC_T0","16","18.00 DM","180.00 DM"],["RC_T1","20","24.00 DM","320.00 DM"],["RC_T2","25","30.00 DM","400.00 DM"],["RC_T3","36","44.00 DM","660.00 DM"]]},{"id":"guide-claims-company","title":"Companies · claim schedule","paragraphs":["Capacity and price schedule; the published guide does not itself reserve land, upgrade a deed or enable recurring billing."],"headers":["Tier","Chunks","Monthly","Unlock"],"rows":[["BCO_T0","1","0.00 DM","0.00 DM"],["BCO_T1","3","3.00 DM","60.00 DM"],["BCO_T2","4","6.00 DM","90.00 DM"],["BCO_T3","6","9.00 DM","120.00 DM"],["KCO_T0","6","7.50 DM","75.00 DM"],["KCO_T1","9","12.00 DM","180.00 DM"],["KCO_T2","13","18.00 DM","270.00 DM"],["KCO_T3","18","24.00 DM","330.00 DM"],["KCO_T4","24","33.00 DM","450.00 DM"],["RCO_T0","24","27.00 DM","270.00 DM"],["RCO_T1","30","36.00 DM","480.00 DM"],["RCO_T2","37","45.00 DM","600.00 DM"],["RCO_T3","54","66.00 DM","990.00 DM"]]},{"id":"guide-claims-protected","title":"Protected Houses · claim schedule","paragraphs":["Capacity and price schedule; the published guide does not itself reserve land, upgrade a deed or enable recurring billing."],"headers":["Tier","Chunks","Monthly","Unlock"],"rows":[["PBC_T0","1","0.00 DM","0.00 DM"],["PBC_T1","3","1.00 DM","20.00 DM"],["PBC_T2","4","2.00 DM","30.00 DM"],["PBC_T3","6","3.00 DM","40.00 DM"],["PKC_T0","6","2.50 DM","25.00 DM"],["PKC_T1","9","4.00 DM","60.00 DM"],["PKC_T2","13","6.00 DM","90.00 DM"],["PKC_T3","18","8.00 DM","110.00 DM"],["PKC_T4","24","11.00 DM","150.00 DM"],["PRC_T0","24","9.00 DM","90.00 DM"],["PRC_T1","30","12.00 DM","160.00 DM"],["PRC_T2","37","15.00 DM","200.00 DM"],["PRC_T3","54","22.00 DM","330.00 DM"]]}]} \ No newline at end of file diff --git a/website/web/downloads/rates-guide-manifest.json b/website/web/downloads/rates-guide-manifest.json index 389881f1..18657b12 100644 --- a/website/web/downloads/rates-guide-manifest.json +++ b/website/web/downloads/rates-guide-manifest.json @@ -1,11 +1,14 @@ { - "edition": "alpha-1.0.1.2-20261118", + "edition": "alpha-1.0.1.2-20261121", "sourcePublicationVersion": "a01361cd-80e4-4440-a752-6429becf5d4b", - "publishedAt": 1795041118647, + "sourcePublishedAt": 1794750949281, + "publishedAt": 1795259666943, "policyVersions": { "bank": 0, "taxes": 0, "payrollTax": 0 }, - "pdf": "/downloads/dunerealms-rates-guide-20261118.pdf" -} \ No newline at end of file + "pdf": "/downloads/dunerealms-rates-guide-20261121.pdf", + "sourceData": "/downloads/rates-guide-20261121.json", + "pdfSha256": "09e57315d35dea73e92221720bb38e8e9541cadec7d9635acfe330b43f431bc2" +}