Skip to content

A reimplementation of the DAI with clear variable naming.

Notifications You must be signed in to change notification settings

ljzbtc/dai-reimplement

Repository files navigation

DAI Reimplementation

Overview

This project is a reimplementation of the DAI stablecoin smart contract, upgraded to Solidity 0.8.x. The primary goal is to improve code readability and maintainability, with a focus on better variable naming conventions.

Progress

  • dai.sol => DaiERC20.sol
  • vat.sol =>[comment]
  • spot.sol =>[comment]
  • join.sol =>[comment]
  • abaci.sol
  • dog.sol
  • clip.sol

Motivation

The main reasons for this reimplementation are:

  1. Unusual and confusing variable naming in the original DAI implementation
  2. Upgrade to Solidity 0.8.x to leverage newer language features and optimizations
  3. Improve overall code readability and maintainability

By addressing these issues, we aim to create a more understandable and maintainable version of the DAI contract.

Features

  • Upgraded to Solidity 0.8.x
  • Improved variable naming conventions
  • Enhanced code readability and structure
  • Leveraging Solidity 0.8.x built-in safeguards

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This is an experimental reimplementation focused on code readability improvements. It is not affiliated with or endorsed by the official MakerDAO team. This version prioritizes code clarity over extensive testing - use at your own risk.

About

A reimplementation of the DAI with clear variable naming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published