Closed wtj2021 closed 9 months ago
// setStEthFeedSource.selector contract StEthFeedSourcePermissionlessSetter { PriceFeed public immutable PRICE_FEED;
uint256 depegTimestamp; function setFeedSource() external { if(dynamic -> fixed) { PRICE_FEED.setStEthFeedSource(fixed); } else if (fixed -> dynamic) { // depeg > 20% // block.timestamp - depegTimestamp > duration PRICE_FEED.setStEthFeedSource(dynamic); } }
}
// setStEthFeedSource.selector contract StEthFeedSourceHyperNativeSetter { PriceFeed public immutable PRICE_FEED;
function setFeedSource(bool _useFixedFeed) external onlyHyperNative { PRICE_FEED.setStEthFeedSource(_useFixedFeed); }
// setStEthFeedSource.selector contract StEthFeedSourcePermissionlessSetter { PriceFeed public immutable PRICE_FEED;
}
// setStEthFeedSource.selector contract StEthFeedSourceHyperNativeSetter { PriceFeed public immutable PRICE_FEED;
}