Skip to content

Commit

Permalink
update lending pool contract (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattromano authored Sep 11, 2024
1 parent 54169f7 commit 42e67fb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion models/silver/defi/lending/aave/silver__aave_withdraws.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ WITH withdraw AS(
WHEN contract_address = LOWER('0x794a61358D6845594F94dc1DB02A252b5b4814aD') THEN 'Aave V3'
ELSE 'ERROR'
END AS aave_version,
origin_to_address AS lending_pool_contract,
COALESCE(
origin_to_address,
contract_address
) AS lending_pool_contract,
_inserted_timestamp,
_log_id
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ WITH repay AS(
WHEN contract_address = LOWER('0x8FD4aF47E4E63d1D2D45582c3286b4BD9Bb95DfE') THEN 'Granary'
ELSE 'ERROR'
END AS granary_version,
origin_to_address AS lending_pool_contract,
COALESCE(
origin_to_address,
contract_address
) AS lending_pool_contract,
origin_from_address AS repayer_address,
_log_id,
_inserted_timestamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ WITH withdraw AS(
WHEN contract_address = LOWER('0x8FD4aF47E4E63d1D2D45582c3286b4BD9Bb95DfE') THEN 'Granary'
ELSE 'ERROR'
END AS granary_version,
origin_to_address AS lending_pool_contract,
COALESCE(
origin_to_address,
contract_address
) AS lending_pool_contract,
_inserted_timestamp,
_log_id
FROM
Expand Down

0 comments on commit 42e67fb

Please sign in to comment.