Skip to content

Commit

Permalink
Correct queryAmbientPos to pull token balance
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Meeseeks committed Mar 7, 2024
1 parent 57ceb8f commit f2f2db4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@crocswap-libs/sdk",
"version": "0.3.4",
"version": "0.3.6",
"description": "🛠🐊🛠 An SDK for building applications on top of CrocSwap",
"author": "Ben Wolski <ben@crocodilelabs.io>",
"repository": "https://github.com/CrocSwap/sdk.git",
Expand Down
4 changes: 2 additions & 2 deletions src/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export class CrocPositionView {
context.chain.poolIndex, blockArg)
}

async queryAmbientPosition (block?: BlockTag) {
async queryAmbientPos (block?: BlockTag) {
let blockArg = toCallArg(block)
let context = await this.context
return context.query.queryAmbientPosition(this.owner,
return context.query.queryAmbientTokens(this.owner,
this.baseToken.tokenAddr, this.quoteToken.tokenAddr,
context.chain.poolIndex, blockArg)
}
Expand Down

0 comments on commit f2f2db4

Please sign in to comment.