The following script blocks the negotiation in the dex:
match tx {
case e: ExchangeTransaction => false
case _ => true
}
Later you’re able to change the script via SetAssetScriptTransaction.
The following script fixes a price in the dex:
let asset = base58'9jfD2JBLe23XtCCSQoTx5eAW5QCU6Mbxi3r78aNQLcNf'
match tx {
case e: ExchangeTransaction =>
e.price == 100 && e.sellOrder.assetPair.priceAsset == asset
case _ => true
}
Make sure you’ve let yourself to change the script later via specifying " case s : SetAssetScriptTransaction => true" (or “case _ => true” if “case SetAssetScriptTransaction” is not specified).