They started with applying it directly based on trade deficit, and that was mentioned again in this with Canada. Completely idiotic economic policy: if you're buying up some crucial rare mineral from some micro nation why would you care that they use the money to buy fuel from some other country closer nearby with refineries and lower shipping costs, etc. It's really backwards.
A balanced trade deficit at each connection between each nation worldwide would be very inefficient.