Skip to content

Commit

Permalink
feat: support for ibbtc
Browse files Browse the repository at this point in the history
  • Loading branch information
jazg committed Feb 11, 2022
1 parent 08050f3 commit c2d9c2e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions multichain.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const (
DAI = Asset("DAI") // Dai
EURT = Asset("EURT") // Euro Tether
FTT = Asset("FTT") // FTX
ibBTC = Asset("ibBTC") // Interest Bearing Bitcoin
KNC = Asset("KNC") // Kyber Network
LINK = Asset("LINK") // Chainlink
MIM = Asset("MIM") // Magic Internet Money
Expand Down Expand Up @@ -215,8 +216,8 @@ func (asset Asset) OriginChain() Chain {
case ZEC:
return Zcash

case BADGER, BUSD, CRV, DAI, EURT, FTT, KNC, LINK, MIM, REN, ROOK, SUSHI,
UNI, USDC, USDT:
case BADGER, BUSD, CRV, DAI, EURT, FTT, ibBTC, KNC, LINK, MIM, REN, ROOK,
SUSHI, UNI, USDC, USDT:
return Ethereum

case KETH:
Expand Down Expand Up @@ -247,8 +248,8 @@ func (asset Asset) ChainType() ChainType {
case ArbETH, AVAX, BNB, ETH, FIL, FTM, GLMR, LUNA, MATIC, SOL:
return ChainTypeAccountBased

case BADGER, BUSD, CRV, DAI, EURT, FTT, KNC, LINK, MIM, REN, ROOK, SUSHI,
UNI, USDC, USDT:
case BADGER, BUSD, CRV, DAI, EURT, FTT, ibBTC, KNC, LINK, MIM, REN, ROOK,
SUSHI, UNI, USDC, USDT:
return ChainTypeAccountBased

case KETH, GETH:
Expand All @@ -273,8 +274,8 @@ func (asset Asset) Type() AssetType {
case ArbETH, AVAX, BNB, ETH, FTM, GLMR, MATIC, SOL:
return AssetTypeNative

case BADGER, BUSD, CRV, DAI, EURT, FTT, KNC, LINK, MIM, REN, ROOK, SUSHI,
UNI, USDC, USDT:
case BADGER, BUSD, CRV, DAI, EURT, FTT, ibBTC, KNC, LINK, MIM, REN, ROOK,
SUSHI, UNI, USDC, USDT:
return AssetTypeToken

case KETH, GETH:
Expand Down

0 comments on commit c2d9c2e

Please sign in to comment.