Aave.

帖子

分享您的知识。

Aaveator.
Feb 07, 2023
专家问答

Creation of flashloan pending Aave Error

Hello, i have this error:

creation of FlashLoan pending...
[vm]from: 0x5B3...eddC4to: FlashLoan.(constructor)value: 0 weidata: 0x608...eddc4logs: 0hash: 0x1ce...d411d
creation of FlashLoan errored: VM error: revert.

revert
    The transaction has been reverted to the initial state.
Note: The called function should be payable if you send value and the value you send should be less than your current balance.
Debug the transaction to get more information.

when i debug it the error rise from @aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol

  • Aave Protocol
  • Aave flashloan
0
1
分享
评论
.
0x8744...6532.
Feb 8 2023, 20:43

We don't have enough information to triage this. What was the function you called? What were your parameters your sent? Can you please give as much detail as possible. This is a generic error.

答案

1
Aaveator.
Feb 14 2023, 11:58

Hello! Can you try changing the constructor to this:

constructor(address _addressProvider) 
    FlashLoanSimpleReceiverBase(IPoolAddressesProvider(_addressProvider))
{
        owner = payable(msg.sender);
}
0
评论
.

你知道答案吗?

请登录并分享。

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