Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlashLoan breaks when borrowing renFIL #322

Open
0xMelkor opened this issue Dec 15, 2022 · 0 comments
Open

FlashLoan breaks when borrowing renFIL #322

0xMelkor opened this issue Dec 15, 2022 · 0 comments

Comments

@0xMelkor
Copy link

Hi guys,

I requested several flashloans in the past, but I have a weird behavior here.

When I request a flashloan for the renFIL token, call fails on the aToken contract (aRENFIL: 0x514cd6756CCBe28772d4Cb81bC3156BA9d1744aa);

Pool invokes the aToken at line:

IAToken(aTokenAddresses[vars.i]).transferUnderlyingTo(receiverAddress, amounts[vars.i]);

Then it fails at line:

IERC20(_underlyingAsset).safeTransfer(target, amount);

I get this error:

Error: VM Exception while processing transaction: reverted with reason string 'SafeERC20: low-level call failed', data: Some(Object {"data": String("0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000205361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564"), 
"message": String("Error: VM Exception while processing transaction: reverted with reason string 'SafeERC20: low-level call failed'")})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant