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).
https://smardex.io
See the link to the technical paper or visit the Smardex Developer docs
Install dependencies:
yarn install
yarn compile
To rebuild typechain specifically:
yarn typechain
yarn test # run tests without traces
yarn test --traceError # prints calls for failed txs
yarn test --fulltraceError # prints calls and storage ops for failed txs
yarn test --trace # prints calls for all txs
yarn test --fulltrace # prints calls and storage ops for all txs
yarn test --v # same as --traceError
yarn test --vv # same as --fulltraceError
yarn test --vvv # same as --trace
yarn test --vvvv # same as --fulltrace
# specify opcode
yarn test --v --opcodes ADD,SUB # shows any opcode specified for only failed txs
yarn test --vvv --opcodes ADD,SUB # shows any opcode specified for all txs
yarn deploy_testnet
yarn deploy
Run linter (required before each commit):
yarn prettier
Check code is properly linted:
yarn prettier:check
For quick and automatic syntaxic analysis, you can use Slither tool : Slither is a Solidity static analysis framework. It runs a suite of vulnerability detectors, prints visual information about contract details. [...] Slither enables developers to find vulnerabilities, enhance their code comprehension, and quickly prototype custom analyses.
See for options : https://github.com/crytic/slither#how-to-install
At project level (where package.json is):
slither . --json slither_output.json
#slither is called system wide, but an absolute or relative binary call can also be used
Better run with yarn to avoid errors & with config to choose printers_to_run :
yarn slither
Implemented by Stéphane Ballmer, Paul-Alexandre Tessier, Côme Pecorari, Léo Fasano, Yoan Capron, Sami Darnaud
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, ...)
periphery are GPL-2core except core/libraries/SmardexLibrary.sol are GPL-2contracts/rewards/FarmingRange.sol is licensed under MIT, fork from Alpaca Finance$ claude mcp add smart-contracts \
-- python -m otcore.mcp_server <graph>