Skip to content

Commit

Permalink
Merge pull request #1094 from yieldprotocol/feat/982-lendposition-path
Browse files Browse the repository at this point in the history
fixing bug with lend position
  • Loading branch information
jacobryas4 authored Feb 10, 2023
2 parents f04f1c3 + b31e40d commit 9d3d445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/appUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export const getVaultIdFromReceipt = (receipt: any, contractMap: any) => {

export const getSeriesAfterRollPosition = (receipt: ContractReceipt | undefined, seriesMap: Map<string, ISeries>) => {
if (!receipt) return '';
const poolAddress = receipt.events[10]?.address!;
const poolAddress = receipt.events![receipt.events?.length! - 1].address;
const series = [...seriesMap.values()].find((s) => s.poolAddress === poolAddress);
return series?.id! || '';
};
Expand Down

0 comments on commit 9d3d445

Please sign in to comment.