@aurigami/sdk 1.4.5 → 1.4.6
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/sdk.cjs.development.js +15 -7
- 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 +15 -7
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/priceFetcher.ts +1 -1
package/package.json
CHANGED
package/src/priceFetcher.ts
CHANGED
|
@@ -120,7 +120,7 @@ function shouldFetchFromCoingecko(address: string) {
|
|
|
120
120
|
export async function fetchPrice(address: Address, provider: providers.Provider): Promise<BigNumber> {
|
|
121
121
|
if (hardcodePLYPrice && isSameAddress(address, networkAddresses.tokens.PLY)) return new BigNumber(0);
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
if (isSameAddress(address, networkAddresses.tokens.stNEAR)) return fetchStNEARPrice();
|
|
124
124
|
if (shouldFetchFromCoingecko(address)) return fetchPriceFromCoingecko(address);
|
|
125
125
|
|
|
126
126
|
const matchingAuToken = networkAddresses.auTokens.find((auToken) => {
|