Aave.

帖子

分享您的知识。

Aaveator.
Feb 17, 2023
专家问答

Add a modifier to executeOperation() in my FlashLoanRecevierBase and receive the funds

Can I add a modifier to executeOperation() function in my FlashLoanRecevierBase and still receive the funds?
Being an external fn, I want to limit its accessibility to only "accounts with code" and want to add a modifier to check that

  • Aave Protocol
  • Aave flashloan
0
1
分享
评论
.

答案

1
Aaveator.
Feb 17 2023, 14:29

It would be best to add any extra logic at the start of the executeOperation() function. It is very important to require that the only caller of the ExecuteOperation function IS the Pool proxy address.

And to also check that initiator is an account owned by the developer to prevent outsiders to call the function.

0
评论
.

你知道答案吗?

请登录并分享。

我们使用 cookie 确保您在我们的网站上获得最佳体验。
更多信息