Check if the currency to be negotiable and waves

how do I check if the currency is negotiable and waves? I can only do it in btc.

let BTCId = base58’8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS’
match tx {
case t : ExchangeTransaction =>
t.sellOrder.assetPair.priceAsset == BTCId || t.sellOrder.assetPair.amountAsset == BTCId
case _ => true

!isDefined( ...Asset ) means it is WAVES.

1 Like

I’m sorry, but could you make an example with ‘exchange transaction’?

Consider to read this topic: Help me. Is my code wrong?