sudoswap Profile picture
May 30 7 tweets 2 min read
As we gear up for public launch of the new sudoswap marketplace, we're open-sourcing the NFT AMM smart contract code that powers everything behind the scenes.

From a high-level overview, LPs create pools that hold NFTs or tokens, and traders can swap with those pools.
We use a modified minimal proxy pattern for low gas overhead. Deploying a new pool costs ~180k gas, excluding the gas for NFT transfers. Additionally, pre-existing pools can be reused for the same collection.
For pool pricing, we use a flexible bonding curve interface. Though we're launching with just a linear and exponential curve, the interface allows for a wide range of curves that can be stateful, including gradual dutch auction style curves and inventory-aware pricing.
Swaps are designed to be low gas even in the case where only 1 NFT is being transferred, with additional efficiency gains when buying/selling multiple NFTs at a time.
Contracts and tests on GitHub here, licensed under AGPL v3:

github.com/sudoswap/lssvm
Want to start messing around immediately? The current set of contracts have been verified on mainnet, and can be found here:

docs.sudoswap.xyz/contracts/
We're also opening a new Discord server for sudoAMM specific discussion. Hop in for the latest updates:

discord.gg/KWHFhVnfue

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with sudoswap

sudoswap Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @sudoswap

Oct 1, 2021
sudoswap v2 is now live!

We'll go over the various upgrades we've made.

But first, a shout-out to @fipryt and @0xhamachi for everyone's combined efforts. v2 was a team accomplishment!

Also: @fipryt is looking for a new dev role, and comes HIGHLY RECOMMENDED from us! Image
In v2, we now automatically read your wallet balance. You can now pick your NFTs and tokens to be added for the swap.

If that's too slow for you, we've still got the custom tab for other assets you don't see available. Image
Swaps that you make are now stored, so you can access both your swap history and swaps people have made for you. Image
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(