
andrei
89 posts

andrei
@andreisui
built dev tooling on @SuiNetwork starting on @Solana


Day 8-9 of building an AMM. (repos in the next post) I added the protocol fee + the swap fees to LPs yesterday. It's the same as Uniswap v2, which is 0.25% (goes to LP) + 0.05% (goes to protocol) per swap. It was actually not that easy, as you want to spend the least amount of gas (CUs) possible, and you have to compound the fees into the pool. But I figured it out and in the end, it hopefully works. I don't transfer the fee out of the pool on every swap for the protocol, fees just go to the liquidity pool's LP token associated token account on deposits/withdraws, which I'll be able to withdraw later. (instruction still needs to be implemented) I still haven't written a test in Mollusk, and instead I started working on the frontend, for reason I won't tell you now... but just let me tell you that there may be good thing coming out of this whole AMM project besides just the AMM. So we'll put the tests on hold, for now. About the frontend... well yeah. This is the part I hate the most. I don't like frontend development. I'm not really good at it, and I can just get by fine, especially with Claude. If vibecoding was invented for something, it was frontend. God bless Claude for being a React beast. All I really did with the frontend today was initilize it from the solana template, and make the basic interface without hooking it up to the program. So everything you see is just mock data, I have attached a small little video on how it looks now. The recorder is laggy for some reason, so bear with me, but the actual site is fine, for the most part. (and also the video quality is really shitty on X, idk why) Just FYI, I'm gonna be taking a break from building this AMM for a couple days, and there will be less updates for a bit - I have exams soon for university and I have to study, and I also have to work on some other stuff. Maybe I'll stick to these updates to once a week? We'll see, I like doing it a lot so I might end up working anyways lmfaooooo. Your patience & attention is always appreciated, and thank you for following along!










FULL GUIDE TO GET STARTED WITH THE FIRST FULLY ON-CHAIN PLAY TO EARN Or how I'm farming $40/d on @SuiNetwork with @DungeonMove in alpha version to anticipate for the complete game to be released. Let's dive in 👇 First, if you don't know why this game is special, go read my latest post in highlights. This is will give you a quick introduction, you can also go through their docs which are technical but easy to understand. What to expect As explained in my previous post, the game is still very light, players only have the possibility to trade characters (which are called Residents) and farm the in-game token $DGG. But it gives us the opportunity to get ready for the next releases! So what is planned next? In the docs we can already see multiple features that are yet to be published. Equipments and Rebirth have no description so we can only speculate on it, even if the former one seems straightforward. Then there is PVP. We can imagine that $DGG will have a utility here, maybe to enter battles. Skills will also be given to Residents for this game mode. Nothing more in the docs, but their twitter account leaked something earlier. With PVP, there should also be a PVE mode where $DGG will be used to enter sessions! How to prepare Since the 30k Residents and the token are live on Sui mainnet, we can already position ourselves and start farming and grow our crew. Many strategies are available, but it basically consists in arbitraging between the different prices and rewards for each rarity. The goal is to farm a maximum $DGG for the lowest entry price. With current prices it is possible to break even in 1-2 months, which means 600-1200% APR. Residents Residents have different stats. The most important are the level, rarity and rating. - rating: rewards_per_hour * 100 (divide by 100 and multiply per 24 to get rewards per day) - rarity: defines base rating and rating growth rate - level: 1-30, increases rating by a % according to the rarity (see below) Strategies Now that you get the idea, we can think of some strategies. Let's start with the cheapest one. Sweeping the floor to buy the common (N) residents at level 1 would provide you with a rating of ~1200 * nr or 12 DGG/hour/resident. If you sweep 30 of them for 57 SUI (47usd), you'd farm 360 dgg/h or 8640 dgg/d which is equal to 1usd/day. In this case you break even in 1.5 month. Another option is to get the highest reward/cost ratio. Here are the average rating for the rarest Residents at level 30. - SR: 65,000 - SSR: 130,000 - UR: 440,000 Upgrading to level 30 costs 500k DGG (= 60usd). Knowing this we can calculate the cost to reward ratio (numbers are in usd). - SR: 15 (purchase) + 60 (upgrade) -> 1.8 (usd/d) - SSR: 123 (purchase) + 60 (upgrade) -> 3.6 (usd/d) - UR: 984 (purchase) + 60 (upgrade) -> 12.6 (usd/d) 1 UR at level 30 costs 1024usd total. To get the same rewards with SSRs (3.5) it would costs 640usd. And with SRs (7), it would be about 525. So at current prices and buying only the floor Residents, it is more interesting to buy SRs and level them up to 30 or buy 360 Ns at level 1 (to earn as much as a maxxed UR). Personally I took a bit of all strategies to get best entry price but prices are varying a lot so I would recommend DCA'ing into the categories of your choice. Devs are shipping fast so I'm kinda hoping we can enjoy the game for a little while 🤞 Disclaimer: even though I'm not paid to shill the game (unfortunately), I have a bag so I'm biased. I like these kind of games more than gambling, that's why I'm invested. Also, note that the sustainability of the in-game token is not guaranteed and will highly depend on the next iterations.



We want to see your best Gmove! Welcome to the #gmovechallenge








