Skip to content

EndOfMaster/olympus-contracts

 
 

Repository files navigation

Ω Olympus Smart Contracts

image

This is the main Olympus smart contract development repository.

🚨 warning

This fork modified the contract, some tests may not work properly

This fork modify

  • about auth
  • some deploy script

Requirements

Local Setup Steps

# Clone the repository
git clone https://github.com/OlympusDAO/olympus-contracts.git

# Install dependencies
yarn install

# Set up environment variables (keys)
cp .env.example .env # (linux)
copy .env.example .env # (windows)

# compile solidity, the below will automatically also run yarn typechain
yarn compile

# if you want to explicitly run typechain, run
yarn compile --no-typechain
yarn typechain

# run a local hardhat node
yarn run start

# test deployment or deploy 
# yarn run deploy:<network>, example:
yarn run deploy:hardhat

Notes

  • The bond must be created after the treasury deposit(), otherwise, terms.ontrolvariable must be 0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 62.3%
  • TypeScript 23.7%
  • JavaScript 13.4%
  • Makefile 0.2%
  • Shell 0.2%
  • Dockerfile 0.1%
  • Nix 0.1%