Aave.

Bài viết

Chia sẻ kiến thức của bạn.

Aaveator.
Feb 17, 2023
Hỏi đáp Chuyên Gia

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
Chia sẻ
Bình luận
.

Câu trả lời

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
Bình luận
.

Bạn có biết câu trả lời không?

Hãy đăng nhập và chia sẻ nó.

Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.

213Bài viết230Câu trả lời
Sui.X.Peera.

Kiếm phần của bạn từ 1000 Sui

Tích lũy điểm danh tiếng và nhận phần thưởng khi giúp cộng đồng Sui phát triển.

Chúng tôi sử dụng cookie để đảm bảo bạn có trải nghiệm tốt nhất trên trang web của chúng tôi.
Thêm thông tin