presign_cowswap
Documentation for eth_defi.erc_4626.vault_protocol.lagoon.cowswap.presign_cowswap function.
- presign_cowswap(vault, buy_token, sell_token, amount_in, min_amount_out, app_data=HexBytes('0x0000000000000000000000000000000000000000000000000000000000000000'))
Construct a pre-signed CowSwap order for the offchain order book to execute using TradingStrategyModuleV0.
- Parameters
app_data – From docs: If you do not care about appData, set this field to “{}” and make sure that the order you signed for this request had its appData field set to
0xb48d38f93eaa084033fc5970bf96e559c33c4cdc07d889ab00b4d63f9590739d.vault (eth_defi.erc_4626.vault_protocol.lagoon.vault.LagoonVault) –
buy_token (eth_defi.token.TokenDetails) –
sell_token (eth_defi.token.TokenDetails) –
amount_in (decimal.Decimal) –
min_amount_out (decimal.Decimal) –
- Return type
web3.contract.contract.ContractFunction