project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

Curved Cow Orders

Curved Orders are a new smart order type for CoW protocol which implement pricing curve logic

Curved Cow Orders

Created At

ETHBogotá

Winner of

1️⃣2️⃣7️⃣1️⃣ CoW Swap — 🥇 Most Creative Demo of ERC-1271

Project Description

Curved Orders are a smart order type for CoW protocol. They allow the submitter of an order to define a pricing curve which potential trades are validated against. Put simply, larger volume trades are sold at a higher price, while smaller volume orders are sold closer to spot price. LPs only need to submit one order, and their order can be gradually filled with configurable dynamic pricing.

How it's Made

The project uses: CoW protocol, foundry, forge, python. It implements ERC 1271 for validating signatures from a smart contract. Additionally, it compares trade execution prices against a price curve and given a potential trade is above a threshold, and has a valid signature, the `isValidSignature() method of ERC 1271 will return a truthy value to authorize the trade.

background image mobile

Join the mailing list

Get the latest news and updates