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

EarnIntro/EarnAmount/EarnConfirmEstimation #1310

Merged

Conversation

editaahn
Copy link
Contributor

@editaahn editaahn commented Feb 5, 2025

No description provided.

Copy link

vercel bot commented Feb 5, 2025

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

Name Status Preview Comments Updated (UTC)
keplr-wallet-extension ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:07am

@editaahn editaahn force-pushed the editaahn/keplr-753,keplr-763 branch from 09280c2 to ed3125e Compare February 7, 2025 05:26
@editaahn editaahn changed the title EarnIntro/EarnAmount EarnIntro/EarnAmount/EarnConfirmEstimation Feb 7, 2025
return;
}

if (currency.coinMinimalDenom === "uusdc") {
Copy link
Member

Choose a reason for hiding this comment

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

당장은 문제가 안될 것 같은데 USDC.axl도 coinMinimalDenom이 uusdc 라서 좀 더 엄격한 로직이면 좋을 것 같아요.

Comment on lines 362 to 363
{viewToken.token.currency.coinDenom === "USDC" &&
!viewToken.chainInfo.chainId.includes("eip155:") ? (
Copy link
Member

Choose a reason for hiding this comment

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

나중에 혹시라도 USDC 라는 토큰이 생길수도 있으니까 좀 더 확실한 방법으로 가면 좋을 것 같아요.
익스텐션에서는 ibc 토큰이 IBCCurrency 라는 타입의 형태를 띄게 되는데 그 타입에 originChainId 라는 필드가 있어요. 그 필드를 활용해서 noble 에서 온 usdc 토큰이면 뜨게하도록 로직을 변경해주면 좋을 것 같아요.
ex) viewToken.token.currency.coinMinimalDenom === "uusdc" && (viewToken.token.currency as IBCCurrency)?.originChainId === "noble-1"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

이 코드는 임시로 진입점 만드려고 마지막에 테스트용 커밋 넣어둔거긴 해요! 그러고보니 정환님 델리반님도 개발하면서 테스트하기 용이하게끔 그냥 커밋 머지하고 디자인 픽스 후에 추가 업데이트하면 좋겠군요. coinMinimalDenom은 ibc일 수 있어서 아래 조건으로 반영하면 될 것 같아요

(viewToken.token.currency.coinMinimalDenom === "uusdc" && viewToken.chainInfo.chainId === "noble-1")
 || (viewToken.token.currency as IBCCurrency)?.originChainId === "noble-1"

@editaahn
Copy link
Contributor Author

editaahn commented Feb 7, 2025

@delivan validateIsUsdcFromNoble �함수를 추가했어요.

@delivan delivan merged commit d6880c6 into chainapsis:Thunnini/noble Feb 7, 2025
4 checks passed
@editaahn editaahn deleted the editaahn/keplr-753,keplr-763 branch February 7, 2025 11:51
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