You cannot just give a random group of people a "bonus" while the other is expected to carry the burden.
The simplest solution might rather be a wage supplement, and the key part which funds it, an infinite coffer for infrastructure and development only controlled and disbursed by publicly elected municipalities/counties/provinces . This way you can give the UBI, and the working person, gets a wage benefit of their current wage with 1% bonus cumulative per year, with 5% every 5 years. This encourages people to stay at their job and become masters of their trade.
School, being infrastructure becomes free. You pay people a tiny percent of the profit from the sale for the portion of products made with people's patents out of the coffer to encourage invention.
It becomes necessary to lock commodity and resource prices for countries using this system with markup rules against physical products, while implementing a side by side digital dollar equivalent to the country dollar. Forex is locked on implementation in the host country, with external debts and trades paid by products and resources and potential labour. Trade can be made against potential future stock.
Companies no longer have to give raises, the supplement does that.
Environmental upgrades are paid by the coffer to businesses to immediately implement, saving the environment
Energy sector businesses have access to the infinite coffer for construction, however, gas, electricity, water, waste management etc is free. Companies earn profit based on untaxed distribution formulaicly against infinite coffer payouts to employees.
Contracts for infrastructure construction are granted based on longevity and quality rather than just cost for material.
The goal is to usher in a golden age.
There are several loopholes and stop checks that need to be in place, like politicians are paid from the coffer, politicians who lie forfeit their jobs after x number of incidents. Lobbying is illegal. A universal set of rights recognized NOT granted by the governments using this system.
Military, fire, police, education, all have access to funding after approval of product and concept within new stop check rules by the public and secretly vetted for security purposes.
If the public don't approve the project, it doesn't get funding. Multi level security and oversight with vetted public approval boards are created for approval of top secret operations.
Businesses may present business plans for approval by the infrastructure board for funding to create them. These businesses who use funding for creation are randomly frequented by "IRS" like agents who assess and ensure the business is operating as described.
The new infinite coffer currency is digital and fully traceable.
Hospitals free.
People like Martin Shrekli become irrelevant.
All patents are free to access and use, based on security oversight.
There are thousands of more details required to discuss and implement to use an infinite coffer system which would allow an UBI to be implemented, but not now and at the cost of someone else's labour, that is slavery.
If we want to reach the stars, we have to be willing to work on a new system together, like an open programming project, put the good things in there and the stop checks to prevent abuse and the redundant safeguards to prevent failure.
My 2 cents