This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
[Ambire Wallet] Order signing with SC wallets uses pre-approvals instead of EIP1271 #2044
Labels
app:CowSwap
CowSwap app
Bug
Something isn't working
Medium
Severity indicator. It causes some undesirable behavior, but the system is still functional
Wallets
Wallet related
Description
It appears that signing orders with SC wallets uses sig mode 4, pre-signing an order (https://docs.cowswap.exchange/smart-contracts/settlement-contract/signature-schemes) instead of sig mode 3 (EIP 1271 signature)
This issue happens with Ambire Wallet
How to Reproduce
Steps to reproduce the behavior:
Expected behavior
CowSwap should be using personal_sign to request an EIP1271 signature from the wallet, to avoid extra gas costs
Screenshots
(note: wallet addr was deleted via DevTools in the second screenshot for privacy)
Additional context
Ambire Wallet is a smrat contract wallet that supports EIP1271 as evident here https://github.com/AmbireTech/wallet/blob/main/contracts/Identity.sol#L152. This has been verified with multiple dApps such as Opensea
The text was updated successfully, but these errors were encountered: