tx · Hj51uVbHbKDdX5Xot2jSaJeb8PHdHgE9ZeB22nWnpnVh 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi: -0.04000000 Waves 2022.09.23 16:33 [2241852] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves
{ "type": 13, "id": "Hj51uVbHbKDdX5Xot2jSaJeb8PHdHgE9ZeB22nWnpnVh", "fee": 4000000, "feeAssetId": null, "timestamp": 1663940059617, "version": 1, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "2JjURABWqxBEi4weZoMHqs7npyMYTTURxLUwNW7NL5XnJ1H8JSf6xPgyEm8rQhZvvnmGLzQhmEJkbP4xhgVqeM1m", "25vsoUYQRydM9EuR8Qy2yb6U1j9yRm1AMa1CKBxUSfBjqv9TPXuVFMwGfqMGJUbEtLuRJBzi7qo2JVM5uZNQTCkX", "3uwWw3kd8uF7MWYM9tTt91wEL7efmxo9riYP3DaQ4yNAYtY75U3HvFr9QFYzMw3g9f6g9b22j2z14KWQA6jUhdxR" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAABeAAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAAAA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2241852, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HryhGkGQ4wsumQgUB5mtqa3SKHorT4xmBEML2My3VyzK Next: VEPQQHqPxXmpiXMuVjJV1E1eTmp3cew7HqihegcBMSx Diff:
Old | New | Differences | |
---|---|---|---|
112 | 112 | func W () = "price" | |
113 | 113 | ||
114 | 114 | ||
115 | - | func X (Y,Z) = valueOrErrorMessage(getString(Y, Z), makeString(["mandatory ", toString(Y), ".", Z, " is not defined"], "")) | |
115 | + | let X = "rpd_balance" | |
116 | + | ||
117 | + | func Y (Z,aa) = makeString([X, aa, Z], "_") | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func ab (ac,ad) = valueOrErrorMessage(getString(ac, ad), makeString(["mandatory ", toString(ac), ".", ad, " is not defined"], "")) | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
123 | + | func ae (ac,ad) = valueOrErrorMessage(getInteger(ac, ad), makeString(["mandatory ", toString(ac), ".", ad, " is not defined"], "")) | |
122 | 124 | ||
123 | 125 | ||
124 | - | func | |
126 | + | func af (ac,ad) = valueOrElse(getInteger(ac, ad), 0) | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func ag (ac,ad) = valueOrErrorMessage(getBoolean(ac, ad), makeString(["mandatory ", toString(ac), ".", ad, " is not defined"], "")) | |
128 | 130 | ||
129 | 131 | ||
130 | - | func | |
132 | + | func ah (ai,aj) = fraction(ai, j, aj) | |
131 | 133 | ||
132 | 134 | ||
133 | - | func | |
135 | + | func ak (ai,aj) = fraction(ai, aj, j) | |
134 | 136 | ||
135 | 137 | ||
136 | - | func | |
138 | + | func al (am,an) = fraction(toBigInt(am), m, toBigInt(an)) | |
137 | 139 | ||
138 | 140 | ||
139 | - | func an (al) = { | |
140 | - | let ao = al | |
141 | - | if ($isInstanceOf(ao, "List[Any]")) | |
141 | + | func ao (ap,aq) = toInt(fraction(ap, toBigInt(aq), m)) | |
142 | + | ||
143 | + | ||
144 | + | func ar (ap) = { | |
145 | + | let as = ap | |
146 | + | if ($isInstanceOf(as, "List[Any]")) | |
142 | 147 | then { | |
143 | - | let | |
144 | - | | |
148 | + | let at = as | |
149 | + | at | |
145 | 150 | } | |
146 | 151 | else throw("fail to cast into List[Any]") | |
147 | 152 | } | |
148 | 153 | ||
149 | 154 | ||
150 | - | func | |
151 | - | let | |
152 | - | if ($isInstanceOf( | |
155 | + | func au (ap) = { | |
156 | + | let as = ap | |
157 | + | if ($isInstanceOf(as, "Int")) | |
153 | 158 | then { | |
154 | - | let | |
155 | - | | |
159 | + | let av = as | |
160 | + | av | |
156 | 161 | } | |
157 | 162 | else throw("fail to cast into Int") | |
158 | 163 | } | |
159 | 164 | ||
160 | 165 | ||
161 | - | func | |
162 | - | let | |
163 | - | if ($isInstanceOf( | |
166 | + | func aw (ap) = { | |
167 | + | let as = ap | |
168 | + | if ($isInstanceOf(as, "String")) | |
164 | 169 | then { | |
165 | - | let | |
166 | - | | |
170 | + | let ax = as | |
171 | + | ax | |
167 | 172 | } | |
168 | 173 | else throw("fail to cast into String") | |
169 | 174 | } | |
170 | 175 | ||
171 | 176 | ||
172 | - | let | |
177 | + | let ay = 1 | |
173 | 178 | ||
174 | - | let | |
179 | + | let az = 2 | |
175 | 180 | ||
176 | - | let | |
181 | + | let aA = 3 | |
177 | 182 | ||
178 | - | let | |
183 | + | let aB = 4 | |
179 | 184 | ||
180 | - | let | |
185 | + | let aC = 5 | |
181 | 186 | ||
182 | - | let | |
187 | + | let aD = 6 | |
183 | 188 | ||
184 | - | let | |
189 | + | let aE = 7 | |
185 | 190 | ||
186 | - | let | |
191 | + | let aF = 8 | |
187 | 192 | ||
188 | - | let | |
193 | + | let aG = 9 | |
189 | 194 | ||
190 | - | func | |
195 | + | func aH () = "%s%s__config__controlAddress" | |
191 | 196 | ||
192 | 197 | ||
193 | - | func | |
198 | + | func aI () = "%s__controlConfig" | |
194 | 199 | ||
195 | 200 | ||
196 | - | func | |
201 | + | func aJ (aK) = split(ab(aK, aI()), d) | |
197 | 202 | ||
198 | 203 | ||
199 | - | func | |
204 | + | func aL (aM,aN) = valueOrErrorMessage(addressFromString(aM[aN]), ("Control cfg doesn't contain address at index " + toString(aN))) | |
200 | 205 | ||
201 | 206 | ||
202 | - | let | |
207 | + | let aO = addressFromStringValue(valueOrElse(getString(this, aH()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
203 | 208 | ||
204 | - | let | |
209 | + | let aM = aJ(aO) | |
205 | 210 | ||
206 | - | let | |
211 | + | let aP = aL(aM, ay) | |
207 | 212 | ||
208 | - | let | |
213 | + | let aQ = aL(aM, az) | |
209 | 214 | ||
210 | - | let | |
215 | + | let aR = aL(aM, aC) | |
211 | 216 | ||
212 | - | let | |
217 | + | let aS = aL(aM, aA) | |
213 | 218 | ||
214 | - | let | |
219 | + | let aT = ab(aP, M()) | |
215 | 220 | ||
216 | - | let | |
221 | + | let aU = fromBase58String(aT) | |
217 | 222 | ||
218 | - | let | |
223 | + | let aV = fromBase58String(getStringValue(aP, N())) | |
219 | 224 | ||
220 | - | let | |
225 | + | let aW = fromBase58String(getStringValue(aQ, O())) | |
221 | 226 | ||
222 | - | let aT = valueOrElse(getInteger(aL, Q()), 0) | |
227 | + | func aX () = { | |
228 | + | let aY = valueOrElse(getString(aO, "%s%s__control__outOfMarketAddressList"), "") | |
229 | + | if ((aY == "")) | |
230 | + | then 0 | |
231 | + | else { | |
232 | + | func aZ (ba,bb) = ((ba + valueOrElse(getInteger(aS, Y(bb, aT)), 0)) + assetBalance(addressFromStringValue(bb), aU)) | |
223 | 233 | ||
224 | - | let aU = (wavesBalance(aL).regular - aT) | |
234 | + | let bc = split(aY, d) | |
235 | + | let bd = size(bc) | |
236 | + | let be = 0 | |
237 | + | func bf (bg,bh) = if ((bh >= bd)) | |
238 | + | then bg | |
239 | + | else aZ(bg, bc[bh]) | |
225 | 240 | ||
226 | - | let aV = ag(aU, aR) | |
241 | + | func bi (bg,bh) = if ((bh >= bd)) | |
242 | + | then bg | |
243 | + | else throw("List size exceeds 4") | |
227 | 244 | ||
228 | - | let aW = (((aS + value(assetInfo(aO)).quantity) - assetBalance(aL, aO)) - assetBalance(aN, aO)) | |
245 | + | bi(bf(bf(bf(bf(be, 0), 1), 2), 3), 4) | |
246 | + | } | |
247 | + | } | |
229 | 248 | ||
230 | - | let aX = if ((aW == 0)) | |
249 | + | ||
250 | + | let bj = getIntegerValue(aO, W()) | |
251 | + | ||
252 | + | let bk = valueOrElse(getInteger(aP, R()), 0) | |
253 | + | ||
254 | + | let bl = valueOrElse(getInteger(aP, Q()), 0) | |
255 | + | ||
256 | + | let bm = (wavesBalance(aP).regular - bl) | |
257 | + | ||
258 | + | let bn = ak(bm, bj) | |
259 | + | ||
260 | + | let bo = 1000000000000 | |
261 | + | ||
262 | + | let bp = (((bk + value(assetInfo(aU)).quantity) - assetBalance(aP, aU)) - assetBalance(aR, aU)) | |
263 | + | ||
264 | + | let bq = (bp - bo) | |
265 | + | ||
266 | + | let br = if ((bq == 0)) | |
231 | 267 | then 0 | |
232 | - | else fraction( | |
268 | + | else fraction(bn, h, bq) | |
233 | 269 | ||
234 | - | @Callable( | |
235 | - | func constructor ( | |
270 | + | @Callable(bs) | |
271 | + | func constructor (bt,bu,bv) = if ((bs.caller != this)) | |
236 | 272 | then throw("not authorized") | |
237 | - | else [StringEntry(H(), | |
273 | + | else [StringEntry(H(), bt), IntegerEntry(I(), bv)] | |
238 | 274 | ||
239 | 275 | ||
240 | 276 | ||
241 | - | @Callable( | |
242 | - | func calcSwapLimitREADONLY ( | |
243 | - | let | |
277 | + | @Callable(bs) | |
278 | + | func calcSwapLimitREADONLY (bw) = { | |
279 | + | let bx = if ((0 >= bw)) | |
244 | 280 | then 0 | |
245 | 281 | else { | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | toInt(fraction( | |
282 | + | let by = toBigInt(ae(this, I())) | |
283 | + | let bz = toBigInt(ae(this, J())) | |
284 | + | let bA = pow(toBigInt(bw), 6, bz, 16, 8, CEILING) | |
285 | + | toInt(fraction(by, bA, l)) | |
250 | 286 | } | |
251 | - | let | |
252 | - | let | |
287 | + | let bB = ah(bx, bj) | |
288 | + | let bC = if ((0 >= bw)) | |
253 | 289 | then 0 | |
254 | 290 | else { | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | toInt(fraction(fraction( | |
291 | + | let by = toBigInt(ae(this, K())) | |
292 | + | let bz = toBigInt(ae(this, L())) | |
293 | + | let bD = toBigInt(br) | |
294 | + | let bA = pow(toBigInt(bw), 6, bz, 16, 8, CEILING) | |
295 | + | toInt(fraction(fraction(by, bA, l), bD, i)) | |
260 | 296 | } | |
261 | - | $Tuple2(nil, [ | |
297 | + | $Tuple2(nil, [bx, bB, bC]) | |
262 | 298 | } | |
263 | 299 | ||
264 | 300 | ||
265 | 301 | ||
266 | - | @Callable( | |
267 | - | func calculateKREADONLY ( | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | if (( | |
275 | - | then throw((("BR=" + toString( | |
302 | + | @Callable(bs) | |
303 | + | func calculateKREADONLY (bE,bF,aj,bG,bH) = { | |
304 | + | let bI = toBigInt(2718281) | |
305 | + | let bJ = 6 | |
306 | + | let bK = valueOrElse(getInteger(aQ, "nsbtCurveParam_a"), 3) | |
307 | + | let bL = valueOrElse(getInteger(aQ, "nsbtCurveParam_b"), ((3 * h) / 10)) | |
308 | + | let bM = ak(bE, aj) | |
309 | + | let bN = fraction(bM, j, bF) | |
310 | + | if ((bN > 10678564816)) | |
311 | + | then throw((("BR=" + toString(bN)) + " > 10678.564816% will overflow exponent")) | |
276 | 312 | else { | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | $Tuple2(nil, [ | |
313 | + | let bO = (bK * (bN - j)) | |
314 | + | let bP = pow(bI, bJ, toBigInt(bO), b, c, DOWN) | |
315 | + | let bQ = fraction(toBigInt(bL), bP, i) | |
316 | + | $Tuple2(nil, [bK, bL, bM, bN, bO, toString(bP), toString(bQ)]) | |
281 | 317 | } | |
282 | 318 | } | |
283 | 319 | ||
284 | 320 | ||
285 | 321 | ||
286 | - | @Callable( | |
287 | - | func curveFunctionREADONLY ( | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | $Tuple2(nil, [bG, | |
322 | + | @Callable(bs) | |
323 | + | func curveFunctionREADONLY (bR) = { | |
324 | + | let bS = ar(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
325 | + | let aj = au(bS[v]) | |
326 | + | let bE = au(bS[y]) | |
327 | + | let bF = au(bS[A]) | |
328 | + | let bH = au(bS[E]) | |
329 | + | let bG = au(bS[F]) | |
330 | + | let bT = ar(invoke(this, "calculateKREADONLY", [bE, bF, aj, bG, bH], nil)) | |
331 | + | let bQ = parseBigIntValue(aw(bT[u])) | |
332 | + | let bU = ak(bR, aj) | |
333 | + | let bV = toBigInt(bG) | |
334 | + | let bW = toBigInt((bG - bH)) | |
335 | + | let bX = fraction(toBigInt(bU), m, bQ) | |
336 | + | let bY = fraction(bX, bW, bV) | |
337 | + | let bZ = toInt(fraction(bW, bV, (bY + bV))) | |
338 | + | let ca = ((bG - bH) - bZ) | |
339 | + | $Tuple2(nil, [ca, bU, bE, bF, bG, bH, au(bT[o]), au(bT[p]), au(bT[q]), aj, au(bT[r]), au(bT[s]), bT[t], bT[u], toString(bX), toString(bY), bZ]) | |
304 | 340 | } | |
305 | 341 | ||
306 | 342 | ||
307 | 343 | ||
308 | - | @Callable( | |
309 | - | func surfFunctionREADONLY ( | |
344 | + | @Callable(bs) | |
345 | + | func surfFunctionREADONLY (ai,aa) = if ((0 > ai)) | |
310 | 346 | then throw("amount should be positive") | |
311 | 347 | else { | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | if (( | |
318 | - | then throw((("BR = " + toString( | |
348 | + | let aj = bj | |
349 | + | let cb = toBigInt(aj) | |
350 | + | let cc = toBigInt(bm) | |
351 | + | let cd = bq | |
352 | + | let ce = toBigInt(cd) | |
353 | + | if ((br >= h)) | |
354 | + | then throw((("BR = " + toString(br)) + ", cannot buy SURF")) | |
319 | 355 | else { | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | then if (( | |
324 | - | then | |
325 | - | else | |
326 | - | else if (( | |
327 | - | then if (( | |
328 | - | then | |
329 | - | else | |
356 | + | let cf = (fraction(cd, j, aj) - bm) | |
357 | + | let cg = (cd - fraction(bm, aj, j)) | |
358 | + | let ch = if ((aa == aU)) | |
359 | + | then if ((ai > cg)) | |
360 | + | then cg | |
361 | + | else ai | |
362 | + | else if ((aa == n)) | |
363 | + | then if ((ai > cf)) | |
364 | + | then cf | |
365 | + | else ai | |
330 | 366 | else 0 | |
331 | - | let | |
332 | - | if (( | |
333 | - | then $Tuple2(nil, [toInt(fraction(fraction( | |
334 | - | else if (( | |
335 | - | then $Tuple2(nil, [toInt(fraction( | |
367 | + | let ci = toBigInt(ch) | |
368 | + | if ((aa == aU)) | |
369 | + | then $Tuple2(nil, [toInt(fraction(fraction(ci, k, cb), (ce - (ci / g)), cc)), 0, ch, bm, cd, br, bm, (cd - ch), fraction(ak(bm, aj), h, (cd - ch)), (ai - ch), aj]) | |
370 | + | else if ((aa == n)) | |
371 | + | then $Tuple2(nil, [toInt(fraction(ce, log(fraction((cc + ci), m, cc), 16, f, 16, 16, HALFUP), m)), ch, 0, bm, cd, br, (bm + ch), cd, fraction(ak((bm + ch), aj), h, cd), (ai - ch), aj]) | |
336 | 372 | else throw("Unsupported asset") | |
337 | 373 | } | |
338 | 374 | } | |
339 | 375 | ||
340 | 376 | ||
341 | 377 | ||
342 | - | @Callable( | |
343 | - | func calcContractNsbtPriceSYSREADONLY ( | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | $Tuple2(nil, [ | |
378 | + | @Callable(bs) | |
379 | + | func calcContractNsbtPriceSYSREADONLY (cj) = { | |
380 | + | let bS = ar(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
381 | + | let aj = au(bS[v]) | |
382 | + | let bE = au(bS[y]) | |
383 | + | let bF = (au(bS[A]) - cj) | |
384 | + | let bH = (au(bS[E]) + cj) | |
385 | + | let bG = au(bS[F]) | |
386 | + | let bT = ar(invoke(this, "calculateKREADONLY", [bE, bF, aj, bG, bH], nil)) | |
387 | + | let ck = parseBigIntValue(aw(bT[u])) | |
388 | + | let cl = fraction(toBigInt(bG), m, toBigInt((bG - bH))) | |
389 | + | let cm = fraction(cl, cl, m) | |
390 | + | let cn = fraction(ck, cm, m) | |
391 | + | let co = toInt(fraction(cn, toBigInt(h), m)) | |
392 | + | let cp = fraction(co, h, aj) | |
393 | + | $Tuple2(nil, [co, cp]) | |
358 | 394 | } | |
359 | 395 | ||
360 | 396 | ||
361 | 397 | ||
362 | - | @Callable( | |
398 | + | @Callable(bs) | |
363 | 399 | func calcNeutinoMetricsREADONLY () = { | |
364 | - | let bX = (aV - aW) | |
365 | - | let bY = (aW - aV) | |
366 | - | let bZ = if ((aW == 0)) | |
367 | - | then 0 | |
368 | - | else (fraction(bX, h, aW) * 100) | |
369 | - | let ca = value(assetInfo(aP)).quantity | |
370 | - | let cb = (ca - assetBalance(aM, aP)) | |
371 | - | let cc = value(assetInfo(aQ)).quantity | |
372 | - | $Tuple2(nil, [aR, aS, aT, aU, aV, aW, bX, bZ, aX, cb, ca, cc]) | |
400 | + | let cq = value(assetInfo(aV)).quantity | |
401 | + | let cr = (cq - assetBalance(aQ, aV)) | |
402 | + | let cs = value(assetInfo(aW)).quantity | |
403 | + | $Tuple2(nil, [bj, bk, bl, bm, bn, bq, bo, bp, br, cr, cq, cs]) | |
373 | 404 | } | |
374 | 405 | ||
375 | 406 | ||
376 | 407 | ||
377 | - | @Callable( | |
378 | - | func getUnstakeComissionAmountREADONLY ( | |
408 | + | @Callable(bs) | |
409 | + | func getUnstakeComissionAmountREADONLY (ai,ct,cu) = $Tuple2(nil, fraction(ai, pow(2, 0, fraction(-((height - ct)), j, cu), 8, 8, HALFUP), j)) | |
379 | 410 | ||
380 | 411 | ||
381 | 412 | ||
382 | - | @Callable( | |
383 | - | func mergeStakesREADONLY ( | |
384 | - | let | |
385 | - | let | |
386 | - | $Tuple2(nil, ( | |
413 | + | @Callable(bs) | |
414 | + | func mergeStakesREADONLY (cv,cw,cx,cy,cu) = { | |
415 | + | let cz = fraction(cx, pow(2, 0, fraction((cy - cw), j, cu), 8, 8, HALFUP), j) | |
416 | + | let cA = fraction((cv + cx), j, (cv + cz)) | |
417 | + | $Tuple2(nil, (cw + ((e - (cu * log(cA, 8, 2, 0, 8, HALFUP))) / j))) | |
387 | 418 | } | |
388 | 419 | ||
389 | 420 | ||
390 | - | @Verifier( | |
391 | - | func | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
421 | + | @Verifier(cB) | |
422 | + | func cC () = { | |
423 | + | let cD = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d) | |
424 | + | let cE = split(valueOrElse(getString(aO, "%s__multisig"), cD), d) | |
425 | + | let cF = ((((if (sigVerify(cB.bodyBytes, cB.proofs[0], fromBase58String(cE[0]))) | |
395 | 426 | then 1 | |
396 | - | else 0) + (if (sigVerify( | |
427 | + | else 0) + (if (sigVerify(cB.bodyBytes, cB.proofs[1], fromBase58String(cE[1]))) | |
397 | 428 | then 1 | |
398 | - | else 0)) + (if (sigVerify( | |
429 | + | else 0)) + (if (sigVerify(cB.bodyBytes, cB.proofs[2], fromBase58String(cE[2]))) | |
399 | 430 | then 1 | |
400 | - | else 0)) + (if (sigVerify( | |
431 | + | else 0)) + (if (sigVerify(cB.bodyBytes, cB.proofs[3], fromBase58String(cE[3]))) | |
401 | 432 | then 2 | |
402 | 433 | else 0)) | |
403 | - | ( | |
434 | + | (cF >= 3) | |
404 | 435 | } | |
405 | 436 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "" | |
5 | 5 | ||
6 | 6 | let b = 8 | |
7 | 7 | ||
8 | 8 | let c = 16 | |
9 | 9 | ||
10 | 10 | let d = "__" | |
11 | 11 | ||
12 | 12 | let e = 50000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(27182818284590452) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = 1000000 | |
19 | 19 | ||
20 | 20 | let i = toBigInt(1000000) | |
21 | 21 | ||
22 | 22 | let j = 100000000 | |
23 | 23 | ||
24 | 24 | let k = toBigInt(100000000) | |
25 | 25 | ||
26 | 26 | let l = toBigInt(10000000000) | |
27 | 27 | ||
28 | 28 | let m = toBigInt(10000000000000000) | |
29 | 29 | ||
30 | 30 | let n = fromBase58String("WAVES") | |
31 | 31 | ||
32 | 32 | let o = 0 | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 5 | |
43 | 43 | ||
44 | 44 | let u = 6 | |
45 | 45 | ||
46 | 46 | let v = 0 | |
47 | 47 | ||
48 | 48 | let w = 1 | |
49 | 49 | ||
50 | 50 | let x = 2 | |
51 | 51 | ||
52 | 52 | let y = 3 | |
53 | 53 | ||
54 | 54 | let z = 4 | |
55 | 55 | ||
56 | 56 | let A = 5 | |
57 | 57 | ||
58 | 58 | let B = 6 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | let D = 8 | |
63 | 63 | ||
64 | 64 | let E = 9 | |
65 | 65 | ||
66 | 66 | let F = 10 | |
67 | 67 | ||
68 | 68 | let G = 11 | |
69 | 69 | ||
70 | 70 | func H () = "%s%s__config__neutrinoAddress" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func I () = "%s%s__config__swapAParam" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func J () = "%s%s__config__swapBParam" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func K () = "%s%s__config__usdnSwapAParam" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func L () = "%s%s__config__usdnSwapBParam" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func M () = "neutrino_asset_id" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func N () = "bond_asset_id" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func O () = "surf_asset_id" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func P () = "balance_lock_" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func Q () = (P() + "waves") | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func R () = (P() + "neutrino") | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func S () = "swaps_timeframe" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func T (U) = makeString(["%s%s", "userLastQuickSwapHeight", U], d) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func V (U) = makeString(["%s%s", "quickSwapUserSpentInPeriod", U], d) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func W () = "price" | |
113 | 113 | ||
114 | 114 | ||
115 | - | func X (Y,Z) = valueOrErrorMessage(getString(Y, Z), makeString(["mandatory ", toString(Y), ".", Z, " is not defined"], "")) | |
115 | + | let X = "rpd_balance" | |
116 | + | ||
117 | + | func Y (Z,aa) = makeString([X, aa, Z], "_") | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func ab (ac,ad) = valueOrErrorMessage(getString(ac, ad), makeString(["mandatory ", toString(ac), ".", ad, " is not defined"], "")) | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
123 | + | func ae (ac,ad) = valueOrErrorMessage(getInteger(ac, ad), makeString(["mandatory ", toString(ac), ".", ad, " is not defined"], "")) | |
122 | 124 | ||
123 | 125 | ||
124 | - | func | |
126 | + | func af (ac,ad) = valueOrElse(getInteger(ac, ad), 0) | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func ag (ac,ad) = valueOrErrorMessage(getBoolean(ac, ad), makeString(["mandatory ", toString(ac), ".", ad, " is not defined"], "")) | |
128 | 130 | ||
129 | 131 | ||
130 | - | func | |
132 | + | func ah (ai,aj) = fraction(ai, j, aj) | |
131 | 133 | ||
132 | 134 | ||
133 | - | func | |
135 | + | func ak (ai,aj) = fraction(ai, aj, j) | |
134 | 136 | ||
135 | 137 | ||
136 | - | func | |
138 | + | func al (am,an) = fraction(toBigInt(am), m, toBigInt(an)) | |
137 | 139 | ||
138 | 140 | ||
139 | - | func an (al) = { | |
140 | - | let ao = al | |
141 | - | if ($isInstanceOf(ao, "List[Any]")) | |
141 | + | func ao (ap,aq) = toInt(fraction(ap, toBigInt(aq), m)) | |
142 | + | ||
143 | + | ||
144 | + | func ar (ap) = { | |
145 | + | let as = ap | |
146 | + | if ($isInstanceOf(as, "List[Any]")) | |
142 | 147 | then { | |
143 | - | let | |
144 | - | | |
148 | + | let at = as | |
149 | + | at | |
145 | 150 | } | |
146 | 151 | else throw("fail to cast into List[Any]") | |
147 | 152 | } | |
148 | 153 | ||
149 | 154 | ||
150 | - | func | |
151 | - | let | |
152 | - | if ($isInstanceOf( | |
155 | + | func au (ap) = { | |
156 | + | let as = ap | |
157 | + | if ($isInstanceOf(as, "Int")) | |
153 | 158 | then { | |
154 | - | let | |
155 | - | | |
159 | + | let av = as | |
160 | + | av | |
156 | 161 | } | |
157 | 162 | else throw("fail to cast into Int") | |
158 | 163 | } | |
159 | 164 | ||
160 | 165 | ||
161 | - | func | |
162 | - | let | |
163 | - | if ($isInstanceOf( | |
166 | + | func aw (ap) = { | |
167 | + | let as = ap | |
168 | + | if ($isInstanceOf(as, "String")) | |
164 | 169 | then { | |
165 | - | let | |
166 | - | | |
170 | + | let ax = as | |
171 | + | ax | |
167 | 172 | } | |
168 | 173 | else throw("fail to cast into String") | |
169 | 174 | } | |
170 | 175 | ||
171 | 176 | ||
172 | - | let | |
177 | + | let ay = 1 | |
173 | 178 | ||
174 | - | let | |
179 | + | let az = 2 | |
175 | 180 | ||
176 | - | let | |
181 | + | let aA = 3 | |
177 | 182 | ||
178 | - | let | |
183 | + | let aB = 4 | |
179 | 184 | ||
180 | - | let | |
185 | + | let aC = 5 | |
181 | 186 | ||
182 | - | let | |
187 | + | let aD = 6 | |
183 | 188 | ||
184 | - | let | |
189 | + | let aE = 7 | |
185 | 190 | ||
186 | - | let | |
191 | + | let aF = 8 | |
187 | 192 | ||
188 | - | let | |
193 | + | let aG = 9 | |
189 | 194 | ||
190 | - | func | |
195 | + | func aH () = "%s%s__config__controlAddress" | |
191 | 196 | ||
192 | 197 | ||
193 | - | func | |
198 | + | func aI () = "%s__controlConfig" | |
194 | 199 | ||
195 | 200 | ||
196 | - | func | |
201 | + | func aJ (aK) = split(ab(aK, aI()), d) | |
197 | 202 | ||
198 | 203 | ||
199 | - | func | |
204 | + | func aL (aM,aN) = valueOrErrorMessage(addressFromString(aM[aN]), ("Control cfg doesn't contain address at index " + toString(aN))) | |
200 | 205 | ||
201 | 206 | ||
202 | - | let | |
207 | + | let aO = addressFromStringValue(valueOrElse(getString(this, aH()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
203 | 208 | ||
204 | - | let | |
209 | + | let aM = aJ(aO) | |
205 | 210 | ||
206 | - | let | |
211 | + | let aP = aL(aM, ay) | |
207 | 212 | ||
208 | - | let | |
213 | + | let aQ = aL(aM, az) | |
209 | 214 | ||
210 | - | let | |
215 | + | let aR = aL(aM, aC) | |
211 | 216 | ||
212 | - | let | |
217 | + | let aS = aL(aM, aA) | |
213 | 218 | ||
214 | - | let | |
219 | + | let aT = ab(aP, M()) | |
215 | 220 | ||
216 | - | let | |
221 | + | let aU = fromBase58String(aT) | |
217 | 222 | ||
218 | - | let | |
223 | + | let aV = fromBase58String(getStringValue(aP, N())) | |
219 | 224 | ||
220 | - | let | |
225 | + | let aW = fromBase58String(getStringValue(aQ, O())) | |
221 | 226 | ||
222 | - | let aT = valueOrElse(getInteger(aL, Q()), 0) | |
227 | + | func aX () = { | |
228 | + | let aY = valueOrElse(getString(aO, "%s%s__control__outOfMarketAddressList"), "") | |
229 | + | if ((aY == "")) | |
230 | + | then 0 | |
231 | + | else { | |
232 | + | func aZ (ba,bb) = ((ba + valueOrElse(getInteger(aS, Y(bb, aT)), 0)) + assetBalance(addressFromStringValue(bb), aU)) | |
223 | 233 | ||
224 | - | let aU = (wavesBalance(aL).regular - aT) | |
234 | + | let bc = split(aY, d) | |
235 | + | let bd = size(bc) | |
236 | + | let be = 0 | |
237 | + | func bf (bg,bh) = if ((bh >= bd)) | |
238 | + | then bg | |
239 | + | else aZ(bg, bc[bh]) | |
225 | 240 | ||
226 | - | let aV = ag(aU, aR) | |
241 | + | func bi (bg,bh) = if ((bh >= bd)) | |
242 | + | then bg | |
243 | + | else throw("List size exceeds 4") | |
227 | 244 | ||
228 | - | let aW = (((aS + value(assetInfo(aO)).quantity) - assetBalance(aL, aO)) - assetBalance(aN, aO)) | |
245 | + | bi(bf(bf(bf(bf(be, 0), 1), 2), 3), 4) | |
246 | + | } | |
247 | + | } | |
229 | 248 | ||
230 | - | let aX = if ((aW == 0)) | |
249 | + | ||
250 | + | let bj = getIntegerValue(aO, W()) | |
251 | + | ||
252 | + | let bk = valueOrElse(getInteger(aP, R()), 0) | |
253 | + | ||
254 | + | let bl = valueOrElse(getInteger(aP, Q()), 0) | |
255 | + | ||
256 | + | let bm = (wavesBalance(aP).regular - bl) | |
257 | + | ||
258 | + | let bn = ak(bm, bj) | |
259 | + | ||
260 | + | let bo = 1000000000000 | |
261 | + | ||
262 | + | let bp = (((bk + value(assetInfo(aU)).quantity) - assetBalance(aP, aU)) - assetBalance(aR, aU)) | |
263 | + | ||
264 | + | let bq = (bp - bo) | |
265 | + | ||
266 | + | let br = if ((bq == 0)) | |
231 | 267 | then 0 | |
232 | - | else fraction( | |
268 | + | else fraction(bn, h, bq) | |
233 | 269 | ||
234 | - | @Callable( | |
235 | - | func constructor ( | |
270 | + | @Callable(bs) | |
271 | + | func constructor (bt,bu,bv) = if ((bs.caller != this)) | |
236 | 272 | then throw("not authorized") | |
237 | - | else [StringEntry(H(), | |
273 | + | else [StringEntry(H(), bt), IntegerEntry(I(), bv)] | |
238 | 274 | ||
239 | 275 | ||
240 | 276 | ||
241 | - | @Callable( | |
242 | - | func calcSwapLimitREADONLY ( | |
243 | - | let | |
277 | + | @Callable(bs) | |
278 | + | func calcSwapLimitREADONLY (bw) = { | |
279 | + | let bx = if ((0 >= bw)) | |
244 | 280 | then 0 | |
245 | 281 | else { | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | toInt(fraction( | |
282 | + | let by = toBigInt(ae(this, I())) | |
283 | + | let bz = toBigInt(ae(this, J())) | |
284 | + | let bA = pow(toBigInt(bw), 6, bz, 16, 8, CEILING) | |
285 | + | toInt(fraction(by, bA, l)) | |
250 | 286 | } | |
251 | - | let | |
252 | - | let | |
287 | + | let bB = ah(bx, bj) | |
288 | + | let bC = if ((0 >= bw)) | |
253 | 289 | then 0 | |
254 | 290 | else { | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | toInt(fraction(fraction( | |
291 | + | let by = toBigInt(ae(this, K())) | |
292 | + | let bz = toBigInt(ae(this, L())) | |
293 | + | let bD = toBigInt(br) | |
294 | + | let bA = pow(toBigInt(bw), 6, bz, 16, 8, CEILING) | |
295 | + | toInt(fraction(fraction(by, bA, l), bD, i)) | |
260 | 296 | } | |
261 | - | $Tuple2(nil, [ | |
297 | + | $Tuple2(nil, [bx, bB, bC]) | |
262 | 298 | } | |
263 | 299 | ||
264 | 300 | ||
265 | 301 | ||
266 | - | @Callable( | |
267 | - | func calculateKREADONLY ( | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | if (( | |
275 | - | then throw((("BR=" + toString( | |
302 | + | @Callable(bs) | |
303 | + | func calculateKREADONLY (bE,bF,aj,bG,bH) = { | |
304 | + | let bI = toBigInt(2718281) | |
305 | + | let bJ = 6 | |
306 | + | let bK = valueOrElse(getInteger(aQ, "nsbtCurveParam_a"), 3) | |
307 | + | let bL = valueOrElse(getInteger(aQ, "nsbtCurveParam_b"), ((3 * h) / 10)) | |
308 | + | let bM = ak(bE, aj) | |
309 | + | let bN = fraction(bM, j, bF) | |
310 | + | if ((bN > 10678564816)) | |
311 | + | then throw((("BR=" + toString(bN)) + " > 10678.564816% will overflow exponent")) | |
276 | 312 | else { | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | $Tuple2(nil, [ | |
313 | + | let bO = (bK * (bN - j)) | |
314 | + | let bP = pow(bI, bJ, toBigInt(bO), b, c, DOWN) | |
315 | + | let bQ = fraction(toBigInt(bL), bP, i) | |
316 | + | $Tuple2(nil, [bK, bL, bM, bN, bO, toString(bP), toString(bQ)]) | |
281 | 317 | } | |
282 | 318 | } | |
283 | 319 | ||
284 | 320 | ||
285 | 321 | ||
286 | - | @Callable( | |
287 | - | func curveFunctionREADONLY ( | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | $Tuple2(nil, [bG, | |
322 | + | @Callable(bs) | |
323 | + | func curveFunctionREADONLY (bR) = { | |
324 | + | let bS = ar(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
325 | + | let aj = au(bS[v]) | |
326 | + | let bE = au(bS[y]) | |
327 | + | let bF = au(bS[A]) | |
328 | + | let bH = au(bS[E]) | |
329 | + | let bG = au(bS[F]) | |
330 | + | let bT = ar(invoke(this, "calculateKREADONLY", [bE, bF, aj, bG, bH], nil)) | |
331 | + | let bQ = parseBigIntValue(aw(bT[u])) | |
332 | + | let bU = ak(bR, aj) | |
333 | + | let bV = toBigInt(bG) | |
334 | + | let bW = toBigInt((bG - bH)) | |
335 | + | let bX = fraction(toBigInt(bU), m, bQ) | |
336 | + | let bY = fraction(bX, bW, bV) | |
337 | + | let bZ = toInt(fraction(bW, bV, (bY + bV))) | |
338 | + | let ca = ((bG - bH) - bZ) | |
339 | + | $Tuple2(nil, [ca, bU, bE, bF, bG, bH, au(bT[o]), au(bT[p]), au(bT[q]), aj, au(bT[r]), au(bT[s]), bT[t], bT[u], toString(bX), toString(bY), bZ]) | |
304 | 340 | } | |
305 | 341 | ||
306 | 342 | ||
307 | 343 | ||
308 | - | @Callable( | |
309 | - | func surfFunctionREADONLY ( | |
344 | + | @Callable(bs) | |
345 | + | func surfFunctionREADONLY (ai,aa) = if ((0 > ai)) | |
310 | 346 | then throw("amount should be positive") | |
311 | 347 | else { | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | if (( | |
318 | - | then throw((("BR = " + toString( | |
348 | + | let aj = bj | |
349 | + | let cb = toBigInt(aj) | |
350 | + | let cc = toBigInt(bm) | |
351 | + | let cd = bq | |
352 | + | let ce = toBigInt(cd) | |
353 | + | if ((br >= h)) | |
354 | + | then throw((("BR = " + toString(br)) + ", cannot buy SURF")) | |
319 | 355 | else { | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | then if (( | |
324 | - | then | |
325 | - | else | |
326 | - | else if (( | |
327 | - | then if (( | |
328 | - | then | |
329 | - | else | |
356 | + | let cf = (fraction(cd, j, aj) - bm) | |
357 | + | let cg = (cd - fraction(bm, aj, j)) | |
358 | + | let ch = if ((aa == aU)) | |
359 | + | then if ((ai > cg)) | |
360 | + | then cg | |
361 | + | else ai | |
362 | + | else if ((aa == n)) | |
363 | + | then if ((ai > cf)) | |
364 | + | then cf | |
365 | + | else ai | |
330 | 366 | else 0 | |
331 | - | let | |
332 | - | if (( | |
333 | - | then $Tuple2(nil, [toInt(fraction(fraction( | |
334 | - | else if (( | |
335 | - | then $Tuple2(nil, [toInt(fraction( | |
367 | + | let ci = toBigInt(ch) | |
368 | + | if ((aa == aU)) | |
369 | + | then $Tuple2(nil, [toInt(fraction(fraction(ci, k, cb), (ce - (ci / g)), cc)), 0, ch, bm, cd, br, bm, (cd - ch), fraction(ak(bm, aj), h, (cd - ch)), (ai - ch), aj]) | |
370 | + | else if ((aa == n)) | |
371 | + | then $Tuple2(nil, [toInt(fraction(ce, log(fraction((cc + ci), m, cc), 16, f, 16, 16, HALFUP), m)), ch, 0, bm, cd, br, (bm + ch), cd, fraction(ak((bm + ch), aj), h, cd), (ai - ch), aj]) | |
336 | 372 | else throw("Unsupported asset") | |
337 | 373 | } | |
338 | 374 | } | |
339 | 375 | ||
340 | 376 | ||
341 | 377 | ||
342 | - | @Callable( | |
343 | - | func calcContractNsbtPriceSYSREADONLY ( | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | $Tuple2(nil, [ | |
378 | + | @Callable(bs) | |
379 | + | func calcContractNsbtPriceSYSREADONLY (cj) = { | |
380 | + | let bS = ar(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
381 | + | let aj = au(bS[v]) | |
382 | + | let bE = au(bS[y]) | |
383 | + | let bF = (au(bS[A]) - cj) | |
384 | + | let bH = (au(bS[E]) + cj) | |
385 | + | let bG = au(bS[F]) | |
386 | + | let bT = ar(invoke(this, "calculateKREADONLY", [bE, bF, aj, bG, bH], nil)) | |
387 | + | let ck = parseBigIntValue(aw(bT[u])) | |
388 | + | let cl = fraction(toBigInt(bG), m, toBigInt((bG - bH))) | |
389 | + | let cm = fraction(cl, cl, m) | |
390 | + | let cn = fraction(ck, cm, m) | |
391 | + | let co = toInt(fraction(cn, toBigInt(h), m)) | |
392 | + | let cp = fraction(co, h, aj) | |
393 | + | $Tuple2(nil, [co, cp]) | |
358 | 394 | } | |
359 | 395 | ||
360 | 396 | ||
361 | 397 | ||
362 | - | @Callable( | |
398 | + | @Callable(bs) | |
363 | 399 | func calcNeutinoMetricsREADONLY () = { | |
364 | - | let bX = (aV - aW) | |
365 | - | let bY = (aW - aV) | |
366 | - | let bZ = if ((aW == 0)) | |
367 | - | then 0 | |
368 | - | else (fraction(bX, h, aW) * 100) | |
369 | - | let ca = value(assetInfo(aP)).quantity | |
370 | - | let cb = (ca - assetBalance(aM, aP)) | |
371 | - | let cc = value(assetInfo(aQ)).quantity | |
372 | - | $Tuple2(nil, [aR, aS, aT, aU, aV, aW, bX, bZ, aX, cb, ca, cc]) | |
400 | + | let cq = value(assetInfo(aV)).quantity | |
401 | + | let cr = (cq - assetBalance(aQ, aV)) | |
402 | + | let cs = value(assetInfo(aW)).quantity | |
403 | + | $Tuple2(nil, [bj, bk, bl, bm, bn, bq, bo, bp, br, cr, cq, cs]) | |
373 | 404 | } | |
374 | 405 | ||
375 | 406 | ||
376 | 407 | ||
377 | - | @Callable( | |
378 | - | func getUnstakeComissionAmountREADONLY ( | |
408 | + | @Callable(bs) | |
409 | + | func getUnstakeComissionAmountREADONLY (ai,ct,cu) = $Tuple2(nil, fraction(ai, pow(2, 0, fraction(-((height - ct)), j, cu), 8, 8, HALFUP), j)) | |
379 | 410 | ||
380 | 411 | ||
381 | 412 | ||
382 | - | @Callable( | |
383 | - | func mergeStakesREADONLY ( | |
384 | - | let | |
385 | - | let | |
386 | - | $Tuple2(nil, ( | |
413 | + | @Callable(bs) | |
414 | + | func mergeStakesREADONLY (cv,cw,cx,cy,cu) = { | |
415 | + | let cz = fraction(cx, pow(2, 0, fraction((cy - cw), j, cu), 8, 8, HALFUP), j) | |
416 | + | let cA = fraction((cv + cx), j, (cv + cz)) | |
417 | + | $Tuple2(nil, (cw + ((e - (cu * log(cA, 8, 2, 0, 8, HALFUP))) / j))) | |
387 | 418 | } | |
388 | 419 | ||
389 | 420 | ||
390 | - | @Verifier( | |
391 | - | func | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
421 | + | @Verifier(cB) | |
422 | + | func cC () = { | |
423 | + | let cD = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d) | |
424 | + | let cE = split(valueOrElse(getString(aO, "%s__multisig"), cD), d) | |
425 | + | let cF = ((((if (sigVerify(cB.bodyBytes, cB.proofs[0], fromBase58String(cE[0]))) | |
395 | 426 | then 1 | |
396 | - | else 0) + (if (sigVerify( | |
427 | + | else 0) + (if (sigVerify(cB.bodyBytes, cB.proofs[1], fromBase58String(cE[1]))) | |
397 | 428 | then 1 | |
398 | - | else 0)) + (if (sigVerify( | |
429 | + | else 0)) + (if (sigVerify(cB.bodyBytes, cB.proofs[2], fromBase58String(cE[2]))) | |
399 | 430 | then 1 | |
400 | - | else 0)) + (if (sigVerify( | |
431 | + | else 0)) + (if (sigVerify(cB.bodyBytes, cB.proofs[3], fromBase58String(cE[3]))) | |
401 | 432 | then 2 | |
402 | 433 | else 0)) | |
403 | - | ( | |
434 | + | (cF >= 3) | |
404 | 435 | } | |
405 | 436 |
github/deemru/w8io/026f985 121.46 ms ◑