numotrade / numo

🤖 Smart contract suite for Numo.
https://docs.numo.trade
Other
0 stars 0 forks source link
automated-market-maker defi ethereum smart-contracts solidity

🤖 Numo

numo_banner

Numo uniquely enables depeg insurance on all stablecoins and pegged pairs. One could conversly use Numo to speculate on the fluctuations between pegged tokens.

The solidity implementation for Numo is contained in this repository and was inspired by math that shows virtually any option strategy can be constructed using CFMMs.

Local development

This project uses Foundry as the development framework.

Dependencies

forge install foundry-rs/forge-std

To handle high-percision fixed point airithmic, Numo uses the PRBMath Library.

bun add @prb/math

You need to add this to your remappings.txt file:

@prb/math/=node_modules/@prb/math/

For a consistent address across chain deployments, we use CREATE3

npm install create3-factory

Compilation

forge build

Test

forge test

Local setup

In order to test third party integrations such as interfaces, it is possible to set up a forked mainnet with several positions open

sh anvil.sh

then, in a separate terminal,

sh setup.sh

Licences

The smart contracts that make up Numo are licensed under the GPL-3.0 unless specified otherwise.