Skip to content

Smart contracts for Partial f, a decentralized protocol that allows the printing of synthetic derivative tokens

License

Notifications You must be signed in to change notification settings

isaacsultan/core

Repository files navigation

core

CircleCI

Smart contracts for Partial f, a decentralized protocol that allows the printing of synthetic derivative tokens.

Development

Install

npm install

Compile

npm run compile

Test

ganache-cli
npm test

Contributing

Partial f's source code is licensed under the Apache 2.0 License, and contributions are welcome.

Thank you!

Architecture

Contracts

Base Protocol

BasicToken.sol

Allows the creation ERC-777 tokens that represent product tokens (e.g. CTB).

Broker.sol

Allows a client to create and manage an agreement.

CollateralTeller.sol

Allows ERC-20 & ETH tokens to be deposited and withdrawn as agreement collateral.

Liquidator.sol

Allows collateral to be sold in the event of liquidation.

ManagingDirector.sol

Allows a single source of truth for the Partial f system.

ProductTeller.sol

Allows product tokens to be deposited and withdrawn from an agreement.

Libraries & Helpers

Math.sol

Contains the DSMath package includes functions that allow fixed-point mathematics.

Economics.sol

Contains the formulae for the dynamic debt rule.

Compliance.sol

Contains a helper method that calculates the agreement collateral value & liquidation ratio.

About

Smart contracts for Partial f, a decentralized protocol that allows the printing of synthetic derivative tokens

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published