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

fix: use correct source address for usdc on Orbit #2324

Merged
merged 9 commits into from
Mar 11, 2025

Conversation

brtkx
Copy link
Contributor

@brtkx brtkx commented Mar 10, 2025

No description provided.

@cla-bot cla-bot bot added the cla-signed label Mar 10, 2025
Copy link

vercel bot commented Mar 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Mar 11, 2025 2:36pm

@brtkx brtkx changed the title fix: use correct source address for usdc on Orbit chains fix: use correct source address for usdc on Orbit Mar 10, 2025
chrstph-dvx
chrstph-dvx previously approved these changes Mar 11, 2025
chrstph-dvx
chrstph-dvx previously approved these changes Mar 11, 2025
Comment on lines 278 to 300
useEffect(() => {
async function _getUsdcToken() {
if (!usdcParentAddress) {
return
}

const token = await getUsdcToken({
tokenAddress: usdcParentAddress,
parentProvider: parentChainProvider,
childProvider: childChainProvider
})

setUsdcToken(token)
}

_getUsdcToken()
}, [
usdcParentAddress,
getUsdcToken,
setUsdcToken,
parentChainProvider,
childChainProvider
])
Copy link
Contributor

Choose a reason for hiding this comment

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

I would use useSWR here, so we can have caching

@brtkx brtkx merged commit 480b0f3 into master Mar 11, 2025
80 checks passed
@brtkx brtkx deleted the fix-usdc-orbit-withdrawal branch March 11, 2025 16:45
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.

3 participants