with min_amount as(
select min(txns.ETH_VALUE) as lido_min_amount
from ethereum.core.fact_transactions txns left join ethereum.core.fact_event_logs logs
on txns.tx_hash=logs.tx_hash
where
CONTRACT_ADDRESS= lower('0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84')
and txns.ETH_VALUE!=0 and
logs.TX_STATUS='SUCCESS'
)
select * from min_amount