Skip to content

Remove Oracle Swap Freezer Underlying Check #446

Closed
@efecarranza

Description

The OracleSwapFreezer contract has a check on construction to ensure that the GSM's underlying asset is the same that will be used as oracle for the GSM.

require(gsm.UNDERLYING_ASSET() == underlyingAsset, 'UNDERLYING_ASSET_MISMATCH');

While this check worked initially for regular underlying GSMs, for GSM4626, this check does not work as the underlying might be different: for example, a Static A Token USDC GSM won't have a stataUSDC oracle available, making it impossible to deploy the OracleSwapFreezer.

This check can be removed as the underlying asset might not be the one to be used as an oracle.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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