tx · 5tkknVVKLuUkW7vV7LkVXnvq6jiRzHUCsD21GNHTuA7Q 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi: -0.02700000 Waves 2023.02.10 14:32 [2443487] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves
{ "type": 13, "id": "5tkknVVKLuUkW7vV7LkVXnvq6jiRzHUCsD21GNHTuA7Q", "fee": 2700000, "feeAssetId": null, "timestamp": 1676028858351, "version": 2, "chainId": 84, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "pGjWURuoVDMvQY7y24wVmsSygNQ6pYjNvutRSypsbauRwZrb6wnAMarDyVE9wKtRKfPa3DyoNjg8jb3rioj9TP5", "47r9aqE9363EGZ3pY1PS6TMUi3easaiogBH4NqQNxmZec1hGKrZXthgZFR3P59BmMLf6cNbwDDQVNrfY64QWsEXa", "5cWrPA1R5q7WCYqnB6w9uzvLTABaZcCpU77FEK9DM19kDuGzcg6ULw6SXv8uyMUwRYEk3v7zX3phVQd3KNgx8di3" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAAB1AAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAAAAAAAd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ZG1pbnNMaXN0AAAAAAAAAAACAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAMJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADy52SHA==", "height": 2443487, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 31k1wxKGSaXgRpYWrvf2WQQwvSzchRMC2YXdaykP92Mt Next: 2EzqEsav8AicpC9xCBhHFkQwfMoNWi9zqtqNVbXWZj9M Diff:
Old | New | Differences | |
---|---|---|---|
103 | 103 | func T () = "surf_asset_id" | |
104 | 104 | ||
105 | 105 | ||
106 | - | func U () = " | |
106 | + | func U () = "swaps_timeframe" | |
107 | 107 | ||
108 | 108 | ||
109 | - | func V () = ( | |
109 | + | func V (W) = makeString(["%s%s", "userLastQuickSwapHeight", W], d) | |
110 | 110 | ||
111 | 111 | ||
112 | - | func | |
112 | + | func X (W) = makeString(["%s%s", "quickSwapUserSpentInPeriod", W], d) | |
113 | 113 | ||
114 | 114 | ||
115 | - | func | |
115 | + | func Y () = "%s%s__common__basketAssets" | |
116 | 116 | ||
117 | 117 | ||
118 | - | func | |
118 | + | func Z () = "price" | |
119 | 119 | ||
120 | 120 | ||
121 | - | func aa ( | |
121 | + | func aa (ab) = ("%s%s%s__common__priceByAsset__" + ab) | |
122 | 122 | ||
123 | 123 | ||
124 | - | func ab () = "%s%s__common__basketAssets" | |
124 | + | let ac = "rpd_balance" | |
125 | + | ||
126 | + | func ad (ae,ab) = makeString([ac, ab, ae], "_") | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func af (ag,ah) = valueOrErrorMessage(getString(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
128 | 130 | ||
129 | 131 | ||
130 | - | func | |
132 | + | func ai (ag,ah) = valueOrErrorMessage(getInteger(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
131 | 133 | ||
132 | 134 | ||
133 | - | let af = "rpd_balance" | |
134 | - | ||
135 | - | func ag (ah,ae) = makeString([af, ae, ah], "_") | |
135 | + | func aj (ag,ah) = valueOrElse(getInteger(ag, ah), 0) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func | |
138 | + | func ak (ag,ah) = valueOrErrorMessage(getBoolean(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func al ( | |
141 | + | func al (am,an) = fraction(am, j, an) | |
142 | 142 | ||
143 | 143 | ||
144 | - | func | |
144 | + | func ao (am,an) = fraction(am, an, j) | |
145 | 145 | ||
146 | 146 | ||
147 | - | func | |
147 | + | func ap (aq,ar) = fraction(toBigInt(aq), m, toBigInt(ar)) | |
148 | 148 | ||
149 | 149 | ||
150 | - | func | |
150 | + | func as (at,au) = toInt(fraction(at, toBigInt(au), m)) | |
151 | 151 | ||
152 | 152 | ||
153 | - | func ar (ap,aq) = fraction(ap, aq, j) | |
154 | - | ||
155 | - | ||
156 | - | func as (at,au) = fraction(toBigInt(at), m, toBigInt(au)) | |
157 | - | ||
158 | - | ||
159 | - | func av (aw,ax) = toInt(fraction(aw, toBigInt(ax), m)) | |
160 | - | ||
161 | - | ||
162 | - | func ay (aw) = { | |
163 | - | let az = aw | |
164 | - | if ($isInstanceOf(az, "List[Any]")) | |
153 | + | func av (at) = { | |
154 | + | let aw = at | |
155 | + | if ($isInstanceOf(aw, "List[Any]")) | |
165 | 156 | then { | |
166 | - | let | |
167 | - | | |
157 | + | let ax = aw | |
158 | + | ax | |
168 | 159 | } | |
169 | 160 | else throw("fail to cast into List[Any]") | |
170 | 161 | } | |
171 | 162 | ||
172 | 163 | ||
173 | - | func | |
174 | - | let | |
175 | - | if ($isInstanceOf( | |
164 | + | func ay (at) = { | |
165 | + | let aw = at | |
166 | + | if ($isInstanceOf(aw, "Int")) | |
176 | 167 | then { | |
177 | - | let | |
178 | - | | |
168 | + | let az = aw | |
169 | + | az | |
179 | 170 | } | |
180 | 171 | else throw("fail to cast into Int") | |
181 | 172 | } | |
182 | 173 | ||
183 | 174 | ||
184 | - | func | |
185 | - | let | |
186 | - | if ($isInstanceOf( | |
175 | + | func aA (at) = { | |
176 | + | let aw = at | |
177 | + | if ($isInstanceOf(aw, "String")) | |
187 | 178 | then { | |
188 | - | let | |
189 | - | | |
179 | + | let aB = aw | |
180 | + | aB | |
190 | 181 | } | |
191 | 182 | else throw("fail to cast into String") | |
192 | 183 | } | |
193 | 184 | ||
194 | 185 | ||
195 | - | func | |
196 | - | let | |
197 | - | if ($isInstanceOf( | |
186 | + | func aC (aD) = { | |
187 | + | let aw = aD | |
188 | + | if ($isInstanceOf(aw, "(Int, Int, Int, Int)")) | |
198 | 189 | then { | |
199 | - | let | |
200 | - | | |
190 | + | let aE = aw | |
191 | + | aE | |
201 | 192 | } | |
202 | 193 | else throw("fail to cast into PriceSTRUCT") | |
203 | 194 | } | |
204 | 195 | ||
205 | 196 | ||
206 | - | let | |
197 | + | let aF = 1 | |
207 | 198 | ||
208 | - | let | |
199 | + | let aG = 2 | |
209 | 200 | ||
210 | - | let | |
201 | + | let aH = 3 | |
211 | 202 | ||
212 | - | let | |
203 | + | let aI = 4 | |
213 | 204 | ||
214 | - | let | |
205 | + | let aJ = 5 | |
215 | 206 | ||
216 | - | let | |
207 | + | let aK = 6 | |
217 | 208 | ||
218 | - | let | |
209 | + | let aL = 7 | |
219 | 210 | ||
220 | - | let | |
211 | + | let aM = 8 | |
221 | 212 | ||
222 | - | let | |
213 | + | let aN = 9 | |
223 | 214 | ||
224 | - | let | |
215 | + | let aO = 10 | |
225 | 216 | ||
226 | - | let | |
217 | + | let aP = 11 | |
227 | 218 | ||
228 | - | let | |
219 | + | let aQ = 12 | |
229 | 220 | ||
230 | - | let | |
221 | + | let aR = 13 | |
231 | 222 | ||
232 | - | let | |
223 | + | let aS = 14 | |
233 | 224 | ||
234 | - | func | |
225 | + | func aT () = "%s%s__config__controlAddress" | |
235 | 226 | ||
236 | 227 | ||
237 | - | func | |
228 | + | func aU () = "%s__controlConfig" | |
238 | 229 | ||
239 | 230 | ||
240 | - | func | |
231 | + | func aV (aW) = split(af(aW, aU()), d) | |
241 | 232 | ||
242 | 233 | ||
243 | - | func | |
234 | + | func aX (aY,aZ) = valueOrErrorMessage(addressFromString(aY[aZ]), ("Control cfg doesn't contain address at index " + toString(aZ))) | |
244 | 235 | ||
245 | 236 | ||
246 | - | let | |
237 | + | let ba = addressFromStringValue(valueOrElse(getString(this, aT()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
247 | 238 | ||
248 | - | let | |
239 | + | let aY = aV(ba) | |
249 | 240 | ||
250 | - | let | |
241 | + | let bb = aX(aY, aF) | |
251 | 242 | ||
252 | - | let | |
243 | + | let bc = aX(aY, aG) | |
253 | 244 | ||
254 | - | let | |
245 | + | let bd = aX(aY, aJ) | |
255 | 246 | ||
256 | - | let | |
247 | + | let be = aX(aY, aH) | |
257 | 248 | ||
258 | - | let | |
249 | + | let bf = aX(aY, aS) | |
259 | 250 | ||
260 | - | let | |
251 | + | let bg = af(bb, R()) | |
261 | 252 | ||
262 | - | let | |
253 | + | let bh = fromBase58String(bg) | |
263 | 254 | ||
264 | - | let | |
255 | + | let bi = fromBase58String(getStringValue(bb, S())) | |
265 | 256 | ||
266 | - | let | |
257 | + | let bj = fromBase58String(getStringValue(bc, T())) | |
267 | 258 | ||
268 | - | func bn () = { | |
269 | - | let bo = valueOrElse(getString(bd, "%s%s__control__outOfMarketAddressList"), "") | |
270 | - | if ((bo == "")) | |
259 | + | func bk () = "balance_lock_" | |
260 | + | ||
261 | + | ||
262 | + | func bl (bm,ab) = makeString(["%s%s%s", "balanceLock", bm, ab], d) | |
263 | + | ||
264 | + | ||
265 | + | func bn (ab) = bl("outNeutrino", ab) | |
266 | + | ||
267 | + | ||
268 | + | func bo () = bl("outMulti", bg) | |
269 | + | ||
270 | + | ||
271 | + | func bp () = (bk() + "neutrino") | |
272 | + | ||
273 | + | ||
274 | + | func bq () = (bk() + "waves") | |
275 | + | ||
276 | + | ||
277 | + | func br () = { | |
278 | + | let bs = valueOrElse(getString(ba, "%s%s__control__outOfMarketAddressList"), "") | |
279 | + | if ((bs == "")) | |
271 | 280 | then 0 | |
272 | 281 | else { | |
273 | - | func | |
282 | + | func bt (bu,bv) = ((bu + valueOrElse(getInteger(be, ad(bv, bg)), 0)) + assetBalance(addressFromStringValue(bv), bh)) | |
274 | 283 | ||
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | func | |
279 | - | then | |
280 | - | else | |
284 | + | let bw = split(bs, d) | |
285 | + | let bx = size(bw) | |
286 | + | let by = 0 | |
287 | + | func bz (bA,bB) = if ((bB >= bx)) | |
288 | + | then bA | |
289 | + | else bt(bA, bw[bB]) | |
281 | 290 | ||
282 | - | func | |
283 | - | then | |
291 | + | func bC (bA,bB) = if ((bB >= bx)) | |
292 | + | then bA | |
284 | 293 | else throw("List size exceeds 7") | |
285 | 294 | ||
286 | - | by | |
295 | + | bC(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7) | |
287 | 296 | } | |
288 | 297 | } | |
289 | 298 | ||
290 | 299 | ||
291 | - | func | |
300 | + | func bD () = aC(invoke(bf, "price", [4], nil))._2 | |
292 | 301 | ||
293 | 302 | ||
294 | - | func | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | fraction( | |
303 | + | func bE (bF,bG) = { | |
304 | + | let bH = valueOrElse(getInteger(this, P()), 600000) | |
305 | + | let bI = valueOrElse(getInteger(this, Q()), 150000) | |
306 | + | let bJ = max([bH, fraction((h + bI), bG, h)]) | |
307 | + | let bK = min([bJ, h]) | |
308 | + | fraction(bF, h, bK) | |
300 | 309 | } | |
301 | 310 | ||
302 | 311 | ||
303 | - | let | |
312 | + | let bL = getIntegerValue(ba, Z()) | |
304 | 313 | ||
305 | - | let | |
314 | + | let bG = bD() | |
306 | 315 | ||
307 | - | let | |
316 | + | let bM = bE(bL, bG) | |
308 | 317 | ||
309 | - | let | |
318 | + | let bN = (valueOrElse(getInteger(bb, bp()), 0) + valueOrElse(getInteger(bb, bo()), 0)) | |
310 | 319 | ||
311 | - | let | |
320 | + | let bO = (valueOrElse(getInteger(bb, bq()), 0) + valueOrElse(getInteger(bb, bn("WAVES")), 0)) | |
312 | 321 | ||
313 | - | let bL = (wavesBalance(be).regular - bK) | |
314 | - | ||
315 | - | let bM = ar(bL, bI) | |
316 | - | ||
317 | - | let bN = bn() | |
318 | - | ||
319 | - | let bO = (((bJ + value(assetInfo(bk)).quantity) - assetBalance(be, bk)) - assetBalance(bg, bk)) | |
320 | - | ||
321 | - | let bP = (bO - bN) | |
322 | - | ||
323 | - | let bQ = if ((bP == 0)) | |
324 | - | then 0 | |
325 | - | else fraction(bM, h, bP) | |
326 | - | ||
327 | - | func bR () = { | |
328 | - | let bS = valueOrElse(getString(be, ab()), "WAVES") | |
329 | - | let bT = split(bS, d) | |
330 | - | func bU (bV,ae) = { | |
331 | - | let bW = fromBase58String(ae) | |
332 | - | let bX = if ((bW == n)) | |
333 | - | then bL | |
334 | - | else assetBalance(be, bW) | |
335 | - | let bY = valueOrElse(getInteger(bd, ad(ae)), h) | |
336 | - | let bZ = fraction(bX, bY, j) | |
337 | - | $Tuple2((bV._1 :+ $Tuple4(ae, bX, bZ, bY)), (bV._2 + bZ)) | |
338 | - | } | |
339 | - | ||
340 | - | let ca = { | |
341 | - | let bs = bT | |
342 | - | let bt = size(bs) | |
343 | - | let bu = $Tuple2(nil, 0) | |
344 | - | func bv (bw,bx) = if ((bx >= bt)) | |
345 | - | then bw | |
346 | - | else bU(bw, bs[bx]) | |
347 | - | ||
348 | - | func by (bw,bx) = if ((bx >= bt)) | |
349 | - | then bw | |
350 | - | else throw("List size exceeds 10") | |
351 | - | ||
352 | - | by(bv(bv(bv(bv(bv(bv(bv(bv(bv(bv(bu, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
353 | - | } | |
354 | - | func cb (bV,cc) = { | |
355 | - | let cd = if ((ca._2 == 0)) | |
356 | - | then h | |
357 | - | else fraction(cc._3, h, ca._2) | |
358 | - | (bV :+ makeString([cc._1, toString(cd), toString(cc._4), toString(cc._2)], ":")) | |
359 | - | } | |
360 | - | ||
361 | - | let ce = if ((bP == 0)) | |
362 | - | then 0 | |
363 | - | else fraction(ca._2, h, bP) | |
364 | - | $Tuple3(makeString({ | |
365 | - | let bs = ca._1 | |
366 | - | let bt = size(bs) | |
367 | - | let bu = nil | |
368 | - | func cf (bw,bx) = if ((bx >= bt)) | |
369 | - | then bw | |
370 | - | else cb(bw, bs[bx]) | |
371 | - | ||
372 | - | func cg (bw,bx) = if ((bx >= bt)) | |
373 | - | then bw | |
374 | - | else throw("List size exceeds 10") | |
375 | - | ||
376 | - | cg(cf(cf(cf(cf(cf(cf(cf(cf(cf(cf(bu, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
377 | - | }, "_"), ce, ca._2) | |
322 | + | func bP (ab) = { | |
323 | + | let bQ = fromBase58String(ab) | |
324 | + | if ((bQ == n)) | |
325 | + | then (wavesBalance(bb).regular - bO) | |
326 | + | else (assetBalance(bb, bQ) - valueOrElse(getInteger(bb, bn(ab)), 0)) | |
378 | 327 | } | |
379 | 328 | ||
380 | 329 | ||
381 | - | @Callable(ch) | |
382 | - | func constructorV1 (ci,cj,ck) = if ((ch.caller != this)) | |
330 | + | func bR (ab) = { | |
331 | + | let bQ = fromBase58String(ab) | |
332 | + | let bS = bP(ab) | |
333 | + | if ((bQ == n)) | |
334 | + | then ao(bS, bM) | |
335 | + | else { | |
336 | + | let bT = valueOrElse(getInteger(ba, aa(ab)), h) | |
337 | + | fraction(bS, bT, j) | |
338 | + | } | |
339 | + | } | |
340 | + | ||
341 | + | ||
342 | + | let bU = br() | |
343 | + | ||
344 | + | let bV = (((bN + value(assetInfo(bh)).quantity) - assetBalance(bb, bh)) - assetBalance(bd, bh)) | |
345 | + | ||
346 | + | let bW = (bV - bU) | |
347 | + | ||
348 | + | func bX () = { | |
349 | + | let bY = split(valueOrElse(getString(bb, Y()), "WAVES"), d) | |
350 | + | func bZ (ca,ab) = (ca + fraction(bR(ab), h, bW)) | |
351 | + | ||
352 | + | let bw = bY | |
353 | + | let bx = size(bw) | |
354 | + | let by = 0 | |
355 | + | func bz (bA,bB) = if ((bB >= bx)) | |
356 | + | then bA | |
357 | + | else bZ(bA, bw[bB]) | |
358 | + | ||
359 | + | func bC (bA,bB) = if ((bB >= bx)) | |
360 | + | then bA | |
361 | + | else throw("List size exceeds 10") | |
362 | + | ||
363 | + | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
364 | + | } | |
365 | + | ||
366 | + | ||
367 | + | let cb = if ((bW == 0)) | |
368 | + | then 0 | |
369 | + | else bX() | |
370 | + | ||
371 | + | func cc () = { | |
372 | + | let cd = valueOrElse(getString(bb, Y()), "WAVES") | |
373 | + | let bY = split(cd, d) | |
374 | + | func ce (ca,ab) = { | |
375 | + | let bS = bP(ab) | |
376 | + | let bT = valueOrElse(getInteger(ba, aa(ab)), h) | |
377 | + | let cf = fraction(bS, bT, j) | |
378 | + | $Tuple2((ca._1 :+ $Tuple4(ab, bS, cf, bT)), (ca._2 + cf)) | |
379 | + | } | |
380 | + | ||
381 | + | let cg = { | |
382 | + | let bw = bY | |
383 | + | let bx = size(bw) | |
384 | + | let by = $Tuple2(nil, 0) | |
385 | + | func bz (bA,bB) = if ((bB >= bx)) | |
386 | + | then bA | |
387 | + | else ce(bA, bw[bB]) | |
388 | + | ||
389 | + | func bC (bA,bB) = if ((bB >= bx)) | |
390 | + | then bA | |
391 | + | else throw("List size exceeds 10") | |
392 | + | ||
393 | + | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
394 | + | } | |
395 | + | func ch (ca,ci) = { | |
396 | + | let cj = if ((cg._2 == 0)) | |
397 | + | then h | |
398 | + | else fraction(ci._3, h, cg._2) | |
399 | + | (ca :+ makeString([ci._1, toString(cj), toString(ci._4), toString(ci._2)], ":")) | |
400 | + | } | |
401 | + | ||
402 | + | let ck = if ((bW == 0)) | |
403 | + | then 0 | |
404 | + | else fraction(cg._2, h, bW) | |
405 | + | $Tuple3(makeString({ | |
406 | + | let bw = cg._1 | |
407 | + | let bx = size(bw) | |
408 | + | let by = nil | |
409 | + | func cl (bA,bB) = if ((bB >= bx)) | |
410 | + | then bA | |
411 | + | else ch(bA, bw[bB]) | |
412 | + | ||
413 | + | func cm (bA,bB) = if ((bB >= bx)) | |
414 | + | then bA | |
415 | + | else throw("List size exceeds 10") | |
416 | + | ||
417 | + | cm(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
418 | + | }, "_"), ck, cg._2) | |
419 | + | } | |
420 | + | ||
421 | + | ||
422 | + | @Callable(cn) | |
423 | + | func constructorV1 (co,cp,cq) = if ((cn.caller != this)) | |
383 | 424 | then throw("not authorized") | |
384 | - | else [StringEntry(K(), | |
425 | + | else [StringEntry(K(), co), IntegerEntry(L(), cq)] | |
385 | 426 | ||
386 | 427 | ||
387 | 428 | ||
388 | - | @Callable( | |
389 | - | func calcSwapLimitREADONLY ( | |
390 | - | let | |
429 | + | @Callable(cn) | |
430 | + | func calcSwapLimitREADONLY (cr) = { | |
431 | + | let cs = if ((0 >= cr)) | |
391 | 432 | then 0 | |
392 | 433 | else { | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | toInt(fraction( | |
434 | + | let ct = toBigInt(ai(this, L())) | |
435 | + | let cu = toBigInt(ai(this, M())) | |
436 | + | let cv = pow(toBigInt(cr), 6, cu, 16, 8, CEILING) | |
437 | + | toInt(fraction(ct, cv, l)) | |
397 | 438 | } | |
398 | - | let | |
399 | - | let | |
439 | + | let cw = al(cs, bL) | |
440 | + | let cx = if ((0 >= cr)) | |
400 | 441 | then 0 | |
401 | 442 | else { | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | toInt(fraction(fraction( | |
443 | + | let ct = toBigInt(ai(this, N())) | |
444 | + | let cu = toBigInt(ai(this, O())) | |
445 | + | let cy = toBigInt(cb) | |
446 | + | let cv = pow(toBigInt(cr), 6, cu, 16, 8, CEILING) | |
447 | + | toInt(fraction(fraction(ct, cv, l), cy, i)) | |
407 | 448 | } | |
408 | - | $Tuple2(nil, [ | |
449 | + | $Tuple2(nil, [cs, cw, cx]) | |
409 | 450 | } | |
410 | 451 | ||
411 | 452 | ||
412 | 453 | ||
413 | - | @Callable( | |
414 | - | func calculateKREADONLY ( | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | if (( | |
422 | - | then throw((("BR=" + toString( | |
454 | + | @Callable(cn) | |
455 | + | func calculateKREADONLY (cz,cA,an,cB,cC) = { | |
456 | + | let cD = toBigInt(2718281) | |
457 | + | let cE = 6 | |
458 | + | let cF = valueOrElse(getInteger(bc, "nsbtCurveParam_a"), 3) | |
459 | + | let cG = valueOrElse(getInteger(bc, "nsbtCurveParam_b"), ((3 * h) / 10)) | |
460 | + | let cH = ao(cz, an) | |
461 | + | let cI = fraction(cH, j, cA) | |
462 | + | if ((cI > 10678564816)) | |
463 | + | then throw((("BR=" + toString(cI)) + " > 10678.564816% will overflow exponent")) | |
423 | 464 | else { | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | $Tuple2(nil, [ | |
465 | + | let cJ = (cF * (cI - j)) | |
466 | + | let cK = pow(cD, cE, toBigInt(cJ), b, c, DOWN) | |
467 | + | let cL = fraction(toBigInt(cG), cK, i) | |
468 | + | $Tuple2(nil, [cF, cG, cH, cI, cJ, toString(cK), toString(cL)]) | |
428 | 469 | } | |
429 | 470 | } | |
430 | 471 | ||
431 | 472 | ||
432 | 473 | ||
433 | - | @Callable( | |
434 | - | func curveFunctionREADONLY ( | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | $Tuple2(nil, [cP, | |
474 | + | @Callable(cn) | |
475 | + | func curveFunctionREADONLY (cM) = { | |
476 | + | let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
477 | + | let an = ay(cN[v]) | |
478 | + | let cz = ay(cN[y]) | |
479 | + | let cA = ay(cN[A]) | |
480 | + | let cC = ay(cN[E]) | |
481 | + | let cB = ay(cN[F]) | |
482 | + | let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil)) | |
483 | + | let cL = parseBigIntValue(aA(cO[u])) | |
484 | + | let cP = ao(cM, an) | |
485 | + | let cQ = toBigInt(cB) | |
486 | + | let cR = toBigInt((cB - cC)) | |
487 | + | let cS = fraction(toBigInt(cP), m, cL) | |
488 | + | let cT = fraction(cS, cR, cQ) | |
489 | + | let cU = toInt(fraction(cR, cQ, (cT + cQ))) | |
490 | + | let cV = ((cB - cC) - cU) | |
491 | + | $Tuple2(nil, [cV, cP, cz, cA, cB, cC, ay(cO[o]), ay(cO[p]), ay(cO[q]), an, ay(cO[r]), ay(cO[s]), cO[t], cO[u], toString(cS), toString(cT), cU]) | |
451 | 492 | } | |
452 | 493 | ||
453 | 494 | ||
454 | 495 | ||
455 | - | @Callable( | |
456 | - | func surfFunctionREADONLY ( | |
496 | + | @Callable(cn) | |
497 | + | func surfFunctionREADONLY (am,ab) = if ((0 > am)) | |
457 | 498 | then throw("amount should be positive") | |
458 | 499 | else { | |
459 | - | let aq = bH | |
460 | - | let cQ = toBigInt(aq) | |
461 | - | let cR = toBigInt(bL) | |
462 | - | let cS = bP | |
463 | - | let cT = toBigInt(cS) | |
464 | - | if ((bQ >= h)) | |
465 | - | then throw((("BR = " + toString(bQ)) + ", cannot buy SURF")) | |
500 | + | let an = bL | |
501 | + | let cW = toBigInt(an) | |
502 | + | let cX = bP("WAVES") | |
503 | + | let cY = toBigInt(cX) | |
504 | + | let cZ = bW | |
505 | + | let da = toBigInt(cZ) | |
506 | + | if ((cb >= h)) | |
507 | + | then throw((("BR = " + toString(cb)) + ", cannot buy SURF")) | |
466 | 508 | else { | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | then if (( | |
471 | - | then | |
472 | - | else | |
473 | - | else if (( | |
474 | - | then if (( | |
475 | - | then | |
476 | - | else | |
509 | + | let db = (fraction(cZ, j, an) - cX) | |
510 | + | let dc = (cZ - fraction(cX, an, j)) | |
511 | + | let dd = if ((ab == bh)) | |
512 | + | then if ((am > dc)) | |
513 | + | then dc | |
514 | + | else am | |
515 | + | else if ((ab == n)) | |
516 | + | then if ((am > db)) | |
517 | + | then db | |
518 | + | else am | |
477 | 519 | else 0 | |
478 | - | let | |
479 | - | if (( | |
480 | - | then $Tuple2(nil, [toInt(fraction(fraction( | |
481 | - | else if (( | |
482 | - | then $Tuple2(nil, [toInt(fraction( | |
520 | + | let de = toBigInt(dd) | |
521 | + | if ((ab == bh)) | |
522 | + | then $Tuple2(nil, [toInt(fraction(fraction(de, k, cW), (da - (de / g)), cY)), 0, dd, cX, cZ, cb, cX, (cZ - dd), fraction(ao(cX, an), h, (cZ - dd)), (am - dd), an]) | |
523 | + | else if ((ab == n)) | |
524 | + | then $Tuple2(nil, [toInt(fraction(da, log(fraction((cY + de), m, cY), 16, f, 16, 16, HALFUP), m)), dd, 0, cX, cZ, cb, (cX + dd), cZ, fraction(ao((cX + dd), an), h, cZ), (am - dd), an]) | |
483 | 525 | else throw("Unsupported asset") | |
484 | 526 | } | |
485 | 527 | } | |
486 | 528 | ||
487 | 529 | ||
488 | 530 | ||
489 | - | @Callable( | |
490 | - | func calcContractNsbtPriceSYSREADONLY ( | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | $Tuple2(nil, [ | |
531 | + | @Callable(cn) | |
532 | + | func calcContractNsbtPriceSYSREADONLY (df) = { | |
533 | + | let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
534 | + | let an = ay(cN[v]) | |
535 | + | let cz = ay(cN[y]) | |
536 | + | let cA = (ay(cN[A]) - df) | |
537 | + | let cC = (ay(cN[E]) + df) | |
538 | + | let cB = ay(cN[F]) | |
539 | + | let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil)) | |
540 | + | let dg = parseBigIntValue(aA(cO[u])) | |
541 | + | let dh = fraction(toBigInt(cB), m, toBigInt((cB - cC))) | |
542 | + | let di = fraction(dh, dh, m) | |
543 | + | let dj = fraction(dg, di, m) | |
544 | + | let dk = toInt(fraction(dj, toBigInt(h), m)) | |
545 | + | let dl = fraction(dk, h, an) | |
546 | + | $Tuple2(nil, [dk, dl]) | |
505 | 547 | } | |
506 | 548 | ||
507 | 549 | ||
508 | 550 | ||
509 | - | @Callable( | |
551 | + | @Callable(cn) | |
510 | 552 | func calcNeutinoMetricsREADONLY () = { | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | $Tuple2(nil, [ | |
553 | + | let dm = value(assetInfo(bi)).quantity | |
554 | + | let dn = (dm - assetBalance(bc, bi)) | |
555 | + | let do = value(assetInfo(bj)).quantity | |
556 | + | let dp = cc() | |
557 | + | $Tuple2(nil, [bL, bN, bO, bP("WAVES"), bR("WAVES"), bW, bU, bV, cb, dn, dm, do, bG, bM, dp._1, dp._2, dp._3]) | |
516 | 558 | } | |
517 | 559 | ||
518 | 560 | ||
519 | 561 | ||
520 | - | @Callable( | |
521 | - | func getUnstakeComissionAmountREADONLY ( | |
562 | + | @Callable(cn) | |
563 | + | func getUnstakeComissionAmountREADONLY (am,dq,dr) = $Tuple2(nil, fraction(am, pow(2, 0, fraction(-((height - dq)), j, dr), 8, 8, HALFUP), j)) | |
522 | 564 | ||
523 | 565 | ||
524 | 566 | ||
525 | - | @Callable( | |
526 | - | func mergeStakesREADONLY ( | |
527 | - | let | |
528 | - | let | |
529 | - | $Tuple2(nil, ( | |
567 | + | @Callable(cn) | |
568 | + | func mergeStakesREADONLY (ds,dt,du,dv,dr) = { | |
569 | + | let dw = fraction(du, pow(2, 0, fraction((dv - dt), j, dr), 8, 8, HALFUP), j) | |
570 | + | let aD = fraction((ds + du), j, (ds + dw)) | |
571 | + | $Tuple2(nil, (dt + ((e - (dr * log(aD, 8, 2, 0, 8, HALFUP))) / j))) | |
530 | 572 | } | |
531 | 573 | ||
532 | 574 | ||
533 | - | @Verifier( | |
534 | - | func | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
575 | + | @Verifier(dx) | |
576 | + | func dy () = { | |
577 | + | let dz = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d) | |
578 | + | let dA = split(valueOrElse(getString(ba, "%s__multisig"), dz), d) | |
579 | + | let dB = ((((if (sigVerify(dx.bodyBytes, dx.proofs[0], fromBase58String(dA[0]))) | |
538 | 580 | then 1 | |
539 | - | else 0) + (if (sigVerify( | |
581 | + | else 0) + (if (sigVerify(dx.bodyBytes, dx.proofs[1], fromBase58String(dA[1]))) | |
540 | 582 | then 1 | |
541 | - | else 0)) + (if (sigVerify( | |
583 | + | else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[2], fromBase58String(dA[2]))) | |
542 | 584 | then 1 | |
543 | - | else 0)) + (if (sigVerify( | |
585 | + | else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[3], fromBase58String(dA[3]))) | |
544 | 586 | then 2 | |
545 | 587 | else 0)) | |
546 | - | ( | |
588 | + | (dB >= 3) | |
547 | 589 | } | |
548 | 590 |
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 | let H = 12 | |
71 | 71 | ||
72 | 72 | let I = 13 | |
73 | 73 | ||
74 | 74 | let J = 14 | |
75 | 75 | ||
76 | 76 | func K () = "%s%s__config__neutrinoAddress" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func L () = "%s%s__config__swapAParam" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func M () = "%s%s__config__swapBParam" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func N () = "%s%s__config__usdnSwapAParam" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func O () = "%s%s__config__usdnSwapBParam" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func P () = "%s%s__priceAdj__minCoefficient" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func Q () = "%s%s__priceAdj__arbRegulator" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func R () = "neutrino_asset_id" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func S () = "bond_asset_id" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func T () = "surf_asset_id" | |
104 | 104 | ||
105 | 105 | ||
106 | - | func U () = " | |
106 | + | func U () = "swaps_timeframe" | |
107 | 107 | ||
108 | 108 | ||
109 | - | func V () = ( | |
109 | + | func V (W) = makeString(["%s%s", "userLastQuickSwapHeight", W], d) | |
110 | 110 | ||
111 | 111 | ||
112 | - | func | |
112 | + | func X (W) = makeString(["%s%s", "quickSwapUserSpentInPeriod", W], d) | |
113 | 113 | ||
114 | 114 | ||
115 | - | func | |
115 | + | func Y () = "%s%s__common__basketAssets" | |
116 | 116 | ||
117 | 117 | ||
118 | - | func | |
118 | + | func Z () = "price" | |
119 | 119 | ||
120 | 120 | ||
121 | - | func aa ( | |
121 | + | func aa (ab) = ("%s%s%s__common__priceByAsset__" + ab) | |
122 | 122 | ||
123 | 123 | ||
124 | - | func ab () = "%s%s__common__basketAssets" | |
124 | + | let ac = "rpd_balance" | |
125 | + | ||
126 | + | func ad (ae,ab) = makeString([ac, ab, ae], "_") | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func af (ag,ah) = valueOrErrorMessage(getString(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
128 | 130 | ||
129 | 131 | ||
130 | - | func | |
132 | + | func ai (ag,ah) = valueOrErrorMessage(getInteger(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
131 | 133 | ||
132 | 134 | ||
133 | - | let af = "rpd_balance" | |
134 | - | ||
135 | - | func ag (ah,ae) = makeString([af, ae, ah], "_") | |
135 | + | func aj (ag,ah) = valueOrElse(getInteger(ag, ah), 0) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func | |
138 | + | func ak (ag,ah) = valueOrErrorMessage(getBoolean(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func al ( | |
141 | + | func al (am,an) = fraction(am, j, an) | |
142 | 142 | ||
143 | 143 | ||
144 | - | func | |
144 | + | func ao (am,an) = fraction(am, an, j) | |
145 | 145 | ||
146 | 146 | ||
147 | - | func | |
147 | + | func ap (aq,ar) = fraction(toBigInt(aq), m, toBigInt(ar)) | |
148 | 148 | ||
149 | 149 | ||
150 | - | func | |
150 | + | func as (at,au) = toInt(fraction(at, toBigInt(au), m)) | |
151 | 151 | ||
152 | 152 | ||
153 | - | func ar (ap,aq) = fraction(ap, aq, j) | |
154 | - | ||
155 | - | ||
156 | - | func as (at,au) = fraction(toBigInt(at), m, toBigInt(au)) | |
157 | - | ||
158 | - | ||
159 | - | func av (aw,ax) = toInt(fraction(aw, toBigInt(ax), m)) | |
160 | - | ||
161 | - | ||
162 | - | func ay (aw) = { | |
163 | - | let az = aw | |
164 | - | if ($isInstanceOf(az, "List[Any]")) | |
153 | + | func av (at) = { | |
154 | + | let aw = at | |
155 | + | if ($isInstanceOf(aw, "List[Any]")) | |
165 | 156 | then { | |
166 | - | let | |
167 | - | | |
157 | + | let ax = aw | |
158 | + | ax | |
168 | 159 | } | |
169 | 160 | else throw("fail to cast into List[Any]") | |
170 | 161 | } | |
171 | 162 | ||
172 | 163 | ||
173 | - | func | |
174 | - | let | |
175 | - | if ($isInstanceOf( | |
164 | + | func ay (at) = { | |
165 | + | let aw = at | |
166 | + | if ($isInstanceOf(aw, "Int")) | |
176 | 167 | then { | |
177 | - | let | |
178 | - | | |
168 | + | let az = aw | |
169 | + | az | |
179 | 170 | } | |
180 | 171 | else throw("fail to cast into Int") | |
181 | 172 | } | |
182 | 173 | ||
183 | 174 | ||
184 | - | func | |
185 | - | let | |
186 | - | if ($isInstanceOf( | |
175 | + | func aA (at) = { | |
176 | + | let aw = at | |
177 | + | if ($isInstanceOf(aw, "String")) | |
187 | 178 | then { | |
188 | - | let | |
189 | - | | |
179 | + | let aB = aw | |
180 | + | aB | |
190 | 181 | } | |
191 | 182 | else throw("fail to cast into String") | |
192 | 183 | } | |
193 | 184 | ||
194 | 185 | ||
195 | - | func | |
196 | - | let | |
197 | - | if ($isInstanceOf( | |
186 | + | func aC (aD) = { | |
187 | + | let aw = aD | |
188 | + | if ($isInstanceOf(aw, "(Int, Int, Int, Int)")) | |
198 | 189 | then { | |
199 | - | let | |
200 | - | | |
190 | + | let aE = aw | |
191 | + | aE | |
201 | 192 | } | |
202 | 193 | else throw("fail to cast into PriceSTRUCT") | |
203 | 194 | } | |
204 | 195 | ||
205 | 196 | ||
206 | - | let | |
197 | + | let aF = 1 | |
207 | 198 | ||
208 | - | let | |
199 | + | let aG = 2 | |
209 | 200 | ||
210 | - | let | |
201 | + | let aH = 3 | |
211 | 202 | ||
212 | - | let | |
203 | + | let aI = 4 | |
213 | 204 | ||
214 | - | let | |
205 | + | let aJ = 5 | |
215 | 206 | ||
216 | - | let | |
207 | + | let aK = 6 | |
217 | 208 | ||
218 | - | let | |
209 | + | let aL = 7 | |
219 | 210 | ||
220 | - | let | |
211 | + | let aM = 8 | |
221 | 212 | ||
222 | - | let | |
213 | + | let aN = 9 | |
223 | 214 | ||
224 | - | let | |
215 | + | let aO = 10 | |
225 | 216 | ||
226 | - | let | |
217 | + | let aP = 11 | |
227 | 218 | ||
228 | - | let | |
219 | + | let aQ = 12 | |
229 | 220 | ||
230 | - | let | |
221 | + | let aR = 13 | |
231 | 222 | ||
232 | - | let | |
223 | + | let aS = 14 | |
233 | 224 | ||
234 | - | func | |
225 | + | func aT () = "%s%s__config__controlAddress" | |
235 | 226 | ||
236 | 227 | ||
237 | - | func | |
228 | + | func aU () = "%s__controlConfig" | |
238 | 229 | ||
239 | 230 | ||
240 | - | func | |
231 | + | func aV (aW) = split(af(aW, aU()), d) | |
241 | 232 | ||
242 | 233 | ||
243 | - | func | |
234 | + | func aX (aY,aZ) = valueOrErrorMessage(addressFromString(aY[aZ]), ("Control cfg doesn't contain address at index " + toString(aZ))) | |
244 | 235 | ||
245 | 236 | ||
246 | - | let | |
237 | + | let ba = addressFromStringValue(valueOrElse(getString(this, aT()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
247 | 238 | ||
248 | - | let | |
239 | + | let aY = aV(ba) | |
249 | 240 | ||
250 | - | let | |
241 | + | let bb = aX(aY, aF) | |
251 | 242 | ||
252 | - | let | |
243 | + | let bc = aX(aY, aG) | |
253 | 244 | ||
254 | - | let | |
245 | + | let bd = aX(aY, aJ) | |
255 | 246 | ||
256 | - | let | |
247 | + | let be = aX(aY, aH) | |
257 | 248 | ||
258 | - | let | |
249 | + | let bf = aX(aY, aS) | |
259 | 250 | ||
260 | - | let | |
251 | + | let bg = af(bb, R()) | |
261 | 252 | ||
262 | - | let | |
253 | + | let bh = fromBase58String(bg) | |
263 | 254 | ||
264 | - | let | |
255 | + | let bi = fromBase58String(getStringValue(bb, S())) | |
265 | 256 | ||
266 | - | let | |
257 | + | let bj = fromBase58String(getStringValue(bc, T())) | |
267 | 258 | ||
268 | - | func bn () = { | |
269 | - | let bo = valueOrElse(getString(bd, "%s%s__control__outOfMarketAddressList"), "") | |
270 | - | if ((bo == "")) | |
259 | + | func bk () = "balance_lock_" | |
260 | + | ||
261 | + | ||
262 | + | func bl (bm,ab) = makeString(["%s%s%s", "balanceLock", bm, ab], d) | |
263 | + | ||
264 | + | ||
265 | + | func bn (ab) = bl("outNeutrino", ab) | |
266 | + | ||
267 | + | ||
268 | + | func bo () = bl("outMulti", bg) | |
269 | + | ||
270 | + | ||
271 | + | func bp () = (bk() + "neutrino") | |
272 | + | ||
273 | + | ||
274 | + | func bq () = (bk() + "waves") | |
275 | + | ||
276 | + | ||
277 | + | func br () = { | |
278 | + | let bs = valueOrElse(getString(ba, "%s%s__control__outOfMarketAddressList"), "") | |
279 | + | if ((bs == "")) | |
271 | 280 | then 0 | |
272 | 281 | else { | |
273 | - | func | |
282 | + | func bt (bu,bv) = ((bu + valueOrElse(getInteger(be, ad(bv, bg)), 0)) + assetBalance(addressFromStringValue(bv), bh)) | |
274 | 283 | ||
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | func | |
279 | - | then | |
280 | - | else | |
284 | + | let bw = split(bs, d) | |
285 | + | let bx = size(bw) | |
286 | + | let by = 0 | |
287 | + | func bz (bA,bB) = if ((bB >= bx)) | |
288 | + | then bA | |
289 | + | else bt(bA, bw[bB]) | |
281 | 290 | ||
282 | - | func | |
283 | - | then | |
291 | + | func bC (bA,bB) = if ((bB >= bx)) | |
292 | + | then bA | |
284 | 293 | else throw("List size exceeds 7") | |
285 | 294 | ||
286 | - | by | |
295 | + | bC(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7) | |
287 | 296 | } | |
288 | 297 | } | |
289 | 298 | ||
290 | 299 | ||
291 | - | func | |
300 | + | func bD () = aC(invoke(bf, "price", [4], nil))._2 | |
292 | 301 | ||
293 | 302 | ||
294 | - | func | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | fraction( | |
303 | + | func bE (bF,bG) = { | |
304 | + | let bH = valueOrElse(getInteger(this, P()), 600000) | |
305 | + | let bI = valueOrElse(getInteger(this, Q()), 150000) | |
306 | + | let bJ = max([bH, fraction((h + bI), bG, h)]) | |
307 | + | let bK = min([bJ, h]) | |
308 | + | fraction(bF, h, bK) | |
300 | 309 | } | |
301 | 310 | ||
302 | 311 | ||
303 | - | let | |
312 | + | let bL = getIntegerValue(ba, Z()) | |
304 | 313 | ||
305 | - | let | |
314 | + | let bG = bD() | |
306 | 315 | ||
307 | - | let | |
316 | + | let bM = bE(bL, bG) | |
308 | 317 | ||
309 | - | let | |
318 | + | let bN = (valueOrElse(getInteger(bb, bp()), 0) + valueOrElse(getInteger(bb, bo()), 0)) | |
310 | 319 | ||
311 | - | let | |
320 | + | let bO = (valueOrElse(getInteger(bb, bq()), 0) + valueOrElse(getInteger(bb, bn("WAVES")), 0)) | |
312 | 321 | ||
313 | - | let bL = (wavesBalance(be).regular - bK) | |
314 | - | ||
315 | - | let bM = ar(bL, bI) | |
316 | - | ||
317 | - | let bN = bn() | |
318 | - | ||
319 | - | let bO = (((bJ + value(assetInfo(bk)).quantity) - assetBalance(be, bk)) - assetBalance(bg, bk)) | |
320 | - | ||
321 | - | let bP = (bO - bN) | |
322 | - | ||
323 | - | let bQ = if ((bP == 0)) | |
324 | - | then 0 | |
325 | - | else fraction(bM, h, bP) | |
326 | - | ||
327 | - | func bR () = { | |
328 | - | let bS = valueOrElse(getString(be, ab()), "WAVES") | |
329 | - | let bT = split(bS, d) | |
330 | - | func bU (bV,ae) = { | |
331 | - | let bW = fromBase58String(ae) | |
332 | - | let bX = if ((bW == n)) | |
333 | - | then bL | |
334 | - | else assetBalance(be, bW) | |
335 | - | let bY = valueOrElse(getInteger(bd, ad(ae)), h) | |
336 | - | let bZ = fraction(bX, bY, j) | |
337 | - | $Tuple2((bV._1 :+ $Tuple4(ae, bX, bZ, bY)), (bV._2 + bZ)) | |
338 | - | } | |
339 | - | ||
340 | - | let ca = { | |
341 | - | let bs = bT | |
342 | - | let bt = size(bs) | |
343 | - | let bu = $Tuple2(nil, 0) | |
344 | - | func bv (bw,bx) = if ((bx >= bt)) | |
345 | - | then bw | |
346 | - | else bU(bw, bs[bx]) | |
347 | - | ||
348 | - | func by (bw,bx) = if ((bx >= bt)) | |
349 | - | then bw | |
350 | - | else throw("List size exceeds 10") | |
351 | - | ||
352 | - | by(bv(bv(bv(bv(bv(bv(bv(bv(bv(bv(bu, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
353 | - | } | |
354 | - | func cb (bV,cc) = { | |
355 | - | let cd = if ((ca._2 == 0)) | |
356 | - | then h | |
357 | - | else fraction(cc._3, h, ca._2) | |
358 | - | (bV :+ makeString([cc._1, toString(cd), toString(cc._4), toString(cc._2)], ":")) | |
359 | - | } | |
360 | - | ||
361 | - | let ce = if ((bP == 0)) | |
362 | - | then 0 | |
363 | - | else fraction(ca._2, h, bP) | |
364 | - | $Tuple3(makeString({ | |
365 | - | let bs = ca._1 | |
366 | - | let bt = size(bs) | |
367 | - | let bu = nil | |
368 | - | func cf (bw,bx) = if ((bx >= bt)) | |
369 | - | then bw | |
370 | - | else cb(bw, bs[bx]) | |
371 | - | ||
372 | - | func cg (bw,bx) = if ((bx >= bt)) | |
373 | - | then bw | |
374 | - | else throw("List size exceeds 10") | |
375 | - | ||
376 | - | cg(cf(cf(cf(cf(cf(cf(cf(cf(cf(cf(bu, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
377 | - | }, "_"), ce, ca._2) | |
322 | + | func bP (ab) = { | |
323 | + | let bQ = fromBase58String(ab) | |
324 | + | if ((bQ == n)) | |
325 | + | then (wavesBalance(bb).regular - bO) | |
326 | + | else (assetBalance(bb, bQ) - valueOrElse(getInteger(bb, bn(ab)), 0)) | |
378 | 327 | } | |
379 | 328 | ||
380 | 329 | ||
381 | - | @Callable(ch) | |
382 | - | func constructorV1 (ci,cj,ck) = if ((ch.caller != this)) | |
330 | + | func bR (ab) = { | |
331 | + | let bQ = fromBase58String(ab) | |
332 | + | let bS = bP(ab) | |
333 | + | if ((bQ == n)) | |
334 | + | then ao(bS, bM) | |
335 | + | else { | |
336 | + | let bT = valueOrElse(getInteger(ba, aa(ab)), h) | |
337 | + | fraction(bS, bT, j) | |
338 | + | } | |
339 | + | } | |
340 | + | ||
341 | + | ||
342 | + | let bU = br() | |
343 | + | ||
344 | + | let bV = (((bN + value(assetInfo(bh)).quantity) - assetBalance(bb, bh)) - assetBalance(bd, bh)) | |
345 | + | ||
346 | + | let bW = (bV - bU) | |
347 | + | ||
348 | + | func bX () = { | |
349 | + | let bY = split(valueOrElse(getString(bb, Y()), "WAVES"), d) | |
350 | + | func bZ (ca,ab) = (ca + fraction(bR(ab), h, bW)) | |
351 | + | ||
352 | + | let bw = bY | |
353 | + | let bx = size(bw) | |
354 | + | let by = 0 | |
355 | + | func bz (bA,bB) = if ((bB >= bx)) | |
356 | + | then bA | |
357 | + | else bZ(bA, bw[bB]) | |
358 | + | ||
359 | + | func bC (bA,bB) = if ((bB >= bx)) | |
360 | + | then bA | |
361 | + | else throw("List size exceeds 10") | |
362 | + | ||
363 | + | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
364 | + | } | |
365 | + | ||
366 | + | ||
367 | + | let cb = if ((bW == 0)) | |
368 | + | then 0 | |
369 | + | else bX() | |
370 | + | ||
371 | + | func cc () = { | |
372 | + | let cd = valueOrElse(getString(bb, Y()), "WAVES") | |
373 | + | let bY = split(cd, d) | |
374 | + | func ce (ca,ab) = { | |
375 | + | let bS = bP(ab) | |
376 | + | let bT = valueOrElse(getInteger(ba, aa(ab)), h) | |
377 | + | let cf = fraction(bS, bT, j) | |
378 | + | $Tuple2((ca._1 :+ $Tuple4(ab, bS, cf, bT)), (ca._2 + cf)) | |
379 | + | } | |
380 | + | ||
381 | + | let cg = { | |
382 | + | let bw = bY | |
383 | + | let bx = size(bw) | |
384 | + | let by = $Tuple2(nil, 0) | |
385 | + | func bz (bA,bB) = if ((bB >= bx)) | |
386 | + | then bA | |
387 | + | else ce(bA, bw[bB]) | |
388 | + | ||
389 | + | func bC (bA,bB) = if ((bB >= bx)) | |
390 | + | then bA | |
391 | + | else throw("List size exceeds 10") | |
392 | + | ||
393 | + | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
394 | + | } | |
395 | + | func ch (ca,ci) = { | |
396 | + | let cj = if ((cg._2 == 0)) | |
397 | + | then h | |
398 | + | else fraction(ci._3, h, cg._2) | |
399 | + | (ca :+ makeString([ci._1, toString(cj), toString(ci._4), toString(ci._2)], ":")) | |
400 | + | } | |
401 | + | ||
402 | + | let ck = if ((bW == 0)) | |
403 | + | then 0 | |
404 | + | else fraction(cg._2, h, bW) | |
405 | + | $Tuple3(makeString({ | |
406 | + | let bw = cg._1 | |
407 | + | let bx = size(bw) | |
408 | + | let by = nil | |
409 | + | func cl (bA,bB) = if ((bB >= bx)) | |
410 | + | then bA | |
411 | + | else ch(bA, bw[bB]) | |
412 | + | ||
413 | + | func cm (bA,bB) = if ((bB >= bx)) | |
414 | + | then bA | |
415 | + | else throw("List size exceeds 10") | |
416 | + | ||
417 | + | cm(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
418 | + | }, "_"), ck, cg._2) | |
419 | + | } | |
420 | + | ||
421 | + | ||
422 | + | @Callable(cn) | |
423 | + | func constructorV1 (co,cp,cq) = if ((cn.caller != this)) | |
383 | 424 | then throw("not authorized") | |
384 | - | else [StringEntry(K(), | |
425 | + | else [StringEntry(K(), co), IntegerEntry(L(), cq)] | |
385 | 426 | ||
386 | 427 | ||
387 | 428 | ||
388 | - | @Callable( | |
389 | - | func calcSwapLimitREADONLY ( | |
390 | - | let | |
429 | + | @Callable(cn) | |
430 | + | func calcSwapLimitREADONLY (cr) = { | |
431 | + | let cs = if ((0 >= cr)) | |
391 | 432 | then 0 | |
392 | 433 | else { | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | toInt(fraction( | |
434 | + | let ct = toBigInt(ai(this, L())) | |
435 | + | let cu = toBigInt(ai(this, M())) | |
436 | + | let cv = pow(toBigInt(cr), 6, cu, 16, 8, CEILING) | |
437 | + | toInt(fraction(ct, cv, l)) | |
397 | 438 | } | |
398 | - | let | |
399 | - | let | |
439 | + | let cw = al(cs, bL) | |
440 | + | let cx = if ((0 >= cr)) | |
400 | 441 | then 0 | |
401 | 442 | else { | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | toInt(fraction(fraction( | |
443 | + | let ct = toBigInt(ai(this, N())) | |
444 | + | let cu = toBigInt(ai(this, O())) | |
445 | + | let cy = toBigInt(cb) | |
446 | + | let cv = pow(toBigInt(cr), 6, cu, 16, 8, CEILING) | |
447 | + | toInt(fraction(fraction(ct, cv, l), cy, i)) | |
407 | 448 | } | |
408 | - | $Tuple2(nil, [ | |
449 | + | $Tuple2(nil, [cs, cw, cx]) | |
409 | 450 | } | |
410 | 451 | ||
411 | 452 | ||
412 | 453 | ||
413 | - | @Callable( | |
414 | - | func calculateKREADONLY ( | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | if (( | |
422 | - | then throw((("BR=" + toString( | |
454 | + | @Callable(cn) | |
455 | + | func calculateKREADONLY (cz,cA,an,cB,cC) = { | |
456 | + | let cD = toBigInt(2718281) | |
457 | + | let cE = 6 | |
458 | + | let cF = valueOrElse(getInteger(bc, "nsbtCurveParam_a"), 3) | |
459 | + | let cG = valueOrElse(getInteger(bc, "nsbtCurveParam_b"), ((3 * h) / 10)) | |
460 | + | let cH = ao(cz, an) | |
461 | + | let cI = fraction(cH, j, cA) | |
462 | + | if ((cI > 10678564816)) | |
463 | + | then throw((("BR=" + toString(cI)) + " > 10678.564816% will overflow exponent")) | |
423 | 464 | else { | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | $Tuple2(nil, [ | |
465 | + | let cJ = (cF * (cI - j)) | |
466 | + | let cK = pow(cD, cE, toBigInt(cJ), b, c, DOWN) | |
467 | + | let cL = fraction(toBigInt(cG), cK, i) | |
468 | + | $Tuple2(nil, [cF, cG, cH, cI, cJ, toString(cK), toString(cL)]) | |
428 | 469 | } | |
429 | 470 | } | |
430 | 471 | ||
431 | 472 | ||
432 | 473 | ||
433 | - | @Callable( | |
434 | - | func curveFunctionREADONLY ( | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | $Tuple2(nil, [cP, | |
474 | + | @Callable(cn) | |
475 | + | func curveFunctionREADONLY (cM) = { | |
476 | + | let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
477 | + | let an = ay(cN[v]) | |
478 | + | let cz = ay(cN[y]) | |
479 | + | let cA = ay(cN[A]) | |
480 | + | let cC = ay(cN[E]) | |
481 | + | let cB = ay(cN[F]) | |
482 | + | let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil)) | |
483 | + | let cL = parseBigIntValue(aA(cO[u])) | |
484 | + | let cP = ao(cM, an) | |
485 | + | let cQ = toBigInt(cB) | |
486 | + | let cR = toBigInt((cB - cC)) | |
487 | + | let cS = fraction(toBigInt(cP), m, cL) | |
488 | + | let cT = fraction(cS, cR, cQ) | |
489 | + | let cU = toInt(fraction(cR, cQ, (cT + cQ))) | |
490 | + | let cV = ((cB - cC) - cU) | |
491 | + | $Tuple2(nil, [cV, cP, cz, cA, cB, cC, ay(cO[o]), ay(cO[p]), ay(cO[q]), an, ay(cO[r]), ay(cO[s]), cO[t], cO[u], toString(cS), toString(cT), cU]) | |
451 | 492 | } | |
452 | 493 | ||
453 | 494 | ||
454 | 495 | ||
455 | - | @Callable( | |
456 | - | func surfFunctionREADONLY ( | |
496 | + | @Callable(cn) | |
497 | + | func surfFunctionREADONLY (am,ab) = if ((0 > am)) | |
457 | 498 | then throw("amount should be positive") | |
458 | 499 | else { | |
459 | - | let aq = bH | |
460 | - | let cQ = toBigInt(aq) | |
461 | - | let cR = toBigInt(bL) | |
462 | - | let cS = bP | |
463 | - | let cT = toBigInt(cS) | |
464 | - | if ((bQ >= h)) | |
465 | - | then throw((("BR = " + toString(bQ)) + ", cannot buy SURF")) | |
500 | + | let an = bL | |
501 | + | let cW = toBigInt(an) | |
502 | + | let cX = bP("WAVES") | |
503 | + | let cY = toBigInt(cX) | |
504 | + | let cZ = bW | |
505 | + | let da = toBigInt(cZ) | |
506 | + | if ((cb >= h)) | |
507 | + | then throw((("BR = " + toString(cb)) + ", cannot buy SURF")) | |
466 | 508 | else { | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | then if (( | |
471 | - | then | |
472 | - | else | |
473 | - | else if (( | |
474 | - | then if (( | |
475 | - | then | |
476 | - | else | |
509 | + | let db = (fraction(cZ, j, an) - cX) | |
510 | + | let dc = (cZ - fraction(cX, an, j)) | |
511 | + | let dd = if ((ab == bh)) | |
512 | + | then if ((am > dc)) | |
513 | + | then dc | |
514 | + | else am | |
515 | + | else if ((ab == n)) | |
516 | + | then if ((am > db)) | |
517 | + | then db | |
518 | + | else am | |
477 | 519 | else 0 | |
478 | - | let | |
479 | - | if (( | |
480 | - | then $Tuple2(nil, [toInt(fraction(fraction( | |
481 | - | else if (( | |
482 | - | then $Tuple2(nil, [toInt(fraction( | |
520 | + | let de = toBigInt(dd) | |
521 | + | if ((ab == bh)) | |
522 | + | then $Tuple2(nil, [toInt(fraction(fraction(de, k, cW), (da - (de / g)), cY)), 0, dd, cX, cZ, cb, cX, (cZ - dd), fraction(ao(cX, an), h, (cZ - dd)), (am - dd), an]) | |
523 | + | else if ((ab == n)) | |
524 | + | then $Tuple2(nil, [toInt(fraction(da, log(fraction((cY + de), m, cY), 16, f, 16, 16, HALFUP), m)), dd, 0, cX, cZ, cb, (cX + dd), cZ, fraction(ao((cX + dd), an), h, cZ), (am - dd), an]) | |
483 | 525 | else throw("Unsupported asset") | |
484 | 526 | } | |
485 | 527 | } | |
486 | 528 | ||
487 | 529 | ||
488 | 530 | ||
489 | - | @Callable( | |
490 | - | func calcContractNsbtPriceSYSREADONLY ( | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | $Tuple2(nil, [ | |
531 | + | @Callable(cn) | |
532 | + | func calcContractNsbtPriceSYSREADONLY (df) = { | |
533 | + | let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
534 | + | let an = ay(cN[v]) | |
535 | + | let cz = ay(cN[y]) | |
536 | + | let cA = (ay(cN[A]) - df) | |
537 | + | let cC = (ay(cN[E]) + df) | |
538 | + | let cB = ay(cN[F]) | |
539 | + | let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil)) | |
540 | + | let dg = parseBigIntValue(aA(cO[u])) | |
541 | + | let dh = fraction(toBigInt(cB), m, toBigInt((cB - cC))) | |
542 | + | let di = fraction(dh, dh, m) | |
543 | + | let dj = fraction(dg, di, m) | |
544 | + | let dk = toInt(fraction(dj, toBigInt(h), m)) | |
545 | + | let dl = fraction(dk, h, an) | |
546 | + | $Tuple2(nil, [dk, dl]) | |
505 | 547 | } | |
506 | 548 | ||
507 | 549 | ||
508 | 550 | ||
509 | - | @Callable( | |
551 | + | @Callable(cn) | |
510 | 552 | func calcNeutinoMetricsREADONLY () = { | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | $Tuple2(nil, [ | |
553 | + | let dm = value(assetInfo(bi)).quantity | |
554 | + | let dn = (dm - assetBalance(bc, bi)) | |
555 | + | let do = value(assetInfo(bj)).quantity | |
556 | + | let dp = cc() | |
557 | + | $Tuple2(nil, [bL, bN, bO, bP("WAVES"), bR("WAVES"), bW, bU, bV, cb, dn, dm, do, bG, bM, dp._1, dp._2, dp._3]) | |
516 | 558 | } | |
517 | 559 | ||
518 | 560 | ||
519 | 561 | ||
520 | - | @Callable( | |
521 | - | func getUnstakeComissionAmountREADONLY ( | |
562 | + | @Callable(cn) | |
563 | + | func getUnstakeComissionAmountREADONLY (am,dq,dr) = $Tuple2(nil, fraction(am, pow(2, 0, fraction(-((height - dq)), j, dr), 8, 8, HALFUP), j)) | |
522 | 564 | ||
523 | 565 | ||
524 | 566 | ||
525 | - | @Callable( | |
526 | - | func mergeStakesREADONLY ( | |
527 | - | let | |
528 | - | let | |
529 | - | $Tuple2(nil, ( | |
567 | + | @Callable(cn) | |
568 | + | func mergeStakesREADONLY (ds,dt,du,dv,dr) = { | |
569 | + | let dw = fraction(du, pow(2, 0, fraction((dv - dt), j, dr), 8, 8, HALFUP), j) | |
570 | + | let aD = fraction((ds + du), j, (ds + dw)) | |
571 | + | $Tuple2(nil, (dt + ((e - (dr * log(aD, 8, 2, 0, 8, HALFUP))) / j))) | |
530 | 572 | } | |
531 | 573 | ||
532 | 574 | ||
533 | - | @Verifier( | |
534 | - | func | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
575 | + | @Verifier(dx) | |
576 | + | func dy () = { | |
577 | + | let dz = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d) | |
578 | + | let dA = split(valueOrElse(getString(ba, "%s__multisig"), dz), d) | |
579 | + | let dB = ((((if (sigVerify(dx.bodyBytes, dx.proofs[0], fromBase58String(dA[0]))) | |
538 | 580 | then 1 | |
539 | - | else 0) + (if (sigVerify( | |
581 | + | else 0) + (if (sigVerify(dx.bodyBytes, dx.proofs[1], fromBase58String(dA[1]))) | |
540 | 582 | then 1 | |
541 | - | else 0)) + (if (sigVerify( | |
583 | + | else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[2], fromBase58String(dA[2]))) | |
542 | 584 | then 1 | |
543 | - | else 0)) + (if (sigVerify( | |
585 | + | else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[3], fromBase58String(dA[3]))) | |
544 | 586 | then 2 | |
545 | 587 | else 0)) | |
546 | - | ( | |
588 | + | (dB >= 3) | |
547 | 589 | } | |
548 | 590 |
github/deemru/w8io/169f3d6 210.09 ms ◑