Skip to content

Commit

Permalink
fee calc (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinFlipside authored Mar 14, 2024
1 parent 03dfd45 commit b301ee4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions models/silver/core/silver__transactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ new_records AS (
) :: bigint
) + FLOOR(
r.l1_gas_price * r.l1_gas_used * r.l1_fee_scalar
) + IFF(
r.l1_fee_scalar = 0,
r.l1_fee,
0
),
18
) AS tx_fee_precise,
Expand Down Expand Up @@ -237,6 +241,10 @@ missing_data AS (
) :: bigint
) + FLOOR(
r.l1_gas_price * r.l1_gas_used * r.l1_fee_scalar
) + IFF(
r.l1_fee_scalar = 0,
r.l1_fee,
0
),
18
) AS tx_fee_precise_heal,
Expand Down

0 comments on commit b301ee4

Please sign in to comment.