MentoProxyAdmin
The contract manages the upgradeability of Mento protocol contracts that are deployed as upgradeable proxies.
MentoProxyAdmin
The contract manages the upgradeability of Mento protocol contracts that are deployed as upgradeable proxies.
Contract Specs
The MentoProxyAdmin contract manages the upgradeability of Mento protocol contracts (MentoReserve, MentoBroker, MentoExchangeProvider, MentoExpansionController) that are deployed as upgradeable proxies. This is critical for the GoodDollar protocol's ability to evolve, fix bugs, and add new features without disrupting the UBI distribution system or user funds. The contract provides controlled upgrade mechanisms that require owner/DAO approval, ensuring upgrades follow proper governance processes.
Events
Functions
getProxyImplementation
Returns the current implementation address for a proxy contract.
proxy
The address of the proxy contract.
Returns: The current implementation address of the proxy contract.
function getProxyImplementation(address proxy) external view returns (address);getProxyAdmin
Returns the admin address for a proxy contract.
proxy
The address of the proxy contract.
Returns: The admin address of the proxy contract.
upgrade
Upgrades a proxy to a new implementation address.
proxy
The address of the proxy contract to upgrade.
implementation
The address of the new implementation contract.
upgradeAndCall
Upgrades a proxy and calls a function on the new implementation. Useful for initialization or migration logic during upgrades.
proxy
The address of the proxy contract to upgrade.
implementation
The address of the new implementation contract.
data
The encoded function call data to execute on the new implementation.
Last updated
Was this helpful?