Skip to main content

constants.ts

path: /src/utils/constants.ts

ADDRESS_ZERO

- type: String
- value: '0x0000000000000000000000000000000000000000'

Represents the null address in ethereum.

Referenced at:

  1. handlePoolCreated()
  2. getPosition()

FACTORY_ADDRESS

- type: String
- value: '0x1F98431c8aD98523631AE4a59f267346ea31F984'

Referenced at:

  1. handlePoolCreated()
  2. factoryContract
  3. handleMint()
  4. handleBurn()
  5. handleSwap()
  6. updateUniswapDayData()

ZERO_BI

- type: BigInt
- value: 0

ONE_BI

- type: BigInt
- value: 1

Referenced at:

  1. updatePoolDayData()
  2. updatePoolHourData()
  3. handlePoolCreated()
  4. exponentToBigDecimal()
  5. bigDecimalExponated()
  6. handleMint()
  7. handleBurn()
  8. handleSwap()

TWO_BI

- type: BigInt
- value: 2

Referenced at:

  1. bigDecimalExponated()

ZERO_BD

- type: BigDecimal
- value: 0

ONE_BD

- type: BigDecimal
- value: 1

Referenced at:

  1. findEthPerToken()
  2. bigDecimalExponated()
  3. createTick()

BI_18

- type: BigInt
- value: 18

factoryContract

An object representing a smart contract based on abis/factory.json abi, binded to FACTORY_ADDRESS to query the smart contract data.

Dependencies:

  1. FACTORY_ADDRESS

Referenced at:

  1. getPosition()