numocash / power-maker

🤖 Smart contract suite for PowerMaker.
Other
0 stars 0 forks source link
automated-market-maker defi ethereum smart-contracts solidity

🤖 PowerMaker

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.