When the new user having zero balance tried to add balance, after the on-ramp-transaction success, the balance will not addedd to the user balance table, because we are only updating the balance , it will provide no record found error, hence we have to check if the balance array length is zero then we dont want to update the balance we want to create the balance record.
When the new user having zero balance tried to add balance, after the on-ramp-transaction success, the balance will not addedd to the user balance table, because we are only updating the balance , it will provide no record found error, hence we have to check if the balance array length is zero then we dont want to update the balance we want to create the balance record.