Skip to content

Commit

Permalink
Merge pull request #50 from Parifi/feature/include-normalize-prices-f…
Browse files Browse the repository at this point in the history
…unction

Feature/include normalize prices function
  • Loading branch information
sudeepb02 committed May 7, 2024
2 parents c16649b + 7c8922e commit dc57eee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
echo "New files detected, committing and pushing them"
git add package.json
git commit -S -m "Bump package version"
git push
git push -f
else
echo "No new files, exiting cleanly"
fi
Expand Down
12 changes: 11 additions & 1 deletion src/pyth/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { AxiosInstance } from 'axios';
import { PythConfig } from '../interfaces/classConfigs';
import { getLatestPricesFromPyth, getPythClient, getVaaPriceUpdateData, normalizePythPriceForParifi } from './pyth';
import {
getLatestPricesFromPyth,
getLatestPricesNormalized,
getPythClient,
getVaaPriceUpdateData,
normalizePythPriceForParifi,
} from './pyth';
import { getPriceIdsForCollaterals } from '../common';

export class Pyth {
Expand Down Expand Up @@ -31,6 +37,10 @@ export class Pyth {
return await getLatestPricesFromPyth(priceIds, this.pythClient);
}

public async getLatestPricesNormalized(priceIds: string[]) {
return await getLatestPricesNormalized(priceIds, this.pythClient);
}

public getPriceIdsForCollaterals() {
return getPriceIdsForCollaterals(true);
}
Expand Down

0 comments on commit dc57eee

Please sign in to comment.