Made a change to the circuit, the other one was more of a quick prototype I was playing with on the bench but it's not quite what I need so made one closer to the real thing:
Basically the first shunt will measure the current coming from the solar panel going to the buck converter, which will charge the battery.
The second shunt will measure the current of the load from the battery (and naturally from solar panel too if it's producing).
Problem with this circuit is that the solar panel ground is going to be more negative than the system ground, I think. The MCU will be powered by the battery so it's ground will be the battery ground and everything else will be referenced by that.
What about high side current sensing, would that be easier in this case? Though that requires the op amp to be able to handle the highest voltage of the system right? And this voltage is going to change all the time so it would be a challenge to power the op amp with the proper voltage even if it can handle it. I originally wanted to use hall effect sensors but they don't seem to make many that are through hole and I'm not equipped at all to do SMD. I tried. I have some 30 amp sensors and they're just too small to do without a proper PCB and a microscope.
Worse case scenario I can get rid of the load current sensing, it's just a nice feature I wanted to have so that I know how much I'm drawing from the system, but the first shunt is the most important as it will be used for basic MPPT purposes.
Would current transformers work for DC? I think those are only for AC right?
Also just realized I kinda messed up, my op amps won't be powered by the solar panel as shown, but by a voltage regulator that is powered by the battery. That same voltage regulator will power the MCU. I have a more detailed circuit but it's a mess so that's why I had made that one just to show the important parts.