Skip to content

normalfinance/normal-v1-stellar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Normal v1 on Stellar ✨

Normal is an over-collateralized synthetic asset protocol enabling low fee and deep liquidity trading of Top 100 crypto assets natively on Stellar.

Features

  • Invest in Top 100 cryptos without leaving Stellar
  • Invest in diversified portfolios of crypto with just one click
  • Create your own crypto portfolios and earn income when others invest in them
  • Earn competitive yield on XLM by providing collateral to mint synthetic assets
  • Earn yield by providing liquidity to various Normal AMMs

Contracts

The core smart contracts powering the Normal Protocol:

  • Governor - Fork of soroban-governor, the core contract of the Normal DAO. Its core responsibility is managing the proposal workflow. Proposals allow the Governor contract to interact with the greater Soroban ecosystem, enabling things like the Governor sending funds to a grant recipient or depositing into an AMM.
  • Index - Manages the creation, maintenance, minting, redeeming, and price peg of an on-chain crypto index fund.
  • IndexFactory - Deploys Index contracts and provides structured access using an index_id.
  • IndexToken - A Soroban token representing ownership in an Index. Extension of the Token Interface to collect a protocol_fee and manager_fee on qualifying transfer and transfer_from transactions.
  • Insurance - A backstop fund to cover protocol debt (deficits incurred from liquidations). Pays yield to depositors in exchange for the right to make a claim in the event of protocol debt.
  • Scheduler - An on-chain dollar cost average order schedulor for recurring buys or sells of synthetic assets or crypto indexes. Does not currently support 3rd party DEXes.
  • SynthMarket - Manages the creation, maintenance, margin, collateral, liquidation, and price peg of a synthetic asset.
  • SynthMarketFactory - Deploys SynthMarket contracts and provides structed access using a market_index.
  • SynthPool - A constant product automated market maket (AMM) for swapping in and out of synthetic assets.
  • Votes - Fork of soroban-governor, enforcing bonding/vote-escrowed access to participation in Normal DAO proposals.
  • Votes - Fork of soroban-governor, enforcing bonding/vote-escrowed access to participation in Normal DAO proposals.

Packages

dfdsf

  • Curve - Fork of soroban-governor, enforcing bonding/vote-escrowed access to participation in Normal DAO proposals.
  • Normal - Fork of soroban-governor, enforcing bonding/vote-escrowed access to participation in Normal DAO proposals.
  • Oracle - A proxy between oracle prices and synth and index price pegs to apply various validations and allow emergency oracle replacement or freezing.

Deployment

Testnet and Mainnet addresses of the contract detailed above:

Contract Name Testnet Address Mainnet Address
Governor <insert address> <insert address>
Index Factory <insert address> <insert address>
Index Token <insert address> <insert address>
Insurance <insert address> <insert address>
Scheduler <insert address> <insert address>
State <insert address> <insert address>
Synth Market Factory <insert address> <insert address>
Votes <insert address> <insert address>

Markets / Pools

Deployed synthetic markets and their respective Synth Pool:

Market Name Market Address Pool Address
nBTC/XLM <insert address> <insert address>
nETH/XLM <insert address> <insert address>
nSOL/XLM <insert address> <insert address>

Crypto Indexes

Deployed Normal Crypto Indexes:

Index Name Mainnet Address
NT5CI <insert address>

Authors

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

Roadmap

  • Additional market support
  • Synthetic yield tokens
  • Increased index customization
  • Limit orders
  • Additional collateral types

Used By

This project is used by the following companies:

  • Coming soon

License

Apache-2.0

About

The Normal Protocol v1 implementation on Stellar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages