pub async fn update_accounting(
    pool: DbPool,
    channel_id: ChannelId,
    address: Address,
    side: Side,
    amount: UnifiedNum
) -> Result<Accounting, PoolError>
Expand description

Will update current Spender/Earner amount or insert a new Accounting record

See UPDATE_ACCOUNTING_STATEMENT static for full query.