# Grant Application: Safe App for Stop-Loss Orders

**URL:** <https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189>\
**Category:** CoW Grants Program\
**Tags:** complete, grant-funded\
**Created:** [December 28, 2023, 6:27pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189 "2023-12-28T18:27:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bleu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/bleu/32/1784_2.png) [@bleu](https://forum.cow.fi/u/bleu)\
**Post date:** [December 28, 2023, 6:27pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/1 "2023-12-28T18:27:00Z")

</div>

**Grant Title:**

**Safe App for Stop-Loss Orders**

* * *

**Author:**

@bleu [@yvesfracari](https://github.com/yvesfracari) [@ribeirojose](https://github.com/ribeirojose) [@mendesfabio](https://github.com/mendesfabio)

* * *

**About You:**

[**bleu**](https://github.com/bleu-studio) collaborates with companies and DAOs as a web3 technology and user experience partner. We’re passionate about bridging the experience gap we see in blockchain and web3.

Our team has developed applications that give more visibility and make it easier to interact with Balancer’s smart contracts.

We’ve worked on a previous grant for CoW, [Safe App for Milkman Orders](https://forum.cow.fi/t/grant-application-safe-app-for-creating-milkman-orders/1920), which enabled us to dip our toes in the protocol. We feel ready to take on the challenge to work with Composable CoW and we’re excited about exploring and innovating in CoW.

* * *

**Additional Links:**

We have already developed several tools for the Balancer protocol, among which a [Pool Simulator](https://balancer-tools.bleu.fi/poolsimulator), a [Historical APR dashboard](https://balancer-tools.bleu.fi/apr), and a [Vault Internal Balances Manager](https://balancer-tools.bleu.fi/internalmanager/ethereum).

With the CoW team we worked on the [MilkmApp grant](https://forum.cow.fi/t/grant-application-safe-app-for-creating-milkman-orders/1920), another safe app that helps DAOs to create special orders on CoW Swap.

* * *

**Grant Category:**

User interface and user experience (UI/UX)

* * *

**Grant Description:**

As described in the [RFP](https://grants.cow.fi/request-for-proposals/rfp-stop-loss-order), stop-loss orders are conditional orders that are not executed until the strike price is met. To achieve that, the stop-loss contract uses an external price oracle and a strike, defined when the order is created.

We’re proposing to create a Safe app UI to allow for multisig wallets to fully manage stop-loss orders. We will utilize the contracts deployed by CoW, which support only Chainlink oracles by default. Given that restriction, only tokens that have a Chainlink oracle will be supported. In future iterations of this project, we see the opportunity to develop a contract that abstracts away Chainlink oracles to include any oracles, enhancing the app’s versatility.

* * *

**Grant Goals and Impact:**

The main goal of our project is to allow non-technical users access to implement their investment strategies on CoW by allowing them to manage stop-loss orders. Our aim is to help grow the protocol by attracting more users and thereby increasing trading volume.

* * *

**Milestones:**

| Milestone | Due Date | Payment |
| --- | --- | --- |
| UI design + basic infrastructure | 1 week | $2000 USD |
| Order Creation | 3 weeks | $6000 USD |
| Order history and cancelation | 1 week | $2000 USD |
| Batch Order Creation | 1 week | $2000 USD |

**UI design + basic infrastructure**

Figma designs of the relevant components, pages, and user flows of the app. We plan to share our progress on Discord and get feedback as we go, much like we did with the Milkman grant. We see some UI overlap with Milkman and plan to build upon that app. A draft UI design can be found [here](https://www.figma.com/file/5wewpFLkvvTM15WjVw8WLz/Stop-Loss?type=design&node-id=76%3A655&mode=design&t=8jngyN7Wcy1cf0oa-1) (we also added some screenshots below).

In terms of basic infrastructure, we need some on-chain and off-chain tooling to help with project development, e.g. running the WatchTower towers, deploying mocked chainlink oracles to testnets, etc.

**Order creation**

Functional app with the ability to create Stop Loss orders with all relevant parameter definitions and checking. The checks will include:

- Whether token in/out are supported by Chainlink oracles;
- Detect/set the right fallback handler if isn’t the ExtensibleFallbackHandler;
- Whether the connected address has the specified amount (we are considering implementing an advanced mode that may include or omit the check for whether the connected address has the specified amount);
- Whether the selected Chainlink oracle is one of the active price feeds;
- Whether both oracles are paired to the same token;

At this point, the app will connect to Safe multi-sigs and create stop-loss orders, which are tracked by the WatchTower and then posted on CoW’s API.

**Order History and Cancellation**

Allow users to track their past/current orders and set a status to each order (created, posted, completed, and canceled). We’ll work on an API (potentially Subgraph or similar) to track the creation of these orders in particular. We’ll use CoW’s own API to check when the order gets posted / executed. We’ll check against ComposableCoW contract for order cancelations since that cancelling orders doesn’t emit any events.

Each order will show relevant information, such as tokens, amounts, strike price, and links to CoW Explorer should the order already have been posted.

Until orders are final (e.g. completed/canceled), users will also be able to cancel them on the UI.

**Batch Order Creation**

Allow users to create multiple orders at once, decreasing gas cost and simplifying voting / signing process (more sensitive for DAOs).

* * *

**Funding Request:**

The funding will be divided as follows:

- Upfront:
  - Criteria: Grant approval by snapshot voting
  - Payment: $6k USD-equivalent at the time of payment;

- App production deployment:
  - Criteria: App approved by the grant committee
    - Payment: $6k USD-equivalent at the time of payment;

- Volume Based Program:We request to participate in the [Volume-based Partner Reward Program](https://forum.cow.fi/t/cip-18-cow-grants-program-renewal-proposal/1297). With this, we can receive more COW if we achieve the program volume goals.

* * *

**Budget Breakdown:**

The budget includes the hourly rates of a developer during the execution, and a designer and project manager on a need-basis. It also includes the diluted maintenance costs for 6 months. It also covers the expenses incurred during any eventual deployments.

* * *

**Gnosis Chain Address (to receive the grant):**

0x554866e3654E8485928334e7F91B5AfC37D18e04

* * *

**Other Information:**

- All the code will be open-source from day 0. We’re open to feedback during PRs as well;
- This grant would also be our first step in making user-friendly tools related to Composable CoW orders, and we are particularly excited about eventually moving in the direction of allowing non-technical folks (i.e. non-developers) to create their own order types using Composable CoW, such as what @fleupold [mentions here](https://forum.cow.fi/t/market-stop-loss-order-safe-on-cowswap/2185/2).
- Needless to say, we’re happy to answer any questions and are open to feedback about this proposal;

* * *

**Terms and Conditions:**

By submitting this grant application, I acknowledge and agree to be bound by the CoW DAO Participation Agreement and the CoW Grant Terms and Conditions.

**Order creation mockups**

 ![create_new_order1](https://europe1.discourse-cdn.com/flex013/uploads/cow/original/2X/7/7acd764ea646b0c38d53f46bb4ed40678879c5b3.png)  
 ![create_new_order_2](https://europe1.discourse-cdn.com/flex013/uploads/cow/original/2X/9/96d4ec711ceaa99adc4cb462f648f704a9cbe1d9.png)  
 ![create_new_order_3](https://europe1.discourse-cdn.com/flex013/uploads/cow/original/2X/5/514d4193c8128a2d70b67355b73b932e9df4e63a.png)

---

<div class="post-metadata">

**Author:** ![netrunner.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/netrunner.eth/32/252_2.png) [@netrunner.eth](https://forum.cow.fi/u/netrunner.eth)\
**Post date:** [December 29, 2023, 3:35am UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/2 "2023-12-29T03:35:36Z")

</div>

This looks very interesting. I am in favour of this work package.

---

<div class="post-metadata">

**Author:** ![Chim9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/chim9/32/417_2.png) [@Chim9](https://forum.cow.fi/u/Chim9)\
**Post date:** [January 20, 2024, 10:33pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/3 "2024-01-20T22:33:27Z")

</div>

Very interesting proposal that will bring more use for the protocol, given your previous work on the Milkman App I’m willing to support this proposal.

---

<div class="post-metadata">

**Author:** ![middleway.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/middleway.eth/32/12_2.png) [@middleway.eth](https://forum.cow.fi/u/middleway.eth)\
**Post date:** [January 24, 2024, 2:05pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/4 "2024-01-24T14:05:46Z")

</div>

Dear Applicant,

Thank you for submitting your grant proposal. We are eager to review it. Please be aware that due to the recent renewal of our grants program and the holiday season, we are currently experiencing a delay in our review process. This may result in an extended timeline for the grants committee to establish their procedures and provide you with specific feedback. We appreciate your understanding and patience during this time.

---

<div class="post-metadata">

**Author:** ![bleu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/bleu/32/1784_2.png) [@bleu](https://forum.cow.fi/u/bleu)\
**Post date:** [February 21, 2024, 1:06pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/5 "2024-02-21T13:06:41Z")

</div>

We would like to propose the payment change to include COW tokens. For that, we would like to decrease the xDAI payment to 10k and add 12k COW. Do you guys agree with this change?

---

<div class="post-metadata">

**Author:** ![mfw78](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/mfw78/32/1598_2.png) [@mfw78](https://forum.cow.fi/u/mfw78)\
**Post date:** [February 22, 2024, 2:59am UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/6 "2024-02-22T02:59:20Z")

</div>

To be clear on this, I’d support the change, moving 2K XDAI to 12K COW, however with the caveat that:

1. The 12K COW is vesting over 12 months, with vesting started at the time of completion of the project.
2. Given that this at current market rates in effect is a price increase (though bleu is taking volatile token exposure), I would advocate that this includes 12 months maintenance as opposed to 6 months.

---

<div class="post-metadata">

**Author:** ![bleu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/bleu/32/1784_2.png) [@bleu](https://forum.cow.fi/u/bleu)\
**Post date:** [February 22, 2024, 12:03pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/7 "2024-02-22T12:03:58Z")

</div>

We agree with both points, here are our updated funding request and budget breakdown sections of the proposal:

**Funding Request:**

The funding will be divided as follows:

- Upfront:
  - Criteria: Grant approval by snapshot voting
  - Payment: $5k USD-equivalent at the time of payment;

- App production deployment:
  - Criteria: App approved by the grant committee
    - Payment: $5k USD-equivalent at the time of payment and 12k COW vested over 12 months;

- Volume Based Program: We request to participate in the [Volume-based Partner Reward Program](https://forum.cow.fi/t/cip-18-cow-grants-program-renewal-proposal/1297). With this, we can receive more COW if we achieve the program volume goals.

* * *

**Budget Breakdown:**

The budget includes the hourly rates of a developer during the execution, and a designer and project manager on a need-basis. It also includes the diluted maintenance costs for 12 months. It also covers the expenses incurred during any eventual deployments.

---

<div class="post-metadata">

**Author:** ![mfw78](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/mfw78/32/1598_2.png) [@mfw78](https://forum.cow.fi/u/mfw78)\
**Post date:** [March 4, 2024, 11:31am UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/8 "2024-03-04T11:31:44Z")

</div>

Hey, this sounds great, did you want to move this to a snapshot vote?

---

<div class="post-metadata">

**Author:** ![bleu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/bleu/32/1784_2.png) [@bleu](https://forum.cow.fi/u/bleu)\
**Post date:** [March 4, 2024, 7:06pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/9 "2024-03-04T19:06:09Z")

</div>

Yes! Here is the [snapshot](https://snapshot.org/#/cowgrants.eth/proposal/0xc14f8004724dc44016d88afcd75a6b2c954eaf6f02c03886dab347e559c87c2a).

---

<div class="post-metadata">

**Author:** ![bleu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/bleu/32/1784_2.png) [@bleu](https://forum.cow.fi/u/bleu)\
**Post date:** [March 13, 2024, 1:16pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/10 "2024-03-13T13:16:51Z")

</div>

Thanks to the grant team for the trust again, we’re happy that our partnership is growing on each grant. We will update this post on each milestone completion.

Even though the snapshot was approved a few days ago, we already had started the development before it. Our progress can be followed on this [repository](https://github.com/bleu-fi/composable-cow-hub). Until now our progress is:

- Basic Infrastructure: Finished
- UI Design: Created low-fi templates [here](https://www.figma.com/file/5wewpFLkvvTM15WjVw8WLz/Stop-Loss?type=design&node-id=1118%3A347&mode=design&t=rub1SMi4PQwxqk7H-1).
- Order creation: In progress, missing UX features.
- Order history and cancelation: In progress, missing order details.
- Batch Order Creation: Not started.

We’re open to questions/feedbacks as always!

---

<div class="post-metadata">

**Author:** ![bleu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/bleu/32/1784_2.png) [@bleu](https://forum.cow.fi/u/bleu)\
**Post date:** [August 12, 2024, 1:28pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/11 "2024-08-12T13:28:30Z")

</div>

I’m reaching out about a budget update for the Stop Loss App project. We started on March 7th with a 10k USD budget for a 6-week project, but it has evolved significantly:

- March 7th: Project start with initial proposal.
- April 24th: We delivered the first layout enabling various programmatic orders, similar to the hook store concept.
- Late April - End of May: We worked and integrated the UI/UX feedbacks provided and started to work on the CoW AMM Extension.
- June 17th: After working on another project (CoW AMM Extension), we decided to refactor the app UI to improve user intuitiveness and the hook store development by your frontend team.
- July 9th: We sent the refactored UI for review.
- July 26th: We worked on additional feedback, including smart contract refactoring to address bugs found during the review process.

We really appreciate all the feedback we’ve received, but we underestimated the extent of revisions needed based on our previous project experiences, investing double the hours originally quoted on this project. So we’d like to revise our budget to 18 xDAI and 21k COW vested. This will add 8k xDAI and 9k COW vested to the original amount, which should sum to approx 10k USD using last month’s rates and cover the development costs. We value our partnership with CoW and hope you understand this adjustment given the expanded scope. We’re committed to delivering a top-quality product and are open to any questions.

In addition, I would also like to share that this is one thing that shouldn’t happen in future grants. For that, bleu is committed to presenting better UX flows on grant applications and reporting more promptly if a project is taking longer than expected, to keep everyone aligned.

---

<div class="post-metadata">

**Author:** ![mfw78](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/mfw78/32/1598_2.png) [@mfw78](https://forum.cow.fi/u/mfw78)\
**Post date:** [August 15, 2024, 6:30am UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/12 "2024-08-15T06:30:06Z")

</div>

Given the increased scope _that was requested by CoW DAO Grants_ that was not in the original proposal, I signal my support of this supplementary grant application. If there are no hesitations / rebuttals from the grants committee within a couple of days, please feel free to move this to snapshot.

---

<div class="post-metadata">

**Author:** ![Chim9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/chim9/32/417_2.png) [@Chim9](https://forum.cow.fi/u/Chim9)\
**Post date:** [August 15, 2024, 12:01pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/13 "2024-08-15T12:01:10Z")

</div>

With what Bleu has successfully delivered across multiple grants already and having followed how this specific grant evolved, I support this budget adjustment.

---

<div class="post-metadata">

**Author:** ![bleu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/bleu/32/1784_2.png) [@bleu](https://forum.cow.fi/u/bleu)\
**Post date:** [August 16, 2024, 12:11pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/14 "2024-08-16T12:11:37Z")

</div>

Thanks for the support. The budget update was moved to snapshot here: [Snapshot](https://snapshot.org/#/cowgrants.eth/proposal/0xdf71a87d9eef9f1141ab943cfa92dc7861416b424fb337dede59bbebc5101aa5)

---

<div class="post-metadata">

**Author:** ![bleu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/bleu/32/1784_2.png) [@bleu](https://forum.cow.fi/u/bleu)\
**Post date:** [August 20, 2024, 1:32pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/15 "2024-08-20T13:32:45Z")

</div>

I re-opened the snapshot since the last one didn’t had enough quorum because it happened over the weekend: [Snapshot](https://snapshot.org/#/cowgrants.eth/proposal/0xe35ac288a61d14c6bcf910317a3becee0026923065e0660c09d1d4dcb7dacaec)

---

<div class="post-metadata">

**Author:** ![c3rnst](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/c3rnst/32/219_2.png) [@c3rnst](https://forum.cow.fi/u/c3rnst)\
**Post date:** [April 29, 2025, 9:13am UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/16 "2025-04-29T09:13:06Z")

</div>

hey team -  
I think we would consider the volume based part of the grant closed due to time out of 1 year from the original [Snapshot](https://snapshot.box/#/s:cowgrants.eth/proposal/0xc14f8004724dc44016d88afcd75a6b2c954eaf6f02c03886dab347e559c87c2a).

Let me know if you have thoughts

---

<div class="post-metadata">

**Author:** ![adamhurwitz.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/adamhurwitz.eth/32/1453_2.png) [@adamhurwitz.eth](https://forum.cow.fi/u/adamhurwitz.eth)\
**Post date:** [July 18, 2025, 9:30pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/17 "2025-07-18T21:30:16Z")

</div>

It’s cool to learn about the @bleu CoW Stop Loss Safe app thanks to @Chim9 on Discord today! [I’m an indie Safe researcher](https://adamhurwitz.eth.limo/) and was the product lead on SafeDAO’s first grants council. 🙏🏻🟢🐮📉

- This feature is important to make sure you plan for both the optimistic case with limit orders and downside with stop loss orders so that users aren’t “stuck” holding assets they intended to sell
- Moooving forward it’d be great to have this directly integrated into CoW Swap for Safe accounts and upgraded EIP-7702 externally owned accounts EOAs as conditional signing is required
- **Have there been any audits so far?**
- **I estimate there hasn’t been recent activity on the [GitHub repository](https://github.com/bleu/cow-stop-loss) because the code is currently stable?**

Much appreciated!

---

<div class="post-metadata">

**Author:** ![middleway.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/middleway.eth/32/12_2.png) [@middleway.eth](https://forum.cow.fi/u/middleway.eth)\
**Post date:** [July 22, 2025, 9:58am UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/18 "2025-07-22T09:58:17Z")

</div>

I think audits should be [here](https://github.com/cowprotocol/composable-cow/tree/54ee414d8e8291a915b387e4f29b04d9cd0ebbbd/audits)

It didn’t get a lot of use unfortunately…  
I agree that adding it to the main app is likely to give it much more exposure and use.

Do you have any insights to share that can help justify the work adding it to the main app?

---

<div class="post-metadata">

**Author:** ![adamhurwitz.eth](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/adamhurwitz.eth/32/1453_2.png) [@adamhurwitz.eth](https://forum.cow.fi/u/adamhurwitz.eth)\
**Post date:** [July 22, 2025, 3:06pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/19 "2025-07-22T15:06:14Z")

</div>

Thank you for sharing the Ackee and internal audits of the CoW Protocol @middleway.eth! It’d also be great to have an audit of the CoW Stop Loss Safe app UI. Users can also verify that the UI is doing what is expected by running [Safe transaction Tenderly simulations](https://x.com/adamshurwitz/status/1916901058057507322). The Bybit hack of Safe is a great reminder to think about UI security and use multi factor verification MFV for important transactions.

> Do you have any insights to share that can help justify the work adding it to the main app?

- I estimate the usage of CoW Swap and protocol by advanced traders and organizations would increase with a stop loss feature as this is a core feature for existing institutional centralized exchanges CEXs.
- Stop losses could also greatly increase the demand for limit orders too because currently setting only a limit order leaves you exposed to price decreases which would leave you stuck holding an asset you may have wanted to sell.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/system/32/1733_2.png) [@system](https://forum.cow.fi/u/system)\
**Post date:** [November 24, 2025, 2:53pm UTC](https://forum.cow.fi/t/grant-application-safe-app-for-stop-loss-orders/2189/20 "2025-11-24T14:53:43Z")

</div>


