Skip to content

Commit

Permalink
Guard ICX fix for testnet (#1477)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar authored Sep 16, 2022
1 parent 35e3e1e commit 3c5af8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/masternodes/mn_checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2249,7 +2249,11 @@ class CCustomTxApplyVisitor : public CCustomTxVisitor
// maker bonus only on fair dBTC/BTC (1:1) trades for now
DCT_ID BTC = FindTokenByPartialSymbolName(CICXOrder::TOKEN_BTC);
if (order->idToken == BTC && order->orderPrice == COIN) {
res = TransferTokenBalance(DCT_ID{0}, offer->takerFee * 50 / 100, CScript(), order->ownerAddress);
if (Params().NetworkIDString() == CBaseChainParams::TESTNET && height >= 1248000) {
res = TransferTokenBalance(DCT_ID{0}, offer->takerFee * 50 / 100, CScript(), order->ownerAddress);
} else {
res = TransferTokenBalance(BTC, offer->takerFee * 50 / 100, CScript(), order->ownerAddress);
}
if (!res)
return res;
}
Expand Down

0 comments on commit 3c5af8e

Please sign in to comment.