Tradegen
  • Introduction
  • Tradegen Platform
    • Use Cases
    • Supported Assets
    • Supported Projects
    • Pools
    • NFT Pools
    • Marketplace
  • Tutorial
    • Investing in a Pool
    • Withdrawing From a Pool
    • Creating a Pool
    • Managing a Pool
    • Investing in an NFT Pool
    • Withdrawing From an NFT Pool
    • Creating an NFT Pool
  • Token Info
    • Introduction
    • Allocation
  • SDK
    • Getting Started
    • Entities
      • Price
      • TokenAmount
      • Percent
      • Fraction
      • Token
      • Pool
    • Fetcher
    • Other Exports
  • Technical
    • Implementation
    • Synthetic Trading Bots
    • Mining System
    • Trading Strategies
  • Contracts
    • Asset Management V1
    • Data Feeds
      • Protocol
      • Candlestick Data Feeds
        • 1-Minute Timeframe
        • 5-Minute Timeframe
        • 1-Hour Timeframe
        • 1-Day Timeframe
    • Tradegen Token
    • Algo Trading
      • Core Contracts
      • Indicators
      • Comparators
      • Component IDs
      • Initial Instances and Keepers
    • Asset Management V2
      • Core Contracts
      • Price Calculators
      • Adapters
      • Asset Verifiers
      • Contract Verifiers
    • Virtual Trading Environments
    • Farming System
    • Synthetic Trading Bots
  • Resources
    • Roadmap
    • Equations
    • Protocol Settings
    • Changelog
      • Pre-launch
      • Phase 1
      • Phase 2
    • Links
    • Github
    • Analytics
    • Whitepaper
  • Deprecated
    • Pools
      • Investing in Pools
      • Farming
      • Creating a Pool
      • Managing a Pool
      • System Architecture
    • Strategies
      • Investing in Strategies
      • Claiming Yield
      • Running Backtests
      • Strategy Approval
        • Voting for a Strategy
        • Submitting a Strategy
      • Trading LP Tokens
      • Building a Strategy
      • System Architecture
    • Components
      • Components Marketplace
      • Building Custom Components
      • Submitting Custom Components
Powered by GitBook
On this page
  • Overview
  • Running a Node
  • Mining Rewards
  • System Architecture

Was this helpful?

  1. Technical

Mining System

PreviousSynthetic Trading BotsNextTrading Strategies

Last updated 3 years ago

Was this helpful?

Overview

A decentralized keeper network is needed to run synthetic trading bots, since the smart contracts can’t be called automatically. To create this keeper network, Tradegen allows users to set up nodes that updates a trading bot’s state with the latest oracle price once per interval (based on the strategy’s timeframe).

Running a Node

Users can operate a node by minting an NFT that represents their status as a miner. A fixed amount of TGEN is needed to mint the NFT, which gets locked in the NFT until the user no longer wishes to operate a node. Part of the locked TGEN is returned to the protocol if the miner misses an interval, creating a disincentive for poor performance. If the locked TGEN falls below a certain threshold, the miner will no longer be able to mine.

Trading bot owners can choose a miner to maintain their trading bots. Each miner has a rating that measures how reliable they are. A miner’s rating changes over time, depending on how often they update subscribed trading bots within the window for each interval. Missing an update will lower a miner’s rating, in addition to slashing their stake. Trading bot owners will naturally choose miners with a higher rating, so miners are encouraged to perform well so trading bot owners are more likely to select them.

Mining Rewards

Mining rewards are released using a halvening schedule, with each cycle lasting 6 months. The Token Allocator receives a fixed amount of TGEN during the token generation event, so no new TGEN will be minted for mining rewards. Rewards are sent to a pool every 5 minutes, based on the release schedule. Miners can claim their share of rewards from the pool based on their weight. A miner’s weight is calculated by the weight of each strategy that the miner manages. The weight of a strategy is determined by the strategy’s assets under management and the number of investors in the strategy.

System Architecture