diff --git a/dex/models/_projects/curvefi/ethereum/curvefi_ethereum_view_pools.sql b/dex/models/_projects/curvefi/ethereum/curvefi_ethereum_view_pools.sql index f8a82aec45c..96455107358 100644 --- a/dex/models/_projects/curvefi/ethereum/curvefi_ethereum_view_pools.sql +++ b/dex/models/_projects/curvefi/ethereum/curvefi_ethereum_view_pools.sql @@ -265,8 +265,8 @@ v1_twocrypto as ( dp.output_0 AS deposit_contract, p.coins[1] AS coin0, p.coins[2] AS coin1, - 0x0000000000000000000000000000000000000000 as coin2, - 0x0000000000000000000000000000000000000000 as coin3, + COALESCE(try(p.coins[3]),CAST(NULL as varbinary)) as coin2, + COALESCE(try(p.coins[4]),CAST(NULL as varbinary)) as coin3, CAST(NULL as varbinary) AS undercoin0, CAST(NULL as varbinary) AS undercoin1, CAST(NULL as varbinary) AS undercoin2, diff --git a/dex/models/trades/ethereum/platforms/curvefi_ethereum_base_trades.sql b/dex/models/trades/ethereum/platforms/curvefi_ethereum_base_trades.sql index 76908b847c5..3f73ebfbce4 100644 --- a/dex/models/trades/ethereum/platforms/curvefi_ethereum_base_trades.sql +++ b/dex/models/trades/ethereum/platforms/curvefi_ethereum_base_trades.sql @@ -45,7 +45,7 @@ WITH dexs AS FROM {{ source('ethereum', 'logs') }} l JOIN {{ ref('curvefi_ethereum_view_pools') }} p ON l.contract_address = p.pool_address - AND p.version IN ('Factory V1 Meta', 'Factory V1 Plain', 'Regular', 'Factory V1 Stableswap Plain', 'Factory V1 Stableswap Meta', 'Factory V1 Stableswap Plain NG', 'Factory V1 Twocrypto') --note Plain only has TokenExchange. + AND p.version IN ('Factory V1 Meta', 'Factory V1 Plain', 'Regular', 'Factory V1 Stableswap Plain', 'Factory V1 Stableswap Meta'/*, 'Factory V1 Stableswap Plain NG', 'Factory V1 Twocrypto'*/) --note Plain only has TokenExchange. WHERE l.topic0 IN ( 0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b -- TokenExchangeUnderlying