Skip to content

Commit

Permalink
fix: add GHO connector for stkGHO on StkGHO dex
Browse files Browse the repository at this point in the history
  • Loading branch information
KanievskyiDanylo committed Jan 15, 2025
1 parent 96ed271 commit 387ba98
Showing 1 changed file with 4 additions and 2 deletions.
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 387ba98

Please sign in to comment.