Fill the Earn page's empty column with a pool liquidity card - #103
Merged
Conversation
Row two of the Earn page is a two-column grid: the USDC pool card on the left, the earnings panel on the right. With a single pool the left column stretched to match the taller earnings panel, leaving a large empty gap below the supply card. Add a "Pool liquidity" card that fills that space and shows what the pool is actually doing: a two-tone bar splitting supplied capital into the borrowed share (earning the rate) and the idle share (withdrawable now), with Pool size / Borrowed / Available figures. Borrowed and available are derived from the live pool size and utilisation, so the card tracks real state. The card is flex-1 so it absorbs the leftover column height.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Row two of the Earn page is a two-column grid — the USDC pool card on the left, the earnings panel on the right. With a single pool the left column stretched to match the taller earnings panel, leaving a large empty gap below the supply card.
This adds a Pool liquidity card that fills that space and shows what the pool is actually doing:
Borrowed and available are derived from the live pool size and utilisation, so the card tracks real state. The card is
flex-1so it absorbs the leftover column height and the gap is gone.Web-only change; typecheck and prettier clean.