Upgradable contracts

For security reasons the four main contracts that make up the protocol (hq, core, vault& token) are not upgradable.

The only upgradable contract is the pnl-calculator. This contract holds the logic for the option-type and strategy-type specific profit and loss calculation.

Since the contract logic cannot move vault funds making the contract upgradable does not increase the attack surface of the protocol.

We have chosen to make the contract upgradable to allow new strategies to be introduced in the future.

📜 pnl-calculator-contracts

The pnl-calculator-contracts map holds the contract addresses of the approved pnl-calculator contracts. The admin is able to enable/disable contracts.

Last updated