The repository contains the smart contract suite for Numo2, the solidity implementation of a replicating market maker on the EVM.
The principle idea of a replicating market maker is that any options strategy can be constructed on the EVM simply by altering the trading function of a CFMM.
Numo2 is built on this premise and has implemented as a trading function that quadruples the returns of any token across every price. Unique to Numo2 is its support for any token. It can do this because it requires no oracles or sophisticated market makers. The result is a simple way of accessing leverage on any token.
Numo2 runs a continous automated options strategy that quadruples your returns at every price up until you hit your strike price. The strategy is implemented as a trading function of the automated market maker so that the pools of tokens always rebalance to reflect a leveraged position.
This project uses Foundry as the development framework.
forge install
npm install @openzeppelin/contracts
npm install create3-factory
forge build
forge test
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