Skip to content

FloatProtocol/float-staking

Repository files navigation

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

About

Base Float Protocol Staking Contracts

Resources

Stars

Watchers

Forks