pub async fn get_accounting(
    pool: DbPool,
    channel_id: ChannelId,
    address: Address,
    side: Side
) -> Result<Option<Accounting>, PoolError>
Expand description
SELECT channel_id, side, address, amount, updated, created FROM accounting WHERE channel_id = $1 AND address = $2 AND side = $3