Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
greedythib committed Oct 16, 2023
1 parent bb08a7d commit fe04404
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/types/merkl.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { keys } from 'lodash';

import { ChainId } from '.';

const MerklSupportedChainIds = <const>[
Expand Down Expand Up @@ -194,14 +196,7 @@ type UserDataType<T extends AMMType> = Partial<{
userTotalBalance0: number;
userTotalBalance1: number;
userTotalLiquidity: number;
accountDetails: ({ origin: WrapperType<T> | -1; balance0: number; balance1: number; tvl: number } & Partial<{
almAddress: string;
almInRangeLiquidity: number; // Total in range liquidity
almLiquidity: number; // Total Liquidity
label: string;
// poolBalance0: number;
// poolBalance1: number;
}>)[];
userDetails: {[key: string]: { origin: WrapperType<T> | -1; balance0: number; balance1: number; tvl: number }};
// Rewards earned by the user breakdown per token
// token => {total unclaimed, total accumulated since inception, token symbol, breakdown per wrapper type}
rewardsPerToken: {
Expand Down Expand Up @@ -236,6 +231,14 @@ export type PoolDataType<T extends AMMType> = Partial<
token1InPool: number; // Total amount of token1 in the pool
tokenSymbol0: string;
tokenSymbol1: string;
almDetails: {
[key: string]: {
origin: WrapperType<T>; almBalance0: number; almBalance1: number; almTVL: number;
almAddress: string;
almInRangeLiquidity: number; // Total in range liquidity
almLiquidity: number; // Total Liquidity
label: string;
};
} & PriceDataType &
UserDataType<T>
>;
Expand Down

0 comments on commit fe04404

Please sign in to comment.