What is MoonSwap?

MoonSwap is a tool that enables DAOs to swap, borrow, lend, and stream tokens from their treasuries in order to empower shared interests and foster long-term partnerships between DAOs. How it was built

MoonSwap was developed by a collaborative effort between farque65, qedk, dhaiwat10, miral, nazeeh21. This app is built on the top of scaffold-eth which allows you to quickly experiment with solidity using a front end that adapts to your Smart Contract. It provides extensive docs on tools that you can use to develop an app using Solidity for Smart Contracts, Hardhat (which provides an ethereum development environment), React for frontend, Ethers.js to interact with the deployed Smart Contract and Ant for the user interface.

Here’s how MoonSwap works:

  • Create Swap: 1st party creates a swap by adding the number of tokens they want to swap and their token address. 1st party also needs to enter the address of the 2nd party they’re sending to. 1st party can predefine the number of tokens they should get in return from the 2nd party. Sharing the swap: After successfully creating their swap, a shareable URL will be generated. The 1st party shares the URL with the 2nd party, and thus the 2nd party can choose to commit to the swap from that link.
  • Commit Swap: The URL will open a page with the token details already pre-filled. The 2nd party can simply click on the Commit Swap button and the swap will commence. How easy is that?
  • If a user chooses to swap LINK tokens then they will see a USD value of the amount of LINK they choose to swap using data from a contract that is consuming LINK/USD price data.

Built With

Share this project:

Updates