Kriya Tech: Build your own pumpfun on Sui
Open Source infra for no-code coin creation, airdrop and fair launch
Kriya’s sui-sniffer is currently the go-to place for degens to double-check legitimacy of newly launched tokens on Sui. This was not just a retail tool, it ended up being a dev onboarding tool since many memecoin devs from solidity and rust background learnt about Sui’s token safety standards and the right way to deploy a truly decentralised, limited and immutable token.
Since then we’ve added more functionality and expanded sniffer into a dedicated ‘Degen Corner’. Which includes:
An intuitive UI to easily deploy a coin on Sui
Ability to make the coin SAFU as per Sui objects standards in a few clicks
Deploy Liquidity Pool on Kriya or Turbos and burn LP tokens
An ‘Airdrop’ section to send memecoins to top Sui communities or even via a custom csv
Token creators can find more documentation / how-to guides on Kriya’s degen corner here: https://docs.kriya.finance/kriya-degen-corner
We were beyond humbled by the adoption from the community and positive feedback from move OGs.
https://twitter.com/b1ackd0g/status/1747797115928244649
While airdrops are a good way to distribute the token and the dev burning LP is a sign of trust. This experience is still fragmented for the creator as well as the degen investor / early gem hunter. We believe this is what pump.fun on Solana did right, aggregating all this devtooling into an addictive consumer application with key unlocks being
Simple coin + pool deployment UX
Solved discovery of ultra-low cap memecoins (Those that have started trending socially but are hard to find on dexscreener / birdeye due very low mcap)
The virtual liquidity mechanism to remove dev custodianship of funds in the LP burn flow + ensuring enough liquidity is bootstrapped before withdrawal is enabled
Degen Corner / suicoins.com already solve for (a), (b) is more of a web2 aggregation / indexing problem and (c) is the interesting part.
To further contribute to a culture of ‘Responsible Degening’ on Sui, Kriya’s tech team is happy to release an open-source implementation of a virtual liquidity based bonding curve contract on move
https://github.com/efficacy-finance/sniff-fun-package
Smart Contract Deep Dive
Flow:
Create the coin
List the coin on the bonding curve with virtual liquidity
Buy / Sell functions post listing
Migrating the collected SUI liquidity and reserved virtual liquidity into a DEX LP Pool
Functions and Structs
list - takes coinType as input and creates a pool with x SUI in virtual liquidity with 20% of token supply reserved for seeding on DEX
buy / sell - standard functions to swap on an xy = k curve with fee share configurable platform fee. Trading stops automatically when 80% of token supply is sold
make_safu - a public function to release DEX specific tickets that the caller can use to transfer the funds to that DEX’s LP pool (the function expects DEX pool object ID where the liquidity has to be migrated)
process (in kriya_adapter.move) - this function uses the ticket generated from make_safu() response to actually transfer the funds from the bonding curve pool to the DEX LP pool (the funds can’t be used for anything else or be withdrawn individually in a transaction by any admin wallet)
The platform should ideally run periodic crons to call functions 3,4 in a PTB to migrate eligible pools. Anyone can run the crons or call these functions, the function caller anyway never gets custody of the funds in their wallet via this 2 steps approach.
This method of issuing transaction specific tickets that enable trustless cross contract communication via PTB is called the hot-potato approach
Read more about it sui docs here: https://docs.sui.io/concepts/sui-move-concepts/patterns/hot-potato
Events
Bonding Curve Listing Event
Swap Event
Events tracking LP migration post bonding curve cutoff hit
Build on top!
pumpfun on Solana has lately been a part of regular ct lore, both for good and bad reasons. While a similar frontend can be built on Sui on top of this contract and will certainly have better performance, there’s no strong reason for users of the original platform to migrate.
There’s a lot of ideas floating around on how pumpfun could become an even better consumer app:
Voice Lobbies / Live streams on top of chat forums
Trading tournaments + influencer copy trade vaults
Gamifying DEX Listing Eligibility (raffle / community voting / time to fill up pool)
Experimenting with exponential bonding curves with time based sell tax (currently pumpfun and its forks just us xy k)
Multiplier for swapping into other memecoins vs SUI
Native platform token + voting on emissions
https://x.com/beo_woolf/status/1788662624353157225
https://x.com/goldcvp/status/1788617220458938670
While we’d love to build it all ourselves, our devs have a lot on their plate right now. Especially when building leverage / lending products, we need to stay extra focused.
We’d love for developers in the Sui ecosystem and beyond to play around with this code and use this open source repo as a base web3 backend to build a high quality, potentially viral consumer social trading app.
This is also one of Kriya’s Sui Overflow Hackathon Bounty Tracks (https://docs.kriya.finance/sui-overflow-hackathon Problem Statement 2) In case you’re an independent developer or a team interested in building something like this, do reach out to us on discord / dm defi_yogi on twitter
We’ll make sure to help you with integration, functional QA, user feedback of your frontend and hopefully crafting a hackathon winning demo DApp
How can we create a memecoin on behalf of the user? any examples?