HamsterPocket is your personal magic piggy bank. You place one type of token inside, and over time, it transforms into another type, all by itself.
HamsterPocket is a project that acts like your personal magic piggy bank in the world of decentralized finance. By placing one type of token inside, you'll discover that over time it morphs into another. It's a seamless experience, backed by smart contracts, giving you a virtual robot assistant that works tirelessly, transparently, and with top-notch security.
Strategies to Choose From:
Auto-invest DCA: Automates token purchases based on pre-defined parameters (time or price-centric). Focus on your investment amount and its frequency.
Limit Order: Set a specific price to initiate a buy or sell order. You're in control of the price conditions to switch your source tokens with target tokens.
TWAP: Ensures trade averaging over time, minimizing market disruptions. Concentrate on the take-profit and stop-loss conditions for safeguarding funds and confirming profits.
Basket DCA: Simultaneous purchase of multiple tokens based on set parameters (time or price-related). Ideal for diversifying by investing in multiple tokens simultaneously within a single pocket.
We relied on the DEXes' liquidity pools available on-chain to run the automated strategies via the use of smart contracts. The main language used was Solidity. The protocol works with all versions of Uniswap's smart contracts.
Project Development:
We began by launching on the Scroll Sepolia testnet and Mantle mainnet, which played a crucial role in expanding our existing multichain infrastructure. This strategic choice allowed for a smooth transition from other EVM-based chains, making the deployment process highly efficient and trouble-free.
Technologies and Integration:
Our project is made up of several key components, all working together to create a comprehensive blockchain application:
Backend Server: This server serves as the bridge between the blockchain and our user interface, delivering real-time data and enabling user interactions with the blockchain.
Indexer: This component tirelessly collects and parses data from the blockchain, ensuring that our data is always up-to-date, accurate, and accessible.
Operator Server: Responsible for executing transactions at regular intervals, the operator server automates various actions within the blockchain, boosting efficiency and reliability.
Smart Contract: The core of our project, the smart contract, governs and enforces the rules and logic of our blockchain application, ensuring trust and security.
Application Interface: The user-facing side of our project, the application interface, provides a user-friendly and intuitive environment for users to engage with the blockchain.
Benefits of Partner Technologies:
Our project has greatly benefited from the use of Scroll Sepolia and Mantle technologies:
Seamless Transition: Starting on the Scroll Sepolia testnet and migrating to the Mantle mainnet was a smooth process due to the compatibility of these technologies with other EVM-based chains. This ensured a hassle-free transition without any deployment-related issues.
Efficiency: Scroll Sepolia and Mantle have provided an efficient, high-performance environment, resulting in faster transaction processing and an improved user experience.
Reliability: The robustness and reliability of these technologies have been essential in maintaining the integrity of our blockchain application and building trust among our users.
Notable Hacky Solution:
During our project's development, we faced challenges related to rate limiting on blockchain nodes. To address this, we implemented an innovative solution using the multicall3 smart contract. This smart contract allows us to bundle multiple queries into a single call, significantly reducing the number of calls made to the blockchain nodes. This has allowed us to successfully bypass rate-limiting guards on the nodes, ensuring a smooth and uninterrupted flow of data and transactions for our users. This approach has been instrumental in maintaining our project's performance and responsiveness.
In Conclusion:
Our project is a carefully crafted multichain application that relies on Scroll Sepolia and Mantle technologies. These technologies have facilitated an efficient and seamless deployment process while enhancing performance, reliability, and the overall user experience. Our inventive use of multicall3 has been a game-changer in addressing rate-limiting issues, ensuring a continuous and responsive service for our users.