Skip to content

Core contracts of Digg BTC-pegged elastic supply currency

License

Notifications You must be signed in to change notification settings

Badger-Finance/digg-core

Repository files navigation

Badger

Forked from Ampleforth @ commit hash 9a940f30d62df9dde709974988d3edc5546d6721

Build Status  Coverage Status

Ampleforth (code name uFragments) is a decentralized elastic supply protocol. It maintains a stable unit price by adjusting supply directly to and from wallet holders. You can read the whitepaper for the motivation and a complete description of the protocol.

This repository is a collection of smart contracts that implement the Ampleforth protocol on the Ethereum blockchain.

The official mainnet addresses are:

Table of Contents

Install

# Install project dependencies
npm install

# Install ethereum local blockchain(s) and associated dependencies
npx setup-local-chains

Testing

# You can use the following command to start a local blockchain instance
npx start-chain [ganacheUnitTest|gethUnitTest]

# Run all unit tests
npm test

# Run unit tests in isolation
npx truffle --network ganacheUnitTest test test/unit/uFragments.js

Testnets

There is a testnet deployment on Rinkeby. It rebases hourly using real market data.

Contribute

To report bugs within this package, create an issue in this repository. For security issues, please contact [email protected]. When submitting code ensure that it is free of lint errors and has 100% test coverage.

# Lint code
npm run lint

# View code coverage
npm run coverage

License

GNU General Public License v3.0 (c) 2018 Fragments, Inc.

About

Core contracts of Digg BTC-pegged elastic supply currency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published