diff --git a/ride/futures_calculator.ride b/ride/futures_calculator.ride index 07c6a2c1..7942c13d 100644 --- a/ride/futures_calculator.ride +++ b/ride/futures_calculator.ride @@ -569,9 +569,8 @@ func setPairAllowance(callerPublicKey: ByteVector, args: List[String]) = { # args: [assetId] @Callable(i) func addSyntheticAsset(callerPublicKey: ByteVector, args: List[String]) = { - let baseAssetIdStr = args[0] - let baseAssetId = parseAssetId(baseAssetIdStr) - let syntheticAssetId = i.payments[0].assetId + let baseAssetId = parseAssetId(args[0]) + let syntheticAssetId = parseAssetId(args[1]) strict ckecks = [ !shutdown || throwErr("not allowed"), @@ -580,9 +579,6 @@ func addSyntheticAsset(callerPublicKey: ByteVector, args: List[String]) = { factoryAddress.getString(kSyntheticAssetId(baseAssetId)) == unit || throwErr( "invalid base asset" ), - i.payments.size() == 1 || throwErr( - "invalid payments" - ), factoryAddress.getString(kBaseAssetId(syntheticAssetId)) == unit || throwErr( "invalid synthetic asset" )