Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(stargate): Fix Stargate wrapped ETH price (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonzgao authored Jul 25, 2022
1 parent 4efffbe commit 0668cf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/apps/stargate/arbitrum/stargate.eth.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ArbitrumStargateEthTokenFetcher implements PositionFetcher<AppToken
resolveContract: ({ address, network }) => this.contractFactory.stargateEth({ address, network }),
resolveUnderlyingTokenAddress: () => ZERO_ADDRESS,
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}
2 changes: 1 addition & 1 deletion src/apps/stargate/ethereum/stargate.eth.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class EthereumStargateEthTokenFetcher implements PositionFetcher<AppToken
resolveContract: ({ address, network }) => this.contractFactory.stargateEth({ address, network }),
resolveUnderlyingTokenAddress: () => ZERO_ADDRESS,
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}
2 changes: 1 addition & 1 deletion src/apps/stargate/optimism/stargate.eth.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class OptimismStargateEthTokenFetcher implements PositionFetcher<AppToken
resolveContract: ({ address, network }) => this.contractFactory.stargateEth({ address, network }),
resolveUnderlyingTokenAddress: () => ZERO_ADDRESS,
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}

0 comments on commit 0668cf0

Please sign in to comment.