@aurigami/sdk 1.12.1 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/priceFetcher.d.ts +2 -0
- package/dist/sdk.cjs.development.js +245 -166
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +244 -167
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/priceFetcher.ts +34 -4
|
@@ -2,7 +2,9 @@ import BigNumber from 'bignumber.js';
|
|
|
2
2
|
import { BigNumber as BN, providers } from 'ethers';
|
|
3
3
|
import { TokenAmount } from '../entities/tokenAmount';
|
|
4
4
|
import { Address, TokenValuation } from '../types';
|
|
5
|
+
export declare function fetchPriceFromDefiLlamaAPI(id: string): Promise<BigNumber>;
|
|
5
6
|
export declare function fetchPriceFromCoingeckoAPI(id: string): Promise<BigNumber>;
|
|
7
|
+
export declare function fetchPriceFromDefiLlama(id: Address): Promise<BigNumber>;
|
|
6
8
|
export declare function fetchPriceFromCoingecko(id: Address): Promise<BigNumber>;
|
|
7
9
|
export declare function fetchLPPositions(LPAddress: Address, provider: providers.Provider): Promise<{
|
|
8
10
|
token0: Address;
|