diff --git a/modules/net/dap_chain_ledger.c b/modules/net/dap_chain_ledger.c index c6d7bc49a45dd0e8a3ea335857e9f36b2ac12cea..df397c3da875eac3e8f3e13bf2adcc00d81d58e3 100644 --- a/modules/net/dap_chain_ledger.c +++ b/modules/net/dap_chain_ledger.c @@ -674,7 +674,10 @@ static int s_token_tsd_parse(dap_ledger_token_item_t *a_item_apply_to, dap_chain } if (!a_apply) break; + uint256_t l_supply_delta = {}; + SUBTRACT_256_256(l_new_supply, a_item_apply_to->total_supply, &l_supply_delta); a_item_apply_to->total_supply = l_new_supply; + SUM_256_256(a_item_apply_to->current_supply, l_supply_delta, &a_item_apply_to->current_supply); } break; // Allowed tx receiver addres list add, remove or clear