Skip to content
Aptosphere

Aptosphere

Aptosphere is your go-to Telegram bot for all things Aptos. Instantly check wallet balances, get real-time price updates, view transactions, and swap tokens with our built-in DEX. All in one place.

Created on 12th August 2024

Aptosphere

Aptosphere

Aptosphere is your go-to Telegram bot for all things Aptos. Instantly check wallet balances, get real-time price updates, view transactions, and swap tokens with our built-in DEX. All in one place.

The problem Aptosphere solves

Aptosphere streamlines the Aptos blockchain and trading experience for users of all levels, from newbies to seasoned pros. It serves as a comprehensive hub with a simplified interface. Users can connect their wallet with one click and seamlessly swap their Aptos tokens for others like USDT, USDC, and WETH—all within the Telegram interface. This eliminates the need to navigate multiple websites, making trading simpler and faster. Whether you're new to crypto and need an easy entry point or an experienced trader looking for efficiency, Aptosphere has you covered. Swap rates are competitive, ensuring you get great value with every transaction.

Challenges I ran into

Integrating the DEX into Aptosphere was probably the toughest part of the project. It was a long, sometimes frustrating process, and I hit a few roadblocks along the way. First, I had to choose which wallet to support and finally settled on the Martian wallet. Then, when it came to building the DEX, I found the Liquidswap SDK, which was a lifesaver, but finding the right token addresses on the Aptos chain and making sure the pools existed was a real headache.

I decided to stick with some basic tokens like USDT, USDC, USDD, and WETH and started testing the code. I originally wanted to test everything on the devnet before moving to the mainnet, but there weren’t any token addresses or pools available on the devnet. My code kept throwing errors, so I had no choice but to test directly on the mainnet.

Initially, I thought it would be best to create a new account for each user who connected their wallet to Aptosphere. The idea was that the user would transfer tokens to this account, I’d perform the swap, and then send the tokens back. But I quickly realized that each new account needed some initial funding and setup before it could even handle swaps, which made the whole process way more complicated than it needed to be. So, I switched gears and decided to use a single, predefined account where all users would send their tokens for swapping.

Another snag I hit was with calculating how much of one token a user would get when swapping for another. My initial calculations didn’t factor in gas fees, which led to some inaccurate estimates. To fix this, I ran a bunch of test transactions, figured out the average gas used for each type of token, and then hardcoded that value into the calculations.

Finally, there was the issue with token decimals. Aptos tokens have 8 decimal places, but other tokens typically have 6. I had to create a function to handle this difference and make sure everything converted correctly during transactions.

Tracks Applied (1)

DeFi Track

Aptosphere is all about simplifying DeFi on Aptos. This Telegram bot lets you check your wallet, view transaction histor...Read More
Aptos

Aptos

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio