SPHub
In the FilUs protocol, SPHub is a specialized smart contract that enables Storage Providers (SPs) to collateralize their Filecoin Miner Actors and access FIL liquidity. Acting as intermediaries, SPHubs allow SPs to maintain ownership and control over their Miner Actors while benefiting from FilUsβs lending services.
What is the Role of SPHub?
SPHub acts as a bridge between SPs and the FilUs liquidity pool. It is the sole contract authorized to borrow FIL on behalf of SPs, ensuring a secure and transparent borrowing process. When an SP borrows FIL through an SPHub, they have the flexibility to either withdraw the funds or allocate them directly to one of their pledged miners to support their ongoing Filecoin storage mining activities.
SPHub Flow in FilUs
The process of setting up and using SPHub in FilUs follows these steps:
Creating SPHub SPs begin by clicking the "Create SPHub" button in the FilUs interface. This action triggers the SPFactory contract to generate a new SPHub instance dedicated to the SP.
Adding Miners to SPHub SPs can then add their Miner Actors to the newly created SPHub. Miners are added one at a time, allowing for precise control and management of each minerβs status and contributions to the SPHub.
Activating SPHub Once a Miner Actor is registered with SPHub, an SPHub activated event is triggered. This event signals the backend to capture essential data, including:
SPHub Address and Miner ID
Total Initial Pledge and Total Liquidation Value
Total Raw Byte Power of the Miner
These values are then recorded in the contract, creating a clear profile of the SPβs collateral and capacity, which is used to calculate their borrowing potential within the FilUs system.
Why Use SPHub?
SPHub streamlines the borrowing process while ensuring that SPs retain control over their Miner Actors. By managing collateral and loan terms in a transparent and automated way, SPHub provides an efficient, secure solution for SPs seeking to expand their storage mining capabilities.
Last updated