Smart contracts for Partial f, a decentralized protocol that allows the printing of synthetic derivative tokens.
npm install
npm run compile
ganache-cli
npm test
Partial f's source code is licensed under the Apache 2.0 License, and contributions are welcome.
Thank you!
Allows the creation ERC-777 tokens that represent product tokens (e.g. CTB).
Allows a client to create and manage an agreement.
Allows ERC-20 & ETH tokens to be deposited and withdrawn as agreement collateral.
Allows collateral to be sold in the event of liquidation.
Allows a single source of truth for the Partial f system.
Allows product tokens to be deposited and withdrawn from an agreement.
Contains the DSMath package includes functions that allow fixed-point mathematics.
Contains the formulae for the dynamic debt rule.
Contains a helper method that calculates the agreement collateral value & liquidation ratio.