Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Dec 9, 2024
1 parent c5784d6 commit 38e93ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
4 changes: 2 additions & 2 deletions queries/orderbook/batch_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ reward_per_auction as (
-- Capped Reward = CLAMP_[-E, E + exec_cost](uncapped_reward_eth)
LEAST(
GREATEST(
- 10000000000000000000,
- {{EPSILON_LOWER}},
observed_score - reference_score
),
20000000000000000000
{{EPSILON_UPPER}}
) as capped_payment,
winning_score,
reference_score
Expand Down
25 changes: 0 additions & 25 deletions src/dbt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,6 @@ class SyncConfig:
sync_file: str = "sync_block.csv"
sync_column: str = "last_synced_block"


@dataclass
class AppDataSyncConfig:
"""Configuration for app data sync."""

# The name of the table to upload to
table: str = "app_data_test"
# Description of the table (for creation)
description: str = (
"Table containing known CoW Protocol appData hashes and their pre-images"
)


@dataclass
class PriceFeedSyncConfig:
"""Configuration for price feed sync."""

# The name of the table to upload to
table: str = "price_feed_test"
# Description of the table (for creation)
description: str = (
"Table containing prices and timestamps from multiple price feeds"
)


@dataclass
class BatchDataSyncConfig:
"""Configuration for batch data sync."""
Expand Down
2 changes: 1 addition & 1 deletion src/dbt/sync_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def sync_data_to_db(
log.info("SQL query successfully executed. About to update analytics table.")
data.to_sql(
table_name,
orderbook._pg_engine(OrderbookEnv.ANALYTICS),
OrderbookFetcher.pg_engine(OrderbookEnv.ANALYTICS),
if_exists="replace",
)
log.info(
Expand Down

0 comments on commit 38e93ea

Please sign in to comment.