Aave.

Bài viết

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

Aaveator.
Mar 07, 2023
Hỏi đáp Chuyên Gia

How does the Aave flashloan script know to call the call-back function if it's never passed?

I'm very confused by flash loan scrips found on the web. They all have call-back functions but never pass the call-back function. How does the script know to call the call-back function if it's never passed?

  • Aave flashloan
0
1
Chia sẻ
Bình luận
.

Câu trả lời

1
Hero of Peera.
Mar 9 2023, 09:37

When you call Aave flashloan on the Aave lending pool v2 or Pool v3 contract, you pass in the parameter receiverAddress, this address is a contract which must contain the executeOperation function. This function is the callback which is executed when you call flashloan and contains your custom logic.

0
Câu trả lời chính thức
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ó.

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