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

Onboarding: Rename connectors pallet to liquidityPools (prep for chain upgrade) #1555

Merged
merged 5 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion centrifuge-app/src/components/PoolFilter/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function filterPools(pools: PoolCardProps[], searchParams: URLSearchParam
filtered = filtered.filter(
(pool) => pool.status && (poolStatuses.size ? poolStatuses.has(toKebabCase(pool.status)) : pool.status !== 'Closed')
)
console.log('filtered', filtered)
Copy link
Contributor

Choose a reason for hiding this comment

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

😆


if (assetClasses.size) {
filtered = filtered.filter((pool) => pool.assetClass && assetClasses.has(toKebabCase(pool.assetClass)))
Expand Down
5 changes: 1 addition & 4 deletions centrifuge-app/src/pages/Pools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export function PoolsPage() {
function Pools() {
const cent = useCentrifuge()
const { search } = useLocation()
const [listedPools, listedTokens, metadataIsLoading] = useListedPools()
console.log('listedPools', listedPools)
const [listedPools, _listedTokens, metadataIsLoading] = useListedPools()

const centPools = listedPools.filter(({ id }) => !id.startsWith('0x')) as Pool[]
const centPoolsMetaData: PoolMetaDataPartial[] = useMetadataMulti<PoolMetadata>(
Expand All @@ -41,9 +40,7 @@ function Pools() {
const centPoolsMetaDataById = getMetasById(centPools, centPoolsMetaData)

const pools = !!listedPools?.length ? poolsToPoolCardProps(listedPools, centPoolsMetaDataById, cent) : []
console.log('pools', pools)
const filteredPools = !!pools?.length ? filterPools(pools, new URLSearchParams(search)) : []
console.log('flfitleirlerpOPopolp', filteredPools)

if (!listedPools.length) {
return (
Expand Down
2 changes: 1 addition & 1 deletion onboarding-api/src/utils/networks/centrifuge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const addCentInvestorToMemberList = async (wallet: Request['wallet'], poo
}
// add investor to liquidity pools if they are investing on any domain other than centrifuge
if (wallet.network === 'evm') {
const updateMemberSubmittable = api.tx.connectors.updateMember(
const updateMemberSubmittable = api.tx.liquidityPools.updateMember(
poolId,
trancheId,
{
Expand Down
Loading