Skip to main content

Smart Contracts

Architecture#

This section provides a high-level description of the various smart contracts that power Nebula Protocol.

Nebula Core#

ContractDescription
nebula-airdropAirdrop Contract
nebula-clusterLogic for individual Cluster
nebula-cluster-factoryCreates and registers new clusters
nebula-collectorCollects and distributes rewards to NEB gov stakers
nebula-communityControls funds in the community pool
nebula-govGovernance contract
nebula-lp-stakingManages 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.

ContractDescription
nebula-penaltyDefault Penalty Function
nebula-incentivesBasic NEB incentives contract, for Terraswap arbitrage
nebula-incentives-custodyCustody contract for Terraswap incentives