Axis-Fi / axis-core

Axis Protocol
https://axis.finance
Other
6 stars 1 forks source link

Derivative Module Base Contract #13

Closed Oighty closed 7 months ago

Oighty commented 9 months ago

The base Derivative contract provides an interface that external parties can use to interact with any Derivative and implement the interface that the AuctionHouse expects all Derivatives to have.

The base DerivativeModule contract should the Derivative base and inherits the Module functionality required for management of the contract by the AuctionHouse.

These should conform to the final designs/ARCHITECTURE.md spec.

See the src/modules/Derivative.sol for starting points. Based on some of the Derivative functions not applying in all cases, it may make sense to have additional bases similar to the Auction modules.