Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • THORNode THORNode
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 159
    • Issues 159
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 37
    • Merge requests 37
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • THORChain
  • THORNodeTHORNode
  • Issues
  • #1204
Closed
Open
Created Dec 27, 2021 by THORChain@thorchain-adminOwner

ADD: Kick low-value pools from THORChain

Overview

Security is a scarce resource on THORChain. Productive liquidity (makes swap revenue) pays for security. Liquidity that is not productive is a drag on the system.

Find and kick low-productive pools from THORChain.

Implementation

Every pool churn, kick the lowest productive pool from THORChain below a threshold.

The productivity can be measured by Liquidity Unit Value, which is the square root of the squared value of the assets in the pools, divided by the pool units. LUVI always increases.

r = runeBalance
a = assetBalance
p = poolUnits
LUVI = sqrt(r^2 + a^2) / p

LUVI goes up the least in the pools that make the least money.

--

Every pool churn, snapshot LUVI per pool and save. Every church, compare the new LUVI with the old one, and kick the lowest LUVI pool into standby. Whilst in standby, the pool pays a churn fee and will eventually be depleted.

Assignee
Assign to
Time tracking