Skip to content

signals-protocol/v1-contract

Repository files navigation

Signals v1 Contracts

Solidity contracts for the Signals v1 protocol.

Architecture

  • SignalsCore (UUPS): upgradeable entry core that holds storage and delegates to modules
  • Modules: Trade, MarketLifecycle, Oracle (Redstone signed-pull), LPVault, Risk
  • Tokens: SignalsPosition (upgradeable ERC-721), SignalsLPShare (upgradeable ERC-20 + permit, ERC-4626-style informational views for an async request/claim vault)
  • Libraries: ClmsrMath, RiskMath, FeeWaterfallLib, VaultAccountingLib, LazyMulSegmentTree, FixedPointMathU

Public Interfaces

  • contracts/interfaces/ISignalsCore.sol defines the external entrypoints for integrators
  • Events and custom errors are declared in core contracts and modules

Build and Test

yarn install
yarn hardhat compile
yarn test
yarn lint

Documentation

Governance and Upgrades

Configuration changes and module wiring are controlled by the governance owner.

About

Signals: CLMSR-based Daily Bitcoin Range Markets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors