-
Notifications
You must be signed in to change notification settings - Fork 21
/
stable-meta.ts
35 lines (33 loc) · 1.09 KB
/
stable-meta.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { CurrencyExt, StableLpToken } from "../../../types";
import { MonetaryAmount } from "@interlay/monetary-js";
import Big from "big.js";
import { PooledCurrencies, PoolType } from "../types";
import { StableLiquidityPool } from "./stable";
class StableLiquidityMetaPool extends StableLiquidityPool {
constructor(
lpToken: StableLpToken,
metaPooledCurrencies: PooledCurrencies,
pooledCurrencies: PooledCurrencies,
rewardAmountsYearly: Array<MonetaryAmount<CurrencyExt>>,
tradingFee: Big,
poolId: number,
amplificationCoefficient: Big,
totalSupply: MonetaryAmount<StableLpToken>,
isEmpty: boolean,
public basePool: StableLiquidityPool // Contains base pool object.
) {
super(
PoolType.STABLE_META,
lpToken,
metaPooledCurrencies,
pooledCurrencies,
rewardAmountsYearly,
tradingFee,
poolId,
amplificationCoefficient,
totalSupply,
isEmpty
);
}
}
export { StableLiquidityMetaPool };