-
Notifications
You must be signed in to change notification settings - Fork 114
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
[SKI-1] Remove smoothed prices #1215
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,26 +255,22 @@ const ( | |
BlockTimeMs = "block_time_ms" | ||
|
||
// Prices. | ||
CreateOracleMarket = "create_oracle_market" | ||
CurrentMarketPrices = "current_market_prices" | ||
GetValidMarketPriceUpdates = "get_valid_market_price_updates" | ||
IndexPriceDoesNotExist = "index_price_does_not_exist" | ||
IndexPriceIsZero = "index_price_is_zero" | ||
IndexPriceNotAccurate = "index_price_not_accurate" | ||
IndexPriceNotAvailForAccuracyCheck = "index_price_not_available_for_accuracy_check" | ||
LastPriceUpdateForMarketBlock = "last_price_update_for_market_block" | ||
MissingPriceUpdates = "missing_price_updates" | ||
NumMarketPricesToUpdate = "num_market_prices_to_update" | ||
PriceChangeRate = "price_change_rate" | ||
ProposedPriceChangesPriceUpdateDecision = "proposed_price_changes_price_update_decision" | ||
ProposedPriceCrossesOraclePrice = "proposed_price_crosses_oracle_price" | ||
ProposedPriceDoesNotMeetMinPriceChange = "proposed_price_does_not_meet_min_price_change" | ||
RecentSmoothedPriceDoesNotMeetMinPriceChange = "recent_smoothed_price_doesnt_meet_min_price_change" | ||
RecentSmoothedPriceCrossesOraclePrice = "recent_smoothed_price_crosses_old_price" | ||
StatefulPriceUpdateValidation = "stateful_price_update_validation" | ||
UpdateMarketParam = "update_market_param" | ||
UpdateMarketPrices = "update_market_prices" | ||
UpdateSmoothedPrices = "update_smoothed_prices" | ||
CreateOracleMarket = "create_oracle_market" | ||
CurrentMarketPrices = "current_market_prices" | ||
GetValidMarketPriceUpdates = "get_valid_market_price_updates" | ||
IndexPriceDoesNotExist = "index_price_does_not_exist" | ||
IndexPriceIsZero = "index_price_is_zero" | ||
IndexPriceNotAccurate = "index_price_not_accurate" | ||
IndexPriceNotAvailForAccuracyCheck = "index_price_not_available_for_accuracy_check" | ||
LastPriceUpdateForMarketBlock = "last_price_update_for_market_block" | ||
MissingPriceUpdates = "missing_price_updates" | ||
NumMarketPricesToUpdate = "num_market_prices_to_update" | ||
PriceChangeRate = "price_change_rate" | ||
ProposedPriceChangesPriceUpdateDecision = "proposed_price_changes_price_update_decision" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification The search results confirm that the old constant name Analysis chainThe renaming of Scripts ExecutedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for the old constant name to ensure it has been updated everywhere.
rg --type go 'ProposedPriceDoesNotMeetMinPriceChange'
Length of output: 510 |
||
ProposedPriceDoesNotMeetMinPriceChange = "proposed_price_does_not_meet_min_price_change" | ||
StatefulPriceUpdateValidation = "stateful_price_update_validation" | ||
UpdateMarketParam = "update_market_param" | ||
UpdateMarketPrices = "update_market_prices" | ||
|
||
// Sending. | ||
Account = "account" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gRPC server is initialized without specifying credentials, which could potentially expose the server to unencrypted connections. It's recommended to secure the gRPC server by using SSL/TLS credentials. You can create credentials using
credentials.NewServerTLSFromFile("cert.pem", "cert.key")
and pass them to thegrpc.NewServer
function using thegrpc.Creds()
option.