Skip to content

Commit

Permalink
feat(bsc): add thorswap bsc - waiting for liquidity
Browse files Browse the repository at this point in the history
  • Loading branch information
Milerius committed Sep 15, 2023
1 parent c86ab9d commit cb8e1dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/THORChain/Swap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ TWCoinType chainCoinType(Chain chain) {
return TWCoinTypeLitecoin;
case Chain::ATOM:
return TWCoinTypeCosmos;
case Chain::BSC:
return TWCoinTypeSmartChain;
case Chain::THOR:
default:
return TWCoinTypeTHORChain;
Expand All @@ -78,6 +80,7 @@ std::string chainName(Chain chain) {
case Chain::ETH:
return "ETH";
case Chain::BNB:
case Chain::BSC:
return "BNB";
case Chain::BTC:
return "BTC";
Expand Down Expand Up @@ -127,6 +130,7 @@ SwapBundled SwapBuilder::build(bool shortened) {
return buildAtom(fromAmountNum, memo);
case Chain::ETH:
case Chain::AVAX:
case Chain::BSC:
return buildEth(fromAmountNum, memo);
}
default:
Expand Down
3 changes: 2 additions & 1 deletion src/THORChain/Swap.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ enum Chain {
BCH = 5,
LTC = 6,
ATOM = 7,
AVAX = 8
AVAX = 8,
BSC = 9,
};

using SwapErrorCode = int;
Expand Down

0 comments on commit cb8e1dd

Please sign in to comment.