Skip to main content

Pool Contract (Templatized)

Contract Details

Pools are deployed dynamically and the addresses cannot be pre-determined. Thus the template feature of graph protocol is used and the Pool contracts to monitor are added when a new pool is deployed using the factory. The handlePoolCreated() event handler adds a new pool contract to monitor.

Events Tracked

Event NameEvent handler
InitializehandleInitialize()
SwaphandleSwap()
MinthandleMint()
BurnhandleBurn()
FlashhandleFlash()