Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Oracle Swap Freezer Underlying Check #446

Closed
efecarranza opened this issue Feb 19, 2025 · 0 comments · Fixed by #447
Closed

Remove Oracle Swap Freezer Underlying Check #446

efecarranza opened this issue Feb 19, 2025 · 0 comments · Fixed by #447

Comments

@efecarranza
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant