IBulkerGateway

Git Source

Functions

WETH

function WETH() external pure returns (address);

stETH

function stETH() external pure returns (address);

wstETH

function wstETH() external pure returns (address);

MORPHO

function MORPHO() external view returns (address);

execute

function execute(ActionType[] calldata actions, bytes[] calldata data) external payable;

Errors

InconsistentParameters

Thrown when execution parameters don't have the same length.

error InconsistentParameters(uint256 nbActions, uint256 nbData);

OnlyWETH

Thrown when another address than WETH sends ETH to the contract.

error OnlyWETH();

AddressIsZero

Thrown when an address used as parameter is the zero address.

error AddressIsZero();

AddressIsBulker

Thrown when an address parameter is the bulker's address.

error AddressIsBulker();

AmountIsZero

Thrown when an amount used as parameter is zero.

error AmountIsZero();

UnsupportedAction

Thrown when the action is unsupported.

error UnsupportedAction(ActionType action);

Enums

ActionType

enum ActionType {
    APPROVE2,
    TRANSFER_FROM2,
    APPROVE_MANAGER,
    SUPPLY,
    SUPPLY_COLLATERAL,
    BORROW,
    REPAY,
    WITHDRAW,
    WITHDRAW_COLLATERAL,
    WRAP_ETH,
    UNWRAP_ETH,
    WRAP_ST_ETH,
    UNWRAP_ST_ETH,
    SKIM,
    CLAIM_REWARDS
}