fix mint token count (#240)

This commit is contained in:
Matt Romano 2024-01-29 22:47:12 -08:00 committed by GitHub
parent ccdc965290
commit 8be8cc3447
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,