# Upgradeability

In order to maintain flexibility and adaptability in the Bolide Finance contract ecosystem, all contracts have been designed with upgradeability in mind using the Universal Upgradeable Proxy Standard (UUPS) proxy pattern. This pattern offers a robust and gas-efficient method for contract upgrades, allowing the implementation to be swapped in case of bug fixes, improvements, or feature additions.

Each upgradeable contract in the Bolide Protocol inherits from the **UpgradeableBase** contract, which encapsulates the core logic for upgradeability.

Notably, all upgradeable contracts also include **adminable** and **versionable** features. These attributes provide enhanced control over the contract, with **adminable** offering administrative rights and **versionable** supporting version management of the contracts.

<figure><img src="blob:https://app.gitbook.com/d716ccef-4266-4d40-9ab0-6a8db114b91f" alt=""><figcaption></figcaption></figure>

Abstract **UpgradeableBase** contract encapsulates the logic for upgrading contracts using the UUPS proxy pattern and forms the base contract for all upgradeable contracts in the Bolide Protocol.

The **UpgradeableBase** contract is a cornerstone of the Bolide Protocol, requiring a careful and detailed audit to ensure the secure and correct implementation of the upgrade mechanism, given its critical role in the protocol's adaptability and future improvements.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bolide.fi/bolide-earn/strategies/bolide-v2/upgradeability.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
