Skip to content

Commit

Permalink
add new asset pair providers to migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Oct 12, 2023
1 parent a2f7748 commit df12261
Showing 1 changed file with 153 additions and 0 deletions.
153 changes: 153 additions & 0 deletions x/oracle/keeper/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,123 @@ func (m Migrator) MigrateCurrencyPairProviders(ctx sdk.Context) {
"kujira",
},
},
types.CurrencyPairProviders{
BaseDenom: "MATIC",
QuoteDenom: "USDT",
Providers: []string{
"mexc",
"bitget",
},
},
types.CurrencyPairProviders{
BaseDenom: "MATIC",
QuoteDenom: "USD",
Providers: []string{
"coinbase",
"kraken",
},
},
types.CurrencyPairProviders{
BaseDenom: "CMST",
QuoteDenom: "OSMO",
Providers: []string{
"osmosis",
},
},
types.CurrencyPairProviders{
BaseDenom: "LINK",
QuoteDenom: "USD",
Providers: []string{
"crypto",
"kraken",
},
},
types.CurrencyPairProviders{
BaseDenom: "SUSHI",
QuoteDenom: "USDT",
Providers: []string{
"okx",
"bitget",
},
},
types.CurrencyPairProviders{
BaseDenom: "SUSHI",
QuoteDenom: "USD",
Providers: []string{
"coinbase",
},
},
types.CurrencyPairProviders{
BaseDenom: "CMDX",
QuoteDenom: "OSMO",
Providers: []string{
"osmosis",
},
},
types.CurrencyPairProviders{
BaseDenom: "CRV",
QuoteDenom: "USDT",
Providers: []string{
"okx",
"bitget",
"mexc",
},
},
types.CurrencyPairProviders{
BaseDenom: "CRV",
QuoteDenom: "USD",
Providers: []string{
"coinbase",
},
},
types.CurrencyPairProviders{
BaseDenom: "MKR",
QuoteDenom: "USDT",
Providers: []string{
"okx",
"bitget",
"crypto",
},
},
types.CurrencyPairProviders{
BaseDenom: "MKR",
QuoteDenom: "USD",
Providers: []string{
"coinbase",
},
},
types.CurrencyPairProviders{
BaseDenom: "SEI",
QuoteDenom: "USDT",
Providers: []string{
"bitget",
},
},
types.CurrencyPairProviders{
BaseDenom: "SEI",
QuoteDenom: "USD",
Providers: []string{
"coinbase",
"kraken",
"crypto",
},
},
types.CurrencyPairProviders{
BaseDenom: "INJ",
QuoteDenom: "USDT",
Providers: []string{
"bitget",
"mexc",
"crypto",
},
},
types.CurrencyPairProviders{
BaseDenom: "INJ",
QuoteDenom: "USD",
Providers: []string{
"coinbase",
},
},
types.CurrencyPairProviders{
BaseDenom: "RETH",
QuoteDenom: "WETH",
Expand Down Expand Up @@ -466,6 +583,42 @@ func (m Migrator) MigrateCurrencyDeviationThresholds(ctx sdk.Context) {
BaseDenom: "CBETH",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "CMST",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "CMDX",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "MATIC",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "LINK",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "SUSHI",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "CRV",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "MKR",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "INJ",
Threshold: "2",
},
types.CurrencyDeviationThreshold{
BaseDenom: "SEI",
Threshold: "2",
},
}
m.keeper.SetCurrencyDeviationThresholds(ctx, CurrencyDeviationThresholds)
}

0 comments on commit df12261

Please sign in to comment.