select
tx_id,
msg_value:coins[0]:amount/1e6 as amount,
msg_value:coins[0]:denom as currency
from terra.msgs
where msg_value:contract = 'terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf'
and msg_value:execute_msg:deposit_tokens is not null
and tx_status = 'SUCCEEDED'
and tx_id = '05F30F1976EB9688DBACD50560B9B498EBD5682166B6AEC24F94303CA3C39989'