Skip to content

Commit

Permalink
moonwell and sonne deposit fix (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattromano authored Jan 30, 2024
1 parent 9d24572 commit 350ea72
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -33,10 +33,10 @@ moonwell_deposits AS (
contract_address AS token_address,
regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,
utils.udf_hex_to_int(
segmented_data [3] :: STRING
segmented_data [2] :: STRING
) :: INTEGER AS minttokens_raw,
utils.udf_hex_to_int(
segmented_data [2] :: STRING
segmented_data [1] :: STRING
) :: INTEGER AS mintAmount_raw,
CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS supplier,
'Moonwell' AS platform,
4 changes: 2 additions & 2 deletions models/silver/defi/lending/sonne/silver__sonne_deposits.sql
Original file line number Diff line number Diff line change
@@ -33,10 +33,10 @@ sonne_deposits AS (
contract_address AS token_address,
regexp_substr_all(SUBSTR(DATA, 3, len(DATA)), '.{64}') AS segmented_data,
utils.udf_hex_to_int(
segmented_data [3] :: STRING
segmented_data [2] :: STRING
) :: INTEGER AS minttokens_raw,
utils.udf_hex_to_int(
segmented_data [2] :: STRING
segmented_data [1] :: STRING
) :: INTEGER AS mintAmount_raw,
CONCAT('0x', SUBSTR(segmented_data [0] :: STRING, 25, 40)) AS supplier,
'Sonne' AS platform,

0 comments on commit 350ea72

Please sign in to comment.