Skip to content

Commit

Permalink
Free the DEx and allow other tokens to be traded
Browse files Browse the repository at this point in the history
  • Loading branch information
dexX7 committed Oct 29, 2019
1 parent 1e7bd04 commit f7d958d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/omnicore/tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1275,9 +1275,12 @@ int CMPTransaction::logicMath_TradeOffer()
return (PKT_ERROR_TRADEOFFER -23);
}

if (OMNI_PROPERTY_TMSC != property && OMNI_PROPERTY_MSC != property) {
PrintToLog("%s(): rejected: property for sale %d must be OMN or TOMN\n", __func__, property);
return (PKT_ERROR_TRADEOFFER -47);
// Ensure only OMNI and TOMNI are allowed, when the DEx is not yet free
if (!IsFeatureActivated(FEATURE_FREEDEX, block)) {
if (OMNI_PROPERTY_TMSC != property && OMNI_PROPERTY_MSC != property) {
PrintToLog("%s(): rejected: property for sale %d must be OMN or TOMN\n", __func__, property);
return (PKT_ERROR_TRADEOFFER -47);
}
}

// ------------------------------------------
Expand Down

0 comments on commit f7d958d

Please sign in to comment.