Giter Site home page Giter Site logo

defund-labs / defund Goto Github PK

View Code? Open in Web Editor NEW
70.0 5.0 80.0 32.12 MB

The modular liquidity hub. Trade spot assets, mint options, earn hedged yield.

Home Page: http://defund.app/

Go 89.72% Makefile 1.70% Shell 8.43% Dockerfile 0.15%
blockchain cosmos evm quantitative-finance web3

defund's Introduction

DeFund Finance

DeFund Finance is a sovereign rollup built on Celestia using Rollkit, designed to create a rich DeFi ecosystem that serves as a hub for all modular liquidity. By leveraging the Celestia DA (Data Availability) layer, DeFund Finance aims to provide a comprehensive suite of DeFi products and services tailored to the modular blockchain ecosystem.

Key Features

  • Spot Exchange: DeFund Finance offers a state-of-the-art decentralized exchange that combines the best features of an orderbook and an automated market maker (AMM) model, providing deep liquidity, efficient price discovery, and minimal slippage for traders.

  • Hedged Liquidity Pools: DeFund Finance's Hedged Liquidity Pools are an innovative solution to the problem of impermanent loss faced by liquidity providers in traditional AMMs. These pools work in conjunction with the Spot Exchange, serving as the main source of liquidity for the exchange while minimizing impermanent loss through an automated hedging mechanism.

  • Option Vaults: Option Vaults bring the power of customizable risk management to the DeFi space. Users can mint customized options using a unique Dutch auction mechanism, providing a novel approach to hedging, yield generation, and market speculation.

  • Asset Abstraction: DeFund Finance takes asset interoperability and accessibility to the next level through the integration of Calypso and the Cosmos extension for Metamask. These integrations enable users to perform any action with any asset using the most widely adopted wallet, MetaMask.

Architecture

DeFund Finance is built on a robust and scalable architecture that leverages the power of Rollkit and Celestia to create a high-performance, secure, and flexible platform for decentralized finance.

  • Rollkit + Celestia: The combination of Rollkit and Celestia enables DeFund Finance to create a sovereign rollup that benefits from the security and scalability of Celestia's DA layer while maintaining the flexibility and customization offered by Rollkit.

  • Asset Abstraction: DeFund Finance integrates Calypso and the Cosmos Metamask Snap to enable seamless interoperability between different blockchain networks and assets. Users can perform any action with any token, regardless of its native blockchain, using the familiar Metamask wallet.

Getting Started

Prerequisites

Install

You will need Golang, Rust, the Hermes IBC relayer, and the DeFund Golang relayer (https://github.com/defund-labs/relayer) installed to run in dev.

git clone https://github.com/defund-labs/defund

cd defund

make install

Getting Started in Dev/Local Mode

make init

make create-conn

# Wait for the connection to be acknowledged then edit ./network/relayer/config.yaml by changing the connection and client ids to match what your relayer returned
make init-rly

# start the relayer for interchain querying
make start-rly

# start hermes for ICA tx's
make start-hermes

Bash Testing Framework

# test all main commands
make test-all

# test the create fund command
make test-create-fund

# test the create shares command
make test-create-shares

# test the redeem shares command
make test-redeem-shares

Frontend

The following can be run to get started in dev on the frontend.

cd $HOME/defund/vue
npm i
npm run dev

Roadmap

  • Structured Products
  • Options + Option Vaults
  • Hybrid DEX
  • Revamped tokenomics (distribution + utility/function)
  • Non-standard/Alternative Asset options
  • Hedged Liquidity Pools
  • Auto-trade/super-trade functionality
  • Cross-VM outposts
  • Support for more chains and tokens

CLI Documentation (Deprecated)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.