Submitted by bin2chen
PirexGmx#migrateReward() may cause users to lose Reward before PirexRewards.sol set new PirexGmx.
The current migration process is: call # completemigration ()-> # migrateward ()
After this method, the producer of PirexRewards.sol contract is still the old PirexGmx.
At this time, if AutoPxGmx#compound () is called by bot:
AutoPxGmx#compound() -> PirexRewards#.claim() -> old_PirexGmx#claimRewards()
Old_PirexGmx#claimRewards () will return zero rewards and the reward of AutopXGMX will be lost.
Old PirexGmx still can execute
https://github.com/code-423n4/2022-11-redactedcartel/blob/03b71a8d395c02324cb9fdaf92401357da5b19d1/src/PirexGmx.sol#L824-L828
https://github.com/code-423n4/2022-11-redactedcartel/blob/03b71a8d395c02324cb9fdaf92401357da5b19d1/src/PirexGmx.sol#L940-L949
There are two ways to solve the problem.
Simply use the second, such as:
drahrealm (Redacted Cartel) confirmed 
