Skip to content

Commit

Permalink
Fixes for dbt compile, including adding forgotten sources and some mi…
Browse files Browse the repository at this point in the history
…inor others
  • Loading branch information
yy-analytics committed Jun 9, 2024
1 parent df511f7 commit 11c9d62
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 11 deletions.
16 changes: 8 additions & 8 deletions macros/models/_project/yield_yak/yield_yak_trades.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

WITH dexs AS (
SELECT
evt_block_time AS block_time,
evt_block_time AS block_time
-- , '' AS taker commenting this as there's no trader in the event
, CAST(NULL as VARBINARY) AS maker,
, _amountIn AS token_sold_amount_raw,
, _amountOut AS token_bought_amount_raw,
, CAST(NULL AS double) AS amount_usd,
, _tokenIn AS token_sold_address,
, _tokenOut AS token_bought_address,
, contract_address As project_contract_address,
, CAST(NULL as VARBINARY) AS maker
, _amountIn AS token_sold_amount_raw
, _amountOut AS token_bought_amount_raw
, CAST(NULL AS double) AS amount_usd
, _tokenIn AS token_sold_address
, _tokenOut AS token_bought_address
, contract_address As project_contract_address
, evt_tx_hash AS tx_hash
, ARRAY[-1] AS trace_address
, evt_index
Expand Down
2 changes: 1 addition & 1 deletion models/yield_yak/yield_yak_trades.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{
config(
schema = 'yield_yak',
alias = 'trades'
alias = 'trades',
materialized = 'view',
post_hook='{{ expose_spells(
blockchains = \'["arbitrum", "avalanche_c", "mantle"]\',
Expand Down
2 changes: 1 addition & 1 deletion sources/yield_yak/arbitrum/yield_yak_arbitrum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sources:
freshness:
warn_after: { count: 12, period: hour }
description: >
Decoded event tables for swaps, deposits, withdraws and reinvests on yield yak
Decoded event tables for swaps, deposits, withdraws, reinvests and transfers on yield yak
tables:
- name: YakRouter_evt_YakSwap
loaded_at_field: evt_block_time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sources:
freshness:
warn_after: { count: 12, period: hour }
description: >
Decoded event tables for swaps, deposits, withdraws and reinvests on yield yak
Decoded event tables for swaps, deposits, withdraws, reinvests and transfers on yield yak
tables:
- name: YakRouter_evt_YakSwap
loaded_at_field: evt_block_time
Expand Down
70 changes: 70 additions & 0 deletions sources/yield_yak/mantle/yield_yak_mantle_sources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
version: 2

sources:
- name: yield_yak_mantle
freshness:
warn_after: { count: 12, period: hour }
description: >
Decoded event tables for swaps, deposits, withdraws, reinvests and transfers on yield yak
tables:
- name: YakRouter_evt_YakSwap
loaded_at_field: evt_block_time
- name: YakRouter_call_swapNoSplitFromAVAX
loaded_at_field: call_block_time
- name: YakRouter_call_swapNoSplit
loaded_at_field: call_block_time
- name: YakRouter_call_swapNoSplitToAVAXWithPermit
loaded_at_field: call_block_time
- name: YakRouter_call_swapNoSplitWithPermit
loaded_at_field: call_block_time
- name: YakRouter_call_swapNoSplitToAVAX
loaded_at_field: call_block_time
# Now the strategies
- name: CompoundingJoeMantle_evt_Deposit
loaded_at_field: evt_block_time
- name: CompoundingJoeMantle_evt_Withdraw
loaded_at_field: evt_block_time
- name: CompoundingJoeMantle_evt_Reinvest
loaded_at_field: evt_block_time
- name: CompoundingJoeMantle_evt_Transfer
loaded_at_field: evt_block_time
- name: CompoundingMoe_evt_Deposit
loaded_at_field: evt_block_time
- name: CompoundingMoe_evt_Withdraw
loaded_at_field: evt_block_time
- name: CompoundingMoe_evt_Reinvest
loaded_at_field: evt_block_time
- name: CompoundingMoe_evt_Transfer
loaded_at_field: evt_block_time
- name: CompoundingYYStaking_evt_Deposit
loaded_at_field: evt_block_time
- name: CompoundingYYStaking_evt_Withdraw
loaded_at_field: evt_block_time
- name: CompoundingYYStaking_evt_Reinvest
loaded_at_field: evt_block_time
- name: CompoundingYYStaking_evt_Transfer
loaded_at_field: evt_block_time
- name: LendleStrategy_evt_Deposit
loaded_at_field: evt_block_time
- name: LendleStrategy_evt_Withdraw
loaded_at_field: evt_block_time
- name: LendleStrategy_evt_Reinvest
loaded_at_field: evt_block_time
- name: LendleStrategy_evt_Transfer
loaded_at_field: evt_block_time
- name: MoeStrategy_evt_Deposit
loaded_at_field: evt_block_time
- name: MoeStrategy_evt_Withdraw
loaded_at_field: evt_block_time
- name: MoeStrategy_evt_Reinvest
loaded_at_field: evt_block_time
- name: MoeStrategy_evt_Transfer
loaded_at_field: evt_block_time
- name: StargateV2Strategy_evt_Deposit
loaded_at_field: evt_block_time
- name: StargateV2Strategy_evt_Withdraw
loaded_at_field: evt_block_time
- name: StargateV2Strategy_evt_Reinvest
loaded_at_field: evt_block_time
- name: StargateV2Strategy_evt_Transfer
loaded_at_field: evt_block_time

0 comments on commit 11c9d62

Please sign in to comment.