Skip to content

Commit

Permalink
update getSaverPosition()
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorian1te committed Oct 22, 2023
1 parent 7b755eb commit 39fb88e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/xchain-thorchain-amm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@xchainjs/xchain-midgard": "^0.5.2",
"@xchainjs/xchain-thorchain": "^0.28.8",
"@xchainjs/xchain-thornode": "^0.3.8",
"@xchainjs/xchain-thorchain-query": "^0.6.4",
"@xchainjs/xchain-thorchain-query": "^0.6.5",
"@xchainjs/xchain-util": "^0.13.1",
"@xchainjs/xchain-utxo-providers": "^0.2.5",
"axios": "^1.3.6",
Expand Down Expand Up @@ -91,7 +91,7 @@
"@xchainjs/xchain-midgard": "^0.5.2",
"@xchainjs/xchain-thornode": "^0.3.8",
"@xchainjs/xchain-thorchain": "^0.28.8",
"@xchainjs/xchain-thorchain-query": "^0.6.4",
"@xchainjs/xchain-thorchain-query": "^0.6.5",
"@xchainjs/xchain-util": "^0.13.1",
"@xchainjs/xchain-utxo-providers": "^0.2.5",
"axios": "^1.3.6",
Expand Down
6 changes: 6 additions & 0 deletions packages/xchain-thorchain-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.6.5 (2023-10-22)

## Update

- address comparion fix, previously failing case matching

# v0.6.4 (2023-10-19)

## Update
Expand Down
4 changes: 2 additions & 2 deletions packages/xchain-thorchain-query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xchainjs/xchain-thorchain-query",
"version": "0.6.4",
"version": "0.6.5",
"license": "MIT",
"description": "Thorchain query module that is resposible for estimating swap calculations and add/remove liquidity for thorchain ",
"keywords": [
Expand Down Expand Up @@ -53,4 +53,4 @@
"publishConfig": {
"access": "public"
}
}
}
3 changes: 2 additions & 1 deletion packages/xchain-thorchain-query/src/thorchain-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,9 @@ export class ThorchainQuery {
const blockData = (await this.thorchainCache.thornode.getLastBlock()).find(
(item: LastBlock) => item.chain === params.asset.chain,
)
// address comparison is done after conversion to lower case
const savers = (await this.thorchainCache.thornode.getSavers(`${params.asset.chain}.${params.asset.symbol}`)).find(
(item) => item.asset_address === params.address,
(item) => item.asset_address.toLowerCase() === params.address.toLowerCase(),
)

const pool = (await this.thorchainCache.getPoolForAsset(params.asset)).thornodeDetails
Expand Down

0 comments on commit 39fb88e

Please sign in to comment.