Skip to content

Commit

Permalink
🐛 Fix stsol pricing in api response
Browse files Browse the repository at this point in the history
  • Loading branch information
andreihrs committed Oct 17, 2024
1 parent 5a139c8 commit 5328c89
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 24 deletions.
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 18 additions & 20 deletions packages/hubble-sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/hubble-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@coral-xyz/anchor": "^0.29.0",
"@coral-xyz/borsh": "^0.30.1",
"@hubbleprotocol/hubble-config": "^8.0.0",
"@hubbleprotocol/scope-sdk": "^7.0.0",
"@kamino-finance/scope-sdk": "^8.0.2",
"@solana/web3.js": "^1.78.4",
"@streamflow/stream": "6.3.8",
"bn.js": "^5.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/hubble-sdk/src/Hubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { HbbVault, HubblePrices, MintToPriceMap, PsmReserve, UsdhVault } from '.
import GlobalConfig from './models/GlobalConfig';
import { SwapInfo } from './models/SwapInfo';
import { signTerms, SignTermsAccounts, SignTermsArgs, TermsSignature } from './models/TermsSignature';
import { OraclePrices, Scope } from '@hubbleprotocol/scope-sdk';
import { OraclePrices, Scope } from '@kamino-finance/scope-sdk';

export class Hubble {
private readonly _cluster: SolanaCluster;
Expand Down
4 changes: 2 additions & 2 deletions packages/hubble-sdk/src/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export const ExtraCollateralMap: ExtraCollateralToken[] = [
id: 8,
name: 'STSOL',
mint: '7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj',
scopePriceChain: [76, 0, 65535, 65535],
scopeTwapChain: [61, 65535, 65535, 65535],
scopePriceChain: [0, 65535, 65535, 65535],
scopeTwapChain: [52, 65535, 65535, 65535],
},
{
id: 9,
Expand Down

0 comments on commit 5328c89

Please sign in to comment.