Skip to content

Commit

Permalink
feat: handle shapeshift fees for jupiter and rate balance check (#8267)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeOMakinG authored Dec 6, 2024
1 parent 5c25c61 commit 4951e9c
Show file tree
Hide file tree
Showing 9 changed files with 1,929 additions and 70 deletions.
4 changes: 4 additions & 0 deletions packages/chain-adapters/src/solana/SolanaChainAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ export class ChainAdapter implements IChainAdapter<KnownChainIds.SolanaMainnet>
return this.chainId
}

getConnection(): Connection {
return this.connection
}

getBIP44Params({ accountNumber }: GetBIP44ParamsInput): BIP44Params {
if (accountNumber < 0) throw new Error('accountNumber must be >= 0')
return { ...ChainAdapter.defaultBIP44Params, accountNumber }
Expand Down
1 change: 1 addition & 0 deletions packages/swapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dev": "yarn run -T tsc --build --watch"
},
"dependencies": {
"@coral-xyz/anchor": "0.29.0",
"@shapeshiftoss/caip": "workspace:^",
"@shapeshiftoss/chain-adapters": "workspace:^",
"@shapeshiftoss/types": "workspace:^",
Expand Down
Loading

0 comments on commit 4951e9c

Please sign in to comment.