Skip to content

Commit

Permalink
Merge pull request #317 from EdgeApp/matthew/ibcTweaks
Browse files Browse the repository at this point in the history
Re-add currencyCode comparison in Cosmos IBC transfer plugin
  • Loading branch information
peachbits authored Mar 1, 2024
2 parents fb020df + 9186d24 commit 7379c44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

## Unreleased

- changed: (Cosmos IBC) Limit swaps to like-kind assets

## 2.2.1 (2023-02-28)

changed: (Cosmos IBC) Validate send/receive address
- changed: (Cosmos IBC) Validate send/receive address

## 2.2.0 (2023-02-27)

Expand Down
4 changes: 3 additions & 1 deletion src/swap/defi/cosmosIbc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const swapInfo: EdgeSwapInfo = {
pluginId: 'cosmosibc',
displayName: 'Cosmos IBC',
orderUri: undefined,
isDex: true,
supportEmail: 'support@edge.com'
}

Expand Down Expand Up @@ -102,7 +103,8 @@ export function makeCosmosIbcPlugin(

if (
request.fromWallet.currencyInfo.pluginId ===
request.toWallet.currencyInfo.pluginId
request.toWallet.currencyInfo.pluginId ||
request.fromCurrencyCode !== request.toCurrencyCode
) {
throw new SwapCurrencyError(swapInfo, request)
}
Expand Down

0 comments on commit 7379c44

Please sign in to comment.