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

feature: bridge transfer only #1094

Draft
wants to merge 19 commits into
base: liquidity-onboarding
Choose a base branch
from

Conversation

StefChatz
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Aug 30, 2024

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

Name Status Preview Comments Updated (UTC)
mars-v2-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 3:00pm

Comment on lines +73 to +77
getCosmosSigner: async () => {
const offlineSigner = window.keplr?.getOfflineSigner(chainConfig.id.toString())
if (!offlineSigner) throw new Error('Keplr not installed')
return offlineSigner
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should be able to get the offlineSigner from the useShuttle hook.
With this code in place, you limit yourself to the Keplr-based wallets Keplr and Leap. Metamask Snap and Vectis won't work, and neither will Cosmostation.

Please check the Shuttle documentation or contact Gustavo or André from Astroport to learn how to get the offline signer.

}

try {
if (!selectedAsset.chain) throw new Error('Chain not found for selected asset')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you need to throw an error?
This will trigger the client-side error page on the app.
A console.log error would be enough. An error handling in the UI would be best.

Comment on lines 21 to 28
const usdcAssets = Object.entries(balances).map(([chainId, balance]) =>
WrappedBNCoin.fromDenomAndBigNumber(
`ibc/4C19E7EC06C1AB2EC2D70C6855FEB6D48E9CE174913991DA0A517D21978E7E42`,
isTestnet
? 'ibc/4C19E7EC06C1AB2EC2D70C6855FEB6D48E9CE174913991DA0A517D21978E7E42'
: 'ibc/B559A80D62249C8AA07A380E2A2BEA6E5CA9A6F079C912C3A9E9B494105E4F81',
BN(balance).shiftedBy(6),
CHAIN_NAMES[Number(chainId)],
),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please move this to the respective ChainConfig chains/[neutron or osmosis]/[chainId].ts file

This commit adds support for fetching asset images from the 'icons.llamao.fi' source in addition to the existing 'xdefi-static.s3.eu-west-1.amazonaws.com' source. This allows for a wider range of asset images to be displayed in the application.

The 'Asset' component has been updated to conditionally render the new 'AssetImageEvm' component when the asset has a 'chainName' property. The 'AssetImageEvm' component displays the asset image along with the logo of the corresponding EVM chain.

The 'getChainLogoByName' function has been added to the 'chainLogos.ts' file to retrieve the URL of the EVM chain logo based on the chain name.

These changes improve the visual representation of assets in the application and enhance the user experience.
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