tx · FWA7eC8WRVRpJvBm2rM8KnLSzEG9CifK3SbKgwiC1zbd 3MqAXcQCPvqvYZuVJhaXEeJZ3Rja1MUq2LY: -0.14000000 Waves 2022.12.15 16:22 [2361474] smart account 3MqAXcQCPvqvYZuVJhaXEeJZ3Rja1MUq2LY > SELF 0.00000000 Waves
{ "type": 13, "id": "FWA7eC8WRVRpJvBm2rM8KnLSzEG9CifK3SbKgwiC1zbd", "fee": 14000000, "feeAssetId": null, "timestamp": 1671110378375, "version": 2, "chainId": 84, "sender": "3MqAXcQCPvqvYZuVJhaXEeJZ3Rja1MUq2LY", "senderPublicKey": "FfjixqhdoWY77CNzgw1CJPMaUJ1wBFaQSY4GrTetjwzH", "proofs": [ "4Dbc11D4CXisyfbazWdDr44bAtAabZPCPt8PnfVpRYDYXs6229k6inVjt6G3nXRBKZXNb2MrSiwXESaHgxYYJQTm", "3PAfvJBJfxfaYMbXsJWrMtuKKZaAsUZETVR2rEMJaFkpGAa3b4GYCNDKhLw6vZDTVCYPB6ZfoZn7Ct4XAxKHUXYD" ], "script": "base64:BgImCAISBAoCCBgSABIAEgUKAwQBCBIAEgMKAQESAwoBARIAEgMKAQEpAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAMa1VTRE5BZGRyZXNzAhhzdGFraW5nX3VzZG5uc2J0X2FkZHJlc3MADGtFVVJOQWRkcmVzcwIUc3Rha2luZ19ldXJuX2FkZHJlc3MADGtMZWFzaW5nUG9vbAIPbGVhc2luZ19hZGRyZXNzAA5rTGVhc2luZ0Ftb3VudAIObGVhc2luZ19hbW91bnQACmtMZWFzaW5nSWQCCmxlYXNpbmdfaWQADWtBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA1rQWRtaW5QdWJLZXkyAgthZG1pbl9wdWJfMgANa0FkbWluUHViS2V5MwILYWRtaW5fcHViXzMAEmtBZG1pb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nR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIFE211bHRpU2lnbmVkQnlBZG1pbnOCFYaH", "height": 2361474, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8Ae4zRaZ1YLsPkcSsmhFAMf2aqkKwvP2YQ9MhUMCi1ue Next: GGQRDtFDU1wdDr5zuv3tBuZKjcqTtsArP3Sr1iGzAzTi Diff:
Old | New | Differences | |
---|---|---|---|
275 | 275 | ||
276 | 276 | ||
277 | 277 | @Callable(aI) | |
278 | - | func stakeUnstake (R,U,aJ) = valueOrElse(J(), if ((aI.caller != D)) | |
279 | - | then throw("Only global Contract can invoke this function") | |
280 | - | else if ((aJ == "WAVES")) | |
281 | - | then { | |
282 | - | let aK = addressFromStringValue(valueOrErrorMessage(getString(r, f), "No leasing pool in oracle")) | |
283 | - | let aL = getBinary(this, h) | |
284 | - | let aM = valueOrElse(getInteger(this, g), 0) | |
285 | - | let aN = if (R) | |
286 | - | then (aM + U) | |
287 | - | else (aM - U) | |
288 | - | let aO = Lease(aK, aN) | |
289 | - | let aP = calculateLeaseId(aO) | |
290 | - | let aQ = [aO, BinaryEntry(h, aP), IntegerEntry(g, aN)] | |
291 | - | let u = aL | |
292 | - | if ($isInstanceOf(u, "ByteVector")) | |
293 | - | then { | |
294 | - | let aR = u | |
295 | - | ([LeaseCancel(aR)] ++ aQ) | |
296 | - | } | |
297 | - | else aQ | |
298 | - | } | |
299 | - | else { | |
300 | - | let aS = T(R, U, fromBase58String(aJ)) | |
301 | - | let W = aS._1 | |
302 | - | let aT = aS._2 | |
303 | - | let aU = aS._3 | |
304 | - | let ao = aS._4 | |
305 | - | let aV = invoke(aT, W, aU, ao) | |
306 | - | if ((aV == aV)) | |
307 | - | then nil | |
308 | - | else throw("Strict value is not equal to itself.") | |
309 | - | }) | |
278 | + | func stakeUnstake (R,U,aJ) = valueOrElse(K(aI.caller), valueOrElse(J(), if ((aJ == "WAVES")) | |
279 | + | then { | |
280 | + | let aK = addressFromStringValue(valueOrErrorMessage(getString(r, f), "No leasing pool in oracle")) | |
281 | + | let aL = getBinary(this, h) | |
282 | + | let aM = valueOrElse(getInteger(this, g), 0) | |
283 | + | let aN = if (R) | |
284 | + | then (aM + U) | |
285 | + | else (aM - U) | |
286 | + | let aO = Lease(aK, aN) | |
287 | + | let aP = calculateLeaseId(aO) | |
288 | + | let aQ = [aO, BinaryEntry(h, aP), IntegerEntry(g, aN)] | |
289 | + | let u = aL | |
290 | + | if ($isInstanceOf(u, "ByteVector")) | |
291 | + | then { | |
292 | + | let aR = u | |
293 | + | ([LeaseCancel(aR)] ++ aQ) | |
294 | + | } | |
295 | + | else aQ | |
296 | + | } | |
297 | + | else { | |
298 | + | let aS = T(R, U, fromBase58String(aJ)) | |
299 | + | let W = aS._1 | |
300 | + | let aT = aS._2 | |
301 | + | let aU = aS._3 | |
302 | + | let ao = aS._4 | |
303 | + | let aV = invoke(aT, W, aU, ao) | |
304 | + | if ((aV == aV)) | |
305 | + | then nil | |
306 | + | else throw("Strict value is not equal to itself.") | |
307 | + | })) | |
308 | + | ||
309 | + | ||
310 | + | ||
311 | + | @Callable(aI) | |
312 | + | func claimNetrinoRewards () = valueOrElse(K(aI.caller), valueOrElse(J(), { | |
313 | + | let aV = invoke(B, "claimRewards", nil, nil) | |
314 | + | if ((aV == aV)) | |
315 | + | then $Tuple2(nil, aV) | |
316 | + | else throw("Strict value is not equal to itself.") | |
317 | + | })) | |
310 | 318 | ||
311 | 319 | ||
312 | 320 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "active_all_contracts" | |
7 | 7 | ||
8 | 8 | let c = "shutdown_cause" | |
9 | 9 | ||
10 | 10 | let d = "staking_usdnnsbt_address" | |
11 | 11 | ||
12 | 12 | let e = "staking_eurn_address" | |
13 | 13 | ||
14 | 14 | let f = "leasing_address" | |
15 | 15 | ||
16 | 16 | let g = "leasing_amount" | |
17 | 17 | ||
18 | 18 | let h = "leasing_id" | |
19 | 19 | ||
20 | 20 | let i = "admin_pub_1" | |
21 | 21 | ||
22 | 22 | let j = "admin_pub_2" | |
23 | 23 | ||
24 | 24 | let k = "admin_pub_3" | |
25 | 25 | ||
26 | 26 | let l = "admin_invoke_pub" | |
27 | 27 | ||
28 | 28 | let m = "cpmm_contract" | |
29 | 29 | ||
30 | 30 | let n = "usdn_asset_id" | |
31 | 31 | ||
32 | 32 | let o = "eurn_asset_id" | |
33 | 33 | ||
34 | 34 | let p = "staking_assets" | |
35 | 35 | ||
36 | 36 | let q = "share_asset_id" | |
37 | 37 | ||
38 | 38 | let r = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
39 | 39 | ||
40 | 40 | func s (t) = { | |
41 | 41 | let u = getString(r, t) | |
42 | 42 | if ($isInstanceOf(u, "String")) | |
43 | 43 | then { | |
44 | 44 | let v = u | |
45 | 45 | fromBase58String(v) | |
46 | 46 | } | |
47 | 47 | else { | |
48 | 48 | let w = u | |
49 | 49 | throw((t + "is empty")) | |
50 | 50 | } | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let x = s(i) | |
55 | 55 | ||
56 | 56 | let y = s(j) | |
57 | 57 | ||
58 | 58 | let z = s(k) | |
59 | 59 | ||
60 | 60 | let A = s(l) | |
61 | 61 | ||
62 | 62 | let B = Address(s(d)) | |
63 | 63 | ||
64 | 64 | let C = Address(s(e)) | |
65 | 65 | ||
66 | 66 | let D = Address(s(m)) | |
67 | 67 | ||
68 | 68 | let E = s(n) | |
69 | 69 | ||
70 | 70 | let F = s(o) | |
71 | 71 | ||
72 | 72 | let G = getStringValue(r, p) | |
73 | 73 | ||
74 | 74 | let H = valueOrElse(getBoolean(r, b), true) | |
75 | 75 | ||
76 | 76 | let I = valueOrElse(getBoolean(this, a), true) | |
77 | 77 | ||
78 | 78 | func J () = if (if (I) | |
79 | 79 | then H | |
80 | 80 | else false) | |
81 | 81 | then unit | |
82 | 82 | else throw("DApp is inactive at this moment") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func K (L) = if ((L == D)) | |
86 | 86 | then unit | |
87 | 87 | else throw("Only global Contract can invoke this function") | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func M (N) = if (containsElement([x, y, z], N)) | |
91 | 91 | then unit | |
92 | 92 | else throw("Only admin can call this function") | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func O (P) = [BooleanEntry(a, false), StringEntry(c, P)] | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func Q (R,S) = if (R) | |
99 | 99 | then if ((S == E)) | |
100 | 100 | then $Tuple2("lockNeutrino", B) | |
101 | 101 | else $Tuple2("startStaking", C) | |
102 | 102 | else if ((S == E)) | |
103 | 103 | then $Tuple2("unlockNeutrino", B) | |
104 | 104 | else $Tuple2("stopStaking", C) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func T (R,U,S) = if (R) | |
108 | 108 | then { | |
109 | 109 | let V = Q(R, S) | |
110 | 110 | let W = V._1 | |
111 | 111 | let X = V._2 | |
112 | 112 | $Tuple4(W, X, nil, [AttachedPayment(S, U)]) | |
113 | 113 | } | |
114 | 114 | else { | |
115 | 115 | let Y = Q(R, S) | |
116 | 116 | let W = Y._1 | |
117 | 117 | let X = Y._2 | |
118 | 118 | $Tuple4(W, X, [U, toBase58String(S)], nil) | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func Z (aa,ab) = { | |
123 | 123 | let ac = aa | |
124 | 124 | let ad = ac._1 | |
125 | 125 | let ae = ac._2 | |
126 | 126 | $Tuple2((ad :+ ab.amount), (ae :+ (if ((ab.assetId == unit)) | |
127 | 127 | then base58'' | |
128 | 128 | else ab.assetId))) | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func af (ag,ah) = { | |
133 | 133 | let u = ah | |
134 | 134 | if (if ($isInstanceOf(u, "Issue")) | |
135 | 135 | then true | |
136 | 136 | else if ($isInstanceOf(u, "Burn")) | |
137 | 137 | then true | |
138 | 138 | else if ($isInstanceOf(u, "Reissue")) | |
139 | 139 | then true | |
140 | 140 | else if ($isInstanceOf(u, "ScriptTransfer")) | |
141 | 141 | then true | |
142 | 142 | else if ($isInstanceOf(u, "BinaryEntry")) | |
143 | 143 | then true | |
144 | 144 | else if ($isInstanceOf(u, "BooleanEntry")) | |
145 | 145 | then true | |
146 | 146 | else if ($isInstanceOf(u, "StringEntry")) | |
147 | 147 | then true | |
148 | 148 | else $isInstanceOf(u, "IntegerEntry")) | |
149 | 149 | then { | |
150 | 150 | let ai = u | |
151 | 151 | (ag :+ ai) | |
152 | 152 | } | |
153 | 153 | else ag | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func aj (ag,ah) = { | |
158 | 158 | let u = ah | |
159 | 159 | if ($isInstanceOf(u, "String")) | |
160 | 160 | then { | |
161 | 161 | let ak = u | |
162 | 162 | (ag :+ ak) | |
163 | 163 | } | |
164 | 164 | else if ($isInstanceOf(u, "Int")) | |
165 | 165 | then { | |
166 | 166 | let ak = u | |
167 | 167 | (ag :+ ak) | |
168 | 168 | } | |
169 | 169 | else if ($isInstanceOf(u, "Boolean")) | |
170 | 170 | then { | |
171 | 171 | let ak = u | |
172 | 172 | (ag :+ ak) | |
173 | 173 | } | |
174 | 174 | else if ($isInstanceOf(u, "ByteVector")) | |
175 | 175 | then { | |
176 | 176 | let ak = u | |
177 | 177 | (ag :+ ak) | |
178 | 178 | } | |
179 | 179 | else if ($isInstanceOf(u, "Unit")) | |
180 | 180 | then { | |
181 | 181 | let ak = u | |
182 | 182 | (ag :+ ak) | |
183 | 183 | } | |
184 | 184 | else throw() | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func al (am,L,an,ao) = valueOrElse(J(), { | |
189 | 189 | let ap = { | |
190 | 190 | let aq = ao | |
191 | 191 | let ar = size(aq) | |
192 | 192 | let as = $Tuple2(nil, nil) | |
193 | 193 | func at (au,av) = if ((av >= ar)) | |
194 | 194 | then au | |
195 | 195 | else Z(au, aq[av]) | |
196 | 196 | ||
197 | 197 | func aw (au,av) = if ((av >= ar)) | |
198 | 198 | then au | |
199 | 199 | else throw("List size exceeds 10") | |
200 | 200 | ||
201 | 201 | aw(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
202 | 202 | } | |
203 | 203 | let ad = ap._1 | |
204 | 204 | let ae = ap._2 | |
205 | 205 | let ax = if (if ((am == "replenishWithTwoTokens")) | |
206 | 206 | then (size(ao) == 3) | |
207 | 207 | else false) | |
208 | 208 | then [ao[2]] | |
209 | 209 | else if (if ((am == "replenishWithOneToken")) | |
210 | 210 | then (size(ao) == 2) | |
211 | 211 | else false) | |
212 | 212 | then [ao[1]] | |
213 | 213 | else nil | |
214 | 214 | let ay = { | |
215 | 215 | let az = reentrantInvoke(D, am, [L, an, ad, ae], ax) | |
216 | 216 | if ($isInstanceOf(az, "(List[Any], List[Any])")) | |
217 | 217 | then az | |
218 | 218 | else throw(($getType(az) + " couldn't be cast to (List[Any], List[Any])")) | |
219 | 219 | } | |
220 | 220 | if ((ay == ay)) | |
221 | 221 | then { | |
222 | 222 | let aA = ay._2 | |
223 | 223 | let aB = ay._1 | |
224 | 224 | let aC = { | |
225 | 225 | let aq = aA | |
226 | 226 | let ar = size(aq) | |
227 | 227 | let as = nil | |
228 | 228 | func aD (au,av) = if ((av >= ar)) | |
229 | 229 | then au | |
230 | 230 | else aj(au, aq[av]) | |
231 | 231 | ||
232 | 232 | func aE (au,av) = if ((av >= ar)) | |
233 | 233 | then au | |
234 | 234 | else throw("List size exceeds 10") | |
235 | 235 | ||
236 | 236 | aE(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
237 | 237 | } | |
238 | 238 | let aF = { | |
239 | 239 | let aq = aB | |
240 | 240 | let ar = size(aq) | |
241 | 241 | let as = nil | |
242 | 242 | func aG (au,av) = if ((av >= ar)) | |
243 | 243 | then au | |
244 | 244 | else af(au, aq[av]) | |
245 | 245 | ||
246 | 246 | func aH (au,av) = if ((av >= ar)) | |
247 | 247 | then au | |
248 | 248 | else throw("List size exceeds 15") | |
249 | 249 | ||
250 | 250 | aH(aG(aG(aG(aG(aG(aG(aG(aG(aG(aG(aG(aG(aG(aG(aG(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
251 | 251 | } | |
252 | 252 | $Tuple2(aF, aC) | |
253 | 253 | } | |
254 | 254 | else throw("Strict value is not equal to itself.") | |
255 | 255 | }) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(aI) | |
259 | 259 | func callFunction (am,an) = al(am, aI.caller.bytes, an, aI.payments) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | ||
263 | 263 | @Callable(aI) | |
264 | 264 | func shutdown () = valueOrElse(M(aI.callerPublicKey), if (!(I)) | |
265 | 265 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified"))) | |
266 | 266 | else O("Paused by admin")) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | ||
270 | 270 | @Callable(aI) | |
271 | 271 | func activate () = valueOrElse(M(aI.callerPublicKey), if (I) | |
272 | 272 | then throw("DApp is already active") | |
273 | 273 | else [BooleanEntry(a, true), DeleteEntry(c)]) | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | ||
277 | 277 | @Callable(aI) | |
278 | - | func stakeUnstake (R,U,aJ) = valueOrElse(J(), if ((aI.caller != D)) | |
279 | - | then throw("Only global Contract can invoke this function") | |
280 | - | else if ((aJ == "WAVES")) | |
281 | - | then { | |
282 | - | let aK = addressFromStringValue(valueOrErrorMessage(getString(r, f), "No leasing pool in oracle")) | |
283 | - | let aL = getBinary(this, h) | |
284 | - | let aM = valueOrElse(getInteger(this, g), 0) | |
285 | - | let aN = if (R) | |
286 | - | then (aM + U) | |
287 | - | else (aM - U) | |
288 | - | let aO = Lease(aK, aN) | |
289 | - | let aP = calculateLeaseId(aO) | |
290 | - | let aQ = [aO, BinaryEntry(h, aP), IntegerEntry(g, aN)] | |
291 | - | let u = aL | |
292 | - | if ($isInstanceOf(u, "ByteVector")) | |
293 | - | then { | |
294 | - | let aR = u | |
295 | - | ([LeaseCancel(aR)] ++ aQ) | |
296 | - | } | |
297 | - | else aQ | |
298 | - | } | |
299 | - | else { | |
300 | - | let aS = T(R, U, fromBase58String(aJ)) | |
301 | - | let W = aS._1 | |
302 | - | let aT = aS._2 | |
303 | - | let aU = aS._3 | |
304 | - | let ao = aS._4 | |
305 | - | let aV = invoke(aT, W, aU, ao) | |
306 | - | if ((aV == aV)) | |
307 | - | then nil | |
308 | - | else throw("Strict value is not equal to itself.") | |
309 | - | }) | |
278 | + | func stakeUnstake (R,U,aJ) = valueOrElse(K(aI.caller), valueOrElse(J(), if ((aJ == "WAVES")) | |
279 | + | then { | |
280 | + | let aK = addressFromStringValue(valueOrErrorMessage(getString(r, f), "No leasing pool in oracle")) | |
281 | + | let aL = getBinary(this, h) | |
282 | + | let aM = valueOrElse(getInteger(this, g), 0) | |
283 | + | let aN = if (R) | |
284 | + | then (aM + U) | |
285 | + | else (aM - U) | |
286 | + | let aO = Lease(aK, aN) | |
287 | + | let aP = calculateLeaseId(aO) | |
288 | + | let aQ = [aO, BinaryEntry(h, aP), IntegerEntry(g, aN)] | |
289 | + | let u = aL | |
290 | + | if ($isInstanceOf(u, "ByteVector")) | |
291 | + | then { | |
292 | + | let aR = u | |
293 | + | ([LeaseCancel(aR)] ++ aQ) | |
294 | + | } | |
295 | + | else aQ | |
296 | + | } | |
297 | + | else { | |
298 | + | let aS = T(R, U, fromBase58String(aJ)) | |
299 | + | let W = aS._1 | |
300 | + | let aT = aS._2 | |
301 | + | let aU = aS._3 | |
302 | + | let ao = aS._4 | |
303 | + | let aV = invoke(aT, W, aU, ao) | |
304 | + | if ((aV == aV)) | |
305 | + | then nil | |
306 | + | else throw("Strict value is not equal to itself.") | |
307 | + | })) | |
308 | + | ||
309 | + | ||
310 | + | ||
311 | + | @Callable(aI) | |
312 | + | func claimNetrinoRewards () = valueOrElse(K(aI.caller), valueOrElse(J(), { | |
313 | + | let aV = invoke(B, "claimRewards", nil, nil) | |
314 | + | if ((aV == aV)) | |
315 | + | then $Tuple2(nil, aV) | |
316 | + | else throw("Strict value is not equal to itself.") | |
317 | + | })) | |
310 | 318 | ||
311 | 319 | ||
312 | 320 | ||
313 | 321 | @Callable(aI) | |
314 | 322 | func reissueShareToken (U) = valueOrElse(K(aI.caller), valueOrElse(J(), { | |
315 | 323 | let aW = fromBase58String(getStringValue(this, q)) | |
316 | 324 | [Reissue(aW, U, true), ScriptTransfer(aI.caller, U, aW)] | |
317 | 325 | })) | |
318 | 326 | ||
319 | 327 | ||
320 | 328 | ||
321 | 329 | @Callable(aI) | |
322 | 330 | func replenishWithTwoTokens (aX) = al("replenishWithTwoTokens", aI.caller.bytes, ["false", "0"], aI.payments) | |
323 | 331 | ||
324 | 332 | ||
325 | 333 | ||
326 | 334 | @Callable(aI) | |
327 | 335 | func withdraw () = al("withdraw", aI.caller.bytes, ["0"], aI.payments) | |
328 | 336 | ||
329 | 337 | ||
330 | 338 | ||
331 | 339 | @Callable(aI) | |
332 | 340 | func exchange (aY) = al("exchange", aI.caller.bytes, [toString(aY)], aI.payments) | |
333 | 341 | ||
334 | 342 | ||
335 | 343 | @Verifier(aZ) | |
336 | 344 | func ba () = { | |
337 | 345 | let bb = { | |
338 | 346 | let bc = if (sigVerify(aZ.bodyBytes, aZ.proofs[0], x)) | |
339 | 347 | then 1 | |
340 | 348 | else 0 | |
341 | 349 | let bd = if (sigVerify(aZ.bodyBytes, aZ.proofs[1], y)) | |
342 | 350 | then 1 | |
343 | 351 | else 0 | |
344 | 352 | let be = if (sigVerify(aZ.bodyBytes, aZ.proofs[2], z)) | |
345 | 353 | then 1 | |
346 | 354 | else 0 | |
347 | 355 | (((bc + bd) + be) >= 2) | |
348 | 356 | } | |
349 | 357 | bb | |
350 | 358 | } | |
351 | 359 |
github/deemru/w8io/026f985 50.63 ms ◑