Skip to content

Commit

Permalink
Merge pull request #880 from paraswap/fix/BACK-1830
Browse files Browse the repository at this point in the history
fix/BACK 1830
  • Loading branch information
KanievskyiDanylo authored Jan 16, 2025
2 parents 96ed271 + 87da947 commit accfda9
Show file tree
Hide file tree
Showing 2 changed files with 5 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": "@paraswap/dex-lib",
"version": "4.0.20",
"version": "4.0.21",
"main": "build/index.js",
"types": "build/index.d.ts",
"repository": "https://github.com/paraswap/paraswap-dex-lib",
Expand Down
6 changes: 4 additions & 2 deletions src/dex/stkgho/stkgho.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,18 @@ export class StkGHO extends SimpleExchange implements IDex<StkGHOData> {
limit: number,
): Promise<PoolLiquidity[]> {
tokenAddress = tokenAddress.toLowerCase();
const isGHO = tokenAddress == this.config.GHO;
const isStkGHO = tokenAddress == this.config.stkGHO;

if (tokenAddress == this.config.GHO) {
if (isGHO || isStkGHO) {
return [
{
exchange: this.dexKey,
address: this.config.stkGHO,
connectorTokens: [
{
decimals: 18,
address: this.config.stkGHO,
address: isGHO ? this.config.stkGHO : this.config.GHO,
},
],
liquidityUSD: 1_000_000_000_000, // GHO to stkGHO supply is unlimited
Expand Down

0 comments on commit accfda9

Please sign in to comment.