Fujicracy / fuji-v2

Cross-chain money market aggregator
https://fuji-v2-frontend.vercel.app
15 stars 10 forks source link

Check post inner actions beneficiary in Flashloan #538

Closed 0xdcota closed 1 year ago

0xdcota commented 1 year ago

In the BaseRouter.sol, the IRouter.Action.Flashloan was not analyzing who was the beneficiary in the inner actions that would be performed after the flashloan reenters the _internalBundle action.

Refer to discussion here: https://github.com/Fujicracy/fuji-v2/pull/389#discussion_r1195586920