ArrakisFinance / v2-core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why the admin of the transparent proxy is the factory contract?

ferencdg opened this issue · comments

Why the admin of the transparent proxy is the factory contract? Wouldn't that mean the logic contract of the transparent proxy can only be updated through the factory? The factory doesn't seem to have methods to support the transparent proxy upgrade.

Nice question! But the factory does in fact have methods to support the transparent proxy ugrade! See here: https://github.com/ArrakisFinance/v2-core/blob/main/contracts/abstract/ArrakisV2FactoryStorage.sol#L41-L81

(they're in the abstract contract the Factory inherits)