mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
fix setup (#396)
This commit is contained in:
parent
1037666e47
commit
70fea016fc
@ -234,7 +234,10 @@ export function handleSetup(event: LOG_SETUP): void {
|
||||
)
|
||||
poolTx.type = PoolTransactionType.SETUP
|
||||
poolTx.baseToken = token.id
|
||||
poolTx.datatoken = datatoken.id
|
||||
poolTx.baseTokenValue = weiToDecimal(
|
||||
event.params.baseTokenAmountIn.toBigDecimal(),
|
||||
token.decimals
|
||||
)
|
||||
pool.save()
|
||||
poolTx.save()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user