primitivefinance / v1-cross-margin-spec

Collateral management contracts for Primitive protocol.
MIT License
0 stars 0 forks source link

Implement Option Manager #9

Open Alexangelj opened 3 years ago

Alexangelj commented 3 years ago

Option Manager is a high-level contract that is responsible for the Option Core low-level contract.

The manager is responsible for rule-based logic, which determines the rules that the Option Core will abide by. Collateral will be deposited and withdrawn in this contract, which holds funds. Therefore, the manager will have an asset logic and state implementation that it either inherits or implements in the top-level contract.

Approvals should either be:

Collateral should be made more efficient:

Other notes:

Implementation should include: (Invariants are used by the Option Core)

External but needed:

Alexangelj commented 3 years ago

https://github.com/primitivefinance/primitive-house/issues/8#issuecomment-774557308

Alexangelj commented 3 years ago

https://www.notion.so/primitivefi/Primitive-Core-16b9458828f54edabd94fc0922eaef4c