@smardex/dex-contracts
v1.0.1
Published
Core smart contracts of Smardex
Downloads
4
Keywords
Readme
SmarDex Contracts
Description
Uniswap-like dex protocol that allow a better incentivization for liquidity providers. This repo includes an SDEX pool (rewards comes from the dex) and farming capabilities (rewards requires external income source).
Website
https://smardex.io
Documentation
See the link to the technical paper or visit the Smardex Developer docs
- https://www.academia.edu/98332701/The_SMARDEX_Protocol_A_Novel_Solution_to_Impermanent_Loss_in_Decentralized_Finance
- https://docs.smardex.io
Getting Started
Installation
Foundry
To install Foundry, run the following commands in your terminal:
curl -L https://foundry.paradigm.xyz | bash
source ~/.bashrc
foundryupDependencies
To install existing dependencies, run the following commands:
forge soldeer install
npm installNix
If using nix, the repository provides a development shell in the form of a flake.
The devshell can be activated with the nix develop command.
To automatically activate the dev shell when opening the workspace, install direnv
(available on nixpkgs) and run the following command inside this folder:
direnv allowCompile
forge compile
Foundry Documentation
For comprehensive details on Foundry, refer to the Foundry book.
Contributors
Implemented by Stéphane Ballmer, Paul-Alexandre Tessier, Côme Pecorari, Léo Fasano, Yoan Capron, Sami Darnaud
Licensing
The primary license for Smardex is the Business Source License 1.1 (BUSL-1.1), see LICENSE. However, smart-contract files imported from other projects do respect their original license (GPL-3, GPL-2, MIT, ...)
- All files under
peripheryare GPL-2 - All files under
coreexceptcore/libraries/SmardexLibrary.solare GPL-2 contracts/rewards/FarmingRange.solis licensed under MIT, fork from Alpaca Finance
