Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 1.66 KB

File metadata and controls

76 lines (53 loc) · 1.66 KB

Float Contracts

The smart contracts behind Float Protocol. See the docs

The contracts are compiled with Hardhat and tested using Waffle and TypeScript.

2️⃣ If you are looking for Phase 2 Contracts:

Usage

Installation

yarn

Build

yarn build

Test

yarn test

Coverage

yarn coverage

Deploy to Hardhat EVM

yarn dev
yarn local:dev

Will deploy the contracts to localhost:8545.

Production deploy

  1. Generate whitelist
  2. Copy whitelist to contracts repo
  3. yarn <network>:deploy
  4. yarn <network>:verify
  5. Hand verify proxies and implementation on etherscan
  6. yarn <network>:run ./scripts/generate_proof.ts
  7. yarn <network>:run ./scripts/load_pools.ts - Quick starts the pools
  8. yarn <network>:run ./scripts/revoke_deployer.ts - Revoke minting abilities of deployer
  9. yarn <network>:export --export deployment.json
  10. Copy merkle tree and deployment generated to frontend.

Running Slither

Slither is a Solidity static analysis framework. To run it locally:

pip3 install slither-analyzer
slither .

In-Depth security testing

Use the eth-security-toolbox docker image.

docker pull trailofbits/eth-security-toolbox
docker run -it -v $(pwd):/share trailofbits/eth-security-toolbox