Log in
Enquire now
ClayStack

ClayStack

ClayStack is a multichain liquid staking platform that allows users to stake their assets, mint staking derivatives, and participate in DeFi.

OverviewStructured DataIssuesContributors

All edits by  Vavilen Tatarskiy 

Edits on 28 Aug, 2022
Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+157 characters)
Article

csMATIC on Polygon

ClayStack Staked MATIC (PoS) is the csMATIC mapped token. Anytime you interact with csMATIC tokens, verify that the addresses correspond.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+374/-96 characters)
Article

ClayMatic interacts directly with Polygon's staking contracts, and not with any validating node.

ClayMatic interacts directly with Polygon's staking contracts, and not with any validating node. This delegated staking structure ensures maximum safety for the users as staked funds are protected by Polygon's contracts and are at no point in custody of the validating node.

To understand more about the contract inner workings, see StakeManager.sol and ValidatorShare.sol.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+124 characters)
Article

Polygon's Staking Contracts

ClayMatic interacts directly with Polygon's staking contracts, and not with any validating node.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+270 characters)
Article

Rewards APY can range depending on the percentage of MATIC staked across the network.

Unstaking Conditions

ClayStack Standard Unstake feature will use Polygon's checkpoint system to unstake, which currently requires the user to wait for a period of 80 checkpoints before the locked MATIC can be released. Currently this translates to a period of 3-5 days.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+163 characters)
Article

Polygon has allocated 12% of its total supply of 10 billion tokens to fund the staking rewards. These rewards are to be distributed over 5 years across participating validating nodes and delegators. Through ClayStack, the user delegates MATIC across several trusted validators.

Rewards APY can range depending on the percentage of MATIC staked across the network.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+215 characters)
Article

Staking Rewards

Polygon has allocated 12% of its total supply of 10 billion tokens to fund the staking rewards. These rewards are to be distributed over 5 years across participating validating nodes and delegators.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+215 characters)
Article

ClayMatic is the staking protocol implementation for Polygon PoS. A user stakes their MATIC and receives csMATIC, which accrues staking rewards without the need of claiming or re-staking. Polygon's staking protocol lives on Ethereum, where ClayMatic pools MATIC from deposits. The ERC20 token is then staked across trusted validator nodes, and ClayMatic claims and re-stakes rewards on a regular basis.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+195 characters)
Article

Overview

ClayMatic is the staking protocol implementation for Polygon PoS. A user stakes their MATIC and receives csMATIC, which accrues staking rewards without the need of claiming or re-staking.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+114 characters)
Article

TimeLock

Implements Openzeppelin's TimelockController to introduce time delay on some given functions in ClayMain.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+93 characters)
Article

CS_SERVICE_ROLE: Role to execute daily operations on ClayMain without the need of TimeLock

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+91 characters)
Article

TIMELOCK_ROLE: Role to execute ClayMain operations functions through a TimeLock contract

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+82 characters)
Article

TIMELOCK_UPGRADES_ROLE: Role to upgrade ClayMain through a TimeLock contract

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+160 characters)
Article

RoleManager

The protocol implements Openzeppelin's AccessControl contract to determine roles and limit access on methods to ClayMain. The roles implemented are:

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+105 characters)
Article

Nodes are pre-approved by ClayStack as trusted validators. Their selection is based on their performance record validating transactions, their fees and their SLA.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+65 characters)
Article

Nodes

...

Nodes are pre-approved by ClayStack as trusted validators.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+148 characters)
Article

As part of the staking process, the contract will reserve a portion of the funds to act as a liquidity pool, thus enabling the feature "Flash Exit". During a Flash Exit transaction, no unstaking from the validating nodes takes place, instead funds come directly from the contract's token balance.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+176 characters)
Article

Flash Exit & Liquidity Pool

As part of the staking process, the contract will reserve a portion of the funds to act as a liquidity pool, thus enabling the feature "Flash Exit".

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+205 characters)
Article

Rewards

As the staking rewards are distributed to the validators, ClayMain will account for such rewards, while a percentage will be transferred to the ClayStack treasury in accordance to the current fees.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+538 characters)
Article

Exchange Rate

The exchange rate of the underlying token to csToken (e.g. MATIC to csMATIC) is calculated as the total amount of tokens (deposits + rewards) divided by the supply of csTokens. The value of the csToken will increase over time with respect to the base token.

On some chains, where slashing is enabled, a particular validator may be penalized due to missing validation checkpoints or misbehaviour, and thus a portion of the staked funds on that given validator is slashed. This will in turn cause the exchange rate to decrease.

Vavilen Tatarskiy profile picture
Vavilen Tatarskiy
edited on 28 Aug, 2022
Edits made to:
Article (+500 characters)
Article

Architecture

ClayMain

ClayMain upgradable contract (aka ClayMatic for MATIC or ClayGraph for GRT) is the core contract that acts as a liquid staking pool aggregator. It is responsible for token deposits, minting and burning liquid staking tokens (csTokens), staking/unstaking funds to the validating nodes and applying fees.

On a regular basis an off-chain service calls the public method autobalance triggering the staking of funds into the validating nodes. Any contract or user can call this method.

Find more companies like ClayStack

Use the Golden Query Tool to find similar companies in the same industry, location, or by any other field in the Knowledge Graph.
Open Query Tool
Access by API
Golden Query Tool
Golden logo

Company

  • Home
  • Press & Media
  • Blog
  • Careers
  • WE'RE HIRING

Products

  • Knowledge Graph
  • Query Tool
  • Data Requests
  • Knowledge Storage
  • API
  • Pricing
  • Enterprise
  • ChatGPT Plugin

Legal

  • Terms of Service
  • Enterprise Terms of Service
  • Privacy Policy

Help

  • Help center
  • API Documentation
  • Contact Us
By using this site, you agree to our Terms of Service.