Bulker Gateway
Function
execute
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
}
function execute(ActionType[] calldata actions, bytes[] calldata data) external payable;
Execute a list of actions atomically.
Parameters
Name | Type | Description |
---|---|---|
actions | enum | The list of actions to execute. |
data | bytes | The list of data to pass to each action. |
msg.value | uint | The amount of ETH to send to the MorphoAaveV3Optimizer contract. |
Actions
Name | Description |
---|---|
APPROVE2 | Approve a token to be spent by the Bulker contract using permit2 |
TRANSFER_FROM2 | Transfer a token from the msg.sender to the Bulker contract using permit2 |
APPROVE_MANAGER | Approve the bulker as manager by using a signature |
SUPPLY | Supply a token to the MorphoAaveV3Optimizer contract |
SUPPLY_COLLATERAL | Supply a token as collateral to the MorphoAaveV3Optimizer contract |
BORROW | Borrow a token from the MorphoAaveV3Optimizer contract (need manager approval) |
REPAY | Repay a token to the MorphoAaveV3Optimizer contract |
WITHDRAW | Withdraw a token from the MorphoAaveV3Optimizer contract (need manager approval) |
WITHDRAW_COLLATERAL | Withdraw a token from the MorphoAaveV3Optimizer contract as collateral (need manager approval) |
WRAP_ETH | Wrap ETH into WETH |
UNWRAP_ETH | Unwrap WETH into ETH |
WRAP_ST_ETH | Wrap stETH into WstETH |
UNWRAP_ST_ETH | Unwrap WstETH into stETH |
SKIM | Skim the MorphoAaveV3Optimizer contract to the sender |