primitivefinance / DFMM

Smart contracts of the DFMM protocol
https://www.primitive.xyz/blog/dfmm_protocol
18 stars 6 forks source link

feat: Allocator behavior #125

Closed 0xJepsen closed 3 months ago

0xJepsen commented 3 months ago

This behavior should mint some tokens on startup from the token admin. Then it should create a pool on one of the strategies (this is where we might want to think about being generic over pools). A Good idea would be to make a allocationtype trait

Screenshot 2024-04-08 at 9 56 08 AM

And then our allocation can be generic over different types of allocations (i.e. initial vs managed) Start with initial but allow for extensibility

Screenshot 2024-04-08 at 9 56 21 AM