Skip to content

Commit

Permalink
DSR position view without connected wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
piekczyk committed Jul 30, 2024
1 parent 763abb4 commit 4a355be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/dsr/helpers/dsrDeposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ export function createDsrDeposit$(
potDsr$: Observable<BigNumber>,
dsr$: Observable<Dsr>, // TODO make use of it instead fetching dsrOverview separately
addGasEstimation$: AddGasEstimationFunction,
addressFromUrl: string,
): Observable<DsrDepositState> {
return combineLatest(context$, proxyAddress$, balancesInfoArray$, daiDeposit$, potDsr$).pipe(
first(),
Expand All @@ -336,7 +337,7 @@ export function createDsrDeposit$(
allowance$('DAI', context.account, proxyAddress),
allowance$('DAI', context.account, SDAI.address),
]
: [of(undefined), allowance$('DAI', context.account, SDAI.address)],
: [of(undefined), allowance$('DAI', addressFromUrl, SDAI.address)],
).pipe(
first(),
switchMap(([daiProxyAllowance, daiWalletAllowance]) => {
Expand Down
1 change: 1 addition & 0 deletions helpers/context/ProductContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ export function setupProductContext(
potDsr$,
dsr$(addressFromUrl),
addGasEstimation$,
addressFromUrl,
),
(item) => item,
)
Expand Down

0 comments on commit 4a355be

Please sign in to comment.