Skip to content

collectif-dao/liquid-staking

Repository files navigation

What is Collectif DAO?

Collectif DAO is a novel approach to Filecoin network collateral requirements that leverages a non-custodial liquid staking protocol built on FVM. Using Collectif DAO storage providers can cover their capital needs to grow the storage capacity. Holders of Filecoin can securely deposit their FIL and get yield out of the network storage mining.

Introduction

@collective-dao/liquid-staking contains the various Solidity smart contracts used within the Filecoin ecosystem. Those smart contracts are meant to be deployed on Filecoin network on top of FVM.

Developers guide

Setup

Please make sure to install the following before working with codebase:

Node.js (16+)

Rust

Foundry

npm

Clone the repo:

git clone https://github.com/collective-dao/liquid-staking.git
cd liquid-staking

Install npm packages:

npm install

Running Tests

Tests are executed via Foundry:

npm test

To run specific tests by giving a path to the file you want to run:

forge test --match-contract <CONTRACT_NAME>

Gas reports:

forge test --gas-report

Compiling and Building

forge build

Liquid Staking Components

Liquid Staking Pool, which is the main contract that allows stakers to easily deposit their FIL and get yield out of the network storage mining, and Storage Providers to access this FIL for their sector pledges. Liquid staking pool is ERC4626 vault and in future can be connected to other staking pools via Staking Router contract

A Storage Provider Registry is a database that maintains a record of all the Storage Providers on the network. This registry allows Liquid Staking Pool to interact with Storage Providers, and determine their risk profile and FIL allocation.

A Storage Provider Collateral is a system that allows Storage Providers to put collateral in order to pledge FIL from the liquid staking pool. Storage Provider Collateral covers the slashing risks for stakers when SP is misbehaving on the network.

Resolver is the main contract for collecting list of addresses used in the Collectif DAO liquid staking protocol

Reward Collector is the contract responsible for distributing mining rewards from SP's miner actors to the liquid staking pool.

Filecoin native features

Protocol interacts with Filecoin built-in Miner actors via Filecoin Solidity libraries MinerAPI methods.

Deployments

Filecoin Mainnet

Filecoin Calibration testnet

Documentation

If you want to use Collectif DAO to cover your initial pledge requirements, take a look at the extensive Collectif DAO documentation.

Community

General discussion happens most frequently on the Collectif DAO discord. Latest news and announcements on the Collectif DAO twitter

About

Collective DAO is a non-custodial liquid staking protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published