Overview:
Hello Algem users!
Welcome to our monthly development report, where we share the latest updates from our development team.
TLDR:
The key result for this month is submitting the updated version of the Liquid Farming Vault for audit, incorporating all the refinements and improvements we’ve gathered during the first months of operating this product.
Danny:
Week of 21.04
Danny focused on integrating older test suites with the new vault contracts. While doing so, he encountered stack-too-deep issues, prompting optimization work. The optimization led to slight changes in initialization functions and contract handling for testing. Time was also spent ensuring consistent behavior across all supported dApps. Additionally, Danny began refactoring large parts of the rebalancing logic into smaller, reusable pieces for better maintainability.
Week of 28.04
This week was dedicated to ERC-721-related improvements. Danny re-pinned the Algemantis metadata to IPFS to fully resolve previous metadata loading issues. Additionally, since the ERC-721 contract lacked a built-in method to retrieve all token IDs owned by a user, Danny developed a custom TheGraph indexer with transfer processing to enable this functionality. A sample NFT contract was also created for testing the new setup.
Week of 05.05
Danny deployed the new version of the self-rebalancing vault to the testnet. He encountered verification challenges—while the –via-ir compiler option mitigated stack-too-deep issues, it also caused verification problems. Using a custom ABI with Blockscout proved effective. The rest of the week was spent testing various parts of the logic and preparing the vault for testing under different liquidity scenarios.
Week of 12.05
Danny continued testing the self-rebalancing vault, running simulations with various price movement scenarios using a custom Sonex testnet pool. Each scenario was tested against a set of vault parameters, with special focus on ensuring accurate reward calculations and proper position management.
Week of 19.05
Danny refactored and optimized the LF code, fully removing the need for the –via-ir compiler option and resolving verification issues. The updates were applied across all supported dApps. In preparation for audit readiness, Danny also began adapting the vault to comply with the ERC-4626 standard. While this is straightforward for new vaults, upgrading existing ones will require additional care.
Week of 26.05
Danny identified an issue in the LF point system database, which also impacted LS point updates. He implemented a temporary fix to reduce database size without losing existing data, and a more permanent solution is in progress. Additionally, he spent time supporting the audit process, providing detailed clarifications on complex aspects of the new logic.
Week of 02.06
Danny continued supporting the auditors and worked on side tasks. He conducted additional research on ERC-4626 compliance for both new and existing vaults. TheGraph indexers were deployed for Astar Degens and LFBooster NFTs. Both indexers were also integrated into the LFMaster contract, enabling them to contribute additional ALGM APR when locked.
Conclusion:
Over the past seven weeks, Danny made major strides in optimizing and testing the new self-rebalancing vault, enhancing metadata management, and supporting the ongoing audit. He improved code efficiency and verification, tackled critical database and point system issues, expanded ERC-4626 compliance and NFT tracking capabilities. These efforts will significantly improve the robustness, flexibility, and transparency of Algem’s Liquid Farming ecosystem.
About Algem
Algem is a decentralized application built on Astar Network and Soneium offering two main features: Liquid Farming and Liquid Staking. As the names suggest, these two options let ASTR and ETH holders keep their assets liquid while putting them to work. Liquid Farm or Liquid Stake with Algem’s Cross Chain platforms from Soneium or Astar Network and earn multiple rewards in the process. With Liquid Farming you’ll get a liquid lfETH fully redeemable token, in exchange for your ETH deposit to utilise this across the Soneium ecosystem all whilst earn farming fees and accruing Algem’s Native token ALGM in the process. In Liquid Staking, you’ll earn rewards that are automatically compounded with the Reward bearing xnASTR token for APR Yield in a simplistic way offering you peace of mind.
How we had been making Algemantis Nautilus Pass NFT
Everything You Need To Know About Liquid Staking On Astar Network
Partnership with Sirius Finance
Introduction in Algem