From 24e5e371012db95bef10e55c63c05925b63b074c Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Wed, 30 Sep 2020 03:51:08 -0700 Subject: [PATCH] optimizations --- src/balancer/OceanPool.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/balancer/OceanPool.ts b/src/balancer/OceanPool.ts index 6bb2c2cd..458fe606 100644 --- a/src/balancer/OceanPool.ts +++ b/src/balancer/OceanPool.ts @@ -4,6 +4,8 @@ import { TransactionReceipt } from 'web3-core' import { Pool } from './Pool' import { EventData, Filter } from 'web3-eth-contract' +declare type PoolTransactionType = 'swap' | 'join' | 'exit' + export interface PoolDetails { poolAddress: string tokens: string[] @@ -493,7 +495,7 @@ export class OceanPool extends Pool { } private async getEventData( - type: 'swap' | 'join' | 'exit', + type: PoolTransactionType, poolAddress: string, dtAddress: string, data: EventData