Warp Speed Ahead: Introducing Next-Level Decentralized Automation, Powered by Warp v2

Warp Protocol
Warp Protocol
Published in
9 min readFeb 21, 2024

We’re excited to unveil Warp v2, a major upgrade that extends the capabilities of Warp Protocol — the decentralized automation layer of Cosmos.

This upgrade brings substantial changes that enhance the developer experience, improve efficiency, and expand the capabilities of Warp, including an overhauled account management system, a revamped fee mechanism, and a new primitive for job executions.

Using Warp v2, developers on Terra, Neutron, and Injective (with more chains expected in the future) can create novel product experiences that attract new users and capital through cost-efficient, on-chain automation — no smart contract changes necessary.

Developers interested in trying Warp can create a test job on the Warp app and get in touch with the Warp team to discuss integration by filling out the contact form. Existing Warp users are encouraged to migrate their jobs to Warp v2 by following the steps in the Migration section below.

Warp v2: Limitless On-Chain Automation

Warp empowers developers to build intricate product features and experiences without modifying a single smart contract. With Warp, you can schedule future transactions (known as jobs) triggered by any set of on-chain circumstances (called conditions). Anything that can be verified on-chain can be used as a condition. Once a job is created, it’s added as a pre-signed message to the Warp job queue, which is monitored by bots called keepers.

When creating a Warp job, a small fee is charged (more information below). Once the conditions for a job are met, anyone running a Warp keeper can execute the job and receive the rewards offered by the job creator for successful execution.

Instead of modifying smart contracts to enable new automations, developers can attract new users and capital by integrating Warp functionality into their front end, allowing users to set their desired conditions and create Warp jobs.

The main new features of Warp v2 include:

  1. Account Abstraction: Create jobs instantly without the need for a Warp user account.
  2. Multiple Funding Accounts: Easier balance management across different jobs.
  3. Updated Fee Structure: An easy-to-use and transparent fee system with LUNA value capture.
  4. New Primitive — Switch Statements: For more sophisticated automation scenarios via the Warp Software Development Kit (SDK).

All of these changes improve the developer experience and enable an expanded set of use cases to be developed with the help of Warp’s decentralized automation system. Read on to learn more about the new features and what to expect in the near future.

Streamlined Account Management

Account Abstraction: Replacing User Warp-Accounts with Job Accounts

Warp v2 replaces the traditional user Warp account with job accounts, eliminating an extra step in the job creation process.

Now, when a user creates a job on an app that has integrated Warp — like Astroport, where users can create and modify limit orders for various Cosmos assets — a job account is automatically generated for the user within the same transaction. In the case of recurring jobs, (i.e., a job that is rescheduled with the same parameters after being executed, such as automated reward distribution) the same job account is used throughout, which enables more sophisticated automation.

Job accounts function as dedicated sessions throughout the duration of a job. They utilize assets specifically allocated for the job’s execution task on the application or contracts, as specified in the job message.

Multiple Funding Accounts: Flexibility for Recurring Jobs

Recognizing the need for payment flexibility, Warp v2 enables users to create and manage multiple funding accounts, each serving as a dedicated source for distributing rewards to keepers and paying Warp job fees. This feature is particularly beneficial when managing balances for multiple jobs and creating recurring jobs, allowing for seamless fee management and top-ups without interrupting recurring job execution.

For developers testing Warp out on the web app, you can create a funding account or view your existing funding accounts by selecting the third icon on the left sidebar.

When clicking on one of the funding accounts, you are forwarded to the Balances section of the respective account, where you can view your balance and deposit or withdraw assets.

When creating a job, you have the option to select the funding account you want to use. Note that for recurring jobs, a funding account is needed or the transaction will revert and fail.

Developers using the Warp SDK can create funding accounts through the create_job.funding_account function and manage funding accounts as well as job accounts via the new Warp-Account-Tracker contract.

Introducing Warp-Account-Tracker: Enhanced Account Management

To enable developers to manage multiple user accounts without needing to interact with the Warp app, Warp v2 introduces a new contract — the Warp-Account-Tracker. This contract serves as a hub for overseeing job and funding accounts, holding information about accounts that are taken (currently used for a job) or free (not being used).

By consolidating the oversight of job and funding accounts and maintaining up-to-date information about the status of each account, the Warp-Account-Tracker reduces the risk of account conflicts and significantly contributes to the efficiency and organization of account management within the Warp ecosystem.

Improved Fee Structure

Warp v2 introduces a revamped fee mechanism, which:

  • Automatically estimates the job reward needed to motivate keepers to execute a user’s job, enhancing UX for both users and keepers by eliminating unexecuted jobs and increasing keeper profitability.
  • Accrues greater value to LUNA through token buybacks and fee burns.
  • Enables users to define how long they’d like to keep their job in the queue.
  • Disincentivizes malicious actors from spamming/clogging the Warp job queue.

When a user creates a Warp job, they pay a single fee, which is dynamically calculated and consists of four components:

  • Creation Fee: Calculated based on the Warp job queue size. The creation fee grows linearly as the queue size increases (to prevent spam).
  • Maintenance Fee: Determined by how long the user wants their job in the queue (in days).
  • Job Reward: The reward paid to the keeper that successfully executes the user’s job if the job’s conditions are met.
  • Burn Fee: LUNA equal to 25% of the job reward is burned for every Warp job created.

All of these are estimated and paid upfront at job creation, making the mechanism more transparent and straightforward. The total cost of a Warp job is the sum of the creation fee, maintenance fee, job reward, and burn fee.

The maintenance fee, based on the duration the user would like the job to be active in the queue (with a maximum of 180 days), replaces the previous eviction fee taken every 24 hours in Warp v1. If a job’s conditions haven’t been met by its expiry date, a keeper can evict the job from the queue, earning a portion of the job’s reward and the minimum maintenance fee (currently set at .25 LUNA).

The job reward is automatically estimated based on the transaction fee. Nonetheless, users retain the freedom to manually adjust the reward amount according to their preferences, ensuring a user-friendly yet customizable rewards system.

The total cost and fees are calculated as follows and displayed on the new job summary page as shown below:

  • Total cost = total fees + job reward
  • Total fees = creation fee + maintenance fee + burn fee

LUNA Value Capture

Unlike many decentralized applications that utilize their own tokens, Warp is part of a token-less, cross-chain suite of Terraform Labs (TFL) projects designed to accrue value to LUNA — the native governance and staking token of the Terra blockchain ecosystem. In line with the launch of Warp v2 and its new fee mechanism, all Warp creation, maintenance, and burn fees — regardless of the deployment chain — will be used to buy back and burn LUNA.

To keep things simple, the current fee configuration, which can be found here and changed as needed at any point, targets a minimum of 1 LUNA burned per Warp job created. If the job is created on a Warp deployment other than Terra, the total fees paid to create the job are used to buy LUNA before burning it.

1 Warp job created = at least 1 LUNA burned

As an example, if a user creates a Warp job on Neutron with a duration of 7 days and a current job queue size of 3,000, the amount of LUNA that would be bought and burned equals the minimum total job fees:

Minimum fees = min creation fee + min maintenance fee + min burn fee = 0.5 LUNA + 0.25 LUNA + 0.25 LUNA = 1 LUNA

This v2 fee mechanism design ensures that as the Warp economy grows, the LUNA community participates in the upside.

New Primitive — Switch Statements

Warp v2 introduces another powerful new feature for SDK users: arrays of job executions. This allows users to define several execution pairs within a single job, each associated with a specific condition. The first condition that evaluates to ‘True’ triggers its corresponding message, effectively acting as a switch statement.

This can be considered a new primitive for job executions, as it allows for multi-state transitions and opens up exciting possibilities for more complex automation scenarios, such as price-based trading strategies, stop-loss limits, and more.

Warp Job Migration Guide

As an existing Warp user, please make sure to migrate your jobs to Warp v2 before April 1st, 2024 by following the steps below:

  1. Go to v1.warp.money and click the Migrate button on the banner.

2. Click on the job you want to migrate and confirm the transaction in your wallet. Please note that each job has to be selected and confirmed separately.

3. For recurring jobs, please create and select a funding account to migrate your job.

4. To migrate your funds, click Migrate funds, review your account balance, and hit Migrate funds again. Confirm the transaction, and you’re done!

You can now view and manage all of your migrated jobs, as well as create new jobs using the new web app at app.warp.money.

Warp v1 will be maintained until April 1st, 2024. Please migrate all of your jobs before then. In case of any issues or questions, don’t hesitate to reach out to the team on Telegram or Discord.

In the coming days, we’ll be working with integration partners like Astroport to get users’ jobs and funds migrated. Keep an eye out for announcements on Warp’s X/Twitter account in case any user action is required. DAOs that have automated their reward distribution with Warp can use the SDK for migration by following this example or migrate their jobs via the UI as shown above. Please contact us on Telegram or Discord for questions and assistance on migration.

Upcoming Partnerships & Future Plans

Leading Cosmos projects are already leveraging Warp to deliver innovative features to their users, including Astroport’s limit orders, Eris Protocol’s auto-compounding yields, and automated rewards distribution from several DAOs on Enterprise DAO, with close to 10K jobs executed to date.

But this is just the beginning! Following the v2 launch, exciting integrations are coming soon with Astroport, Mito on Injective, Nibiru, PRYZM, and Quasar on Osmosis.

To celebrate the launch, we’ve invited the Quasar team to join us on an X/Twitter Space on Friday, February 23rd at 3 pm UTC to discuss the Warp use cases they’re looking to implement. Set your reminders to join here.

Warp v2 represents a significant advancement in decentralized automation technology. The replacement of user accounts with job accounts, the introduction of multiple funding accounts, a new fee mechanism, and arrays for job executions all contribute to a more user-friendly, efficient, and scalable automation platform.

We invite you to explore Warp v2 and experience the new capabilities it offers, providing developers with the tools they need to automate on-chain actions and enhance their applications with new features. To get started, contact the Warp team to discuss integration, visit the Warp app to create a test job, build using the SDK, or join the community on Telegram and Discord 🌀

--

--

Warp Protocol
Warp Protocol

Bringing limitless on-chain automation to the Terra ecosystem