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 Name | Event handler |
---|---|
Initialize | handleInitialize() |
Swap | handleSwap() |
Mint | handleMint() |
Burn | handleBurn() |
Flash | handleFlash() |