freemartianTotal Stablecoins Bridged From Base on Orbiter
    Updated 2025-01-17
    -- forked from Total Stablecoins Bridged From Arbitrum on Orbiter @ https://flipsidecrypto.xyz/edit/queries/78c7c448-4f7d-4da6-bc8d-1e3443cc8111


    with stablecoin AS (
    SELECT
    (CASE
    WHEN RIGHT (raw_amount,4) = 9001 THEN 'ethereum'
    WHEN RIGHT (raw_amount,4) = 9002 THEN 'arbitrum'
    WHEN RIGHT (raw_amount,4) = 9003 THEN 'zksync_lite'
    WHEN RIGHT (raw_amount,4) = 9004 THEN 'starknet'
    WHEN RIGHT (raw_amount,4) = 9006 THEN 'polygon'
    WHEN RIGHT (raw_amount,4) = 9007 THEN 'optimism'
    WHEN RIGHT (raw_amount,4) = 9008 THEN 'immutablex'
    WHEN RIGHT (raw_amount,4) = 9009 THEN 'loopring'
    WHEN RIGHT (raw_amount,4) = 9010 THEN 'metis'
    WHEN RIGHT (raw_amount,4) = 9011 THEN 'dydx'
    WHEN RIGHT (raw_amount,4) = 9012 THEN 'zkspace'
    WHEN RIGHT (raw_amount,4) = 9013 THEN 'boba'
    WHEN RIGHT (raw_amount,4) = 9014 THEN 'zksync_era'
    WHEN RIGHT (raw_amount,4) = 9015 THEN 'bsc'
    WHEN RIGHT (raw_amount,4) = 9016 THEN 'arbitrum_nova'
    WHEN RIGHT (raw_amount,4) = 9017 THEN 'zkevm'
    WHEN RIGHT (raw_amount,4) = 9021 THEN 'base'
    WHEN RIGHT (raw_amount,4) = 9023 THEN 'linea'
    WHEN RIGHT (raw_amount,4) = 9024 THEN 'mantle'
    WHEN RIGHT (raw_amount,4) = 9030 THEN 'zora'
    else 'others'
    end
    ) AS destination,
    from_address,
    tx_hash,
    raw_amount

    FROM base.core.fact_token_transfers
    WHERE to_address IN ('0x41d3d33156ae7c62c094aae2995003ae63f587b3','0xd7aa9ba6caac7b0436c91396f22ca5a7f31664fc','0x095D2918B03b2e86D68551DCF11302121fb626c9')
    AND destination <> 'others'
    Last run: 3 months ago
    WALLET_COUNT
    TRANSACTIONS
    AMOUNT_USD
    1
    146004374221962640.174508
    1
    31B
    25s