execute_velora_swap

Documentation for eth_defi.erc_4626.vault_protocol.lagoon.velora.execute_velora_swap function.

execute_velora_swap(asset_manager, vault, buy_token, sell_token, amount_in, min_amount_out, augustus_calldata, broadcast_callback=<function _default_broadcast_callback>)

Execute a Velora swap through the vault.

This builds and broadcasts the swapAndValidateVelora() transaction and extracts the result from the VeloraSwapExecuted event.

Parameters
Returns

VeloraSwapResult with transaction hash and amounts

Return type

eth_defi.velora.swap.VeloraSwapResult