strawbettyPercent of bLUNA and bETH is locked as collateral on Anchor
    Updated 2022-03-27


    SELECT
    (SELECT sum(amount) from anchor.collateral where contract_address = 'terra10cxuzggyvvv44magvrh3thpdnk9cmlgk93gmx2' and event_type='provide')
    - (SELECT sum(amount) from anchor.collateral where contract_address = 'terra10cxuzggyvvv44magvrh3thpdnk9cmlgk93gmx2' and event_type='withdraw')
    - (SELECT sum(liquidated_amount) from anchor.liquidations where liquidated_currency = 'terra1dzhzukyezv0etz22ud940z7adyv7xgcjkahuun') as amount,
    'bETH collateral' as collateral
    union
    SELECT
    (SELECT sum(amount) from anchor.collateral where contract_address = 'terra1ptjp2vfjrwh0j0faj9r6katm640kgjxnwwq9kn' and event_type='provide')
    - (SELECT sum(amount) from anchor.collateral where contract_address = 'terra1ptjp2vfjrwh0j0faj9r6katm640kgjxnwwq9kn' and event_type='withdraw')
    - (SELECT sum(liquidated_amount) from anchor.liquidations where liquidated_currency = 'terra1kc87mu460fwkqte29rquh4hc20m54fxwtsx7gp'),
    'bLUNA collateral' as collateralb
    Run a query to Download Data