File tree Expand file tree Collapse file tree 1 file changed +27
-5
lines changed
apps/extension/src/pages/main/components/ibc-history-view Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -1799,17 +1799,13 @@ const SwapV2HistoryViewItem: FunctionComponent<{
17991799 . quo ( DecUtils . getPrecisionDec ( currency . coinDecimals ) )
18001800 . toString ( ) ;
18011801
1802- console . log ( "msg" , msg ) ;
1803-
1804- // IBCSwapHistoryData 구성을 위한 채널 정보 추출
18051802 const ibcChannels : {
18061803 portId : string ;
18071804 channelId : string ;
18081805 counterpartyChainId : string ;
18091806 } [ ] = [ ] ;
1810- const swapReceiver : string [ ] = [ ] ;
1807+ const swapReceiver : string [ ] = [ tx . chainId ] ; // should include source chain id
18111808
1812- // 첫 번째 채널의 counterpartyChainId 조회
18131809 const firstQueryClientState = queriesStore
18141810 . get ( chainId )
18151811 . cosmos . queryIBCClientState . getClientState (
@@ -2179,6 +2175,32 @@ const SwapV2HistoryViewItem: FunctionComponent<{
21792175
21802176 if ( historyCompleted && failedRouteIndex < 0 ) {
21812177 const destinationAssets = ( ( ) => {
2178+ // NOTE: evm은 resAmount[0]에 들어감
2179+ if ( history . additionalTrackingData ?. type === "cosmos-ibc" ) {
2180+ const resAmount =
2181+ history . resAmount [
2182+ history . additionalTrackingData . ibcHistory . length
2183+ ] ;
2184+ if ( resAmount ) {
2185+ return resAmount
2186+ . map ( ( amount ) => {
2187+ return new CoinPretty (
2188+ chainStore
2189+ . getChain ( history . destinationAsset . chainId )
2190+ . forceFindCurrency ( amount . denom ) ,
2191+ amount . amount
2192+ )
2193+ . hideIBCMetadata ( true )
2194+ . shrink ( true )
2195+ . maxDecimals ( 6 )
2196+ . inequalitySymbol ( true )
2197+ . trim ( true )
2198+ . toString ( ) ;
2199+ } )
2200+ . join ( ", " ) ;
2201+ }
2202+ }
2203+
21822204 if ( ! history . resAmount [ 0 ] ) {
21832205 return chainStore
21842206 . getChain ( history . destinationAsset . chainId )
You can’t perform that action at this time.
0 commit comments