6/7
6️⃣ Repay and move the profit out.
The executor repays Aave 1,943,428.866064 USDT, including a 971.228819 USDT fee. | Hanami
6/7
6️⃣ Repay and move the profit out.
The executor repays Aave 1,943,428.866064 USDT, including a 971.228819 USDT fee. The remaining 4,749,726.096973 USDT goes first to the outer contract, then to the attacker EOA.
Reply to @GoPlusSecurity: 5/7
5️⃣ Recover the X, then sell into the real main pool.
The executor burns NFT 23375 and pulls 399,986.799998 X and 64.324680 USDT from the new pool. The 64.324680 USDT is what remains of the 100 USDT seed after the 35.675313 USDT paid to Freezer. It then sells 131,702.921165 X into the real main pool for 6,693,089.638357 USDT. After that sale, 268,283.878833 X remains on the executor.