[BUG] wrong fee amount for phoenix_v1.base_trades #6642
Labels
bug
Something isn't working
dbt: dex
covers the DEX dbt subproject
dbt: solana
covers the Solana dbt subproject
in review
Assignee is currently reviewing the PR
Description
The current fee_tier is overstated because the raw data is denominated in basis points (bps) but is being divided by 100 instead of 10000.
https://github.com/duneanalytics/spellbook/blob/main/dbt_subprojects/solana/models/_sector/dex/phoenix/phoenix_v1_base_trades.sql#L48
Current behavior
this is causing the inflated fees on solana_dex.trades
dune query to check :
https://dune.com/queries/4033552
Expected behavior
fee_tier to be /10000 instead of /100 to get the correct values
Impacted model(s)
https://github.com/duneanalytics/spellbook/blob/main/dbt_subprojects/solana/models/_sector/dex/phoenix/phoenix_v1_base_trades.sql
https://github.com/duneanalytics/spellbook/blob/main/dbt_subprojects/solana/models/_sector/dex/dex_solana_trades.sql
Possible solution
fix by changing from /100 to /10000
The text was updated successfully, but these errors were encountered: