You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call to untrusted contracts may introduce unexpected risks and errors.
External calls controlled by an attacker may force a contract to transition into an undefined state.
Types of external calls: STATICCALL and DELEGATECALL.
Using DELEGATECALL, contract can preserve the storage state while using the logic of the contract. This introduces the concept of Proxies.
The proxy contract redirects all the calls it receives to an "logic contract", whose address is stored in its "proxy contract". The proxy runs the "logic contract"'s code as its own (modifying its storage and the balance of the "proxy contract").