Add Pool E WAD LP markets and enable WAD/UNIT pool lending actions#414
Merged
Conversation
Extend resolvePoolsPageLendingMarket to include WAD LP markets (LP_TMPOOL2_WAD_*), not only UNIT LP collateral pairs. WAD/UNIT was configured on Pool C but excluded by the UNIT-only gate, so Supply and Withdraw never appeared on the pool card. Add unit tests for the resolver. Co-authored-by: Cursor <cursoragent@cursor.com>
Register lending pool E (3585829377) for WAD-base TMPOOL2 markets and add token configs for LP_TMPOOL2_WAD_ALGO, WAD_USDC, WAD_GOETH, and WAD_GOBTC. Include pool E in the mainnet lending pool list, add a Pool C/E grouping helper, and document pool tier labels (A–E).
Wire Pool E WAD borrow (3585829377 / nToken 3585972631) through WAD_LP_LENDING_WAD_BORROW_MARKET so the WAD filter can show borrow/supply against WAD LP collateral, mirroring UNIT → WAD on Pool C. - Add tokens.WAD Pool E row and Pool E helpers (collateral ids, borrow ref, getPoolELendingPoolId) - Map Pool E TMPOOL2 contracts in LENDING_POOL_BY_MARKET_CONTRACT; exclude Pool E from Markets table (WAD borrow remains visible) - Pools page: WAD filter uses Pool E global summary and WAD lending panel; PoolsWadBorrowSection copy supports UNIT LP vs WAD LP collateral - Extend unit tests for Pool E resolution and borrow market wiring
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.
Summary
3585829377) for WAD-base Tinyman TMPOOL2 markets and add token configs forLP_TMPOOL2_WAD_ALGO,WAD_USDC,WAD_GOETH, andWAD_GOBTCresolvePoolsPageLendingMarketso WAD LP markets (e.g. WAD/UNIT) show Supply/Withdraw on the Pools page, not only UNIT LP collateral pairsTest plan
npm test -- src/constants/__tests__/liquidityPools.test.tsMade with Cursor