Skip to content

[UST-01C] Non-Uniform Storage Pattern #18

@dkuppitz

Description

@dkuppitz

UST-01C: Non-Uniform Storage Pattern

Type Severity Location
Code Style USTB.sol:L29, L31

Description:

The overall codebase implements a pointer-based upgradeability-compatible storage pattern that is not applied in the USTB contract.

Example:

contract USTB is IUSTB, LayerZeroRebaseTokenUpgradeable, UUPSUpgradeable {
    using SafeERC20 for IERC20;

    address public constant UNDERLYING = 0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C;

    address public rebaseIndexManager;

    bool private _isMainChain;

Recommendation:

As is the case with all its dependencies, we advise the USTB contract to apply a similar pointer-based storage system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions