BaseComposer

Git Source

Inherits: DeadLogger, Swaps, Gen2025DexActions, UniversalLending, ERC4626Operations, Transfers, Permits, ExternalCall

Title: Base aggregator contract that needs overrides for explicit chains. Allows spot and margin swap aggregation Efficient batching through compact calldata usage. Needs to inherit callback implementations

Author: 1delta Labs AG

Functions

constructor

constructor() ;

receive

receive() external payable;

deltaCompose

Batch-executes a series of operations The calldata is loaded in assembly and therefore not referred to here

function deltaCompose(bytes calldata) external payable;

_deltaComposeInternal

Execute a set of packed operations

function _deltaComposeInternal(
    address callerAddress,
    uint256 currentOffset,
    uint256 calldataLength //
)
    internal
    virtual;

Parameters

Name Type Description
callerAddress address the address of the EOA/contract that initially triggered the deltaCompose - this is called within flash & swap callbacks - strict validations need to be made in these cases to prevent an entity to call this with a non-matching callerAddress
currentOffset uint256 offset packed ops array
calldataLength uint256 length of packed ops array op0 data0 op1 ... 1 ... 1 ...

_universalFlashLoan

function _universalFlashLoan(uint256 currentOffset, address callerAddress) internal virtual returns (uint256);

results matching ""

    No results matching ""