How to Calculate APY as Liquidity Provider

I am calculating RoR for my investment where I provide liquidity on Mirror, say between mGalaxy and UST, I need to provide equal amount on both side, so when an APY is quoted, is that based on just one side or both side?

For example:

Here I am providing liquidity between mGLXY+UST, APY of 25.97, am I collecting 25.97% based on $272.18UST or $544.37 UST?

Whole amount. $544 in your example.