GithubHelp home page GithubHelp logo

mkr-mcd-spec's Introduction

KMCD - MKR Multi-Collateral Dai (MCD) KSpecification

UNDER CONSTRUCTION

Useful Links

Structure

The semantics is broken into several sub-modules.

  • kmcd-driver - common functionality in all modules.

  • kmcd - union all sub-modules.

  • cdp-core - core accounting system for MCD.

  • collateral - collateral linking.

  • dai - ERC20 fungible collateral version of Dai.

  • rates - rate adjustments and price feeds

  • stabilize - forcible stabilization of risky CDPs.

Potential Properties

  • After executing method X of contract C, the suffix of the log will contain these events ...
  • Every time a ward changes, a log event should be emmitted which says so (and the log event should have the correct data). Will only apply to methods which have note modifier, but perhaps should be always.
  • Fundamental equation of Dai (invariant over CDPs + dai).
  • What happens if the "maintenance" functions like drip are not called for too long of a timeframe? Drip is called by jug.sol and pot.sol, and if not called frequently enough, system could act funny.

One of the architecture decisions made was to make *Like interfaces for actually accessing functions/data of the underlying implementations. For example, Cat has Urn defined just to have access to the getters/setters from other contracts.

For inverting storage of vat so that we have some implicit account (msg.sender), we should inspect frob as a test-case, because it access wish on three different passed in addresses.

Order to Model

  • vat.sol
  • lib.sol

Second layer:

  • jug.sol
  • pot.sol
  • spot.sol

Collateral:

  • dai.sol
  • join.sol

Auctions:

  • vow.sol
  • cat.sol
  • flop.sol
  • flip.sol
  • flap.sol

Global:

  • end.sol

mkr-mcd-spec's People

Contributors

daejunpark avatar dwightguth avatar ehildenb avatar gtrepta avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.