Mint
Last modified:
Entity to store details of a mint event emitted while adding liquidity to a pool.
Schema
| Field | Type | derivedFrom | Description |
|---|---|---|---|
| id | ID! | Mint Entity ID. Format: <transaction hash>#<index in transaction.mints array> | |
| transaction | Transaction! | Transaction Entity in which the mint event was emitted | |
| timestamp | BigInt! | Timestamp of the block in which which the mint event was emitted | |
| pool | Pool! | Pool in which the mint event was emitted | |
| token0 | Token! | token0 entity of the pool | |
| token1 | Token! | token1 entity of the pool | |
| owner | Bytes! | owner of the position to which the liquidity was minted | |
| sender | Bytes | the address that minted the liquidity | |
| origin | Bytes! | The EOA address that initiated the transaction | |
| amount | BigInt! | Amount of liquidity minted | |
| amount0 | BigDecimal! | Amount of token0 minted | |
| amount1 | BigDecimal! | Amount of token1 minted | |
| amountUSD | BigDecimal | Mint value derived in USD based on available prices of tokens | |
| tickLower | BigInt! | Lower tick of the position | |
| tickUpper | BigInt! | Upper tick of the position | |
| logIndex | BigInt | Order of the Mint Event within the logs of the transaction |
Referencing Functions
| FunctionName | Create | Read | Update | Save |
|---|---|---|---|---|
| handleMint() |