From f395856440c21c280aed49ec1f7f7a5b9149ac68 Mon Sep 17 00:00:00 2001 From: immasandwich Date: Tue, 28 Jun 2022 16:55:11 -0400 Subject: [PATCH] fix(positions): Adjust signature on metatype helpers (#786) --- src/position/position.utils.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/position/position.utils.ts b/src/position/position.utils.ts index df8bb7229..41c49801e 100644 --- a/src/position/position.utils.ts +++ b/src/position/position.utils.ts @@ -8,9 +8,9 @@ export const isClaimable = (token: WithMetaType) => token.metaType === Me export const isVesting = (token: WithMetaType) => token.metaType === MetaType.VESTING; export const isLocked = (token: WithMetaType) => token.metaType === MetaType.LOCKED; -export const wallet = (token: Token): WithMetaType => ({ metaType: MetaType.WALLET, ...token }); -export const supplied = (token: Token): WithMetaType => ({ metaType: MetaType.SUPPLIED, ...token }); -export const borrowed = (token: Token): WithMetaType => ({ metaType: MetaType.BORROWED, ...token }); -export const claimable = (token: Token): WithMetaType => ({ metaType: MetaType.CLAIMABLE, ...token }); -export const vesting = (token: Token): WithMetaType => ({ metaType: MetaType.VESTING, ...token }); -export const locked = (token: Token): WithMetaType => ({ metaType: MetaType.LOCKED, ...token }); +export const wallet = (token: T): WithMetaType => ({ metaType: MetaType.WALLET, ...token }); +export const supplied = (token: T): WithMetaType => ({ metaType: MetaType.SUPPLIED, ...token }); +export const borrowed = (token: T): WithMetaType => ({ metaType: MetaType.BORROWED, ...token }); +export const claimable = (token: T): WithMetaType => ({ metaType: MetaType.CLAIMABLE, ...token }); +export const vesting = (token: T): WithMetaType => ({ metaType: MetaType.VESTING, ...token }); +export const locked = (token: T): WithMetaType => ({ metaType: MetaType.LOCKED, ...token });