GithubHelp home page GithubHelp logo

yashwantx / dexter_core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dexter-zone/dexter_core

0.0 0.0 0.0 17.42 MB

Core smart contracts for Dexter v1

Home Page: https://www.dexter.zone

License: Apache License 2.0

Rust 100.00%

dexter_core's Introduction

Dexter :: Architecture Overview

Dexter is the first DEX which is implemented as a generalized state transition executor where the transition’s math computes are queried from the respective Pool contracts, enabling a decentralized, non-custodial aggregated liquidity and exchange rate discovery among different tokens on Persistence.

Dexter :: Architecture Overview

Scope

At launch, it will support the Stable Pool type (introduced by curve) and the Weighted pool type (introduced by balancer), each of which designed for the following objectives:

  • Stable Pool: Can be leveraged to develop specialized pools for liquid staking assets which can provide best trade execution.
  • Weighted Pool: Can be leveraged to develop re-balancing driven pool strategies which can maximize LP returns.

Router can be used to perform trades across different pools in one go, while Multitasking (a modified version of the Anchor staking contract) can be used to incentivize pool’s LP tokens with rewards that is given by any 3rd party.

Development

Dependencies

  • Rust v1.44.1+
  • wasm32-unknown-unknown target
  • Docker

Envrionment Setup

  • Install rustup via https://rustup.rs/
  • Add wasm32-unknown-unknown target
    rustup default stable
    rustup target add wasm32-unknown-unknown
  • Compile contracts, test them and generate wasm builds. Make sure the current working directory is set to the root directory of this repository, then
    cargo build
    cargo test
    docker run --rm -v "$(pwd)":/code \
      --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
      --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
      cosmwasm/workspace-optimizer:0.12.12
  • Use dexter deploy cli to deploy them on the persistence network.

dexter_core's People

Contributors

abhimanyusinghgaur avatar alienhunteronmars avatar betterclever avatar cyberhoward avatar dashastro avatar itsbek avatar tushar-123011 avatar

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.