Balancer Simulations
  • Getting Started
  • Understanding Balancer AMMs
    • Balancer Basics
    • Use cases
  • Simulation Packages
    • Model Overview
    • Pool Functions
    • Pool Exploration
  • Code & Instructions
    • Dynamic weights changing
    • Arbitrage agent
    • Balancer: the Python edition
      • ActionDecoder
      • pool_state_updates.py
      • partial_state_update_blocks.py
      • Spot Price calculation
      • balancer_constants.py
      • balancer_math.py
      • balancer_pool.py
      • Verification & Limitations
    • Naming Convention
    • Adding On-chain Transaction Data and USD Prices
    • Modeling Time
Powered by GitBook
On this page

Was this helpful?

  1. Code & Instructions

Naming Convention

Naming convention of the cadCAD model:

PreviousVerification & LimitationsNextAdding On-chain Transaction Data and USD Prices

Last updated 4 years ago

Was this helpful?

TOKENS

POOL SHARES (BPT)

balances

price

value

balances

price

value

in float/native unit

in float USD

in float USD

float/native unit

in float USD

in float USD

tokens:

'token_(Symbol)_balance'

'token_(Symbol)_price'

'token_(Symbol)_value'

'pool_share_balance'

n/a [1]

n/a [1]

fees:

generated_fees_(Symbol)

weights: 'token_(Symbol)_weight" (normalized weight) 'token_(Symbol)_denorm_weight" ( weight)

total pool: 'token_token_value" (=TVL, total value locked in USD) 'invariant" (=Invariant V, according to the Balancer Pool )

[1] Price and value of a pool share are not part of the simulation output, however, can be derived from the value of the underlying tokens at any pool state.

denormalized
value function