Skip to content

Commit

Permalink
Add UM to osmosis
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Oct 30, 2024
1 parent 28f10ba commit b24c5b6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cosmos/osmosis.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@
"coinDecimals": 9,
"coinGeckoId": "the-open-network",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/osmosis/factory/osmo12lnwf54yd30p6amzaged2atln8k0l32n7ncxf04ctg7u7ymnsy7qkqgsw4/alloyed/allTON.png"
},
{
"coinDenom": "UM",
"coinMinimalDenom": "ibc/0FA9232B262B89E77D1335D54FB1E1F506A92A7E4B51524B400DC69C68D28372",
"coinDecimals": 6,
"coinGeckoId": "penumbra",
"coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/osmosis/ibc/0FA9232B262B89E77D1335D54FB1E1F506A92A7E4B51524B400DC69C68D28372.png"
}
],
"feeCurrencies": [
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ export const checkCurrencies = (chainInfo: ChainInfo) => {
currency.coinMinimalDenom.startsWith("ibc/") &&
ChainIdHelper.parse(chainInfo.chainId).identifier !== "centauri"
) {
// 오스모시스 위의 페넘브라는 일단 봐준다.
if (
ChainIdHelper.parse(chainInfo.chainId).identifier === "osmosis" &&
currency.coinMinimalDenom ===
"ibc/0FA9232B262B89E77D1335D54FB1E1F506A92A7E4B51524B400DC69C68D28372"
) {
continue;
}

throw new Error(
`Do not provide ibc currency to currencies: ${currency.coinMinimalDenom}`,
);
Expand Down

0 comments on commit b24c5b6

Please sign in to comment.