I'm trying to do an exercise where I see if I can calculate Sundaeswap TVL using DB-Sync. Below is what I have managed to pull out from the database so far regarding Sundaeswap. However for the UTXOs in the tx_out table I would have expected the payment_cred (which is described in the docs as " For a script-locked address, this is the script hash." to match the script hash. However it doesn't so I'm not sure how to determine the total number of UTXOs locked by Sundaeswap.
Link to the transaction below in case you need it