tx · 2qFuQqzD9B5T9YcgyS87Yz4rdLamFfQSFhNef1pTb2oc 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9: -0.14000000 Waves 2022.09.09 15:08 [2221542] smart account 3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9 > SELF 0.00000000 Waves
{ "type": 13, "id": "2qFuQqzD9B5T9YcgyS87Yz4rdLamFfQSFhNef1pTb2oc", "fee": 14000000, "feeAssetId": null, "timestamp": 1662725265065, "version": 2, "chainId": 84, "sender": "3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9", "senderPublicKey": "D1X9WatF6ARMCmm3jC4Ex5Wd5VQ3LY8i1xbHNqeHqeAa", "proofs": [ "4g25rdyTYtNgbqYv1s9991AXbNk9zqAZsQQtHhvS5S9t2oJBM8BmpEMKqGmu65RiR2hYNGwmPWor3EFiRmh4PfaS", "43hfrLQLKA4seFwf1vyFsDKDS7MowWaCgsCgthidQHWQdTy2ya2H3pgHvEjeNvnUacJGfordSmSTT6zkjMgNKs35" ], "script": "base64:BgIQCAISCAoGGBgRERgBEgASACYAB2tBY3RpdmUCBmFjdGl2ZQAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQANa1Bvb2xJbk9yYWNsZQIFcG9vbF8ADmtVc2VyU3dvcEluR292AgxfU1dPUF9hbW91bnQACmtEaXNjb3VudHMCCWRpc2NvdW50cwAPa0Rpc2NvdW50VmFsdWVzAg9kaXNjb3VudF92YWx1ZXMAC2tSb3V0aW5nRmVlAgtyb3V0aW5nX2ZlZQANa0FkbWluUHViS2V5MQILYWRtaW5fcHViXzEADWtBZG1pblB1YktleTICC2FkbWluX3B1Yl8yAA1rQWRtaW5QdWJLZXkzAgthZG1pbl9wdWJfMwAQa01vbmV5Qm94QWRkcmVzcwIRbW9uZXlfYm94X2FkZHJlc3MAC2tHb3ZBZGRyZXNzAhJnb3Zlcm5hbmNlX2FkZHJlc3MABGtGZWUCCmNvbW1pc3Npb24AEmtNdWx0eUFzc2V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RJhZG1pblB1YktleTNTaWduZWQAAgQHJG1hdGNoMAUCdHgFE211bHRpU2lnbmVkQnlBZG1pbnN/X8i/", "height": 2221542, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3UVsrMNfPVpEWMPfpTjD4vUcaeNo5EP1YgCKYSyBzG3Z Next: Fmm7rCSdDzrRFWPreEevEYf2k7ZnXjdnGvBteysP2i1J Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = " | |
4 | + | let a = "active" | |
5 | 5 | ||
6 | - | let b = " | |
6 | + | let b = "shutdown_cause" | |
7 | 7 | ||
8 | - | let c = " | |
8 | + | let c = "pool_" | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "_SWOP_amount" | |
11 | 11 | ||
12 | - | let e = " | |
12 | + | let e = "discounts" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "discount_values" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "routing_fee" | |
17 | 17 | ||
18 | - | let h = "admin_pub_ | |
18 | + | let h = "admin_pub_1" | |
19 | 19 | ||
20 | - | let i = "admin_ | |
20 | + | let i = "admin_pub_2" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "admin_pub_3" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = "money_box_address" | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = "governance_address" | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = "commission" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = "_balance" | |
31 | 31 | ||
32 | - | func o (p) = if ((p.caller == this)) | |
33 | - | then unit | |
34 | - | else throw("Only the Oracle itself can invoke this function") | |
32 | + | let o = 8 | |
35 | 33 | ||
34 | + | let p = 100000000 | |
36 | 35 | ||
37 | - | func q (r) = { | |
38 | - | let s = valueOrErrorMessage(getString(r, "version"), "Pool is not initialized") | |
39 | - | if ((s == "1.0.0")) | |
40 | - | then "cpmm" | |
41 | - | else if ((s == "2.0.0")) | |
42 | - | then "flat" | |
43 | - | else if ((s == "3.0.0")) | |
44 | - | then "multycurve" | |
45 | - | else throw("Unknown version of pool") | |
36 | + | let q = 10000000000000000 | |
37 | + | ||
38 | + | let r = 50 | |
39 | + | ||
40 | + | let s = 2 | |
41 | + | ||
42 | + | let t = 4600000000000000 | |
43 | + | ||
44 | + | let u = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
45 | + | ||
46 | + | func v (w) = { | |
47 | + | let x = getString(u, w) | |
48 | + | if ($isInstanceOf(x, "String")) | |
49 | + | then { | |
50 | + | let y = x | |
51 | + | fromBase58String(y) | |
52 | + | } | |
53 | + | else { | |
54 | + | let z = x | |
55 | + | throw((w + "is empty")) | |
56 | + | } | |
46 | 57 | } | |
47 | 58 | ||
48 | 59 | ||
49 | - | func t (u) = toString(valueOrErrorMessage(addressFromString(u), (("Can't parse \"" + u) + "\" as address"))) | |
60 | + | let A = v(h) | |
61 | + | ||
62 | + | let B = v(i) | |
63 | + | ||
64 | + | let C = v(j) | |
65 | + | ||
66 | + | let D = Address(v(k)) | |
67 | + | ||
68 | + | let E = Address(v(l)) | |
69 | + | ||
70 | + | let F = valueOrElse(getBoolean(this, a), true) | |
71 | + | ||
72 | + | let G = valueOrErrorMessage(getInteger(u, g), "routing_fee is empty") | |
73 | + | ||
74 | + | let H = 1000000 | |
75 | + | ||
76 | + | func I () = if (F) | |
77 | + | then unit | |
78 | + | else throw("DApp is inactive at this moment") | |
50 | 79 | ||
51 | 80 | ||
52 | - | @Callable(p) | |
53 | - | func setAdmin () = valueOrElse(o(p), [StringEntry(f, toBase58String(k)), StringEntry(g, toBase58String(l)), StringEntry(h, toBase58String(m)), StringEntry(i, toBase58String(n))]) | |
81 | + | func J (K) = if (containsElement([A, B, C], K.callerPublicKey)) | |
82 | + | then unit | |
83 | + | else throw("Only admin can call this function") | |
54 | 84 | ||
55 | 85 | ||
86 | + | func L () = throw("DApp is already active") | |
56 | 87 | ||
57 | - | @Callable(p) | |
58 | - | func addPool (r,v) = valueOrElse(o(p), { | |
59 | - | let w = t(r) | |
60 | - | let x = (a + w) | |
61 | - | let y = getString(this, x) | |
62 | - | if (isDefined(y)) | |
63 | - | then throw((((("Pool with address \"" + w) + "\" is already defined with name \"") + value(y)) + "\"")) | |
64 | - | else ([StringEntry(x, v)] ++ (if ((q(value(addressFromString(r))) == "multycurve")) | |
65 | - | then nil | |
88 | + | ||
89 | + | func M (N) = [BooleanEntry(a, false), StringEntry(b, N)] | |
90 | + | ||
91 | + | ||
92 | + | func O (P,Q) = ((fraction(q, P, Q) + fraction(q, Q, P)) / 2) | |
93 | + | ||
94 | + | ||
95 | + | func R (P,Q) = { | |
96 | + | let S = O(P, Q) | |
97 | + | (fraction((P + Q), q, pow(S, o, r, s, o, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(P), toBigInt(Q), toBigInt(p)), 0, toBigInt(5), 1, (o / 2), DOWN)), pow((S - t), o, r, s, o, DOWN), p))) | |
98 | + | } | |
99 | + | ||
100 | + | ||
101 | + | func T (U) = { | |
102 | + | let V = valueOrElse(getInteger(E, (toString(U) + d)), 0) | |
103 | + | let W = split(getStringValue(u, f), ",") | |
104 | + | let X = split(getStringValue(u, e), ",") | |
105 | + | if (if ((V >= parseIntValue(W[0]))) | |
106 | + | then (parseIntValue(W[1]) > V) | |
107 | + | else false) | |
108 | + | then (H - parseIntValue(X[0])) | |
109 | + | else if (if ((V >= parseIntValue(W[1]))) | |
110 | + | then (parseIntValue(W[2]) > V) | |
111 | + | else false) | |
112 | + | then (H - parseIntValue(X[1])) | |
113 | + | else if (if ((V >= parseIntValue(W[2]))) | |
114 | + | then (parseIntValue(W[3]) > V) | |
115 | + | else false) | |
116 | + | then (H - parseIntValue(X[2])) | |
117 | + | else if (if ((V >= parseIntValue(W[3]))) | |
118 | + | then (parseIntValue(W[4]) > V) | |
119 | + | else false) | |
120 | + | then (H - parseIntValue(X[3])) | |
121 | + | else if ((V >= parseIntValue(W[4]))) | |
122 | + | then (H - parseIntValue(X[4])) | |
123 | + | else H | |
124 | + | } | |
125 | + | ||
126 | + | ||
127 | + | func Y (Z,aa,ab,ac,ad,ae,af,ag) = { | |
128 | + | let ah = T(Z) | |
129 | + | let ai = if ((ad[0] == "curveMultyFlat")) | |
130 | + | then { | |
131 | + | let aj = { | |
132 | + | let ak = invoke(addressFromStringValue(ac[0]), "getDy", [ae[0], ae[1], aa, toString(Z)], nil) | |
133 | + | if ($isInstanceOf(ak, "(Int, Int)")) | |
134 | + | then ak | |
135 | + | else throw(($getType(invoke(addressFromStringValue(ac[0]), "getDy", [ae[0], ae[1], aa, toString(Z)], nil)) + " couldn't be cast to (Int, Int)")) | |
136 | + | } | |
137 | + | if ((aj == aj)) | |
138 | + | then aj._1 | |
139 | + | else throw("Strict value is not equal to itself.") | |
140 | + | } | |
141 | + | else { | |
142 | + | let al = getIntegerValue(addressFromStringValue(ac[0]), ae[0]) | |
143 | + | let am = getIntegerValue(addressFromStringValue(ac[0]), ae[1]) | |
144 | + | if ((ad[0] == "cpmm")) | |
145 | + | then { | |
146 | + | let an = getIntegerValue(addressFromStringValue(ac[0]), m) | |
147 | + | let ao = fraction(am, aa, (aa + al)) | |
148 | + | fraction(ao, (H - fraction(an, ah, H)), H) | |
149 | + | } | |
150 | + | else if ((ad[0] == "flat")) | |
151 | + | then { | |
152 | + | let ap = R(al, am) | |
153 | + | let aq = ag[0] | |
154 | + | let ar = R((al + aa), (am - aq)) | |
155 | + | if ((ar >= ap)) | |
156 | + | then aq | |
157 | + | else throw("Flat contract: invariantNew < invariant") | |
158 | + | } | |
159 | + | else throw("Incorrect exchange type") | |
160 | + | } | |
161 | + | let as = if ((ad[1] == "curveMultyFlat")) | |
162 | + | then { | |
163 | + | let aj = { | |
164 | + | let ak = invoke(addressFromStringValue(ac[1]), "getDy", [ae[2], ae[3], ai, toString(Z)], nil) | |
165 | + | if ($isInstanceOf(ak, "(Int, Int)")) | |
166 | + | then ak | |
167 | + | else throw(($getType(invoke(addressFromStringValue(ac[1]), "getDy", [ae[2], ae[3], ai, toString(Z)], nil)) + " couldn't be cast to (Int, Int)")) | |
168 | + | } | |
169 | + | if ((aj == aj)) | |
170 | + | then aj._1 | |
171 | + | else throw("Strict value is not equal to itself.") | |
172 | + | } | |
173 | + | else { | |
174 | + | let at = getIntegerValue(addressFromStringValue(ac[1]), ae[2]) | |
175 | + | let au = getIntegerValue(addressFromStringValue(ac[1]), ae[3]) | |
176 | + | if ((ad[1] == "cpmm")) | |
177 | + | then { | |
178 | + | let av = fraction(au, ai, (ai + at)) | |
179 | + | let an = getIntegerValue(addressFromStringValue(ac[1]), m) | |
180 | + | fraction(av, (H - fraction(an, ah, H)), H) | |
181 | + | } | |
182 | + | else if ((ad[1] == "flat")) | |
183 | + | then { | |
184 | + | let ap = R(at, au) | |
185 | + | let aw = ag[1] | |
186 | + | let ar = R((at + ai), (au - aw)) | |
187 | + | if ((ar >= ap)) | |
188 | + | then aw | |
189 | + | else throw("Flat contract: invariantNew < invariant") | |
190 | + | } | |
191 | + | else throw("Incorrect exchange type") | |
192 | + | } | |
193 | + | (as >= ab) | |
194 | + | } | |
195 | + | ||
196 | + | ||
197 | + | @Callable(K) | |
198 | + | func routingTrade (ac,ad,af,ag,ae,ab) = valueOrElse(I(), { | |
199 | + | let ax = $Tuple2(K.payments[0].amount, K.payments[0].assetId) | |
200 | + | let aa = ax._1 | |
201 | + | let ay = ax._2 | |
202 | + | if (!(Y(K.caller, aa, ab, ac, ad, ae, af, ag))) | |
203 | + | then throw("Check transaction possibilty: declined") | |
204 | + | else if (if (!(isDefined(getString(u, (c + ac[0]))))) | |
205 | + | then true | |
206 | + | else !(isDefined(getString(u, (c + ac[1]))))) | |
207 | + | then throw("Pool is not in oracle") | |
66 | 208 | else { | |
67 | - | let z = valueOrErrorMessage(getString(value(addressFromString(r)), c), "Asset id A is incorrect") | |
68 | - | let A = valueOrErrorMessage(getString(value(addressFromString(r)), d), "Asset id B is incorrect") | |
69 | - | [StringEntry((((b + z) + "_") + A), r)] | |
70 | - | })) | |
209 | + | let az = size(ac) | |
210 | + | func aA (aB,aC) = { | |
211 | + | let aD = aB | |
212 | + | let aE = aD._1 | |
213 | + | let aF = aD._2 | |
214 | + | let aG = aD._3 | |
215 | + | let aH = if ((aE == 0)) | |
216 | + | then $Tuple2(ay, aa) | |
217 | + | else $Tuple2(aG, aF) | |
218 | + | let aI = aH._1 | |
219 | + | let aJ = aH._2 | |
220 | + | if (((if ((aE >= 0)) | |
221 | + | then (az > aE) | |
222 | + | else false) == true)) | |
223 | + | then { | |
224 | + | let aK = addressFromStringValue(aC) | |
225 | + | if ((ad[aE] == "cpmm")) | |
226 | + | then { | |
227 | + | let aj = { | |
228 | + | let ak = invoke(aK, "exchange", [af[aE]], [AttachedPayment(aI, aJ)]) | |
229 | + | if ($isInstanceOf(ak, "(Int, Int)")) | |
230 | + | then ak | |
231 | + | else throw(($getType(invoke(aK, "exchange", [af[aE]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to (Int, Int)")) | |
232 | + | } | |
233 | + | if ((aj == aj)) | |
234 | + | then $Tuple2(aj._1, aj._2) | |
235 | + | else throw("Strict value is not equal to itself.") | |
236 | + | } | |
237 | + | else if ((ad[aE] == "flat")) | |
238 | + | then { | |
239 | + | let aj = { | |
240 | + | let ak = invoke(aK, "exchange", [af[aE], ag[aE]], [AttachedPayment(aI, aJ)]) | |
241 | + | if ($isInstanceOf(ak, "List[Any]")) | |
242 | + | then ak | |
243 | + | else throw(($getType(invoke(aK, "exchange", [af[aE], ag[aE]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to List[Any]")) | |
244 | + | } | |
245 | + | if ((aj == aj)) | |
246 | + | then $Tuple3((aE + 1), aj[0], aj[1]) | |
247 | + | else throw("Strict value is not equal to itself.") | |
248 | + | } | |
249 | + | else if ((ad[aE] == "curveMultyFlat")) | |
250 | + | then { | |
251 | + | let aj = { | |
252 | + | let ak = invoke(aK, "exchange", [ae[((aE * 2) + 1)], ag[aE]], [AttachedPayment(aI, aJ)]) | |
253 | + | if ($isInstanceOf(ak, "List[Any]")) | |
254 | + | then ak | |
255 | + | else throw(($getType(invoke(aK, "exchange", [ae[((aE * 2) + 1)], ag[aE]], [AttachedPayment(aI, aJ)])) + " couldn't be cast to List[Any]")) | |
256 | + | } | |
257 | + | if ((aj == aj)) | |
258 | + | then $Tuple3((aE + 1), aj[0], aj[1]) | |
259 | + | else throw("Strict value is not equal to itself.") | |
260 | + | } | |
261 | + | else throw("Incorrect exchange type") | |
262 | + | } | |
263 | + | else aB | |
264 | + | } | |
265 | + | ||
266 | + | let aL = { | |
267 | + | let aM = ac | |
268 | + | let aN = size(aM) | |
269 | + | let aO = $Tuple3(0, 0, base58'') | |
270 | + | func aP (aQ,aR) = if ((aR >= aN)) | |
271 | + | then aQ | |
272 | + | else aA(aQ, aM[aR]) | |
273 | + | ||
274 | + | func aS (aQ,aR) = if ((aR >= aN)) | |
275 | + | then aQ | |
276 | + | else throw("List size exceeds 3") | |
277 | + | ||
278 | + | aS(aP(aP(aP(aO, 0), 1), 2), 3) | |
279 | + | } | |
280 | + | let aE = aL._1 | |
281 | + | let aT = aL._2 | |
282 | + | let aU = aL._3 | |
283 | + | let aV = fraction(aT, (H - G), H) | |
284 | + | if (if ((aE == az)) | |
285 | + | then (aV >= ab) | |
286 | + | else false) | |
287 | + | then [ScriptTransfer(K.caller, aV, aU), ScriptTransfer(D, (aT - aV), aU)] | |
288 | + | else throw("routing != routingSize or amountToRecieve < minAmountToReceive") | |
289 | + | } | |
71 | 290 | }) | |
72 | 291 | ||
73 | 292 | ||
74 | 293 | ||
75 | - | @Callable(p) | |
76 | - | func renamePool (r,B) = valueOrElse(o(p), { | |
77 | - | let w = t(r) | |
78 | - | let x = (a + w) | |
79 | - | let y = getString(this, x) | |
80 | - | if (isDefined(y)) | |
81 | - | then [StringEntry(x, B)] | |
82 | - | else throw((("Pool with address \"" + w) + "\" has not yet been added")) | |
83 | - | }) | |
294 | + | @Callable(K) | |
295 | + | func shutdown () = valueOrElse(J(K), if (!(F)) | |
296 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, b), "the cause wasn't specified"))) | |
297 | + | else M("Paused by admin")) | |
84 | 298 | ||
85 | 299 | ||
86 | 300 | ||
87 | - | @Callable(p) | |
88 | - | func launchpadDataTransactionStatus (C) = valueOrElse(o(p), [BooleanEntry(e, C)]) | |
301 | + | @Callable(K) | |
302 | + | func activate () = valueOrElse(J(K), if (F) | |
303 | + | then L() | |
304 | + | else [BooleanEntry(a, true), DeleteEntry(b)]) | |
89 | 305 | ||
90 | 306 | ||
91 | - | ||
92 | - | @Callable(p) | |
93 | - | func addAchievementsWriter (u) = valueOrElse(o(p), { | |
94 | - | let D = valueOrElse(getString(this, j), "") | |
95 | - | let E = if ((D == "")) | |
96 | - | then nil | |
97 | - | else split(D, ",") | |
98 | - | [StringEntry(j, makeString((E :+ u), ","))] | |
99 | - | }) | |
100 | - | ||
101 | - | ||
102 | - | ||
103 | - | @Callable(p) | |
104 | - | func removeAchievementsWriter (u) = valueOrElse(o(p), { | |
105 | - | let D = split(valueOrElse(getString(this, j), ""), ",") | |
106 | - | let F = valueOrErrorMessage(indexOf(D, u), "Can't find address in the list") | |
107 | - | [StringEntry(j, makeString(removeByIndex(D, F), ","))] | |
108 | - | }) | |
109 | - | ||
110 | - | ||
111 | - | @Verifier(G) | |
112 | - | func H () = { | |
113 | - | let I = if (sigVerify(G.bodyBytes, G.proofs[0], k)) | |
114 | - | then 1 | |
115 | - | else 0 | |
116 | - | let J = if (sigVerify(G.bodyBytes, G.proofs[1], l)) | |
117 | - | then 1 | |
118 | - | else 0 | |
119 | - | let K = if (sigVerify(G.bodyBytes, G.proofs[2], m)) | |
120 | - | then 1 | |
121 | - | else 0 | |
122 | - | let L = (((I + J) + K) >= 2) | |
123 | - | let M = (((I + J) + K) >= 1) | |
124 | - | let N = G | |
125 | - | if ($isInstanceOf(N, "InvokeScriptTransaction")) | |
126 | - | then { | |
127 | - | let O = N | |
128 | - | let P = if ((O.dApp == this)) | |
129 | - | then containsElement(["renamePool"], O.function) | |
130 | - | else false | |
131 | - | let Q = if ((O.dApp == this)) | |
132 | - | then containsElement(["setAdmin"], O.function) | |
133 | - | else false | |
134 | - | let R = if ((O.dApp == this)) | |
135 | - | then containsElement(["addPool"], O.function) | |
136 | - | else false | |
137 | - | let S = if ((O.dApp == this)) | |
138 | - | then containsElement(["launchpadDataTransactionStatus"], O.function) | |
139 | - | else false | |
140 | - | let T = if ((O.dApp == this)) | |
141 | - | then containsElement(["addAchievementsWriter"], O.function) | |
142 | - | else false | |
143 | - | let U = if ((O.dApp == this)) | |
144 | - | then containsElement(["removeAchievementsWriter"], O.function) | |
145 | - | else false | |
146 | - | if (if (if (if (if (if (if (L) | |
147 | - | then (size(O.payments) == 0) | |
148 | - | else false) | |
149 | - | then P | |
150 | - | else false) | |
151 | - | then true | |
152 | - | else if (if (M) | |
153 | - | then (size(O.payments) == 0) | |
154 | - | else false) | |
155 | - | then R | |
156 | - | else false) | |
157 | - | then true | |
158 | - | else if (if (L) | |
159 | - | then (size(O.payments) == 0) | |
160 | - | else false) | |
161 | - | then Q | |
162 | - | else false) | |
163 | - | then true | |
164 | - | else if (if (L) | |
165 | - | then (size(O.payments) == 0) | |
166 | - | else false) | |
167 | - | then S | |
168 | - | else false) | |
169 | - | then true | |
170 | - | else if (if (L) | |
171 | - | then (size(O.payments) == 0) | |
172 | - | else false) | |
173 | - | then T | |
174 | - | else false) | |
175 | - | then true | |
176 | - | else if (if (L) | |
177 | - | then (size(O.payments) == 0) | |
178 | - | else false) | |
179 | - | then U | |
180 | - | else false | |
181 | - | } | |
182 | - | else if (if ($isInstanceOf(N, "Order")) | |
183 | - | then true | |
184 | - | else if ($isInstanceOf(N, "DataTransaction")) | |
185 | - | then true | |
186 | - | else if ($isInstanceOf(N, "SponsorFeeTransaction")) | |
187 | - | then true | |
188 | - | else if ($isInstanceOf(N, "SetScriptTransaction")) | |
189 | - | then true | |
190 | - | else if ($isInstanceOf(N, "CreateAliasTransaction")) | |
191 | - | then true | |
192 | - | else if ($isInstanceOf(N, "LeaseCancelTransaction")) | |
193 | - | then true | |
194 | - | else if ($isInstanceOf(N, "LeaseTransaction")) | |
195 | - | then true | |
196 | - | else if ($isInstanceOf(N, "IssueTransaction")) | |
197 | - | then true | |
198 | - | else if ($isInstanceOf(N, "InvokeExpressionTransaction")) | |
199 | - | then true | |
200 | - | else if ($isInstanceOf(N, "UpdateAssetInfoTransaction")) | |
201 | - | then true | |
202 | - | else if ($isInstanceOf(N, "InvokeScriptTransaction")) | |
203 | - | then true | |
204 | - | else if ($isInstanceOf(N, "SetAssetScriptTransaction")) | |
205 | - | then true | |
206 | - | else if ($isInstanceOf(N, "TransferTransaction")) | |
207 | - | then true | |
208 | - | else if ($isInstanceOf(N, "ExchangeTransaction")) | |
209 | - | then true | |
210 | - | else if ($isInstanceOf(N, "MassTransferTransaction")) | |
211 | - | then true | |
212 | - | else if ($isInstanceOf(N, "BurnTransaction")) | |
213 | - | then true | |
214 | - | else $isInstanceOf(N, "ReissueTransaction")) | |
215 | - | then L | |
216 | - | else throw("Match error") | |
307 | + | @Verifier(aW) | |
308 | + | func aX () = { | |
309 | + | let aY = { | |
310 | + | let aZ = if (sigVerify(aW.bodyBytes, aW.proofs[0], A)) | |
311 | + | then 1 | |
312 | + | else 0 | |
313 | + | let ba = if (sigVerify(aW.bodyBytes, aW.proofs[1], B)) | |
314 | + | then 1 | |
315 | + | else 0 | |
316 | + | let bb = if (sigVerify(aW.bodyBytes, aW.proofs[2], C)) | |
317 | + | then 1 | |
318 | + | else 0 | |
319 | + | (((aZ + ba) + bb) >= 2) | |
320 | + | } | |
321 | + | let x = aW | |
322 | + | aY | |
217 | 323 | } | |
218 | 324 |
github/deemru/w8io/169f3d6 50.32 ms ◑