caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

44 lines
1.6 KiB
Plaintext

@predikt/fpmm
=============
This package contains the Fixed Product Market Maker (FPMM) and deterministic
factory that Predikt deploys on-chain for its Conditional-Tokens prediction
markets.
Origin
------
The Solidity sources in `contracts/` are derived from Gnosis'
"conditional-tokens-market-makers" project:
https://github.com/gnosis/conditional-tokens-market-makers
Copyright (C) Gnosis Ltd.
Licensed under the GNU Lesser General Public License v3.0 (LGPL-3.0).
The full license text is in the accompanying LICENSE file.
Modifications by Predikt
------------------------
Predikt has rebranded the package surface (package.json name -> @predikt/fpmm,
README) and added a Foundry build configuration (foundry.toml) so the contracts
compile with `forge` using solc 0.5.x. The build was scoped to the FPMM +
deterministic-factory contracts that Predikt deploys.
The AMM pricing logic (calcBuyAmount, calcSellAmount, buy, sell, addFunding,
removeFunding, and the fee-pool accounting) is UNCHANGED from the upstream
Gnosis implementation. No market-making math was reimplemented or altered.
Deployment model
----------------
These contracts are compiled and deployed as standalone on-chain smart
contracts. The Predikt application interacts with the deployed contracts via
their ABI (JSON-RPC calls); the LGPL-3.0 Solidity sources are not linked into
or bundled with the application binary. The deployed contract remains available
under LGPL-3.0.
As required by LGPL-3.0, these contracts come WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.