Case Study

Case Study

How we used Gelato to build custom Superfluid automations

May 24, 2024

As the first episode in our "Block by Block" series on our Tech Stack, we explore how TokenOps was built in collaboration with our partners. Discover how integrating Gelato Functions with Superfluid enhances our platform, providing automated, flexible control over streams while ensuring security and user control.

Enhancing Token Stream Control with TokenOps and Gelato

At TokenOps, our mission is to simplify and enhance token operations for blockchain projects. We offer a robust platform that integrates a variety of vesting strategies and streaming protocols, allowing projects to customize their token distribution to fit their unique needs. Our platform supports everything from traditional time-based vesting to more dynamic solutions such as streaming protocols, including Sablier and Superfluid. These integrations facilitate a continuous, real-time transfer of assets, which can be adjusted to meet evolving project conditions. This broad range of tools ensures that whether a project needs straightforward vesting or complex, programmable streams, TokenOps can provide the right solution.

Despite these advancements, a common challenge persists: once token streams are activated, they traditionally lack the flexibility to be paused or adjusted. Recognizing the need for more adaptable token management, we turned to Gelato’s Functions service.

What is Gelato Functions?

Gelato Functions is the most trusted and feature-complete automation suite in Web3. It empowers developers to create serverless Web3 applications that automatically execute on-chain transactions based on both on-chain and off-chain triggers. Developers can easily configure smart contract automation based on factors such as time, events, or block intervals.

By integrating Gelato Functions, TokenOps now enables precise control over token streams, empowering users to start and stop distributions as necessary without manual intervention. Here’s a deeper look at why we integrated this and the pivotal decision points involved:

Choosing Between Centralized and Distributed Infrastructure

Initially, we faced a decision: to build our own infrastructure for triggering the starts and stops of token streams on specific dates. However, this approach had its drawbacks—it was not only complex to implement but also introduced a central point of failure, which could jeopardize the entire operation if compromised or if it malfunctioned.

Why We Chose Gelato

Opting for Gelato’s services offered us a robust alternative. Gelato provided a distributed infrastructure that we could rely on. This was crucial because it minimized the risks associated with centralized systems and aligned with our commitment to security and decentralization.

User Empowerment and Custody

An essential aspect of our integration with Gelato’s Function service was maintaining user control. By leveraging Gelato, we ensured that users retained custody over their token streams. This design means that even if TokenOps were to unexpectedly shut down, the streams set up through our platform would continue to operate without disruption, thanks to Gelato’s autonomous, distributed actions.

Sustained Operation Beyond Our Platform

The distributed nature of Gelato’s infrastructure means that the token streams are not tied to the continued operation of TokenOps. They are self-sustaining as long as the blockchain itself is operational. This provides our users with an additional layer of security and confidence in the durability of their token management setups.

Here’s how we integrated it:

  • Smart Contract Configuration: We started by identifying the smart contract addresses and functions relevant to our token streams. Gelato’s Function SDK made integration straightforward with our platform.

  • Defining Execution Tasks: Next, we integrated the creation of Gelato start and stop tasks that get executed according to the stream schedule. For example, a vesting schedule might start streaming tokens when a specific time condition is met and will stop when a later time condition is also met.

  • Choosing Payment Methods: Gelato’s flexible payment solutions allowed us to select the most cost-effective transaction fee options, optimizing costs for us and our end-users.

  • Automation Management: Using Gelato's user-friendly interface, we could manage our submitted schedules. This gives our users confidence that the streams will be executed when the conditions are met.

  • Monitoring and Alerts: Finally, Gelato’s alert service was activated to notify us when balances were running low, ensuring a smooth operation without manual monitoring.

The Impact of Superfluid Vesting Streams

The result of implementing Gelato’s Function was the creation of Superfluid automated vesting streams. These streams allow for the continuous and automated distribution of tokens according to predefined rules and conditions. This automation not only saves significant time and resources but also enhances the accuracy and reliability of token distributions.

This integration underscores our commitment to the Web3 ethos of decentralization and non-custodianship, ensuring that our users maintain complete control over their assets. This commitment enhances both security and trust without compromising on functionality, providing a solid foundation for a broader suite of tools designed to support complex token management needs.

Expanding Capabilities with TokenOps

TokenOps is your one-stop-shop for all token distribution and management needs. Tailored for founders and investors, our platform offers a suite of advanced tools designed to simplify the tracking, analysis, and management of token distributions. From vesting schedules to automated token streams, TokenOps provides essential resources to effectively manage every aspect of token operations. Our platform includes:

  • Insight Tools: Import and monitor any EVM-compatible vesting contract, providing detailed analytics on token distribution and comprehensive insights into stakeholder behaviour.

  • Coordinated Claiming Interface: Our specially designed interface simplifies the process for users to claim their vested tokens, ensuring a seamless experience and reducing administrative overhead.

  • Unique Alert System: Stay informed with timely notifications about crucial token events.

  • Robust API Integration: Enhance operational efficiency and transparency with seamless connections to other analytics tools and financial operations.

Explore the full capabilities of TokenOps and discover how our innovative solutions can streamline and improve your token management. Visit us at TokenOps.xyz to learn more about our tailored platform designed for the dynamic world of cryptocurrency.