Smart contracts suite of Squared, an automated market maker that squares the returns of any ERC-20.
forge install numocash/squared
This project uses Foundry as the development framework.
forge install
@openzeppelin/contracts-upgrade
@transmissions11/solmate
The factory.sol
deploys squared.sol
to a predetermined address using .create2deploy()
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