ShiftCTRL
  • Introduction
  • Introduction
    • Why ShiftCTRL
    • What is Austrian Economics
    • What is ShiftCTRL
    • Introducing Tabs
  • How it works
    • The core mechanism
    • Reserves
    • Managing vaults
    • Liquidation
    • CTRL+ALT+DEL
  • Guides
    • How to mint Tabs
    • How to withdraw reserves
  • Developer
    • Overview
    • Tab Protocol Smart Contract
      • Governance
      • Oracle
      • Token
      • Reserves
      • Vault
      • Keeper
      • Auction
    • Tab Oracle & Tab Keeper
  • Testnet
    • ShiftCTRL Public Testnet Launch
    • Testnet Participation Guide
    • Feedback
  • Governance
    • Decentralised governance
    • Vote delegation
    • Governance process
  • Download whitepaper
Powered by GitBook
On this page
  • Onchain
  • Tab Protocol
  • Governance
  • Offchain
  • Tab Oracle
  • Tab Keeper
  1. Developer

Overview

The ShiftCTRL Tab Protocol comprises both Onchain and Offchain modules.

PreviousHow to withdraw reservesNextTab Protocol Smart Contract

Last updated 2 months ago

Onchain

The Onchain module consists of a series of smart contracts deployed on the . These smart contracts govern the Tab Protocol and Governance.

Tab Protocol

The Tab Protocol is a comprehensive suite of smart contracts designed to manage reserves, Tabs, vault operations, oracles, and risk. Each component works in tandem to ensure the stability and reliability of the protocol.

Governance

Governance is facilitated through a set of OpenZeppelin Governance smart contracts. These contracts, along with a timelock controller, ensure that only approved proposals are executed.

Offchain

Offchain modules are integral to the Tab Protocol, focusing on oracle functions and risk monitoring.

Although these modules currently operate offchain due to the high costs associated with on-chain execution, this is a necessary design compromise for a self-funded project like ShiftCTRL.

We are fully committed to transitioning all components on-chain as soon as it becomes feasible.

Tab Oracle

The Tab Protocol's functionality relies on precise, real-time currency exchange rates, which are crucial for vault operations and risk monitoring.

The Tab Oracle module receives these live rates from whitelisted oracle feed providers, carefully vetted by the community through Onchain governance. By aggregating data from multiple sources at regular intervals, the exchange rates are derived using median values to ensure accuracy and reliability.

This median rate is then signed and retrieved whenever a user performs vault operations—such as opening new vaults or withdrawing Tab & reserves.

To maintain security, the Onchain smart contract verifies that the rate has been signed by an authorized signee, ensuring that only validated data is used in the protocol’s operations.

Note: The oracle has been bootstrapped using three currency exchange rate providers. As the protocol grows, we anticipate that more oracle feeds will come directly from the community, supported by a reward system that compensates these providers for their services.

Tab Keeper

The Tab Keeper module is essential to the stability of the Tab Protocol, continuously monitoring vaults to ensure their reserve ratios remain above the configured threshold. By regularly retrieving live exchange rates from the Tab Oracle, the module accurately assesses each vault’s reserve ratio.

If a vault’s reserve ratio falls below the set threshold (default 180%), a risk penalty is automatically applied to the vault. Should the ratio decline further and reach the liquidation threshold (default 120%), the Tab Keeper initiates vault liquidation. This process involves selling the reserves, starting at a higher price and gradually lowering it until sufficient reserves are sold to recover all outstanding Tabs from the liquidating vault, thereby protecting the integrity of the protocol.

Base chain