weweswap / contracts

smart contracts
MIT License
1 stars 4 forks source link

ADD: Anyone registers pool #10

Closed jpthor closed 3 months ago

jpthor commented 3 months ago

Owner can register a new pool under LM Factory.

The owner can select the pool type. Enum

type = 0 | 1 | 2

enum, fetches

fee, band sizing strategy

This will deploy a new LM for that pool. It will register in the LM Factory

type (enum)
pool location (univ3 address)
asset (which is the asset)

Because all pools are USDC forever paired (never change).

=====

This stops someone deploying the wrong pool type, and unfairly mining $CHAOS coins.

But, it stops everyone listing easily.

====

Owner can set a flag

allowAnyoneToRegister = 0 | 1
Which makes it permissionless