Skip to content

Smart contracts for Ahoj.Token stablecoin. It is based on Ampleforths decentralized elastic supply protocol.

License

Notifications You must be signed in to change notification settings

bayroio/ahoj-token

Repository files navigation

Ahoj.Token

Ahoj.Token is a stablecoin based on Ampleforths 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 Avalanche blockchain.

The official mainnet addresses are:

  • ERC-20 Token: TBD
  • Supply Policy: TBD
  • Orchestrator: TBD
  • Market Oracle: TBD
  • CPI Oracle: TBD

Table of Contents

Install

# Install project dependencies
yarn

Testing

# Run all unit tests (compatible with node v12+)
yarn test

Testnets

There is a testnet deployment on Fuji. 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 hi@bayro.io. When submitting code ensure that it is free of lint errors and has 100% test coverage.

# Lint code
yarn lint

# Format code
yarn format

# Run solidity coverage report (compatible with node v12)
yarn coverage

# Run solidity gas usage report
yarn profile

Attribution

These contracts were adapted from this repo: uFragments

License

GNU General Public License v3.0 (c) 2021 Bayro, LLC.

About

Smart contracts for Ahoj.Token stablecoin. It is based on Ampleforths decentralized elastic supply protocol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published