Core Smart Contracts

These are the core contracts that make up the protocol along with their uses and functions.

The Vault Contract

The Vault contract sits at the heart of the Kinstu Liquid Staking process. This contract is the user-facing entry point to the Kintsu Protocol, and serves a number of functions:

  1. User entry point: The Vault is the user-facing interface to the protocol. Users who want to participate in staking yield can deposit Gas Tokens to the Vault contract and receive sTokens (Kintsu's Liquid Staking Tokens) in return. Users can also request to redeem their sTokens for staked Gas Tokens along with their pro-rata share of the yield accrued by the protocol.

  2. Orchestrates staking delegation & redemption: The Vault delegates staking tokens to, and interfaces with, Nomination Pools, according to the Target Weights stored in the Registry contract. This is done using Kintsu's Constant Retargeting Algorithm.

  3. Calculates Protocol Fees: The Vault calculates and stores Virtual Shares used to facilitate protocol Management Fees. For more information, see the docs on Governance & Management Fees.

Vault Functions

The Vault contract contains the Staking Functions and Unstaking Functions.

Vault Contract Variables

The Vault keeps track of a number of metrics. These include:

  1. Total Pooled: The total of all Gas Tokens staked via the protocol.

  2. Total Shares: Denotes the total outstanding supply of sTokens created by the Vault

  3. Virtual Shares: Denotes the Virtual Shares allocated for Management Fee.

  4. Fee Percentage: Denotes the protocol's annualized Management Fee.

Note: the Redemption Ratio is not stored as a variable, however theVault contract contains methods to calculate it in both directions (from sTokens to Gas Tokens, and vice versa).

The Registry Contract

The Registry smart contract maintains a list of Nomination Pools that are actively participating in the Kintsu protocol, along with a set of Target Weights for allocation of staked Gas Tokens to those Validators.

Registry Contract Variables

Target Weights

These weights represent the target percentage of the total amount of staked Gas Tokens allocated to each Nomination Pool. These target weights are meant to uphold decentralization of the protocol, and are set by the Governance Council in a decentralized way.

Last updated

Logo