_ _ ___ __ __ _
| || | | __| \ \/ / / |
| __ | | _| > < | |
|_||_| |___| /_/\_\ _|_|_
_|"""""| _|"""""| _|"""""| _|"""""|
"`-0-0-' "`-0-0-' "`-0-0-' "`-0-0-'
This repository contains the smart contracts source code for Hex One Protocol. The repository uses Foundry as a development enviroment for compilation, testing and deployment tasks.
A yield-bearing stablecoin backed by HEX T-shares. 1 $HEX1 = $1 worth of HEX.
Clone with recurse:
git clone https://github.com/HexOneProtocol/hex1-contracts.git --recurse
Alternatively, if you have already cloned without recurse, do:
git submodule update --init --recursive
Install Foundry to get started:
curl -L https://foundry.paradigm.xyz | bash
foundryup
Install all dependencies:
forge install
forge test -vvv
Run tests with gas report:
forge test --gas-report
forge coverage
Detailed coverage report:
forge coverage --report debug
Detailed report of bytecode size:
forge build --sizes
Description | Address |
---|---|
HEXIT | 0x8d4D6aa8339dB0252dc92957544fe6931e0826Db |
HEX1 | 0x298978f9B59A4BF9c08C114Fb6848fade7Be7E18 |
PRICE FEED | 0x5d07dF5C5bf6Be1d0d5dA53DFEdc50B374EB7f82 |
BOOTSTRAP | 0x9636f5103Ce5c86b5167a48bd3D5C89bb4F857F8 |
VAULT | 0x5fA107112E0C3B221fd4930cEB7010632b85bD13 |
FARM MANAGER | 0x9780A434e9c178ae025D8fD2fa32392Eb87f8D49 |
HEX1DAI LP / HEXIT FARM | 0xB0051517782700A84F84462f3BBf401A37ff1fAd |
HEX1 / HEXIT FARM | 0xCaF445439E55BD8F43B45d28536A1E43C1b5C6e5 |