Skip to content

numocash/squared

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Squared

Leverage on any ERC-20.

Smart contracts suite of Squared, an automated market maker that squares the returns of any ERC-20.

Installation

forge install numocash/squared

Local development

This project uses Foundry as the development framework.

Dependencies

forge install

@openzeppelin/contracts-upgrade
@transmissions11/solmate

CREATE2

The factory.sol deploys squared.sol to a predetermined address using .create2deploy()

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