Spool Tech Docs
Search
K

Contract Overview

All Spool Smart Contracts can be found in the Spool GitHub.

Core Contracts

Controller.sol

  • Stores the information regarding overall system validity.
  • Vaults (Spools) are deployed from the Controller.

Vault.sol

  • Vaults (Spools) can be deployed by any User from the Controller.
  • Deposits assets into the Strategies according to the given allocation.
  • All vault abstract contracts can be found in the contracts/vault folder.

Spool.sol

Strategies (found in contracts/strategies)

  • An implementation contract interacting with the external protocols.
  • Strategy Contracts are called by the Spool.sol as a delegatecall.

FeeHandler.sol

FastWithdraw.sol

  • Holds shares when a User performs a Fast Withdrawal and does not exit the Strategies right away.
  • Shares can be withdrawn at any time.

RiskProviderRegistry.sol

SpoolOwner.sol

  • Simple contract holding the address of the Spool DAO.
  • All the contracts controlled by the Spool DAO inherit contracts/shares/spoolOwnable.sol which holds the logic to verify if the caller is the Spool DAO.
  • If the Spool DAO changes its address, only one call to this contract needs to be performed to transfer the contract ownership privileges.
  • More information about the SpoolOwner can be found here: