Skip to content

Commit

Permalink
lower gusdc threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
d-fda committed Oct 26, 2024
1 parent 3794230 commit b3e2378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/blockchain/ethereum/diaSiloOracleService/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func oracleUpdateHelper(oldPrice float64, auth *bind.TransactOpts, contract *dia
rawQ.Price = price
// Special case: gUSDC with liq threshold
} else if address == "0xd3443ee1e91af28e5fb858fbd0d72a63ba8046e0" && blockchain == "Arbitrum" {
price, symbol, err := getLiqThreshGraphqlAssetQuotationFromDia(blockchain, address, "gUSDC", 200000)
price, symbol, err := getLiqThreshGraphqlAssetQuotationFromDia(blockchain, address, "gUSDC", 50000)
if err != nil {
log.Printf("Failed to retrieve %s (gUSDC) quotation data from Graphql on DIA: %v", address, err)
return oldPrice, err
Expand Down Expand Up @@ -300,7 +300,7 @@ func periodicOracleUpdateHelper(oldPrice float64, deviationPermille int, auth *b
rawQ.Price = price
// Special case: gUSDC with liq threshold
} else if address == "0xd3443ee1e91af28e5fb858fbd0d72a63ba8046e0" && blockchain == "Arbitrum" {
price, symbol, err := getLiqThreshGraphqlAssetQuotationFromDia(blockchain, address, "gUSDC", 200000)
price, symbol, err := getLiqThreshGraphqlAssetQuotationFromDia(blockchain, address, "gUSDC", 50000)
if err != nil {
log.Printf("Failed to retrieve %s (gUSDC) quotation data from Graphql on DIA: %v", address, err)
return oldPrice, err
Expand Down

0 comments on commit b3e2378

Please sign in to comment.