02 / 25Industrial / Mining

Fedeliq

Visit the site

Mining settlement

Sector
Government PWA / mining RegTech
Client
CISEP + FNI (UTO) for FEDECOMIN Oruro
Role
Solutions Architect & Tech Lead
Year
2026
Fedeliq — Mining settlement

A PWA that operationalises Law 535 so cooperative miners can verify their settlements

The project

A mobile-first, offline-first, installable PWA that puts the full formula of Bolivia's Law 535 on a cooperative miner's phone, so they can check whether the settlement the trading company pays them is fair. It includes an administrative panel (a mining settlements observatory) for CISEP/FEDECOMIN. A complete rewrite of the legacy V3.

The Challenge

In Bolivia around 9 in 10 miners work in cooperatives, and most cannot verify the calculation on their settlement slip (weights, grades, moisture, losses, quoted prices, mining royalty and dozens of deductions). That information asymmetry translates directly into lower household income; the right to information (Art. 87h/89) had to be operationalised with a calculation engine faithful to the statute and with up-to-date official data.

What We Built

We built a deterministic mining royalty calculation engine (the Art. 227 rate on a dynamic per-mineral scale, Supreme Decree 29577, dual exchange rate) replicated on the client and in Cloud Functions, validated against real receipts down to the cent. We automated ingestion of SENARECOM quoted prices and BCB exchange rates with idempotent cron scrapers, integrated slip OCR with Gemini, and stood up an observatory with KPIs and Art. 89 claims — all serverless at roughly $0/year.

  1. Law 535 Art. 227 calculation engine, validated to the cent
  2. 580 tests (Vitest, 28 files)
  3. AI receipt scanning (Gemini / Firebase AI Logic)
  4. 18 Cloud Functions with BCB/SENARECOM cron scrapers
  5. ~204 trading companies and ~125 cooperatives loaded
  6. Art. 89 re-settlement with automatic closure after 5 business days

Stack

Angular 21TypeScript 5.9PWA (offline-first)Firebase (Firestore, Cloud Functions Node 22, Auth, Storage, Hosting)Firebase AI Logic (Gemini 3.5 Flash)cheeriopdf-parsejsPDFBunVitest
Next project →Mi Negocio

Have something similar in mind?

Tell us what you need: we look at it together and propose a way forward in writing, in English or Spanish.

[email protected]