Skip to content

Commit 49843cc

Browse files
committed
Shortened snap id
1 parent df993ea commit 49843cc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/mappings/helpers.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,7 @@ export function createLiquiditySnapshot(position: LiquidityPosition, event: Ethe
189189
let token1 = Token.load(pair.token1)
190190

191191
// create new snapshot
192-
let id = position.id
193-
.concat('-')
194-
.concat(event.transaction.hash.toHexString())
195-
.concat('-')
196-
.concat(event.logIndex.toString())
192+
let id = event.transaction.hash.toHexString().concat('-').concat(event.logIndex.toString())
197193
let snapshot = new LiquidityPositionSnapshot(id)
198194
snapshot.liquidityPosition = position.id
199195
snapshot.timestamp = event.block.timestamp.toI32()

0 commit comments

Comments
 (0)