primitivefinance / v1-cross-margin-spec

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

Implement House #10

Open Alexangelj opened 3 years ago

Alexangelj commented 3 years ago

The House is a fund-holding, critical logic contract responsible for Option related activities. https://www.notion.so/primitivefi/Primitive-House-bf2530927db448cb978b30b80312ba16

Protocol V1

House has a few responsibilities:

address public CALLER

address public VENUE

onlyExec

constructor

execute()

takeTokens()

addTokens()

removeTokens()

moveCollateralFrom()

moveCollateral()

mintOptions()

burnOptions()

Some of these functions are related to the Option Manager logic -> House is an Option Manager almost.

Alexangelj commented 3 years ago

Specification: House