lagoon.cowswap

Documentation for eth_defi.lagoon.cowswap Python module.

Backwards-compatible import shim for eth_defi.lagoon.cowswap.

This module has been moved to eth_defi.erc_4626.vault_protocol.lagoon.cowswap. This shim provides backwards compatibility for existing code.

Functions

approve_cow_swap(vault, token, amount)

Approve cowswap settlement contract to spend tokens on the behalf of Lagoon vault.

execute_presigned_cowswap_order(chain_id, order)

Execute a presigned CowSwap order.

presign_and_broadcast(asset_manager, vault, ...)

Broadcast presigned transcation onchain and return order payload.

presign_and_execute_cowswap(...[, ...])

Creates a sell order from the vault and executes it on CowSwap.

presign_cowswap(vault, buy_token, ...[, ...])

Construct a pre-signed CowSwap order for the offchain order book to execute using TradingStrategyModuleV0.