BalancerV2FlashLoanCallback

Git Source

Inherits: Slots, Masks, DeltaErrors

Flash loaning through BalancerV2

State Variables

BALANCER_V2

address private constant BALANCER_V2 = 0xBA12222222228d8Ba445958a75a0704d566BF2C8

SWAAP

address private constant SWAAP = 0xd315a9C38eC871068FEC378E4Ce78AF528C76293

Functions

receiveFlashLoan

Handles Balancer V2 flash loan callback

Gated via flash loan gateway flag to prevent calls from sources other than this contract

Note: calldata-offset-table:

Offset Length (bytes) Description
0 20 origCaller
20 1 poolId
21 Variable composeOperations
function receiveFlashLoan(
    address[] calldata,
    uint256[] calldata,
    uint256[] calldata,
    bytes calldata params //
)
    external;

_deltaComposeInternal

Internal function to execute compose operations

Override point for flash loan callbacks to execute compose operations

function _deltaComposeInternal(address callerAddress, uint256 offset, uint256 length) internal virtual;

Parameters

Name Type Description
callerAddress address Address of the original caller
offset uint256 Current calldata offset
length uint256 Length of remaining calldata

results matching ""

    No results matching ""