How Cratos used Chainlink Keepers to automate the token vesting process

Saving 100+ hours of DevOps time and removing the need for centralized scripts

What is Cratos?

How Cratos uses Chainlink Keepers

What is the Cratos token vesting process?

How Cratos integrated Chainlink Keepers

The Keeper-compatible contract, as attached, has a checkUpKeep function and a performUpkeep function. The checkUpKeep function is for calculating time — 30 days in the Cratos case. When the checkUpKeep function checks if 30 days have passed, the performUpKeep function is executed so that a certain amount of tokens is unlocked and distributed to a designated wallet address.

The token vesting contract is here: https://github.com/CratosTokenOfficial/ChainLink_Automation/blob/main/vesting_Contract.sol

Token vesting contract for CRTS

Chainlink Keepers continually check the Upkeep conditions every block. When the predefined conditions are met, they trigger the function to execute.

Creating our Keepers-compatible contract

checkUpkeep function for Chainlink Integration with CRTS

performUpkeep Function: Contains logic that is executed on-chain when the checkUpkeep function returns true.

performUpkeep function for Chainlink Integration with CRTS

Advice for developers integrating Keepers

Results

Why Cratos chose Chainlink Keepers

About Cratos

Learn more about Cratos by visiting the links below.

Related links:

--

--

CRATOS is an ERC-20 utility token designed to facilitate citizen participation in the CRATOS app, a real-time live vote platform.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cratostoken

CRATOS is an ERC-20 utility token designed to facilitate citizen participation in the CRATOS app, a real-time live vote platform.