mirror of https://github.com/certusone/oyster.git
check for reserves, obligations also have a lendingMarket pubkey
This commit is contained in:
parent
9cbb9ddb1c
commit
effeeeb867
|
@ -90,7 +90,7 @@ export const useLending = () => {
|
|||
.filter(item => item !== undefined);
|
||||
|
||||
const lendingReserves = accounts
|
||||
.filter(acc => (acc?.info as Reserve).lendingMarket !== undefined)
|
||||
.filter(acc => acc?.account && isReserve(acc.account) && (acc.info as Reserve).lendingMarket !== undefined)
|
||||
.map(acc => acc as ParsedAccount<Reserve>);
|
||||
|
||||
const toQuery = [
|
||||
|
|
Loading…
Reference in New Issue