With over , Safe is a multi-signature wallet that allows users to manage their assets in a secure and decentralized way.
Safe Dapps, are third party interfaces that live inside the Safe Wallet Web and allow users to interact with deFI protocols with a customised user experience.CoW Protocol Widget has a deep integration with Safe Dapps, which allows anyone building a Safe Dapp to seamlessly add trading functionality.This is interesting for Safe Dapps because:
🧱 Cut the development costs, building a good trading experience is hard!
☔️ Offer users all CoW Protocol innovations, like protection from MEV, just-in-time path finding (optimised for Multisigs), batching of transactions and more.
🤑 Create a revenue model for your Dapp by using the partnerFee (see Fees).
The easiest way to get started is to follow the steps below.
Before you start, you can get a feel of the Safe App example. Feel free to skip this step!The example shows:
How to make a new Safe App
How to make Swaps, Limit orders and TWAPs
How to control programatically the swap widget
How to detect trade parameters (token selection, amounts, etc.)
How to define a dynamic fee
How to customize the colors, tokens, sounds, etc
To use the demo, just follow the instructions in Add your custom dapp in Safe Wallet below, but instead of adding the URL http://localhost:9999, use the URL https://safe.widget.cow.fi.
You can use the safe-app-example to start with some basic boilerplate code.Go to https://github.com/cowprotocol/safe-app-example and fork it.This will create a copy of the project so you can safely make modifications on it.
Go to https://app.safe.global and create a safe if you don’t have one for Sepolia network (convenient for testing).Then navigate to: Apps > My Custom Dapps.Add your custom dapp: http://localhost:9999.The dapp should be added in your local browser.Open the app:Try to make your first trade! You might need some tokens, or Sepolia Ether (you could use this faucet).