Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basis

Basis is a system of smart contracts designed to automatically manage the issuance of a sovereign/reserve currency-style ERC20 token, called basis. The Issuer contract is the primary point of interaction for users, controlling issuance of the underlying basis token and all of its bond tokens. Bonds are themselves ERC20 tokens, redeemable through the Issuer contract at (or after!) their expiration for an equal amount of the underlying basis token. The Issuer contract sells new bonds via a Dutch auction mechanism, where the yield on new bonds increases until they are all sold.

Basis uses the Foundry framework for compilation, tests, and deployment.

See below for development-related commands.

Installation

Install foundry

curl -L https://foundry.paradigm.xyz | bash && foundryup

Install dependencies

forge install

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script SystemDeploy --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages