DK

Deterministic financial math.
Identical results everywhere.

Precision arithmetic for DeFi protocols. Same calculation, same result—x86, ARM, or WASM. 28 significant digits. 7 rounding modes.

View Documentation
precision_example.rs
1use precision_core::Decimal;
2 
3// Identical results on x86, ARM, and WASM
4let a = Decimal::from_str("0.1").unwrap();
5let b = Decimal::from_str("0.2").unwrap();
6let result = a.checked_add(b).unwrap();
7 
8assert_eq!(result.to_string(), "0.3");
9// Always. Every platform. Every time.

Built for protocols like

Aave
Compound
Uniswap
Arbitrum
Optimism

Built for precision. Designed for DeFi.

Start with the open-source library. Scale with the commercial dashboard.

Open-Source Libraries

MIT Licensed

precision-core, financial-calc, and risk-metrics. Battle-tested arithmetic with 28 significant digits and 7 rounding modes.

  • 128-bit decimal precision
  • Cross-platform determinism
  • no_std compatible
View on crates.io

WASM Bindings

npm

@dijkstra-keystone/keystone-wasm. Same precision guarantees in the browser. 65KB optimized bundle.

  • Browser & Node.js
  • TypeScript definitions
  • Async initialization
View on npm

Risk Dashboard

Commercial

Multi-protocol DeFi monitoring. Track positions across Aave, Compound, and Uniswap with real-time alerts.

  • Health factor tracking
  • Liquidation warnings
  • Webhook alerts
View pricing

Same input. Same output.
Every platform.

Standard floating-point arithmetic:

0.1 + 0.2 = 0.30000000000000004

Keystone produces byte-identical results whether you run on x86 servers, ARM mobile, or WASM in browsers. No reconciliation failures. No cross-platform bugs. No audit surprises.

28
Significant digits
7
Rounding modes
~8ns
Per operation
100+
Property tests
terminal
x86_64 Linux
$ keystone eval "0.1 + 0.2"
0.3
ARM64 macOS
$ keystone eval "0.1 + 0.2"
0.3
WASM Browser
$ keystone eval "0.1 + 0.2"
0.3

All platforms produce identical output.

Transparent pricing

Start free with the open-source libraries. Upgrade when you need monitoring.

Libraries

Free

Open-source, forever. MIT licensed.

  • precision-core, financial-calc, risk-metrics
  • WASM bindings
  • Community support
Get Started
Recommended

Dashboard

$99/mo

For developers and small teams.

  • Multi-protocol monitoring
  • Real-time health tracking
  • Email & webhook alerts
Start Free Trial

Protocol

Custom

For DeFi protocols. Volume-based pricing.

  • Dedicated infrastructure
  • Custom integrations
  • SLA & audit support
Contact Us

Start with the library.
Scale with the dashboard.

Deterministic computation for DeFi protocols.