Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

FlashLoan breaks when borrowing renFIL #322

Description

@0xMelkor

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'")})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions