Introducing Croncat: A Comprehensive Overview

4NTS Guild
7 min readOct 19, 2021

Forward

We owe the utmost respect to Paul Vixie for implementing the version of crontab that croncat is based on, without his early pioneering we would not have such a simple solution for common system tasks. [Source: https://en.wikipedia.org/wiki/Cron#Modern_versions]

What is Croncat?

Croncat provides a general purpose, fully autonomous network that enables scheduled function calls for blockchain contract execution. It allows any application to schedule logic to get executed in the future, once or many times, triggered by an approved “agent,” in an economically stable format. Croncat is launching on NEAR Protocol and will initially schedule function calls in $NEAR Token. Future integrations with other NEP-141 tokens are planned.

How Croncat Works In A Nutshell

Croncat is a looping runtime that maintains a registry of tasks & agents. In the Croncat system, there are two fundamental ‘Stakeholders’:

  1. Applications: Blockchain contracts or dApps that schedule future tasks.
  2. Agents: Users that execute cron tasks and receive rewards (https://docs.cron.cat/docs/agent-cli/ )
https://docs.cron.cat/docs/agent-cli/

Tasks that are scheduled by applications or contracts, get put into future buckets which remain dormant until a bucket is active. A bucket becomes active when the block height has been reached or surpassed. Agents communicate with the cron contracts, watching for available tasks & signing transactions that are ready to execute. Agents earn a small reward every time they successfully execute a task.

What Is The Core Value Proposition Of Croncat?

Croncat aims to bring decentralized automation to every decentralized application or contract. Without Croncat, applications must utilize user-invoked transactions at the time of execution or run a trusted server that signs transactions on behalf of the users in a centralized manner. Croncat utilizes a network of users to execute transactions at the specific time needed in a sandboxed proxy setup. This opens up a layer of extra capabilities and freedom to application developers that previously relied on user interactions to trigger core functionality.

Use Cases

Croncat is an extremely flexible service that can be applied to a vast number of existing and future decentralized applications. In essence, any dApp that requires some form of decentralized automation can benefit from Croncat. A small snapshot of possible Croncat use-cases is outlined below:

Croncat Economics: A Simple Snapshot

The underlying ethos of the Croncat crypto-economic design is to create a utility service that enables an autonomous business built around (1) micropayments for runtime and (2) earned interest as a basis for operational costs.

The economics of Croncat are aimed at achieving the above ethos by self-maintaining collateral movements (i.e. the Cron DAO will manage locked $NEAR scheduled on a contract), and by DAO approved settings (i.e. DAO vote on how the interest from this $NEAR will be utilized to enhance and improve Croncat). Importantly, Croncat is not focussed on becoming extremely profitable, but rather a stable building block for decentralized applications to utilize for core runtime logic. A full overview of the Croncat economics will be published in a separate document.

In general, Cron economics follows three core models:

1. Application Model

  • Applications will deposit some amount of collateral at task creation time.
  • Application will pay a small fee on top of the regular transaction gas fee.

2. Agent Model

  • Agents will accrue rewards for running tasks, the balance being maintained and held within the cron core contract until the agent withdraws their earned rewards.
  • Agents will maintain enough balance to pay for transaction execution, making reward withdrawals when it is most efficient for their needs.

3. Cron Core Model Operated by Cron DAO

  • Cron will maintain an escrow-style contract that acts as a treasury for deposited task balances.
  • Treasury balances will be broken up into buckets of immediate use, interest earning collateral and long-term DAO holdings.
  • Cron will maintain an on-going treasury task for rebalancing each buckets holdings based on upcoming task execution needs.

Long Term Vision & Future Development Plans

Long term viability

Cron aims to achieve self-sustainability by a balance of both agents running tasks and task creators utilizing Cron with an increasing number of dApps and contracts. By design, cron allows task creators the freedom to utilize cron with a minimal additional cost. This however, also provides a problem for the agents, as there must be enough tasks to warrant running the cron agent scripts. This problem is addressed by establishing phases of growth so the agent / task ratio remains in a semi lucrative baseline. Such tiers of growth — and the timing of opening up new slots for future agents — will be managed by the Cron DAO. A brief overview of the main three phases is explained below:

Phase 1: Starting Up and Incentives.

In the very first phase, Croncat will incentivize new task creators, by allowing them to set up tasks with free fees or cron-matched budgets. The task threshold goal will be to achieve a minimum of 100 tasks per agent per day. This allows the cron service to maintain a steady availability of new agent seats as well as non-competing task execution. Task creators will receive a specific permission level within the cron DAO, to align the task execution costs with the needs of the community.

Phase 2: Agents and DAOs.

The second phase incentivizes the onboarding of Cron task agents. As mentioned above, agents will be allowed to onboard as the amount of tasks increases. Agents will be responsible for holding enough NEAR to pay for the execution of tasks, and withdrawing their rewards to recoup the costs. Early agents will be incentivized by receiving rare NFTs and swag, in a first come first serve fashion. Agents will also receive a specific permission level within the Cron DAO to align the agents’ needs/wants with the community as a whole. Notably, agents should not expect to gain large sums for task execution, but rather a small profit on leaving a raspberry pi running for a year.

Phase 3: Community and Commanders

The third phase will incentivize community growth via the Cron dao. Cron believes in a diversified decentralized runtime, which will be maintained using only DAO based actions. The DAO governs the settings of Cron, maintains the development and most importantly provides community incentives for growth. Growth can happen by community members owning task onboarding, agent onboarding, developer tutorials & examples, publishing social marketing materials and more. The DAO will not issue a token, but rather grant participants higher levels of access in the governance process. This mitigates the issues with collateral creating friction early on, and gives believers in the project the power to make it more sustainable.

Staking Profits

Cron intentionally does not incur any task fees, as a way to make task execution cost cheaper. This means that the cron DAO and ongoing development needs to be funded by philanthropy or volunteers unless there is a different business model. Each task requires some amount of deposited collateral, which will sit unused until the task execution time slot.

Cron will utilize the bulk of deposited funds for earning staked interest. Cron will maintain staked and available collateral by utilizing a cron task that calculates the forward looking needs of task executions and re-allocating or removing staked balance. The interest earned by staked balances, will be moved into a DAO controlled escrow / treasury which will be used for furthering the cron service. Staking is currently not implemented, and will require the Cron DAO to make the necessary budget to develop this feature.

Future Payments & Token Integrations

Today, Cron only accepts the native $NEAR for task creation and agent rewards. Cron believes that the growing DeFi and token space will continue to evolve and maintain coveted tokens that are in themselves of value to agents and Cron alike. By enabling tasks to be created by any token that has native or high liquidity profile currency backing, tasks have the flexibility to be maintained by an applications native token. The token exchange rate must be provided by a DAO whitelisted DEX (i.e. Ref Finance).

Conclusion

Croncat represents a new level of innovation for crypto-projects within the NEAR Ecosystem. As a simple and reliable model for automating or scheduling function calls, any application or protocol building on NEAR or Aurora now has the opportunity to streamline value and optimize their products and services.

To jumpstart and fastrack the integration of Croncat across the Crypto-verse, the Cron Commanders initiative has launched! If you are a growth hacker, crypto enthusiast or Cron enthusiast interested in communicating, marketing, and growing the Cron community be sure to apply in the form here!

--

--