CenturionDEX
Launch App

factory.ts

Last modified:

path: /src/mappings/factory.ts

handlePoolCreated()

Params:
 - event (PoolCreated): Event entity representing the Factory Contracts's Pool created event
 
ReturnType: void

Eth Mainnet, Polygon

Ignored Pool The following pool address is ignored by the function: 0x8fe8d9bb8eeba3ed688069c3d6b556c9ca258248 (MULAN-USDT)

Token decimals mandatory While creating either of the tokens, if the decimals value is not available, the pool entity is not created and the function returns without changing any entity. Only the bundle entity is still created if factory entity didn't exist.

Entities:

  1. Factory - Read/Create & Write Entity
  2. Bundle - Create Entity
  3. Pool - Create Entity
  4. Token - Read/Create & Write

Contracts

  1. Pool (Template) - Create

Dependencies:

  1. FACTORY_ADDRESS
  2. ADDRESS_ZERO
  3. ZERO_BD
  4. ZERO_BI
  5. ONE_BI
  6. fetchTokenSymbol()
  7. fetchTokenName()
  8. fetchTokenTotalSupply()
  9. fetchTokenDecimals()
  10. WHITELIST_TOKENS

Invoked at:

  1. PoolCreated Event (Handler)

Arbitrum-One

Optimism

Additional Dependencies

  1. populateEmptyPools()