Skip to content

symbioticfi/collateral

Repository files navigation

Symbiotic Protocol is an extremely flexible and permissionless shared security system.

This repository contains a Symbiotic Collateral interface and its default implementation.

Collateral

Collateral - a concept introduced by Symbiotic that brings capital efficiency and scale by enabling assets used to secure Symbiotic networks to be held outside of the Symbiotic protocol itself - e.g. in DeFi positions on networks other than Ethereum itself.

Symbiotic achieves this by separating the ability to slash assets from the underlying asset itself, similar to how liquid staking tokens create tokenized representations of underlying staked positions. Technically, collateral positions in Symbiotic are ERC-20 tokens with extended functionality to handle penalties.

The Collateral interface can be found here.

Default Collateral

Default Collateral is a simple version of Collateral that has an instant debt repayment, which supports only non-rebase underlying assets.

The implementation can be found here.

Technical Documentation

Technical documentation can be found here.

Security

Security audits can be found here.

Usage

Env

Create .env file using a template:

ETH_RPC_URL=
ETHERSCAN_API_KEY=

* ETHERSCAN_API_KEY is optional.

Build

forge build

Test

forge test

Format

forge fmt

Gas Snapshots

forge snapshot

Releases

No releases published

Packages

No packages published