Submitted by broccoli, also found by 0xsanson and cmichel
In the IndexPool contract, flashSwap does not work.
The callback function is called prior to token transfer. The sender wont receive tokens in the callBack function.
ITridentCallee(msg.sender).tridentSwapCallback(context);
Flashswap is not implemented correctly. It may need a migration to redeploy all indexPools if the issue is found after main-net launch.
I consider this a high-risk issue.
IndexPool.sol#L196-L223
maxsam4 (Sushi) commented:
