Skip to content

Commit

Permalink
Fix query for TokenPriceRPC multiline query
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperstrongBE committed Nov 18, 2024
1 parent f97d679 commit 1e2f43f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions includes/rpc/TokensPricesRPC.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ function ($matches) {
//phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching,
$wpdb->query($wpdb->prepare(
//phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnquotedComplexPlaceholder
"INSERT INTO wp_%1s (symbol,contract,token_precision,rate)
VALUES (%s,%s,%d,%.12f)
ON DUPLICATE KEY UPDATE rate = %.12f",
"INSERT INTO wp_%1s (symbol,contract,token_precision,rate) VALUES (%s,%s,%d,%.12f) ON DUPLICATE KEY UPDATE rate = %.12f",
XPRCHECKOUT_TABLE_TOKEN_RATES,
$mergedToken['pair_base'],
$mergedToken['contract'],
Expand Down

0 comments on commit 1e2f43f

Please sign in to comment.