Tiny Gingerbread Tarantula
Medium
In DBOImplementation (borrow offer) is deployed directly instead of using a proxy. This approach bypasses the intended proxy architecture and results in the creation of an independent instance of DBOImplementation even though the DebitaProxyContract is imported.
While creating a new borrow offer, the code instantiates DBOImplementation directly:
DBOImplementation borrowOffer = new DBOImplementation();
This direct instantiation ignores the proxy pattern, which would have allowed for upgradeability by pointing to a logic contract through a proxy. The correct deployment approach, as shown in other sections of the contract (e.g., the lending offer creation), should involve wrapping the implementation in a proxy.
No response
No response
No response
No response
No response
Instantiating a proxy with the address of DBOImplementation as the logic contract.