Skip to content

Commit d71ba02

Browse files
authored
fix ambiguous decimals for prices (#1257)
Brief comments on the purpose of your changes: *For Dune Engine V2* I've checked that: * [ ] I tested the query on dune.com after compiling the model with dbt compile (compiled queries are written to the target directory) * [ ] I used "refs" to reference other models in this repo and "sources" to reference raw or decoded tables * [ ] if adding a new model, I added a test * [ ] the filename is unique and ends with .sql * [ ] each sql file is a select statement and has only one view, table or function defined * [ ] column names are `lowercase_snake_cased` When you are ready for a review, tag duneanalytics/data-experience. We will re-open your forked pull request as an internal pull request. Then your spells will run in dbt and the logs will be avaiable in Github Actions DBT Slim CI. This job will only run the models and tests changed by your PR compared to the production project.
1 parent 0e4d090 commit d71ba02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spellbook/models/opensea/ethereum/opensea_ethereum_trades.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ evt_tx_hash || '-' || evt_index::string as unique_trade_id,
55
'ethereum' as blockchain,
66
evt_tx_hash as tx_hash,
77
evt_block_time as block_time,
8-
om.price / power(10, decimals) * p.price AS amount_usd,
9-
om.price / power(10, decimals) AS amount,
8+
om.price / power(10, p.decimals) * p.price AS amount_usd,
9+
om.price / power(10, p.decimals) AS amount,
1010
om.price AS amount_raw,
1111
terc20.symbol as token_symbol,
1212
wam.token_address as token_address,

0 commit comments

Comments
 (0)