Skip to content
Request an audit

‹ All findings

Implement Storage Gap in Delegatable Contract

Low/InfoOstium·Three Sigma · RWA perpetuals DEX · 19th February, 20243S-OS-N01

Description

If additional variables are added to the Delegatable contract, conflicts may arise with the storage slots previously written on the proxy.

Recommendation

To mitigate this issue, insert a storage gap in the contract:

solidity
abstract contract Delegatable is IDelegatable {
    mapping(address => address) public delegations;
    address private senderOverride;
    @>
    uint256[49] __gap;
    // *** code ***

Status

Acknowledged