Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Remove auction_transaction table from queries #76

Merged
merged 12 commits into from
Feb 1, 2024

Conversation

harisang
Copy link
Contributor

This PR adapts the relevant sql queries that were using the auction_transaction table to recover the auction_id, as the table is now deprecated.

@harisang harisang requested review from fhenneke and sunce86 January 31, 2024 17:09
Copy link

@sunce86 sunce86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 occurrences of at.auction_id need to be updated to s.auction_id

  1. ON at.auction_id = ss.auction_id
  2. ON t.order_uid = oe.order_uid AND at.auction_id = oe.auction_id

@@ -57,8 +53,6 @@ order_surplus AS (
THEN o.sell_token
END AS surplus_token
FROM settlements s -- links block_number and log_index to tx_from and tx_nonce
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: update comment, tx_from and tx_nonce are not relevant anymore (for anything)

Copy link
Contributor

@MartinquaXD MartinquaXD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjustments to the query look correct to me.

src/sql/orderbook/order_rewards.sql Show resolved Hide resolved
@fleupold fleupold requested a review from sunce86 February 1, 2024 13:42
@fleupold fleupold dismissed sunce86’s stale review February 1, 2024 13:42

on holidays, so unable to re-review

@harisang harisang merged commit 3441bcc into main Feb 1, 2024
6 checks passed
@harisang harisang deleted the deprecate_auction_transaction_table branch February 1, 2024 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants