Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(positions): Adjust signature on metatype helpers (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich authored Jun 28, 2022
1 parent c588d93 commit f395856
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/position/position.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export const isClaimable = (token: WithMetaType<Token>) => token.metaType === Me
export const isVesting = (token: WithMetaType<Token>) => token.metaType === MetaType.VESTING;
export const isLocked = (token: WithMetaType<Token>) => token.metaType === MetaType.LOCKED;

export const wallet = (token: Token): WithMetaType<Token> => ({ metaType: MetaType.WALLET, ...token });
export const supplied = (token: Token): WithMetaType<Token> => ({ metaType: MetaType.SUPPLIED, ...token });
export const borrowed = (token: Token): WithMetaType<Token> => ({ metaType: MetaType.BORROWED, ...token });
export const claimable = (token: Token): WithMetaType<Token> => ({ metaType: MetaType.CLAIMABLE, ...token });
export const vesting = (token: Token): WithMetaType<Token> => ({ metaType: MetaType.VESTING, ...token });
export const locked = (token: Token): WithMetaType<Token> => ({ metaType: MetaType.LOCKED, ...token });
export const wallet = <T>(token: T): WithMetaType<T> => ({ metaType: MetaType.WALLET, ...token });
export const supplied = <T>(token: T): WithMetaType<T> => ({ metaType: MetaType.SUPPLIED, ...token });
export const borrowed = <T>(token: T): WithMetaType<T> => ({ metaType: MetaType.BORROWED, ...token });
export const claimable = <T>(token: T): WithMetaType<T> => ({ metaType: MetaType.CLAIMABLE, ...token });
export const vesting = <T>(token: T): WithMetaType<T> => ({ metaType: MetaType.VESTING, ...token });
export const locked = <T>(token: T): WithMetaType<T> => ({ metaType: MetaType.LOCKED, ...token });

0 comments on commit f395856

Please sign in to comment.