Smart Contracts
Architecture#
This section provides a high-level description of the various smart contracts that power Nebula Protocol.
Nebula Core#
| Contract | Description |
|---|---|
nebula-airdrop | Airdrop Contract |
nebula-cluster | Logic for individual Cluster |
nebula-cluster-factory | Creates and registers new clusters |
nebula-collector | Collects and distributes rewards to NEB gov stakers |
nebula-community | Controls funds in the community pool |
nebula-gov | Governance contract |
nebula-lp-staking | Manages NEB rewards for Liquidity Providers |
Auxiliary#
Nebula Protocol is designed to be flexible for integration with future protocols. As such, some aspects are segregated into auxiliary contracts outside of the core Nebula contracts. The following are standard auxiliary contracts that ship alongside Nebula.
| Contract | Description |
|---|---|
nebula-penalty | Default Penalty Function |
nebula-incentives | Basic NEB incentives contract, for Terraswap arbitrage |
nebula-incentives-custody | Custody contract for Terraswap incentives |