dx-mgn-pool

0.1.0-RC1 • Public • Published

DX-MGN-POOL

The following repo contains all the smart contracts for the pool. Its goal is to collect liquidity that will automatically and continuously trade on the dutch exchange (in form of sell orders). It will thus generate MGN, which the liquidity provider can claim according to their share, once the pooling period has ended.

A rough state diagram of the contract looks like this:

dx-mgn-pool state diagram

Get setup

# Install dependencies 
npm install
 
# In one tab: Run ganache 
npm run rpc

Migrations

Local:

npm run migrate

Rinkeby:

npm run migrate -- --network rinkeby

Mainnet:

npm run migrate -- --network mainnet

Participation Bot

For Ganache (deterministic)

docker build --rm -t participate .
docker run -t -i -e NETWORK=development -e RPC_URL=host.docker.internal participate

For Rinkeby

docker build --rm -t participate .
docker run -t -i -e NETWORK=rinkeby participate

Package Sidebar

Install

npm i dx-mgn-pool

Weekly Downloads

1

Version

0.1.0-RC1

License

ISC

Unpacked Size

201 kB

Total Files

36

Last publish

Collaborators

  • josojo