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

tokenBridge protocol: add token address conversion methods #649

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

kev1n-peters
Copy link
Contributor

@kev1n-peters kev1n-peters commented Jul 31, 2024

  • Added getTokenUniversalAddress and getTokenNativeAddress methods to each platform's token bridge protocol implementation.
  • Some chains like Aptos and Sui require fetching on-chain data for token address conversions (universal to native and vice versa).
  • Fixed issue where lookupDestinationToken would return a universal address, causing issues in functions expecting a native address.
  • lookupDestinationToken now consistently returns a native address.
  • Resolved issues with transferring native Sui and Aptos tokens back to their origin chains.

@kev1n-peters kev1n-peters force-pushed the tb-token-addy-fixes branch 2 times, most recently from b89b671 to 57abd71 Compare August 1, 2024 13:23
- Added getTokenUniversalAddress and getTokenNativeAddress methods to each platform's token bridge protocol implementation.
- Some chains like Aptos and Sui require fetching on-chain data for token address conversions (universal to native and vice versa).
- Fixed issue where lookupDestinationToken would return a universal address, causing issues in functions expecting a native address.
- lookupDestinationToken now consistently returns a native address.
- Resolved issues with transferring native Sui and Aptos tokens back to their origin chains.
Copy link

@emreboga emreboga left a comment

Choose a reason for hiding this comment

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

LGTM!

@kev1n-peters kev1n-peters merged commit 97d82a4 into main Aug 6, 2024
1 check passed
@kev1n-peters kev1n-peters deleted the tb-token-addy-fixes branch August 6, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants