CoW Hooks FAQ
Yes, this feature is already live in Ethereum mainnet and Gnosis Chain. Although, for the time being, there is no user interface to leverage CoW Hooks. If you are interested in building one, contact us or apply directly for a grant at grants.cow.fi
Yes! Here is a transaction (CoW Explorer Order) where the user is approving, swapping and bridging to Gnosis chain without having any ETH in the account and all in one transaction. If you want to check it out how it was done, make sure to watch the video demo.
You can make any contract calls. The caveat is that we "trampoline" the call from a different contract (meaning the call stack looks like
Settlement -> Trampoline -> Call
). This is because calling stuff directly from the settlement contract would have allowed clever users potentially take the contract funds.Currently the contract is the Safe's MultiSendCallOnly, but we are already testing with a dedicated trampoline contract: https://github.com/cowprotocol/hooks-trampoline.
This should allow semi-permissioned hooks (in that they can require
(msg.sender == HOOKS_TRAMPOLINE_ADDRESS, "not a settlement");
).Last modified 2mo ago