@@ -10,7 +10,6 @@ import {
1010 updateTokenBalances ,
1111 bytesToAddress ,
1212 getPoolShare ,
13- createUserEntity ,
1413} from './helpers/misc' ;
1514import { updatePoolWeights } from './helpers/weighted' ;
1615import { SWAP_IN , SWAP_OUT , VAULT_ADDRESS , ZERO , ZERO_ADDRESS , ZERO_BD } from './helpers/constants' ;
@@ -84,7 +83,7 @@ function handlePoolJoined(event: PoolBalanceChanged): void {
8483 join . type = 'Join' ;
8584 join . amounts = joinAmounts ;
8685 join . pool = event . params . poolId . toHexString ( ) ;
87- join . user = event . params . liquidityProvider . toHexString ( ) ;
86+ join . user = event . params . liquidityProvider ;
8887 join . timestamp = blockTimestamp ;
8988 join . tx = transactionHash ;
9089 join . block = event . block . number ;
@@ -184,7 +183,7 @@ function handlePoolExited(event: PoolBalanceChanged): void {
184183 exit . type = 'Exit' ;
185184 exit . amounts = exitAmounts ;
186185 exit . pool = event . params . poolId . toHexString ( ) ;
187- exit . user = event . params . liquidityProvider . toHexString ( ) ;
186+ exit . user = event . params . liquidityProvider ;
188187 exit . timestamp = blockTimestamp ;
189188 exit . tx = transactionHash ;
190189 exit . block = event . block . number ;
@@ -221,7 +220,6 @@ function handlePoolExited(event: PoolBalanceChanged): void {
221220 ************** SWAPS ***************
222221 ************************************/
223222export function handleSwapEvent ( event : SwapEvent ) : void {
224- createUserEntity ( event . transaction . from ) ;
225223 let poolId = event . params . poolId ;
226224
227225 let pool = Pool . load ( poolId . toHexString ( ) ) ;
@@ -338,7 +336,7 @@ export function handleSwapEvent(event: SwapEvent): void {
338336 swap . tokenAmountOut = tokenAmountOut ;
339337
340338 swap . caller = event . transaction . from ;
341- swap . userAddress = event . transaction . from . toHex ( ) ;
339+ swap . userAddress = event . transaction . from ;
342340 swap . poolId = poolId . toHex ( ) ;
343341
344342 swap . timestamp = blockTimestamp ;
0 commit comments