Skip to content

Fix: filter unsupported Hydration assets#1801

Merged
yrong merged 1 commit into
mainfrom
fix/hydration-asset-lockdown-filter
Jun 29, 2026
Merged

Fix: filter unsupported Hydration assets#1801
yrong merged 1 commit into
mainfrom
fix/hydration-asset-lockdown-filter

Conversation

@yrong

@yrong yrong commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Only include Hydration assets with an explicit Unlocked circuit breaker state, preventing locked assets like WETH from appearing in generated routes.

Only include Hydration assets with an explicit Unlocked circuit breaker state, preventing locked assets like WETH from appearing in generated routes.
@yrong yrong changed the title fix: filter unsupported Hydration assets Fix: filter unsupported Hydration assets Jun 28, 2026
@yrong yrong merged commit 646fee9 into main Jun 29, 2026
1 check passed
@yrong yrong deleted the fix/hydration-asset-lockdown-filter branch June 29, 2026 15:29
Comment on lines +43 to +48
const lockdownState: any =
await this.provider.query.circuitBreaker.assetLockdownState(assetId)
if (!lockdownState.isSome || !lockdownState.unwrap().isUnlocked) {
continue
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is this circuit breaker now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's Hydration's pallet-circuit-breaker. assetLockdownState tracks whether an asset is locked down (a runtime safety mechanism that restricts transfers/trading for that asset). We only include assets that are explicitly present and Unlocked, so locked-down tokens like WETH don't show up in generated routes where transfers would fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants