Skip to content

Commit

Permalink
Update ExchangeContract.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TeknoPT committed Oct 11, 2023
1 parent 05a82ad commit d660325
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ private void ValidateExchangeParameters(string id, string name, BigInteger total
public void CreateExchange(Address from, string id, string name, BigInteger totalFee,
BigInteger feePercentForExchange, BigInteger feePercentForPool)
{
if (Runtime.ProtocolVersion >= 15)
if (Runtime.ProtocolVersion >= 16)
{
Runtime.Expect(false, "exchange not supported on this protocol version");
Runtime.Expect(false, "This method is not available in this version of the DEX");
return;
}

Expand Down Expand Up @@ -152,9 +152,9 @@ public void CreateExchange(Address from, string id, string name, BigInteger tota
public void EditExchange(Address from, string id, string name, BigInteger totalFee,
BigInteger feePercentForExchange, BigInteger feePercentForPool)
{
if (Runtime.ProtocolVersion >= 15)
if (Runtime.ProtocolVersion >= 16)
{
Runtime.Expect(false, "exchange not supported on this protocol version");
Runtime.Expect(false, "This method is not available in this version of the DEX");
return;
}

Expand Down

0 comments on commit d660325

Please sign in to comment.