Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] - Hide Clearinghouse V1 + BLV for users w/o positions. Cooler Extend Loan Approval Fix #3021

Merged
merged 3 commits into from
Nov 13, 2023

Conversation

brightiron
Copy link
Contributor

  • Hide Clearinghouse V1 for users w/o positions
  • Hide BLV For Users w/o active positions
  • Fix issue w/ Cooler Extend Loan Spend Approvals. In some cases a user would not be prompted for an approval if they have an existing spend approval, but it was below the limit required to roll the loan

Copy link
Contributor

@unbanksy unbanksy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -86,6 +86,9 @@ export const Vault = () => {
const isWithdrawal = searchParams.get("withdraw") ? true : false;
const theme = useTheme();
const mobile = useMediaQuery(theme.breakpoints.down("sm"));

const { data: vaults, isLoading: vaultsLoading } = useGetSingleSidedLiquidityVaults();
const vaultsWithDeposits = vaults && vaults.filter(vault => vault.lpTokenBalance !== "0");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saw you convert to Number in other places. Might be good to do it here, as well. In general, wonder if it's worth pulling vaultsWithDeposits out into a common helper file

@brightiron brightiron merged commit 51e38aa into master Nov 13, 2023
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants