Skip to content

Floating, low-volatility currency for web3 πŸ§™β€β™‚οΈ, by a team of anonymous researchers πŸ‘¨β€πŸŽ“

Notifications You must be signed in to change notification settings

aamironov/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

Floating, low-volatility currency for web3 πŸ§™β€β™‚οΈ, by a team of anonymous researchers πŸ‘¨β€πŸŽ“

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 74.2%
  • Solidity 25.0%
  • Other 0.8%