tx · 6YCdYbGdTan5YoirmjDwySn5wfo6DtobSST6HQWrd3E8 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj: -0.04300000 Waves 2023.02.13 10:42 [2447548] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves
{ "type": 13, "id": "6YCdYbGdTan5YoirmjDwySn5wfo6DtobSST6HQWrd3E8", "fee": 4300000, "feeAssetId": null, "timestamp": 1676274255148, "version": 2, "chainId": 84, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "2hdLU3QKNyzjqwSk6sCVn6qgVfaqG2ycUQ9BdLcGBv2TjrNwxzU2xB7ja8TXULDJto9icvjZYNqTgwcrHng21atk", "444xnf3MH6C7TBapz1cwWqc6YF9EUGxTX1jxafjWNdrDvMsqELykAtr21Jx9ZyMr8aQqCGERX4uYKmX8SRUpvxSE", "Sdh7piSkKzNVpN3xZ2mgAoFX6XxwvcM84mNphwnHnHUHDaC4ghXgHUYJKNJm6Gs5h9R2ArGKQfHpj7bBmrdah9L" ], "script": "base64:BgJhCAISDgoMCAgICAgIAQEBAQEBEgUKAwgIARIHCgUYAQEBARIAEgASBQoDCAEIEgMKAQESBAoCAQgSABIFCgMIAQESBAoCAQESBAoCCAESBgoECAEBCBIGCgQICAEBEgASALABAQ9nZXRTdHJpbmdPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5CQC5CQIJAMwIAgIKbWFuZGF0b3J5IAkAzAgCCQClCAEFB2FkZHJlc3MJAMwIAgIBLgkAzAgCBQNrZXkJAMwIAgIPIGlzIG5vdCBkZWZpbmVkBQNuaWwCAAEFbGNhbGMBAWwJALkIAQUBbAEOZ2V0TnVtYmVyQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aG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lZF9jYWxsZXIJAKUIAQULZ292Q29udHJhY3QHCQEOdmFsaWRhdGVVcGRhdGUBBQJ0eAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIVU3BvbnNvckZlZVRyYW5zYWN0aW9uBAlzcG9uc29yVHgFByRtYXRjaDADCQEbY2hlY2tJc1ZhbGlkTWluU3BvbnNvcmVkRmVlAQUJc3BvbnNvclR4CQBnAgUFY291bnQAAwcJAGcCBQVjb3VudAADrrsf0g==", "height": 2447548, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: aAozP578c57yZmRydwC46Yeafx6XpbP3PrudmfWXcqG Next: 3whRXcyF5PnxrHpUWK9SbJFftEeYc3E3YKjbZELDyQL7 Diff:
Old | New | Differences | |
---|---|---|---|
111 | 111 | ||
112 | 112 | let I = 2 | |
113 | 113 | ||
114 | - | let J = | |
114 | + | let J = 3 | |
115 | 115 | ||
116 | - | let K = | |
116 | + | let K = 4 | |
117 | 117 | ||
118 | - | let L = | |
118 | + | let L = 5 | |
119 | 119 | ||
120 | - | let M = | |
120 | + | let M = 6 | |
121 | 121 | ||
122 | - | let N = | |
122 | + | let N = 7 | |
123 | 123 | ||
124 | - | let O = | |
124 | + | let O = 8 | |
125 | 125 | ||
126 | - | let P = | |
126 | + | let P = 9 | |
127 | 127 | ||
128 | - | let Q = | |
128 | + | let Q = 10 | |
129 | 129 | ||
130 | - | let R = | |
130 | + | let R = 11 | |
131 | 131 | ||
132 | - | let S = | |
132 | + | let S = 12 | |
133 | 133 | ||
134 | - | let T = | |
134 | + | let T = 13 | |
135 | 135 | ||
136 | - | let U = | |
136 | + | let U = 14 | |
137 | 137 | ||
138 | - | let V = | |
138 | + | let V = 15 | |
139 | 139 | ||
140 | - | func W () = "%s%s__config__controlAddress" | |
140 | + | let W = 16 | |
141 | + | ||
142 | + | let X = 1 | |
143 | + | ||
144 | + | let Y = 2 | |
145 | + | ||
146 | + | let Z = 3 | |
147 | + | ||
148 | + | let aa = 4 | |
149 | + | ||
150 | + | let ab = 5 | |
151 | + | ||
152 | + | let ac = 6 | |
153 | + | ||
154 | + | let ad = 7 | |
155 | + | ||
156 | + | let ae = 8 | |
157 | + | ||
158 | + | let af = 9 | |
159 | + | ||
160 | + | let ag = 10 | |
161 | + | ||
162 | + | let ah = 11 | |
163 | + | ||
164 | + | let ai = 12 | |
165 | + | ||
166 | + | let aj = 13 | |
167 | + | ||
168 | + | func ak () = "%s%s__config__controlAddress" | |
141 | 169 | ||
142 | 170 | ||
143 | - | func | |
171 | + | func al () = "%s__controlConfig" | |
144 | 172 | ||
145 | 173 | ||
146 | - | func | |
174 | + | func am (an) = split_4C(a(an, al()), z) | |
147 | 175 | ||
148 | 176 | ||
149 | - | func | |
177 | + | func ao (ap,aq) = valueOrErrorMessage(addressFromString(ap[aq]), ("Control cfg doesn't contain address at index " + toString(aq))) | |
150 | 178 | ||
151 | 179 | ||
152 | - | let | |
180 | + | let ar = addressFromStringValue(valueOrElse(getString(this, ak()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
153 | 181 | ||
154 | - | let | |
182 | + | let ap = am(ar) | |
155 | 183 | ||
156 | - | let | |
184 | + | let as = ao(ap, aa) | |
157 | 185 | ||
158 | - | let | |
186 | + | let at = ao(ap, ae) | |
159 | 187 | ||
160 | - | let | |
188 | + | let au = ao(ap, ag) | |
161 | 189 | ||
162 | - | let | |
190 | + | let av = ao(ap, ah) | |
163 | 191 | ||
164 | - | let | |
192 | + | let aw = ao(ap, Y) | |
165 | 193 | ||
166 | - | let | |
194 | + | let ax = ao(ap, ad) | |
167 | 195 | ||
168 | - | let | |
196 | + | let ay = ao(ap, aj) | |
169 | 197 | ||
170 | - | let | |
198 | + | let az = "neutrino_asset_id" | |
171 | 199 | ||
172 | - | let | |
200 | + | let aA = "bond_asset_id" | |
173 | 201 | ||
174 | - | let | |
202 | + | let aB = "auction_contract" | |
175 | 203 | ||
176 | - | let | |
204 | + | let aC = "nsbtStakingContract" | |
177 | 205 | ||
178 | - | let | |
206 | + | let aD = "liquidation_contract" | |
179 | 207 | ||
180 | - | let | |
208 | + | let aE = "rpd_contract" | |
181 | 209 | ||
182 | - | let | |
210 | + | let aF = "control_contract" | |
183 | 211 | ||
184 | - | let | |
212 | + | let aG = "math_contract" | |
185 | 213 | ||
186 | - | let | |
214 | + | let aH = "balance_waves_lock_interval" | |
187 | 215 | ||
188 | - | let | |
216 | + | let aI = "balance_neutrino_lock_interval" | |
189 | 217 | ||
190 | - | func | |
218 | + | func aJ (aK) = ("min_outNeutrino_swap_amount_" + aK) | |
191 | 219 | ||
192 | 220 | ||
193 | - | let | |
221 | + | let aL = "min_outMulti_swap_amount" | |
194 | 222 | ||
195 | - | let | |
223 | + | let aM = "node_oracle_provider" | |
196 | 224 | ||
197 | - | let | |
225 | + | let aN = "neutrinoOut_swap_feePart" | |
198 | 226 | ||
199 | - | let | |
227 | + | let aO = "wavesOut_swap_feePart" | |
200 | 228 | ||
201 | - | func | |
229 | + | func aP (b) = ("%s__" + b) | |
202 | 230 | ||
203 | 231 | ||
204 | - | let | |
232 | + | let aQ = "price" | |
205 | 233 | ||
206 | - | let | |
234 | + | let aR = "price_index" | |
207 | 235 | ||
208 | - | let | |
236 | + | let aS = "is_blocked" | |
209 | 237 | ||
210 | - | func | |
238 | + | func aT (aU) = ((aQ + "_") + toString(aU)) | |
211 | 239 | ||
212 | 240 | ||
213 | - | func | |
241 | + | func aV (aW) = ((aR + "_") + toString(aW)) | |
214 | 242 | ||
215 | 243 | ||
216 | - | func | |
244 | + | func aX (aq) = g(makeString(["%s%d%s", "lease", toString(aq), "nodeAddress"], z)) | |
217 | 245 | ||
218 | 246 | ||
219 | - | func | |
247 | + | func aY (aq) = addressFromStringValue(aX(aq)) | |
220 | 248 | ||
221 | 249 | ||
222 | - | func | |
250 | + | func aZ () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], z)), (1000 * B)) | |
223 | 251 | ||
224 | 252 | ||
225 | - | func | |
253 | + | func ba (bb) = ("balance_unlock_block_" + bb) | |
226 | 254 | ||
227 | 255 | ||
228 | - | func | |
256 | + | func bc (bd) = makeString(["%s%d%s", "lease", toString(bd), "id"], z) | |
229 | 257 | ||
230 | 258 | ||
231 | - | func | |
259 | + | func be (bf) = makeString(["%s%s%s", "leaseByAddress", bf, "id"], z) | |
232 | 260 | ||
233 | 261 | ||
234 | - | func | |
262 | + | func bg (bd) = makeString(["%s%d%s", "lease", toString(bd), "amount"], z) | |
235 | 263 | ||
236 | 264 | ||
237 | - | func | |
265 | + | func bh (bf) = makeString(["%s%s%s", "leaseByAddress", bf, "amount"], z) | |
238 | 266 | ||
239 | 267 | ||
240 | - | func | |
268 | + | func bi (bj) = makeString(["%s%d%s", "leaseGroup", toString(bj), "nodeList"], z) | |
241 | 269 | ||
242 | 270 | ||
243 | - | func | |
271 | + | func bk (bl) = (("min_" + bl) + "_swap_amount") | |
244 | 272 | ||
245 | 273 | ||
246 | - | func | |
274 | + | func bm (bl,aK) = makeString(["%s%s%s", "balanceLock", bl, aK], z) | |
247 | 275 | ||
248 | 276 | ||
249 | - | func | |
277 | + | func bn (bl,bb,aK) = makeString(["%s%s%s%s", "balanceLock", bl, bb, aK], "_") | |
250 | 278 | ||
251 | 279 | ||
252 | - | func | |
253 | - | then | |
254 | - | else | |
280 | + | func bo (bl) = if ((bl == "outMulti")) | |
281 | + | then aI | |
282 | + | else aH | |
255 | 283 | ||
256 | 284 | ||
257 | - | func | |
285 | + | func bp () = "balance_node_lock_interval" | |
258 | 286 | ||
259 | 287 | ||
260 | - | func | |
288 | + | func bq () = "swaps_timeframe" | |
261 | 289 | ||
262 | 290 | ||
263 | - | func | |
291 | + | func br () = "min_BR_protection_level" | |
264 | 292 | ||
265 | 293 | ||
266 | - | func | |
294 | + | func bs () = "%s%s__common__basketAssets" | |
267 | 295 | ||
268 | 296 | ||
269 | - | func | |
297 | + | func bt () = "%s%s__common__basketD" | |
270 | 298 | ||
271 | 299 | ||
272 | - | func | |
300 | + | func bu () = "%s%s__common__basketK" | |
273 | 301 | ||
274 | 302 | ||
275 | - | func | |
303 | + | func bv () = "%s%s__common__basketB" | |
276 | 304 | ||
277 | 305 | ||
278 | - | func | |
306 | + | func bw () = "%s%s__common__basketLogbDelta" | |
279 | 307 | ||
280 | 308 | ||
281 | - | func | |
309 | + | func bx (aK) = ("%s%s%s__common__weightByAsset__" + aK) | |
282 | 310 | ||
283 | 311 | ||
284 | - | func | |
285 | - | then getInteger( | |
286 | - | else getInteger( | |
312 | + | func by (bl,aK) = valueOrElse(if ((bl == "outMulti")) | |
313 | + | then getInteger(aL) | |
314 | + | else getInteger(aJ(aK)), 0) | |
287 | 315 | ||
288 | 316 | ||
289 | - | func | |
317 | + | func bz () = valueOrElse(getInteger(this, bq()), 1440) | |
290 | 318 | ||
291 | 319 | ||
292 | - | func | |
320 | + | func bA (bl,aK) = valueOrElse(getInteger(this, bm(bl, aK)), 0) | |
293 | 321 | ||
294 | 322 | ||
295 | - | func | |
323 | + | func bB (bl,bb,aK) = valueOrElse(getInteger(this, bn(bl, bb, aK)), 0) | |
296 | 324 | ||
297 | 325 | ||
298 | - | func | |
326 | + | func bC (bl) = valueOrElse(getInteger(this, bo(bl)), 1440) | |
299 | 327 | ||
300 | 328 | ||
301 | - | func | |
329 | + | func bD () = valueOrElse(getInteger(this, bp()), 1) | |
302 | 330 | ||
303 | 331 | ||
304 | - | func | |
332 | + | func bE (bF) = makeString(["%s%s", "swapUserSpentInPeriod", bF], z) | |
305 | 333 | ||
306 | 334 | ||
307 | - | func | |
335 | + | func bG (bF) = makeString(["%s%s", "userLastSwapHeight", bF], z) | |
308 | 336 | ||
309 | 337 | ||
310 | - | func | |
338 | + | func bH (bI,bJ) = fraction(bI, B, bJ) | |
311 | 339 | ||
312 | 340 | ||
313 | - | func | |
341 | + | func bK (bI,bJ) = fraction(bI, bJ, B) | |
314 | 342 | ||
315 | 343 | ||
316 | - | func | |
344 | + | func bL (bI,bJ) = bK(bI, bJ) | |
317 | 345 | ||
318 | 346 | ||
319 | - | func | |
347 | + | func bM (bN) = split(bN, ",") | |
320 | 348 | ||
321 | 349 | ||
322 | - | func | |
323 | - | let | |
324 | - | func | |
325 | - | let | |
326 | - | if (( | |
327 | - | then | |
328 | - | else | |
350 | + | func bO (bP,bQ,bR,bS) = { | |
351 | + | let bT = split(bR, "_") | |
352 | + | func bU (bV,bW) = { | |
353 | + | let bX = split(bW, A) | |
354 | + | if ((bX[0] == bQ)) | |
355 | + | then bX | |
356 | + | else bV | |
329 | 357 | } | |
330 | 358 | ||
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | func | |
336 | - | then | |
337 | - | else | |
359 | + | let bY = { | |
360 | + | let bZ = bT | |
361 | + | let ca = size(bZ) | |
362 | + | let cb = nil | |
363 | + | func cc (cd,ce) = if ((ce >= ca)) | |
364 | + | then cd | |
365 | + | else bU(cd, bZ[ce]) | |
338 | 366 | ||
339 | - | func | |
340 | - | then | |
367 | + | func cf (cd,ce) = if ((ce >= ca)) | |
368 | + | then cd | |
341 | 369 | else throw("List size exceeds 10") | |
342 | 370 | ||
343 | - | | |
371 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
344 | 372 | } | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
373 | + | let cg = valueOrElse(getInteger(bw()), -18820642) | |
374 | + | let ch = valueOrElse(getInteger(bt()), 50000) | |
375 | + | let ci = valueOrElse(getInteger(bv()), 1250000) | |
376 | + | let cj = valueOrElse(getInteger(bx(bQ)), 166666) | |
377 | + | let ck = ((cg - cj) + parseIntValue(bY[1])) | |
378 | + | let cl = pow(ci, 6, ck, 6, 6, HALFUP) | |
379 | + | let cm = fraction(bP, parseIntValue(bY[2]), if ((bS == 0)) | |
352 | 380 | then B | |
353 | - | else (bE * 100)) | |
354 | - | let bZ = ((C + bT) - bX) | |
355 | - | if ((0 >= bZ)) | |
356 | - | then throw(("Net amount is non-positive, multiplier = " + toString(bZ))) | |
357 | - | else { | |
358 | - | let ca = fraction(bY, bZ, C) | |
359 | - | let cb = if ((ca >= bY)) | |
360 | - | then 0 | |
361 | - | else (bY - ca) | |
362 | - | [bY, ca, cb] | |
363 | - | } | |
381 | + | else (bS * 100)) | |
382 | + | let cn = ((C + ch) - cl) | |
383 | + | let co = fraction(cm, cn, C) | |
384 | + | let cp = if ((co >= cm)) | |
385 | + | then 0 | |
386 | + | else (cm - co) | |
387 | + | [cm, co, cp] | |
364 | 388 | } | |
365 | 389 | ||
366 | 390 | ||
367 | - | func | |
368 | - | let | |
369 | - | func | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | if (( | |
391 | + | func cq (bI,bR,cr) = { | |
392 | + | let bT = split(bR, "_") | |
393 | + | func cs (bV,bW) = { | |
394 | + | let ct = split(bW, A) | |
395 | + | let aK = ct[0] | |
396 | + | let cu = parseIntValue(ct[1]) | |
397 | + | let bJ = parseIntValue(ct[2]) | |
398 | + | let cv = parseIntValue(ct[3]) | |
399 | + | if ((cr == 0)) | |
376 | 400 | then throw("Attempt to burn neutrino at zero supply") | |
377 | 401 | else { | |
378 | - | let | |
379 | - | let | |
380 | - | then $Tuple2( | |
381 | - | else $Tuple2( | |
382 | - | $Tuple3(( | |
402 | + | let cw = fraction(bI, cv, cr) | |
403 | + | let cx = if ((aK == "WAVES")) | |
404 | + | then $Tuple2(cw, bJ) | |
405 | + | else $Tuple2(bV._2, bV._3) | |
406 | + | $Tuple3((bV._1 :+ $Tuple4(aK, cw, bJ, cu)), cx._1, cx._2) | |
383 | 407 | } | |
384 | 408 | } | |
385 | 409 | ||
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | func | |
390 | - | then | |
391 | - | else | |
410 | + | let bZ = bT | |
411 | + | let ca = size(bZ) | |
412 | + | let cb = $Tuple3(nil, 0, 0) | |
413 | + | func cc (cd,ce) = if ((ce >= ca)) | |
414 | + | then cd | |
415 | + | else cs(cd, bZ[ce]) | |
392 | 416 | ||
393 | - | func | |
394 | - | then | |
417 | + | func cf (cd,ce) = if ((ce >= ca)) | |
418 | + | then cd | |
395 | 419 | else throw("List size exceeds 10") | |
396 | 420 | ||
397 | - | | |
421 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
398 | 422 | } | |
399 | 423 | ||
400 | 424 | ||
401 | - | func | |
425 | + | func cy (bl,cz) = throw(((("The specified amount in " + bl) + " swap is less than the required minimum of ") + toString(cz))) | |
402 | 426 | ||
403 | 427 | ||
404 | - | func | |
428 | + | func cA () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
405 | 429 | ||
406 | 430 | ||
407 | - | func | |
431 | + | func cB (aW,cC,cD,cE,cF) = throw(((((((((("invalid price history index: index=" + toString(aW)) + " priceIndex=") + toString(cC)) + " indexHeight=") + toString(cD)) + " unlockHeight=") + toString(cE)) + " prevIndexHeight=") + toString(cF))) | |
408 | 432 | ||
409 | 433 | ||
410 | - | let | |
434 | + | let cG = fromBase58String(g(az)) | |
411 | 435 | ||
412 | - | let | |
436 | + | let cC = i(ar, aR) | |
413 | 437 | ||
414 | - | let | |
438 | + | let cH = k(ar, aS) | |
415 | 439 | ||
416 | - | let | |
440 | + | let cI = fromBase58String(g(aM)) | |
417 | 441 | ||
418 | - | let | |
442 | + | let cJ = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
419 | 443 | ||
420 | - | let | |
444 | + | let cK = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
421 | 445 | ||
422 | - | let | |
446 | + | let cL = this | |
423 | 447 | ||
424 | - | let | |
448 | + | let cM = i(ar, aQ) | |
425 | 449 | ||
426 | - | func | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | if (if (( | |
434 | - | then ( | |
450 | + | func cN (cO) = { | |
451 | + | let cP = 100000 | |
452 | + | let cQ = 1000 | |
453 | + | let cR = bK(cP, cM) | |
454 | + | let cS = (cR * 2) | |
455 | + | let cT = fraction(cR, cQ, 100) | |
456 | + | let cU = value(cO.minSponsoredAssetFee) | |
457 | + | if (if ((cU >= cS)) | |
458 | + | then (cT >= cU) | |
435 | 459 | else false) | |
436 | - | then ( | |
460 | + | then (cO.assetId == cG) | |
437 | 461 | else false | |
438 | 462 | } | |
439 | 463 | ||
440 | 464 | ||
441 | - | func | |
465 | + | func cV (aU) = i(ar, aT(aU)) | |
442 | 466 | ||
443 | 467 | ||
444 | - | func | |
468 | + | func cW (aW) = i(ar, aV(aW)) | |
445 | 469 | ||
446 | 470 | ||
447 | - | func | |
471 | + | func cX (bF) = makeString(["%s%s%s", "paramByUser", bF, "amount"], z) | |
448 | 472 | ||
449 | 473 | ||
450 | - | let | |
474 | + | let cY = 1 | |
451 | 475 | ||
452 | - | let | |
476 | + | let cZ = 2 | |
453 | 477 | ||
454 | - | let | |
478 | + | let da = 3 | |
455 | 479 | ||
456 | - | let | |
480 | + | let db = 7 | |
457 | 481 | ||
458 | - | let | |
482 | + | let dc = 8 | |
459 | 483 | ||
460 | - | let | |
484 | + | let dd = 11 | |
461 | 485 | ||
462 | - | let | |
486 | + | let de = 15 | |
463 | 487 | ||
464 | - | let | |
488 | + | let df = 16 | |
465 | 489 | ||
466 | - | let | |
490 | + | let dg = 20 | |
467 | 491 | ||
468 | - | func | |
492 | + | func dh (bF,di) = makeString(["%s%s", bF, di], z) | |
469 | 493 | ||
470 | 494 | ||
471 | - | func | |
495 | + | func dj (bl,dk,bP,bJ,dl,dm,dn,do,dp,dq,dr,ds,aW,dt,du,dv,dw,dx,dy,bQ) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d%s%s", bl, dk, bP, bJ, dl, dm, dn, do, dp, dq, dr, ds, aW, dt, du, dv, dw, dx, dy, bQ], z) | |
472 | 496 | ||
473 | 497 | ||
474 | - | func | |
498 | + | func dz (bl,dA,dr,bQ) = dj(bl, "PENDING", toString(dA), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(dr), "0", "0", "NULL", "0", "0", "0", "0", "", bQ) | |
475 | 499 | ||
476 | 500 | ||
477 | - | func | |
501 | + | func dB (dC,bJ,dl,dm,ds,aW,dt,dw,dx,dy,bQ) = dj(dC[cY], "FINISHED", dC[da], toString(bJ), toString(dl), toString(dm), dC[db], dC[dc], toString(height), toString(lastBlock.timestamp), dC[dd], toString(ds), toString(aW), dt, dC[de], dC[df], toString(dw), toString(dx), dy, bQ) | |
478 | 502 | ||
479 | 503 | ||
480 | - | func | |
481 | - | let | |
482 | - | split_4C(valueOrErrorMessage(getString( | |
504 | + | func dD (bF,dE) = { | |
505 | + | let dF = dh(bF, dE) | |
506 | + | split_4C(valueOrErrorMessage(getString(dF), ("no swap data for " + dF)), z) | |
483 | 507 | } | |
484 | 508 | ||
485 | 509 | ||
486 | - | func | |
487 | - | let | |
488 | - | [( | |
510 | + | func dG (dH,dI,dJ) = { | |
511 | + | let cp = fraction(dH, dJ, C) | |
512 | + | [(dH - cp), cp] | |
489 | 513 | } | |
490 | 514 | ||
491 | 515 | ||
492 | - | func | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | func | |
497 | - | let | |
498 | - | ( | |
516 | + | func dK (dL) = { | |
517 | + | let dM = valueOrElse(getInteger(bu()), C) | |
518 | + | let ch = valueOrElse(getInteger(bt()), 50000) | |
519 | + | let dJ = fraction(dM, ch, C) | |
520 | + | func dN (bV,bW) = { | |
521 | + | let cp = fraction(bW._2, dJ, C) | |
522 | + | (bV :+ makeString([bW._1, toString(bW._3), toString((bW._2 - cp)), toString(cp), toString(bW._4)], A)) | |
499 | 523 | } | |
500 | 524 | ||
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | func | |
506 | - | then | |
507 | - | else | |
525 | + | let dO = { | |
526 | + | let bZ = dL | |
527 | + | let ca = size(bZ) | |
528 | + | let cb = nil | |
529 | + | func cc (cd,ce) = if ((ce >= ca)) | |
530 | + | then cd | |
531 | + | else dN(cd, bZ[ce]) | |
508 | 532 | ||
509 | - | func | |
510 | - | then | |
533 | + | func cf (cd,ce) = if ((ce >= ca)) | |
534 | + | then cd | |
511 | 535 | else throw("List size exceeds 10") | |
512 | 536 | ||
513 | - | | |
537 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
514 | 538 | } | |
515 | - | makeString( | |
539 | + | makeString(dO, z) | |
516 | 540 | } | |
517 | 541 | ||
518 | 542 | ||
519 | - | func | |
520 | - | then -( | |
521 | - | else | |
543 | + | func dP (dQ) = if ((0 > dQ)) | |
544 | + | then -(dQ) | |
545 | + | else dQ | |
522 | 546 | ||
523 | 547 | ||
524 | - | func | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | if (if (( | |
548 | + | func dR (dS) = { | |
549 | + | let dT = ((wavesBalance(cL).available - dS) - aZ()) | |
550 | + | let dU = f(bg(0)) | |
551 | + | let dV = f(bg(1)) | |
552 | + | let dW = (dT + dU) | |
553 | + | let dX = (dT + dV) | |
554 | + | if (if ((dW > 0)) | |
531 | 555 | then true | |
532 | - | else ( | |
556 | + | else (dX > 0)) | |
533 | 557 | then { | |
534 | - | let | |
535 | - | let | |
536 | - | if (( | |
537 | - | then $Tuple2(0, | |
538 | - | else $Tuple2(1, | |
558 | + | let dY = dP((dW - dV)) | |
559 | + | let dZ = dP((dX - dU)) | |
560 | + | if ((dZ >= dY)) | |
561 | + | then $Tuple2(0, dW) | |
562 | + | else $Tuple2(1, dX) | |
539 | 563 | } | |
540 | 564 | else $Tuple2(-1, 0) | |
541 | 565 | } | |
542 | 566 | ||
543 | 567 | ||
544 | - | func | |
568 | + | func ea (r) = if ((r.caller != this)) | |
545 | 569 | then throw("Permission denied: this contract only allowed") | |
546 | 570 | else true | |
547 | 571 | ||
548 | 572 | ||
549 | - | func | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | if (( | |
573 | + | func eb (dS) = { | |
574 | + | let ec = dR(dS) | |
575 | + | let bd = ec._1 | |
576 | + | let ed = ec._2 | |
577 | + | if ((ed > 0)) | |
554 | 578 | then { | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | then [LeaseCancel(value( | |
579 | + | let ee = bc(bd) | |
580 | + | let ef = getBinary(this, ee) | |
581 | + | let eg = if (isDefined(ef)) | |
582 | + | then [LeaseCancel(value(ef))] | |
559 | 583 | else nil | |
560 | - | let | |
561 | - | let | |
562 | - | ( | |
584 | + | let eh = bg(bd) | |
585 | + | let ei = Lease(aY(bd), ed) | |
586 | + | (eg ++ [ei, BinaryEntry(ee, d(ei)), IntegerEntry(bg(bd), ed)]) | |
563 | 587 | } | |
564 | 588 | else nil | |
565 | 589 | } | |
566 | 590 | ||
567 | 591 | ||
568 | - | func | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | $Tuple5( | |
592 | + | func ej (ek) = { | |
593 | + | let bf = aY(ek) | |
594 | + | let el = bg(ek) | |
595 | + | let em = f(el) | |
596 | + | let en = bc(ek) | |
597 | + | let eo = value(getBinary(this, en)) | |
598 | + | $Tuple5(bf, el, em, en, eo) | |
575 | 599 | } | |
576 | 600 | ||
577 | 601 | ||
578 | - | func | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | then | |
592 | - | else | |
593 | - | let | |
594 | - | let | |
595 | - | then | |
596 | - | else | |
597 | - | let | |
598 | - | then | |
599 | - | else | |
600 | - | if (( | |
601 | - | then | |
602 | - | else if (if (!( | |
603 | - | then ( | |
602 | + | func ep (bl,eq,bQ,er,es) = { | |
603 | + | let et = x(invoke(this, "swapParamsByUserSYSREADONLY", [er, 0], nil)) | |
604 | + | let eu = et._2 | |
605 | + | let ev = et._3 | |
606 | + | let ew = et._6 | |
607 | + | let ex = et._7 | |
608 | + | let cz = by(bl, bQ) | |
609 | + | let ey = bA(bl, bQ) | |
610 | + | let ez = bB(bl, er, bQ) | |
611 | + | let bf = aX(0) | |
612 | + | let eA = cV(cW(cC)) | |
613 | + | let eB = (bf == er) | |
614 | + | let eC = if (eB) | |
615 | + | then bD() | |
616 | + | else bC(bl) | |
617 | + | let dr = (height + eC) | |
618 | + | let eD = if ((bl == "outNeutrino")) | |
619 | + | then bK(eq, eA) | |
620 | + | else eq | |
621 | + | let eE = if ((bl == "outNeutrino")) | |
622 | + | then bK(ew, eA) | |
623 | + | else ex | |
624 | + | if ((cz > eq)) | |
625 | + | then cy(bl, cz) | |
626 | + | else if (if (!(eB)) | |
627 | + | then (eu > 0) | |
604 | 628 | else false) | |
605 | - | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + | |
606 | - | else if (if (!( | |
607 | - | then ( | |
629 | + | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + ev)))) | |
630 | + | else if (if (!(eB)) | |
631 | + | then (eD > eE) | |
608 | 632 | else false) | |
609 | - | then throw(((("You have exceeded your swap limit! Requested: " + toString( | |
610 | - | else if ( | |
611 | - | then | |
633 | + | then throw(((("You have exceeded your swap limit! Requested: " + toString(eD)) + ", available: ") + toString(eE))) | |
634 | + | else if (cH) | |
635 | + | then cA() | |
612 | 636 | else { | |
613 | - | let er = if (if ((aX == "outNeutrino")) | |
614 | - | then (bC == "WAVES") | |
637 | + | let eF = l(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
638 | + | let bT = o(eF[U]) | |
639 | + | let eG = q(eF[V]) | |
640 | + | let eH = bO(eq, bQ, bT, eG) | |
641 | + | if (if ((bl == "outNeutrino")) | |
642 | + | then (0 >= eH[1]) | |
615 | 643 | else false) | |
616 | - | then dN(0) | |
617 | - | else nil | |
618 | - | $Tuple2(([IntegerEntry(bq(ed), ep), IntegerEntry(bs(ed), height), IntegerEntry(aZ(aX, ed, bC), (el + ec)), IntegerEntry(aM(ed), dd), IntegerEntry(aY(aX, bC), (ek + ec)), StringEntry(cT(ed, ee), dl(aX, ec, dd, bC))] ++ er), unit) | |
644 | + | then throw((((((("Net amount is non-positive, cannot swap. (gross, net, fee) = (" + toString(eH[0])) + ", ") + toString(eH[1])) + ", ") + toString(eH[2])) + ")")) | |
645 | + | else { | |
646 | + | let eI = if (if ((bl == "outNeutrino")) | |
647 | + | then (bQ == "WAVES") | |
648 | + | else false) | |
649 | + | then eb(0) | |
650 | + | else nil | |
651 | + | $Tuple2(([IntegerEntry(bE(er), eD), IntegerEntry(bG(er), height), IntegerEntry(bn(bl, er, bQ), (ez + eq)), IntegerEntry(ba(er), dr), IntegerEntry(bm(bl, bQ), (ey + eq)), StringEntry(dh(er, es), dz(bl, eq, dr, bQ))] ++ eI), unit) | |
652 | + | } | |
619 | 653 | } | |
620 | 654 | } | |
621 | 655 | ||
622 | - | ||
623 | - | let es = 0 | |
624 | - | ||
625 | - | let et = 1 | |
626 | - | ||
627 | - | let eu = 2 | |
628 | - | ||
629 | - | let ev = 3 | |
630 | - | ||
631 | - | let ew = 4 | |
632 | - | ||
633 | - | let ex = 5 | |
634 | - | ||
635 | - | let ey = 6 | |
636 | - | ||
637 | - | let ez = 7 | |
638 | - | ||
639 | - | let eA = 8 | |
640 | - | ||
641 | - | let eB = 9 | |
642 | - | ||
643 | - | let eC = 10 | |
644 | - | ||
645 | - | let eD = 11 | |
646 | - | ||
647 | - | let eE = 12 | |
648 | - | ||
649 | - | let eF = 13 | |
650 | - | ||
651 | - | let eG = 14 | |
652 | - | ||
653 | - | let eH = 15 | |
654 | - | ||
655 | - | let eI = 16 | |
656 | 656 | ||
657 | 657 | let eJ = 0 | |
658 | 658 | ||
676 | 676 | ||
677 | 677 | let eT = 10 | |
678 | 678 | ||
679 | - | func eU ( | |
680 | - | let | |
681 | - | $Tuple12( | |
679 | + | func eU (bP,bQ,bT,eG) = { | |
680 | + | let eV = bO(bP, bQ, bT, eG) | |
681 | + | $Tuple12(eV[0], cG, 0, bQ, 0, eG, bP, 0, 0, 0, nil, [eV[1], eV[2]]) | |
682 | 682 | } | |
683 | 683 | ||
684 | 684 | ||
685 | - | func | |
686 | - | let | |
687 | - | let | |
685 | + | func eW (eX,bT,dx,eY,cr) = { | |
686 | + | let eZ = valueOrElse(getInteger(this, br()), E) | |
687 | + | let fa = if ((eZ >= dx)) | |
688 | 688 | then 0 | |
689 | - | else fraction(( | |
690 | - | let | |
691 | - | then | |
692 | - | else | |
693 | - | let | |
694 | - | then fraction(( | |
689 | + | else fraction((eY - fraction(eZ, cr, C)), C, (C - eZ)) | |
690 | + | let fb = if ((eX > fa)) | |
691 | + | then fa | |
692 | + | else eX | |
693 | + | let fc = if ((eX > fa)) | |
694 | + | then fraction((eX - fa), dx, C) | |
695 | 695 | else 0 | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | $Tuple12( | |
696 | + | let fd = (fb + fc) | |
697 | + | let fe = (eX - fd) | |
698 | + | let ff = cq(fd, bT, cr) | |
699 | + | $Tuple12(ff._2, unit, fe, cG, ff._2, ff._3, fd, fa, fb, fc, ff._1, nil) | |
700 | 700 | } | |
701 | 701 | ||
702 | 702 | ||
703 | - | func | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | then eU( | |
712 | - | else if (( | |
713 | - | then | |
714 | - | else throw(("Unsupported swap type " + | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | then | |
703 | + | func fg (bl,bP,bJ,eF,bQ) = { | |
704 | + | let eZ = valueOrElse(getInteger(this, br()), E) | |
705 | + | let fh = q(eF[O]) | |
706 | + | let fi = q(eF[W]) | |
707 | + | let cr = q(eF[L]) | |
708 | + | let bT = o(eF[U]) | |
709 | + | let eG = q(eF[V]) | |
710 | + | let fj = if ((bl == "outNeutrino")) | |
711 | + | then eU(bP, bQ, bT, eG) | |
712 | + | else if ((bl == "outMulti")) | |
713 | + | then eW(bP, bT, fh, fi, cr) | |
714 | + | else throw(("Unsupported swap type " + bl)) | |
715 | + | let ff = fj._1 | |
716 | + | let fk = fj._2 | |
717 | + | let fl = fj._3 | |
718 | + | let fm = fj._4 | |
719 | + | let fn = fj._5 | |
720 | + | let fo = fj._6 | |
721 | + | let dy = fj._11 | |
722 | + | let fp = fj._12 | |
723 | + | let fq = if ((bl == "outNeutrino")) | |
724 | + | then fp[0] | |
725 | 725 | else 0 | |
726 | - | let | |
727 | - | then | |
726 | + | let fr = if ((bl == "outNeutrino")) | |
727 | + | then fp[1] | |
728 | 728 | else 0 | |
729 | - | let | |
729 | + | let dw = if ((0 >= fl)) | |
730 | 730 | then 0 | |
731 | - | else q(l(invoke( | |
732 | - | let | |
733 | - | then | |
731 | + | else q(l(invoke(as, "surfFunctionREADONLY", [fl, fm], nil))[eJ]) | |
732 | + | let fs = if ((bl == "outMulti")) | |
733 | + | then dK(dy) | |
734 | 734 | else "" | |
735 | - | $Tuple9( | |
735 | + | $Tuple9(fq, fk, dw, fl, fn, fr, ff, fo, fs) | |
736 | 736 | } | |
737 | 737 | ||
738 | 738 | ||
739 | - | func | |
739 | + | func ft () = "%s__applyInProgress" | |
740 | 740 | ||
741 | 741 | ||
742 | - | func | |
742 | + | func fu (fv) = ("%s%d__proposalData__" + toString(fv)) | |
743 | 743 | ||
744 | 744 | ||
745 | - | let | |
745 | + | let fw = 9 | |
746 | 746 | ||
747 | - | func | |
748 | - | let n = | |
747 | + | func fx (cO) = { | |
748 | + | let n = cO | |
749 | 749 | if ($isInstanceOf(n, "Order")) | |
750 | 750 | then { | |
751 | - | let | |
751 | + | let fy = n | |
752 | 752 | throw("Orders aren't allowed") | |
753 | 753 | } | |
754 | 754 | else if (if ($isInstanceOf(n, "DataTransaction")) | |
783 | 783 | then true | |
784 | 784 | else $isInstanceOf(n, "ReissueTransaction")) | |
785 | 785 | then { | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | if (!(isDefined(indexOf( | |
791 | - | then throw(((("Unknown txId: " + | |
786 | + | let fz = n | |
787 | + | let di = toBase58String(fz.id) | |
788 | + | let fv = valueOrErrorMessage(getInteger(ay, ft()), "Apply is not happening") | |
789 | + | let fA = split(split(a(ay, fu(fv)), z)[fw], A) | |
790 | + | if (!(isDefined(indexOf(fA, di)))) | |
791 | + | then throw(((("Unknown txId: " + di) + " for proposalId=") + toString(fv))) | |
792 | 792 | else true | |
793 | 793 | } | |
794 | 794 | else throw("Match error") | |
796 | 796 | ||
797 | 797 | ||
798 | 798 | @Callable(r) | |
799 | - | func constructorV1 (fD,fE,fF,fG,fH,fI,fJ,fK,fL,fM | |
800 | - | let | |
801 | - | if (( | |
799 | + | func constructorV1 (fB,fC,fD,fE,fF,fG,fH,fI,fJ,fK,fL,fM) = { | |
800 | + | let fN = ea(r) | |
801 | + | if ((fN == fN)) | |
802 | 802 | then if ((size(r.payments) != 0)) | |
803 | 803 | then throw("no payments allowed") | |
804 | - | else [StringEntry( | |
804 | + | else [StringEntry(az, fB), StringEntry(aA, fC), StringEntry(aB, fD), StringEntry(aD, fE), StringEntry(aE, fF), StringEntry(aM, fG), IntegerEntry(aH, fH), IntegerEntry(aI, fI), IntegerEntry(aJ("WAVES"), fJ), IntegerEntry(aL, fK), IntegerEntry(aN, fL), IntegerEntry(aO, fM)] | |
805 | 805 | else throw("Strict value is not equal to itself.") | |
806 | 806 | } | |
807 | 807 | ||
808 | 808 | ||
809 | 809 | ||
810 | 810 | @Callable(r) | |
811 | - | func constructorV2 ( | |
812 | - | let | |
813 | - | if (( | |
811 | + | func constructorV2 (as,at,fO) = { | |
812 | + | let fN = ea(r) | |
813 | + | if ((fN == fN)) | |
814 | 814 | then if ((size(r.payments) != 0)) | |
815 | 815 | then throw("no payments allowed") | |
816 | - | else [StringEntry( | |
816 | + | else [StringEntry(aG, as), StringEntry(aC, at), IntegerEntry(bq(), fO)] | |
817 | 817 | else throw("Strict value is not equal to itself.") | |
818 | 818 | } | |
819 | 819 | ||
820 | 820 | ||
821 | 821 | ||
822 | 822 | @Callable(r) | |
823 | - | func constructorV3 (fR,fS,fT | |
824 | - | let | |
825 | - | if (( | |
823 | + | func constructorV3 (fP,fQ,fR,fS,fT) = { | |
824 | + | let fN = ea(r) | |
825 | + | if ((fN == fN)) | |
826 | 826 | then if ((size(r.payments) != 0)) | |
827 | 827 | then throw("no payments allowed") | |
828 | 828 | else { | |
829 | - | func | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | let | |
834 | - | $Tuple2(( | |
829 | + | func fU (bV,bW) = { | |
830 | + | let ct = split(bW, "_") | |
831 | + | let aK = ct[0] | |
832 | + | let fV = parseIntValue(ct[1]) | |
833 | + | let fW = parseIntValue(ct[2]) | |
834 | + | $Tuple2((bV._1 :+ aK), ((bV._2 :+ IntegerEntry(bx(aK), fV)) :+ IntegerEntry(aJ(aK), fW))) | |
835 | 835 | } | |
836 | 836 | ||
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | func | |
842 | - | then | |
843 | - | else | |
837 | + | let fX = { | |
838 | + | let bZ = fP | |
839 | + | let ca = size(bZ) | |
840 | + | let cb = $Tuple2(nil, nil) | |
841 | + | func cc (cd,ce) = if ((ce >= ca)) | |
842 | + | then cd | |
843 | + | else fU(cd, bZ[ce]) | |
844 | 844 | ||
845 | - | func | |
846 | - | then | |
845 | + | func cf (cd,ce) = if ((ce >= ca)) | |
846 | + | then cd | |
847 | 847 | else throw("List size exceeds 10") | |
848 | 848 | ||
849 | - | | |
849 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
850 | 850 | } | |
851 | - | ((((( | |
851 | + | (((((fX._2 :+ IntegerEntry(bt(), fQ)) :+ IntegerEntry(bu(), fR)) :+ IntegerEntry(bv(), fS)) :+ IntegerEntry(bw(), log(fT, 6, fS, 6, 6, HALFUP))) :+ StringEntry(bs(), makeString(fX._1, z))) | |
852 | 852 | } | |
853 | 853 | else throw("Strict value is not equal to itself.") | |
854 | 854 | } | |
859 | 859 | func swapTokenToNeutrino () = if ((size(r.payments) != 1)) | |
860 | 860 | then throw("swapTokenToNeutrino require only one payment") | |
861 | 861 | else { | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | if (!(contains( | |
866 | - | then throw((( | |
862 | + | let fY = value(r.payments[0]) | |
863 | + | let fZ = valueOrElse(getString(bs()), "WAVES") | |
864 | + | let ga = toBase58String(valueOrElse(fY.assetId, F)) | |
865 | + | if (!(contains(fZ, ga))) | |
866 | + | then throw(((ga + " is not one of basket tokens:") + fZ)) | |
867 | 867 | else { | |
868 | - | let | |
869 | - | let | |
870 | - | | |
868 | + | let bF = toString(r.caller) | |
869 | + | let es = toBase58String(r.transactionId) | |
870 | + | ep("outNeutrino", fY.amount, ga, bF, es) | |
871 | 871 | } | |
872 | 872 | } | |
873 | 873 | ||
877 | 877 | func swapNeutrinoToBasket () = if ((size(r.payments) != 1)) | |
878 | 878 | then throw("swapNeutrinoToBasket require only one payment") | |
879 | 879 | else { | |
880 | - | let | |
881 | - | if (( | |
880 | + | let fY = value(r.payments[0]) | |
881 | + | if ((fY.assetId != cG)) | |
882 | 882 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
883 | 883 | else { | |
884 | - | let | |
885 | - | let | |
886 | - | | |
884 | + | let bF = toString(r.caller) | |
885 | + | let es = toBase58String(r.transactionId) | |
886 | + | ep("outMulti", fY.amount, toBase58String(cG), bF, es) | |
887 | 887 | } | |
888 | 888 | } | |
889 | 889 | ||
890 | 890 | ||
891 | 891 | ||
892 | 892 | @Callable(r) | |
893 | - | func withdraw ( | |
894 | - | let | |
893 | + | func withdraw (gb,aW,dE) = { | |
894 | + | let di = toBase58String(r.transactionId) | |
895 | 895 | if ((size(r.payments) != 0)) | |
896 | 896 | then throw("no payments allowed") | |
897 | 897 | else { | |
898 | - | let | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | let | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | let | |
914 | - | if ( | |
915 | - | then | |
916 | - | else if (( | |
898 | + | let eF = l(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
899 | + | let fh = q(eF[O]) | |
900 | + | let bF = addressFromStringValue(gb) | |
901 | + | let dC = dD(gb, dE) | |
902 | + | let dr = parseIntValue(dC[dd]) | |
903 | + | let bl = dC[cY] | |
904 | + | let bP = parseIntValue(dC[da]) | |
905 | + | let gc = dC[cZ] | |
906 | + | let dn = parseIntValue(dC[db]) | |
907 | + | let bQ = dC[dg] | |
908 | + | let ey = bA(bl, bQ) | |
909 | + | let ez = bB(bl, gb, bQ) | |
910 | + | let cE = dr | |
911 | + | let cD = cW(aW) | |
912 | + | let cF = cW((aW - 1)) | |
913 | + | let eA = cV(cD) | |
914 | + | if (cH) | |
915 | + | then cA() | |
916 | + | else if ((gc != "PENDING")) | |
917 | 917 | then throw("swap has been already processed") | |
918 | - | else if (( | |
919 | - | then throw((("please wait for: " + toString( | |
920 | - | else if (if (if (( | |
918 | + | else if ((cE > height)) | |
919 | + | then throw((("please wait for: " + toString(cE)) + " block height to withdraw funds")) | |
920 | + | else if (if (if ((aW > cC)) | |
921 | 921 | then true | |
922 | - | else ( | |
922 | + | else (cE > cD)) | |
923 | 923 | then true | |
924 | - | else if (( | |
925 | - | then ( | |
924 | + | else if ((cF != 0)) | |
925 | + | then (cF >= cE) | |
926 | 926 | else false) | |
927 | - | then | |
927 | + | then cB(aW, cC, cD, cE, cF) | |
928 | 928 | else { | |
929 | - | let | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | let | |
935 | - | let | |
936 | - | let | |
937 | - | let | |
938 | - | if ((0 >= | |
929 | + | let gd = fg(bl, bP, eA, eF, bQ) | |
930 | + | let dl = gd._1 | |
931 | + | let fk = gd._2 | |
932 | + | let dw = gd._3 | |
933 | + | let fn = gd._5 | |
934 | + | let dm = gd._6 | |
935 | + | let ff = gd._7 | |
936 | + | let fo = gd._8 | |
937 | + | let fs = gd._9 | |
938 | + | if ((0 >= ff)) | |
939 | 939 | then throw("balance equals zero") | |
940 | 940 | else { | |
941 | - | let | |
941 | + | let ge = if ((dw > 0)) | |
942 | 942 | then { | |
943 | - | let | |
944 | - | if (( | |
943 | + | let gf = invoke(aw, "issueSurf", [dw, gb], nil) | |
944 | + | if ((gf == gf)) | |
945 | 945 | then 0 | |
946 | 946 | else throw("Strict value is not equal to itself.") | |
947 | 947 | } | |
948 | 948 | else 0 | |
949 | - | if (( | |
949 | + | if ((ge == ge)) | |
950 | 950 | then { | |
951 | - | let | |
952 | - | if (( | |
951 | + | let gg = invoke(this, "internalUnleaseAndLease", [fn], nil) | |
952 | + | if ((gg == gg)) | |
953 | 953 | then { | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | if (( | |
954 | + | let gh = l(invoke(av, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil)) | |
955 | + | let gi = q(gh[1]) | |
956 | + | let gj = q(l(gh[3])[3]) | |
957 | + | let gk = [IntegerEntry(bn(bl, gb, bQ), (ez - bP)), IntegerEntry(bm(bl, bQ), (ey - bP)), StringEntry(dh(gb, dE), dB(dC, fo, dl, dm, cE, aW, di, dw, fh, fs, bQ))] | |
958 | + | if ((bl == "outMulti")) | |
959 | 959 | then { | |
960 | - | let | |
961 | - | func | |
962 | - | let | |
963 | - | let | |
964 | - | let | |
960 | + | let gl = split(fs, "_") | |
961 | + | func gm (bV,bW) = { | |
962 | + | let bY = split(bW, A) | |
963 | + | let gn = fromBase58String(bY[0]) | |
964 | + | let aK = if ((gn == F)) | |
965 | 965 | then unit | |
966 | - | else | |
967 | - | let | |
968 | - | let | |
969 | - | let | |
970 | - | then fraction( | |
966 | + | else gn | |
967 | + | let co = parseIntValue(bY[2]) | |
968 | + | let cp = parseIntValue(bY[3]) | |
969 | + | let go = if ((gi != 0)) | |
970 | + | then fraction(cp, gj, gi) | |
971 | 971 | else 0 | |
972 | - | let | |
973 | - | then fraction( | |
972 | + | let gp = if ((gi != 0)) | |
973 | + | then fraction(cp, (C - fh), C) | |
974 | 974 | else 0 | |
975 | - | let | |
976 | - | let | |
977 | - | $Tuple5(( | |
975 | + | let gq = max([go, gp]) | |
976 | + | let gr = (cp - gq) | |
977 | + | $Tuple5((bV._1 :+ ScriptTransfer(bF, co, aK)), (bV._2 :+ AttachedPayment(aK, gq)), (bV._3 :+ AttachedPayment(aK, gr)), (bV._4 + gq), (bV._5 + gr)) | |
978 | 978 | } | |
979 | 979 | ||
980 | - | let | |
981 | - | let | |
982 | - | let | |
983 | - | let | |
984 | - | func | |
985 | - | then | |
986 | - | else | |
980 | + | let fX = { | |
981 | + | let bZ = gl | |
982 | + | let ca = size(bZ) | |
983 | + | let cb = $Tuple5(nil, nil, nil, 0, 0) | |
984 | + | func cc (cd,ce) = if ((ce >= ca)) | |
985 | + | then cd | |
986 | + | else gm(cd, bZ[ce]) | |
987 | 987 | ||
988 | - | func | |
989 | - | then | |
988 | + | func cf (cd,ce) = if ((ce >= ca)) | |
989 | + | then cd | |
990 | 990 | else throw("List size exceeds 10") | |
991 | 991 | ||
992 | - | | |
992 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
993 | 993 | } | |
994 | - | let | |
994 | + | let gs = if ((fX._4 > 0)) | |
995 | 995 | then { | |
996 | - | let | |
997 | - | if (( | |
996 | + | let gt = invoke(au, "deposit", nil, fX._2) | |
997 | + | if ((gt == gt)) | |
998 | 998 | then 0 | |
999 | 999 | else throw("Strict value is not equal to itself.") | |
1000 | 1000 | } | |
1001 | 1001 | else 0 | |
1002 | - | if (( | |
1002 | + | if ((gs == gs)) | |
1003 | 1003 | then { | |
1004 | - | let | |
1004 | + | let gu = if ((fX._5 > 0)) | |
1005 | 1005 | then { | |
1006 | - | let | |
1007 | - | if (( | |
1006 | + | let gv = invoke(at, "deposit", nil, fX._3) | |
1007 | + | if ((gv == gv)) | |
1008 | 1008 | then 0 | |
1009 | 1009 | else throw("Strict value is not equal to itself.") | |
1010 | 1010 | } | |
1011 | 1011 | else 0 | |
1012 | - | if (( | |
1013 | - | then ( | |
1012 | + | if ((gu == gu)) | |
1013 | + | then (gk ++ fX._1) | |
1014 | 1014 | else throw("Strict value is not equal to itself.") | |
1015 | 1015 | } | |
1016 | 1016 | else throw("Strict value is not equal to itself.") | |
1017 | 1017 | } | |
1018 | 1018 | else { | |
1019 | - | let | |
1020 | - | let | |
1021 | - | then fraction( | |
1019 | + | let gw = AttachedPayment(fk, dm) | |
1020 | + | let gx = if ((gi != 0)) | |
1021 | + | then fraction(gw.amount, gj, gi) | |
1022 | 1022 | else 0 | |
1023 | - | let | |
1024 | - | then fraction( | |
1023 | + | let gy = if ((gi != 0)) | |
1024 | + | then fraction(gw.amount, (C - fh), C) | |
1025 | 1025 | else 0 | |
1026 | - | let | |
1027 | - | let | |
1028 | - | let | |
1026 | + | let gz = max([gx, gy]) | |
1027 | + | let gA = (gw.amount - gz) | |
1028 | + | let gs = if ((gz > 0)) | |
1029 | 1029 | then { | |
1030 | - | let | |
1031 | - | if (( | |
1030 | + | let gt = invoke(au, "deposit", nil, [AttachedPayment(gw.assetId, gz)]) | |
1031 | + | if ((gt == gt)) | |
1032 | 1032 | then nil | |
1033 | 1033 | else throw("Strict value is not equal to itself.") | |
1034 | 1034 | } | |
1035 | 1035 | else nil | |
1036 | - | if (( | |
1036 | + | if ((gs == gs)) | |
1037 | 1037 | then { | |
1038 | - | let | |
1038 | + | let gu = if ((gA > 0)) | |
1039 | 1039 | then { | |
1040 | - | let | |
1041 | - | if (( | |
1040 | + | let gv = invoke(at, "deposit", nil, [AttachedPayment(gw.assetId, gA)]) | |
1041 | + | if ((gv == gv)) | |
1042 | 1042 | then nil | |
1043 | 1043 | else throw("Strict value is not equal to itself.") | |
1044 | 1044 | } | |
1045 | 1045 | else nil | |
1046 | - | if (( | |
1047 | - | then ( | |
1046 | + | if ((gu == gu)) | |
1047 | + | then (gk :+ ScriptTransfer(bF, dl, fk)) | |
1048 | 1048 | else throw("Strict value is not equal to itself.") | |
1049 | 1049 | } | |
1050 | 1050 | else throw("Strict value is not equal to itself.") | |
1061 | 1061 | ||
1062 | 1062 | ||
1063 | 1063 | @Callable(r) | |
1064 | - | func internalUnleaseAndLease ( | |
1064 | + | func internalUnleaseAndLease (dS) = if ((r.caller != this)) | |
1065 | 1065 | then throw("internalUnleaseAndLease is not public method") | |
1066 | - | else | |
1066 | + | else eb(dS) | |
1067 | 1067 | ||
1068 | 1068 | ||
1069 | 1069 | ||
1070 | 1070 | @Callable(r) | |
1071 | - | func transferUsdnToUser ( | |
1071 | + | func transferUsdnToUser (bI,gB) = if ((r.caller != aw)) | |
1072 | 1072 | then throw("Only auction contract is authorized") | |
1073 | - | else [ScriptTransfer(addressFromStringValue( | |
1073 | + | else [ScriptTransfer(addressFromStringValue(gB), bI, cG)] | |
1074 | 1074 | ||
1075 | 1075 | ||
1076 | 1076 | ||
1077 | 1077 | @Callable(r) | |
1078 | - | func acceptWaves () = if (if ((r.caller != | |
1079 | - | then (r.caller != | |
1078 | + | func acceptWaves () = if (if ((r.caller != aw)) | |
1079 | + | then (r.caller != ay) | |
1080 | 1080 | else false) | |
1081 | 1081 | then throw("Currently only auction and governance contracts are allowed to call") | |
1082 | - | else $Tuple2( | |
1082 | + | else $Tuple2(eb(0), "success") | |
1083 | 1083 | ||
1084 | 1084 | ||
1085 | 1085 | ||
1086 | 1086 | @Callable(r) | |
1087 | - | func approveLeasings ( | |
1088 | - | let | |
1089 | - | let | |
1090 | - | let | |
1091 | - | let | |
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | if (isDefined( | |
1096 | - | then throw((("group " + toString( | |
1087 | + | func approveLeasings (gC,bj,gD) = { | |
1088 | + | let gE = [0, 1, 2, 3, 4, 5, 6, 7] | |
1089 | + | let gF = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
1090 | + | let gG = fromBase58String(gF) | |
1091 | + | let gH = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE") | |
1092 | + | let gI = addressFromStringValue(gH) | |
1093 | + | let gJ = bi(bj) | |
1094 | + | let gK = getString(this, gJ) | |
1095 | + | if (isDefined(gK)) | |
1096 | + | then throw((("group " + toString(bj)) + " already initialized")) | |
1097 | 1097 | else { | |
1098 | - | let | |
1099 | - | let | |
1100 | - | if ((r.callerPublicKey != | |
1098 | + | let gL = split(gC, z) | |
1099 | + | let gM = size(gE) | |
1100 | + | if ((r.callerPublicKey != gG)) | |
1101 | 1101 | then throw("approveLeasings not authorized") | |
1102 | 1102 | else { | |
1103 | - | let | |
1104 | - | let | |
1105 | - | let | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1109 | - | let | |
1110 | - | let | |
1111 | - | if (( | |
1103 | + | let gN = ej(0) | |
1104 | + | let gO = gN._1 | |
1105 | + | let gP = gN._2 | |
1106 | + | let gQ = gN._3 | |
1107 | + | let gR = gN._4 | |
1108 | + | let gS = gN._5 | |
1109 | + | let gT = Lease(gO, (gQ - (gD * gM))) | |
1110 | + | let gU = invoke(gI, "validateAndApproveLeasings", [gC], nil) | |
1111 | + | if ((gU == gU)) | |
1112 | 1112 | then { | |
1113 | - | func | |
1114 | - | let | |
1115 | - | let | |
1116 | - | ( | |
1113 | + | func gV (dO,r) = { | |
1114 | + | let gW = gL[r] | |
1115 | + | let gX = Lease(addressFromStringValue(gW), gD) | |
1116 | + | (dO ++ [gX, BinaryEntry(be(gW), d(gX)), IntegerEntry(bh(gW), gD)]) | |
1117 | 1117 | } | |
1118 | 1118 | ||
1119 | - | ([StringEntry( | |
1120 | - | let | |
1121 | - | let | |
1122 | - | let | |
1123 | - | func | |
1124 | - | then | |
1125 | - | else | |
1119 | + | ([StringEntry(gJ, gC), BinaryEntry(gR, d(gT)), IntegerEntry(gP, gT.amount), LeaseCancel(gS), gT] ++ { | |
1120 | + | let bZ = gE | |
1121 | + | let ca = size(bZ) | |
1122 | + | let cb = nil | |
1123 | + | func cc (cd,ce) = if ((ce >= ca)) | |
1124 | + | then cd | |
1125 | + | else gV(cd, bZ[ce]) | |
1126 | 1126 | ||
1127 | - | func | |
1128 | - | then | |
1127 | + | func cf (cd,ce) = if ((ce >= ca)) | |
1128 | + | then cd | |
1129 | 1129 | else throw("List size exceeds 8") | |
1130 | 1130 | ||
1131 | - | | |
1131 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
1132 | 1132 | }) | |
1133 | 1133 | } | |
1134 | 1134 | else throw("Strict value is not equal to itself.") | |
1139 | 1139 | ||
1140 | 1140 | ||
1141 | 1141 | @Callable(r) | |
1142 | - | func rebalanceLeasings ( | |
1143 | - | let | |
1144 | - | let | |
1145 | - | let | |
1146 | - | let | |
1147 | - | let | |
1148 | - | let | |
1149 | - | if ((r.callerPublicKey != | |
1142 | + | func rebalanceLeasings (bI,bj) = { | |
1143 | + | let gE = [0, 1, 2, 3, 4, 5, 6, 7] | |
1144 | + | let gF = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
1145 | + | let gG = fromBase58String(gF) | |
1146 | + | let gJ = bi(bj) | |
1147 | + | let gC = a(this, gJ) | |
1148 | + | let gL = split(gC, z) | |
1149 | + | if ((r.callerPublicKey != gG)) | |
1150 | 1150 | then throw("rebalanceLeasings not authorized") | |
1151 | 1151 | else { | |
1152 | - | let | |
1153 | - | let | |
1154 | - | let | |
1155 | - | let | |
1156 | - | let | |
1157 | - | let | |
1158 | - | let | |
1159 | - | let | |
1160 | - | func | |
1161 | - | let | |
1162 | - | let | |
1163 | - | let | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | ( | |
1152 | + | let fn = ((bI / size(gL)) + 1) | |
1153 | + | let gY = ej(0) | |
1154 | + | let gO = gY._1 | |
1155 | + | let gP = gY._2 | |
1156 | + | let gQ = gY._3 | |
1157 | + | let gR = gY._4 | |
1158 | + | let gS = gY._5 | |
1159 | + | let gT = Lease(gO, (gQ + (fn * size(gL)))) | |
1160 | + | func gZ (dO,r) = { | |
1161 | + | let gW = gL[r] | |
1162 | + | let ha = be(gW) | |
1163 | + | let hb = getBinaryValue(this, ha) | |
1164 | + | let hc = bh(gW) | |
1165 | + | let gD = getIntegerValue(this, hc) | |
1166 | + | let hd = LeaseCancel(value(hb)) | |
1167 | + | let gX = Lease(addressFromStringValue(gW), (gD - fn)) | |
1168 | + | (dO ++ [LeaseCancel(value(hb)), gX, BinaryEntry(ha, d(gX)), IntegerEntry(hc, gX.amount)]) | |
1169 | 1169 | } | |
1170 | 1170 | ||
1171 | 1171 | ({ | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | func | |
1176 | - | then | |
1177 | - | else | |
1172 | + | let bZ = gE | |
1173 | + | let ca = size(bZ) | |
1174 | + | let cb = nil | |
1175 | + | func cc (cd,ce) = if ((ce >= ca)) | |
1176 | + | then cd | |
1177 | + | else gZ(cd, bZ[ce]) | |
1178 | 1178 | ||
1179 | - | func | |
1180 | - | then | |
1179 | + | func cf (cd,ce) = if ((ce >= ca)) | |
1180 | + | then cd | |
1181 | 1181 | else throw("List size exceeds 8") | |
1182 | 1182 | ||
1183 | - | | |
1184 | - | } ++ [BinaryEntry( | |
1183 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
1184 | + | } ++ [BinaryEntry(gR, d(gT)), IntegerEntry(gP, gT.amount), LeaseCancel(gS), gT]) | |
1185 | 1185 | } | |
1186 | 1186 | } | |
1187 | 1187 | ||
1188 | 1188 | ||
1189 | 1189 | ||
1190 | 1190 | @Callable(r) | |
1191 | - | func swapParamsByUserSYSREADONLY ( | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | let | |
1202 | - | let | |
1203 | - | let | |
1191 | + | func swapParamsByUserSYSREADONLY (er,he) = { | |
1192 | + | let gh = l(invoke(av, "gnsbtInfoSYSREADONLY", [er, 0, 0], nil)) | |
1193 | + | let hf = (q(gh[0]) + he) | |
1194 | + | let gi = (q(gh[1]) + he) | |
1195 | + | let hg = l(invoke(as, "calcSwapLimitREADONLY", [hf], nil)) | |
1196 | + | let hh = q(hg[0]) | |
1197 | + | let ew = q(hg[1]) | |
1198 | + | let ex = q(hg[2]) | |
1199 | + | let hi = valueOrElse(getInteger(this, bG(er)), 0) | |
1200 | + | let hj = bz() | |
1201 | + | let hk = (height - hi) | |
1202 | + | let hl = (hk >= hj) | |
1203 | + | let hm = if (hl) | |
1204 | 1204 | then 0 | |
1205 | - | else valueOrElse(getInteger(this, | |
1206 | - | let | |
1205 | + | else valueOrElse(getInteger(this, bE(er)), 0) | |
1206 | + | let ev = if (hl) | |
1207 | 1207 | then 0 | |
1208 | - | else ( | |
1209 | - | $Tuple2(nil, $Tuple7( | |
1208 | + | else (hj - hk) | |
1209 | + | $Tuple2(nil, $Tuple7(hh, hm, ev, hf, gi, ew, ex)) | |
1210 | 1210 | } | |
1211 | 1211 | ||
1212 | 1212 | ||
1213 | 1213 | ||
1214 | 1214 | @Callable(r) | |
1215 | - | func calcWithdrawResultSYSREADONLY ( | |
1216 | - | let | |
1217 | - | $Tuple2(nil, | |
1215 | + | func calcWithdrawResultSYSREADONLY (bl,bP,bJ,bQ) = { | |
1216 | + | let eF = l(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
1217 | + | $Tuple2(nil, fg(bl, bP, bJ, eF, bQ)) | |
1218 | 1218 | } | |
1219 | 1219 | ||
1220 | 1220 | ||
1221 | 1221 | ||
1222 | 1222 | @Callable(r) | |
1223 | - | func replaceCommunityNode (hp | |
1224 | - | let | |
1225 | - | let | |
1226 | - | if ((r.callerPublicKey != | |
1223 | + | func replaceCommunityNode (hn,ho,bj,hp) = { | |
1224 | + | let gF = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
1225 | + | let gG = fromBase58String(gF) | |
1226 | + | if ((r.callerPublicKey != gG)) | |
1227 | 1227 | then throw("replaceCommunityNode not authorized") | |
1228 | 1228 | else { | |
1229 | - | let | |
1230 | - | let | |
1231 | - | if (!(contains( | |
1232 | - | then throw(((("Group " + toString( | |
1229 | + | let hq = bi(bj) | |
1230 | + | let hr = a(this, hq) | |
1231 | + | if (!(contains(hr, hn))) | |
1232 | + | then throw(((("Group " + toString(bj)) + " does not contain address ") + hn)) | |
1233 | 1233 | else { | |
1234 | - | let | |
1235 | - | if (( | |
1234 | + | let hs = invoke(ax, "replaceApprovedNode", [hn, ho, bj, hp], nil) | |
1235 | + | if ((hs == hs)) | |
1236 | 1236 | then { | |
1237 | - | let | |
1238 | - | let | |
1239 | - | let | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | $Tuple2([LeaseCancel(getBinaryValue( | |
1237 | + | let ht = be(hn) | |
1238 | + | let hu = bh(hn) | |
1239 | + | let hv = getIntegerValue(hu) | |
1240 | + | let hw = be(ho) | |
1241 | + | let hx = bh(ho) | |
1242 | + | let hy = Lease(addressFromStringValue(ho), hv) | |
1243 | + | let hz = makeString(split(hr, hn), ho) | |
1244 | + | $Tuple2([LeaseCancel(getBinaryValue(ht)), DeleteEntry(ht), DeleteEntry(hu), StringEntry(hq, hz), hy, BinaryEntry(hw, d(hy)), IntegerEntry(hx, hv)], unit) | |
1245 | 1245 | } | |
1246 | 1246 | else throw("Strict value is not equal to itself.") | |
1247 | 1247 | } | |
1252 | 1252 | ||
1253 | 1253 | @Callable(r) | |
1254 | 1254 | func updateReservesAndNeutrinoSupply () = { | |
1255 | - | func | |
1255 | + | func hA (c) = { | |
1256 | 1256 | let n = getInteger(this, c) | |
1257 | 1257 | if ($isInstanceOf(n, "Int")) | |
1258 | 1258 | then { | |
1259 | - | let | |
1260 | - | | |
1259 | + | let dO = n | |
1260 | + | dO | |
1261 | 1261 | } | |
1262 | 1262 | else 0 | |
1263 | 1263 | } | |
1264 | 1264 | ||
1265 | - | let | |
1266 | - | let | |
1267 | - | let | |
1268 | - | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", | |
1265 | + | let hB = l(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
1266 | + | let aq = hA("updateReservesAndNeutrinoSupplyIdx") | |
1267 | + | let hC = (aq + 1) | |
1268 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", hC), IntegerEntry("reserve", q(hB[3])), IntegerEntry("neutrinoSupply", q(hB[5])), IntegerEntry("reservesInUsdn", bK(q(hB[3]), q(hB[0]))), IntegerEntry("surplus", q(hB[6])), IntegerEntry("deficit", -(q(hB[6])))] | |
1269 | 1269 | } | |
1270 | 1270 | ||
1271 | 1271 | ||
1272 | 1272 | ||
1273 | 1273 | @Callable(r) | |
1274 | 1274 | func wavesBalancesVsPayment () = { | |
1275 | - | let | |
1276 | - | [IntegerEntry("wavesBalance_available", | |
1275 | + | let hD = wavesBalance(this) | |
1276 | + | [IntegerEntry("wavesBalance_available", hD.available), IntegerEntry("wavesBalance_regular", hD.regular), IntegerEntry("wavesBalance_generating", hD.generating), IntegerEntry("wavesBalance_effective", hD.effective), IntegerEntry("waves_payment", value(r.payments[0]).amount)] | |
1277 | 1277 | } | |
1278 | 1278 | ||
1279 | 1279 | ||
1280 | - | @Verifier( | |
1281 | - | func | |
1282 | - | let | |
1283 | - | let | |
1284 | - | let | |
1280 | + | @Verifier(cO) | |
1281 | + | func hE () = { | |
1282 | + | let hF = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], z) | |
1283 | + | let hG = split(valueOrElse(getString(ar, "%s__multisig"), hF), z) | |
1284 | + | let hH = ((((if (sigVerify(cO.bodyBytes, cO.proofs[0], fromBase58String(hG[0]))) | |
1285 | 1285 | then 1 | |
1286 | - | else 0) + (if (sigVerify( | |
1286 | + | else 0) + (if (sigVerify(cO.bodyBytes, cO.proofs[1], fromBase58String(hG[1]))) | |
1287 | 1287 | then 1 | |
1288 | - | else 0)) + (if (sigVerify( | |
1288 | + | else 0)) + (if (sigVerify(cO.bodyBytes, cO.proofs[2], fromBase58String(hG[2]))) | |
1289 | 1289 | then 1 | |
1290 | - | else 0)) + (if (sigVerify( | |
1290 | + | else 0)) + (if (sigVerify(cO.bodyBytes, cO.proofs[3], fromBase58String(hG[3]))) | |
1291 | 1291 | then 2 | |
1292 | 1292 | else 0)) | |
1293 | - | if (if ( | |
1294 | - | then (getStringValue( | |
1293 | + | if (if (cH) | |
1294 | + | then (getStringValue(ar, "is_blocked_caller") == toString(ay)) | |
1295 | 1295 | else false) | |
1296 | - | then | |
1296 | + | then fx(cO) | |
1297 | 1297 | else { | |
1298 | - | let n = | |
1298 | + | let n = cO | |
1299 | 1299 | if ($isInstanceOf(n, "SponsorFeeTransaction")) | |
1300 | 1300 | then { | |
1301 | - | let | |
1302 | - | if ( | |
1303 | - | then ( | |
1301 | + | let hI = n | |
1302 | + | if (cN(hI)) | |
1303 | + | then (hH >= 3) | |
1304 | 1304 | else false | |
1305 | 1305 | } | |
1306 | - | else ( | |
1306 | + | else (hH >= 3) | |
1307 | 1307 | } | |
1308 | 1308 | } | |
1309 | 1309 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = valueOrErrorMessage(getString(b, c), makeString(["mandatory ", toString(b), ".", c, " is not defined"], "")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func d (e) = calculateLeaseId(e) | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func f (c) = valueOrElse(getInteger(this, c), 0) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func g (c) = valueOrElse(getString(this, c), "") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func h (c) = valueOrElse(getBoolean(this, c), false) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (b,c) = valueOrElse(getInteger(b, c), 0) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (b,c) = valueOrElse(getString(addressFromStringValue(b), c), "") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func k (b,c) = valueOrElse(getBoolean(b, c), false) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func l (m) = { | |
29 | 29 | let n = m | |
30 | 30 | if ($isInstanceOf(n, "List[Any]")) | |
31 | 31 | then { | |
32 | 32 | let e = n | |
33 | 33 | e | |
34 | 34 | } | |
35 | 35 | else throw("fail to cast into List[Any]") | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func o (m) = { | |
40 | 40 | let n = m | |
41 | 41 | if ($isInstanceOf(n, "String")) | |
42 | 42 | then { | |
43 | 43 | let p = n | |
44 | 44 | p | |
45 | 45 | } | |
46 | 46 | else throw("fail to cast into String") | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func q (m) = { | |
51 | 51 | let n = m | |
52 | 52 | if ($isInstanceOf(n, "Int")) | |
53 | 53 | then { | |
54 | 54 | let r = n | |
55 | 55 | r | |
56 | 56 | } | |
57 | 57 | else throw("fail to cast into Int") | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func s (t) = { | |
62 | 62 | let n = t | |
63 | 63 | if ($isInstanceOf(n, "ByteVector")) | |
64 | 64 | then { | |
65 | 65 | let u = n | |
66 | 66 | u | |
67 | 67 | } | |
68 | 68 | else throw("fail to cast into ByteVector") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func v (m) = { | |
73 | 73 | let n = m | |
74 | 74 | if ($isInstanceOf(n, "AttachedPayment")) | |
75 | 75 | then { | |
76 | 76 | let w = n | |
77 | 77 | w | |
78 | 78 | } | |
79 | 79 | else throw("fail to cast into AttachedPayment") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func x (m) = { | |
84 | 84 | let n = m | |
85 | 85 | if ($isInstanceOf(n, "(Int, Int, Int, Int, Int, Int, Int)")) | |
86 | 86 | then { | |
87 | 87 | let y = n | |
88 | 88 | y | |
89 | 89 | } | |
90 | 90 | else throw("fail to cast into Tuple5 ints") | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | let z = "__" | |
95 | 95 | ||
96 | 96 | let A = ":" | |
97 | 97 | ||
98 | 98 | let B = 100000000 | |
99 | 99 | ||
100 | 100 | let C = 1000000 | |
101 | 101 | ||
102 | 102 | let D = 20000 | |
103 | 103 | ||
104 | 104 | let E = 100000 | |
105 | 105 | ||
106 | 106 | let F = base58'WAVES' | |
107 | 107 | ||
108 | 108 | let G = 0 | |
109 | 109 | ||
110 | 110 | let H = 1 | |
111 | 111 | ||
112 | 112 | let I = 2 | |
113 | 113 | ||
114 | - | let J = | |
114 | + | let J = 3 | |
115 | 115 | ||
116 | - | let K = | |
116 | + | let K = 4 | |
117 | 117 | ||
118 | - | let L = | |
118 | + | let L = 5 | |
119 | 119 | ||
120 | - | let M = | |
120 | + | let M = 6 | |
121 | 121 | ||
122 | - | let N = | |
122 | + | let N = 7 | |
123 | 123 | ||
124 | - | let O = | |
124 | + | let O = 8 | |
125 | 125 | ||
126 | - | let P = | |
126 | + | let P = 9 | |
127 | 127 | ||
128 | - | let Q = | |
128 | + | let Q = 10 | |
129 | 129 | ||
130 | - | let R = | |
130 | + | let R = 11 | |
131 | 131 | ||
132 | - | let S = | |
132 | + | let S = 12 | |
133 | 133 | ||
134 | - | let T = | |
134 | + | let T = 13 | |
135 | 135 | ||
136 | - | let U = | |
136 | + | let U = 14 | |
137 | 137 | ||
138 | - | let V = | |
138 | + | let V = 15 | |
139 | 139 | ||
140 | - | func W () = "%s%s__config__controlAddress" | |
140 | + | let W = 16 | |
141 | + | ||
142 | + | let X = 1 | |
143 | + | ||
144 | + | let Y = 2 | |
145 | + | ||
146 | + | let Z = 3 | |
147 | + | ||
148 | + | let aa = 4 | |
149 | + | ||
150 | + | let ab = 5 | |
151 | + | ||
152 | + | let ac = 6 | |
153 | + | ||
154 | + | let ad = 7 | |
155 | + | ||
156 | + | let ae = 8 | |
157 | + | ||
158 | + | let af = 9 | |
159 | + | ||
160 | + | let ag = 10 | |
161 | + | ||
162 | + | let ah = 11 | |
163 | + | ||
164 | + | let ai = 12 | |
165 | + | ||
166 | + | let aj = 13 | |
167 | + | ||
168 | + | func ak () = "%s%s__config__controlAddress" | |
141 | 169 | ||
142 | 170 | ||
143 | - | func | |
171 | + | func al () = "%s__controlConfig" | |
144 | 172 | ||
145 | 173 | ||
146 | - | func | |
174 | + | func am (an) = split_4C(a(an, al()), z) | |
147 | 175 | ||
148 | 176 | ||
149 | - | func | |
177 | + | func ao (ap,aq) = valueOrErrorMessage(addressFromString(ap[aq]), ("Control cfg doesn't contain address at index " + toString(aq))) | |
150 | 178 | ||
151 | 179 | ||
152 | - | let | |
180 | + | let ar = addressFromStringValue(valueOrElse(getString(this, ak()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
153 | 181 | ||
154 | - | let | |
182 | + | let ap = am(ar) | |
155 | 183 | ||
156 | - | let | |
184 | + | let as = ao(ap, aa) | |
157 | 185 | ||
158 | - | let | |
186 | + | let at = ao(ap, ae) | |
159 | 187 | ||
160 | - | let | |
188 | + | let au = ao(ap, ag) | |
161 | 189 | ||
162 | - | let | |
190 | + | let av = ao(ap, ah) | |
163 | 191 | ||
164 | - | let | |
192 | + | let aw = ao(ap, Y) | |
165 | 193 | ||
166 | - | let | |
194 | + | let ax = ao(ap, ad) | |
167 | 195 | ||
168 | - | let | |
196 | + | let ay = ao(ap, aj) | |
169 | 197 | ||
170 | - | let | |
198 | + | let az = "neutrino_asset_id" | |
171 | 199 | ||
172 | - | let | |
200 | + | let aA = "bond_asset_id" | |
173 | 201 | ||
174 | - | let | |
202 | + | let aB = "auction_contract" | |
175 | 203 | ||
176 | - | let | |
204 | + | let aC = "nsbtStakingContract" | |
177 | 205 | ||
178 | - | let | |
206 | + | let aD = "liquidation_contract" | |
179 | 207 | ||
180 | - | let | |
208 | + | let aE = "rpd_contract" | |
181 | 209 | ||
182 | - | let | |
210 | + | let aF = "control_contract" | |
183 | 211 | ||
184 | - | let | |
212 | + | let aG = "math_contract" | |
185 | 213 | ||
186 | - | let | |
214 | + | let aH = "balance_waves_lock_interval" | |
187 | 215 | ||
188 | - | let | |
216 | + | let aI = "balance_neutrino_lock_interval" | |
189 | 217 | ||
190 | - | func | |
218 | + | func aJ (aK) = ("min_outNeutrino_swap_amount_" + aK) | |
191 | 219 | ||
192 | 220 | ||
193 | - | let | |
221 | + | let aL = "min_outMulti_swap_amount" | |
194 | 222 | ||
195 | - | let | |
223 | + | let aM = "node_oracle_provider" | |
196 | 224 | ||
197 | - | let | |
225 | + | let aN = "neutrinoOut_swap_feePart" | |
198 | 226 | ||
199 | - | let | |
227 | + | let aO = "wavesOut_swap_feePart" | |
200 | 228 | ||
201 | - | func | |
229 | + | func aP (b) = ("%s__" + b) | |
202 | 230 | ||
203 | 231 | ||
204 | - | let | |
232 | + | let aQ = "price" | |
205 | 233 | ||
206 | - | let | |
234 | + | let aR = "price_index" | |
207 | 235 | ||
208 | - | let | |
236 | + | let aS = "is_blocked" | |
209 | 237 | ||
210 | - | func | |
238 | + | func aT (aU) = ((aQ + "_") + toString(aU)) | |
211 | 239 | ||
212 | 240 | ||
213 | - | func | |
241 | + | func aV (aW) = ((aR + "_") + toString(aW)) | |
214 | 242 | ||
215 | 243 | ||
216 | - | func | |
244 | + | func aX (aq) = g(makeString(["%s%d%s", "lease", toString(aq), "nodeAddress"], z)) | |
217 | 245 | ||
218 | 246 | ||
219 | - | func | |
247 | + | func aY (aq) = addressFromStringValue(aX(aq)) | |
220 | 248 | ||
221 | 249 | ||
222 | - | func | |
250 | + | func aZ () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], z)), (1000 * B)) | |
223 | 251 | ||
224 | 252 | ||
225 | - | func | |
253 | + | func ba (bb) = ("balance_unlock_block_" + bb) | |
226 | 254 | ||
227 | 255 | ||
228 | - | func | |
256 | + | func bc (bd) = makeString(["%s%d%s", "lease", toString(bd), "id"], z) | |
229 | 257 | ||
230 | 258 | ||
231 | - | func | |
259 | + | func be (bf) = makeString(["%s%s%s", "leaseByAddress", bf, "id"], z) | |
232 | 260 | ||
233 | 261 | ||
234 | - | func | |
262 | + | func bg (bd) = makeString(["%s%d%s", "lease", toString(bd), "amount"], z) | |
235 | 263 | ||
236 | 264 | ||
237 | - | func | |
265 | + | func bh (bf) = makeString(["%s%s%s", "leaseByAddress", bf, "amount"], z) | |
238 | 266 | ||
239 | 267 | ||
240 | - | func | |
268 | + | func bi (bj) = makeString(["%s%d%s", "leaseGroup", toString(bj), "nodeList"], z) | |
241 | 269 | ||
242 | 270 | ||
243 | - | func | |
271 | + | func bk (bl) = (("min_" + bl) + "_swap_amount") | |
244 | 272 | ||
245 | 273 | ||
246 | - | func | |
274 | + | func bm (bl,aK) = makeString(["%s%s%s", "balanceLock", bl, aK], z) | |
247 | 275 | ||
248 | 276 | ||
249 | - | func | |
277 | + | func bn (bl,bb,aK) = makeString(["%s%s%s%s", "balanceLock", bl, bb, aK], "_") | |
250 | 278 | ||
251 | 279 | ||
252 | - | func | |
253 | - | then | |
254 | - | else | |
280 | + | func bo (bl) = if ((bl == "outMulti")) | |
281 | + | then aI | |
282 | + | else aH | |
255 | 283 | ||
256 | 284 | ||
257 | - | func | |
285 | + | func bp () = "balance_node_lock_interval" | |
258 | 286 | ||
259 | 287 | ||
260 | - | func | |
288 | + | func bq () = "swaps_timeframe" | |
261 | 289 | ||
262 | 290 | ||
263 | - | func | |
291 | + | func br () = "min_BR_protection_level" | |
264 | 292 | ||
265 | 293 | ||
266 | - | func | |
294 | + | func bs () = "%s%s__common__basketAssets" | |
267 | 295 | ||
268 | 296 | ||
269 | - | func | |
297 | + | func bt () = "%s%s__common__basketD" | |
270 | 298 | ||
271 | 299 | ||
272 | - | func | |
300 | + | func bu () = "%s%s__common__basketK" | |
273 | 301 | ||
274 | 302 | ||
275 | - | func | |
303 | + | func bv () = "%s%s__common__basketB" | |
276 | 304 | ||
277 | 305 | ||
278 | - | func | |
306 | + | func bw () = "%s%s__common__basketLogbDelta" | |
279 | 307 | ||
280 | 308 | ||
281 | - | func | |
309 | + | func bx (aK) = ("%s%s%s__common__weightByAsset__" + aK) | |
282 | 310 | ||
283 | 311 | ||
284 | - | func | |
285 | - | then getInteger( | |
286 | - | else getInteger( | |
312 | + | func by (bl,aK) = valueOrElse(if ((bl == "outMulti")) | |
313 | + | then getInteger(aL) | |
314 | + | else getInteger(aJ(aK)), 0) | |
287 | 315 | ||
288 | 316 | ||
289 | - | func | |
317 | + | func bz () = valueOrElse(getInteger(this, bq()), 1440) | |
290 | 318 | ||
291 | 319 | ||
292 | - | func | |
320 | + | func bA (bl,aK) = valueOrElse(getInteger(this, bm(bl, aK)), 0) | |
293 | 321 | ||
294 | 322 | ||
295 | - | func | |
323 | + | func bB (bl,bb,aK) = valueOrElse(getInteger(this, bn(bl, bb, aK)), 0) | |
296 | 324 | ||
297 | 325 | ||
298 | - | func | |
326 | + | func bC (bl) = valueOrElse(getInteger(this, bo(bl)), 1440) | |
299 | 327 | ||
300 | 328 | ||
301 | - | func | |
329 | + | func bD () = valueOrElse(getInteger(this, bp()), 1) | |
302 | 330 | ||
303 | 331 | ||
304 | - | func | |
332 | + | func bE (bF) = makeString(["%s%s", "swapUserSpentInPeriod", bF], z) | |
305 | 333 | ||
306 | 334 | ||
307 | - | func | |
335 | + | func bG (bF) = makeString(["%s%s", "userLastSwapHeight", bF], z) | |
308 | 336 | ||
309 | 337 | ||
310 | - | func | |
338 | + | func bH (bI,bJ) = fraction(bI, B, bJ) | |
311 | 339 | ||
312 | 340 | ||
313 | - | func | |
341 | + | func bK (bI,bJ) = fraction(bI, bJ, B) | |
314 | 342 | ||
315 | 343 | ||
316 | - | func | |
344 | + | func bL (bI,bJ) = bK(bI, bJ) | |
317 | 345 | ||
318 | 346 | ||
319 | - | func | |
347 | + | func bM (bN) = split(bN, ",") | |
320 | 348 | ||
321 | 349 | ||
322 | - | func | |
323 | - | let | |
324 | - | func | |
325 | - | let | |
326 | - | if (( | |
327 | - | then | |
328 | - | else | |
350 | + | func bO (bP,bQ,bR,bS) = { | |
351 | + | let bT = split(bR, "_") | |
352 | + | func bU (bV,bW) = { | |
353 | + | let bX = split(bW, A) | |
354 | + | if ((bX[0] == bQ)) | |
355 | + | then bX | |
356 | + | else bV | |
329 | 357 | } | |
330 | 358 | ||
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | func | |
336 | - | then | |
337 | - | else | |
359 | + | let bY = { | |
360 | + | let bZ = bT | |
361 | + | let ca = size(bZ) | |
362 | + | let cb = nil | |
363 | + | func cc (cd,ce) = if ((ce >= ca)) | |
364 | + | then cd | |
365 | + | else bU(cd, bZ[ce]) | |
338 | 366 | ||
339 | - | func | |
340 | - | then | |
367 | + | func cf (cd,ce) = if ((ce >= ca)) | |
368 | + | then cd | |
341 | 369 | else throw("List size exceeds 10") | |
342 | 370 | ||
343 | - | | |
371 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
344 | 372 | } | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
373 | + | let cg = valueOrElse(getInteger(bw()), -18820642) | |
374 | + | let ch = valueOrElse(getInteger(bt()), 50000) | |
375 | + | let ci = valueOrElse(getInteger(bv()), 1250000) | |
376 | + | let cj = valueOrElse(getInteger(bx(bQ)), 166666) | |
377 | + | let ck = ((cg - cj) + parseIntValue(bY[1])) | |
378 | + | let cl = pow(ci, 6, ck, 6, 6, HALFUP) | |
379 | + | let cm = fraction(bP, parseIntValue(bY[2]), if ((bS == 0)) | |
352 | 380 | then B | |
353 | - | else (bE * 100)) | |
354 | - | let bZ = ((C + bT) - bX) | |
355 | - | if ((0 >= bZ)) | |
356 | - | then throw(("Net amount is non-positive, multiplier = " + toString(bZ))) | |
357 | - | else { | |
358 | - | let ca = fraction(bY, bZ, C) | |
359 | - | let cb = if ((ca >= bY)) | |
360 | - | then 0 | |
361 | - | else (bY - ca) | |
362 | - | [bY, ca, cb] | |
363 | - | } | |
381 | + | else (bS * 100)) | |
382 | + | let cn = ((C + ch) - cl) | |
383 | + | let co = fraction(cm, cn, C) | |
384 | + | let cp = if ((co >= cm)) | |
385 | + | then 0 | |
386 | + | else (cm - co) | |
387 | + | [cm, co, cp] | |
364 | 388 | } | |
365 | 389 | ||
366 | 390 | ||
367 | - | func | |
368 | - | let | |
369 | - | func | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | if (( | |
391 | + | func cq (bI,bR,cr) = { | |
392 | + | let bT = split(bR, "_") | |
393 | + | func cs (bV,bW) = { | |
394 | + | let ct = split(bW, A) | |
395 | + | let aK = ct[0] | |
396 | + | let cu = parseIntValue(ct[1]) | |
397 | + | let bJ = parseIntValue(ct[2]) | |
398 | + | let cv = parseIntValue(ct[3]) | |
399 | + | if ((cr == 0)) | |
376 | 400 | then throw("Attempt to burn neutrino at zero supply") | |
377 | 401 | else { | |
378 | - | let | |
379 | - | let | |
380 | - | then $Tuple2( | |
381 | - | else $Tuple2( | |
382 | - | $Tuple3(( | |
402 | + | let cw = fraction(bI, cv, cr) | |
403 | + | let cx = if ((aK == "WAVES")) | |
404 | + | then $Tuple2(cw, bJ) | |
405 | + | else $Tuple2(bV._2, bV._3) | |
406 | + | $Tuple3((bV._1 :+ $Tuple4(aK, cw, bJ, cu)), cx._1, cx._2) | |
383 | 407 | } | |
384 | 408 | } | |
385 | 409 | ||
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | func | |
390 | - | then | |
391 | - | else | |
410 | + | let bZ = bT | |
411 | + | let ca = size(bZ) | |
412 | + | let cb = $Tuple3(nil, 0, 0) | |
413 | + | func cc (cd,ce) = if ((ce >= ca)) | |
414 | + | then cd | |
415 | + | else cs(cd, bZ[ce]) | |
392 | 416 | ||
393 | - | func | |
394 | - | then | |
417 | + | func cf (cd,ce) = if ((ce >= ca)) | |
418 | + | then cd | |
395 | 419 | else throw("List size exceeds 10") | |
396 | 420 | ||
397 | - | | |
421 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
398 | 422 | } | |
399 | 423 | ||
400 | 424 | ||
401 | - | func | |
425 | + | func cy (bl,cz) = throw(((("The specified amount in " + bl) + " swap is less than the required minimum of ") + toString(cz))) | |
402 | 426 | ||
403 | 427 | ||
404 | - | func | |
428 | + | func cA () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
405 | 429 | ||
406 | 430 | ||
407 | - | func | |
431 | + | func cB (aW,cC,cD,cE,cF) = throw(((((((((("invalid price history index: index=" + toString(aW)) + " priceIndex=") + toString(cC)) + " indexHeight=") + toString(cD)) + " unlockHeight=") + toString(cE)) + " prevIndexHeight=") + toString(cF))) | |
408 | 432 | ||
409 | 433 | ||
410 | - | let | |
434 | + | let cG = fromBase58String(g(az)) | |
411 | 435 | ||
412 | - | let | |
436 | + | let cC = i(ar, aR) | |
413 | 437 | ||
414 | - | let | |
438 | + | let cH = k(ar, aS) | |
415 | 439 | ||
416 | - | let | |
440 | + | let cI = fromBase58String(g(aM)) | |
417 | 441 | ||
418 | - | let | |
442 | + | let cJ = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
419 | 443 | ||
420 | - | let | |
444 | + | let cK = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
421 | 445 | ||
422 | - | let | |
446 | + | let cL = this | |
423 | 447 | ||
424 | - | let | |
448 | + | let cM = i(ar, aQ) | |
425 | 449 | ||
426 | - | func | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | if (if (( | |
434 | - | then ( | |
450 | + | func cN (cO) = { | |
451 | + | let cP = 100000 | |
452 | + | let cQ = 1000 | |
453 | + | let cR = bK(cP, cM) | |
454 | + | let cS = (cR * 2) | |
455 | + | let cT = fraction(cR, cQ, 100) | |
456 | + | let cU = value(cO.minSponsoredAssetFee) | |
457 | + | if (if ((cU >= cS)) | |
458 | + | then (cT >= cU) | |
435 | 459 | else false) | |
436 | - | then ( | |
460 | + | then (cO.assetId == cG) | |
437 | 461 | else false | |
438 | 462 | } | |
439 | 463 | ||
440 | 464 | ||
441 | - | func | |
465 | + | func cV (aU) = i(ar, aT(aU)) | |
442 | 466 | ||
443 | 467 | ||
444 | - | func | |
468 | + | func cW (aW) = i(ar, aV(aW)) | |
445 | 469 | ||
446 | 470 | ||
447 | - | func | |
471 | + | func cX (bF) = makeString(["%s%s%s", "paramByUser", bF, "amount"], z) | |
448 | 472 | ||
449 | 473 | ||
450 | - | let | |
474 | + | let cY = 1 | |
451 | 475 | ||
452 | - | let | |
476 | + | let cZ = 2 | |
453 | 477 | ||
454 | - | let | |
478 | + | let da = 3 | |
455 | 479 | ||
456 | - | let | |
480 | + | let db = 7 | |
457 | 481 | ||
458 | - | let | |
482 | + | let dc = 8 | |
459 | 483 | ||
460 | - | let | |
484 | + | let dd = 11 | |
461 | 485 | ||
462 | - | let | |
486 | + | let de = 15 | |
463 | 487 | ||
464 | - | let | |
488 | + | let df = 16 | |
465 | 489 | ||
466 | - | let | |
490 | + | let dg = 20 | |
467 | 491 | ||
468 | - | func | |
492 | + | func dh (bF,di) = makeString(["%s%s", bF, di], z) | |
469 | 493 | ||
470 | 494 | ||
471 | - | func | |
495 | + | func dj (bl,dk,bP,bJ,dl,dm,dn,do,dp,dq,dr,ds,aW,dt,du,dv,dw,dx,dy,bQ) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d%s%s", bl, dk, bP, bJ, dl, dm, dn, do, dp, dq, dr, ds, aW, dt, du, dv, dw, dx, dy, bQ], z) | |
472 | 496 | ||
473 | 497 | ||
474 | - | func | |
498 | + | func dz (bl,dA,dr,bQ) = dj(bl, "PENDING", toString(dA), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(dr), "0", "0", "NULL", "0", "0", "0", "0", "", bQ) | |
475 | 499 | ||
476 | 500 | ||
477 | - | func | |
501 | + | func dB (dC,bJ,dl,dm,ds,aW,dt,dw,dx,dy,bQ) = dj(dC[cY], "FINISHED", dC[da], toString(bJ), toString(dl), toString(dm), dC[db], dC[dc], toString(height), toString(lastBlock.timestamp), dC[dd], toString(ds), toString(aW), dt, dC[de], dC[df], toString(dw), toString(dx), dy, bQ) | |
478 | 502 | ||
479 | 503 | ||
480 | - | func | |
481 | - | let | |
482 | - | split_4C(valueOrErrorMessage(getString( | |
504 | + | func dD (bF,dE) = { | |
505 | + | let dF = dh(bF, dE) | |
506 | + | split_4C(valueOrErrorMessage(getString(dF), ("no swap data for " + dF)), z) | |
483 | 507 | } | |
484 | 508 | ||
485 | 509 | ||
486 | - | func | |
487 | - | let | |
488 | - | [( | |
510 | + | func dG (dH,dI,dJ) = { | |
511 | + | let cp = fraction(dH, dJ, C) | |
512 | + | [(dH - cp), cp] | |
489 | 513 | } | |
490 | 514 | ||
491 | 515 | ||
492 | - | func | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | func | |
497 | - | let | |
498 | - | ( | |
516 | + | func dK (dL) = { | |
517 | + | let dM = valueOrElse(getInteger(bu()), C) | |
518 | + | let ch = valueOrElse(getInteger(bt()), 50000) | |
519 | + | let dJ = fraction(dM, ch, C) | |
520 | + | func dN (bV,bW) = { | |
521 | + | let cp = fraction(bW._2, dJ, C) | |
522 | + | (bV :+ makeString([bW._1, toString(bW._3), toString((bW._2 - cp)), toString(cp), toString(bW._4)], A)) | |
499 | 523 | } | |
500 | 524 | ||
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | func | |
506 | - | then | |
507 | - | else | |
525 | + | let dO = { | |
526 | + | let bZ = dL | |
527 | + | let ca = size(bZ) | |
528 | + | let cb = nil | |
529 | + | func cc (cd,ce) = if ((ce >= ca)) | |
530 | + | then cd | |
531 | + | else dN(cd, bZ[ce]) | |
508 | 532 | ||
509 | - | func | |
510 | - | then | |
533 | + | func cf (cd,ce) = if ((ce >= ca)) | |
534 | + | then cd | |
511 | 535 | else throw("List size exceeds 10") | |
512 | 536 | ||
513 | - | | |
537 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
514 | 538 | } | |
515 | - | makeString( | |
539 | + | makeString(dO, z) | |
516 | 540 | } | |
517 | 541 | ||
518 | 542 | ||
519 | - | func | |
520 | - | then -( | |
521 | - | else | |
543 | + | func dP (dQ) = if ((0 > dQ)) | |
544 | + | then -(dQ) | |
545 | + | else dQ | |
522 | 546 | ||
523 | 547 | ||
524 | - | func | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | if (if (( | |
548 | + | func dR (dS) = { | |
549 | + | let dT = ((wavesBalance(cL).available - dS) - aZ()) | |
550 | + | let dU = f(bg(0)) | |
551 | + | let dV = f(bg(1)) | |
552 | + | let dW = (dT + dU) | |
553 | + | let dX = (dT + dV) | |
554 | + | if (if ((dW > 0)) | |
531 | 555 | then true | |
532 | - | else ( | |
556 | + | else (dX > 0)) | |
533 | 557 | then { | |
534 | - | let | |
535 | - | let | |
536 | - | if (( | |
537 | - | then $Tuple2(0, | |
538 | - | else $Tuple2(1, | |
558 | + | let dY = dP((dW - dV)) | |
559 | + | let dZ = dP((dX - dU)) | |
560 | + | if ((dZ >= dY)) | |
561 | + | then $Tuple2(0, dW) | |
562 | + | else $Tuple2(1, dX) | |
539 | 563 | } | |
540 | 564 | else $Tuple2(-1, 0) | |
541 | 565 | } | |
542 | 566 | ||
543 | 567 | ||
544 | - | func | |
568 | + | func ea (r) = if ((r.caller != this)) | |
545 | 569 | then throw("Permission denied: this contract only allowed") | |
546 | 570 | else true | |
547 | 571 | ||
548 | 572 | ||
549 | - | func | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | if (( | |
573 | + | func eb (dS) = { | |
574 | + | let ec = dR(dS) | |
575 | + | let bd = ec._1 | |
576 | + | let ed = ec._2 | |
577 | + | if ((ed > 0)) | |
554 | 578 | then { | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | then [LeaseCancel(value( | |
579 | + | let ee = bc(bd) | |
580 | + | let ef = getBinary(this, ee) | |
581 | + | let eg = if (isDefined(ef)) | |
582 | + | then [LeaseCancel(value(ef))] | |
559 | 583 | else nil | |
560 | - | let | |
561 | - | let | |
562 | - | ( | |
584 | + | let eh = bg(bd) | |
585 | + | let ei = Lease(aY(bd), ed) | |
586 | + | (eg ++ [ei, BinaryEntry(ee, d(ei)), IntegerEntry(bg(bd), ed)]) | |
563 | 587 | } | |
564 | 588 | else nil | |
565 | 589 | } | |
566 | 590 | ||
567 | 591 | ||
568 | - | func | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | $Tuple5( | |
592 | + | func ej (ek) = { | |
593 | + | let bf = aY(ek) | |
594 | + | let el = bg(ek) | |
595 | + | let em = f(el) | |
596 | + | let en = bc(ek) | |
597 | + | let eo = value(getBinary(this, en)) | |
598 | + | $Tuple5(bf, el, em, en, eo) | |
575 | 599 | } | |
576 | 600 | ||
577 | 601 | ||
578 | - | func | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | then | |
592 | - | else | |
593 | - | let | |
594 | - | let | |
595 | - | then | |
596 | - | else | |
597 | - | let | |
598 | - | then | |
599 | - | else | |
600 | - | if (( | |
601 | - | then | |
602 | - | else if (if (!( | |
603 | - | then ( | |
602 | + | func ep (bl,eq,bQ,er,es) = { | |
603 | + | let et = x(invoke(this, "swapParamsByUserSYSREADONLY", [er, 0], nil)) | |
604 | + | let eu = et._2 | |
605 | + | let ev = et._3 | |
606 | + | let ew = et._6 | |
607 | + | let ex = et._7 | |
608 | + | let cz = by(bl, bQ) | |
609 | + | let ey = bA(bl, bQ) | |
610 | + | let ez = bB(bl, er, bQ) | |
611 | + | let bf = aX(0) | |
612 | + | let eA = cV(cW(cC)) | |
613 | + | let eB = (bf == er) | |
614 | + | let eC = if (eB) | |
615 | + | then bD() | |
616 | + | else bC(bl) | |
617 | + | let dr = (height + eC) | |
618 | + | let eD = if ((bl == "outNeutrino")) | |
619 | + | then bK(eq, eA) | |
620 | + | else eq | |
621 | + | let eE = if ((bl == "outNeutrino")) | |
622 | + | then bK(ew, eA) | |
623 | + | else ex | |
624 | + | if ((cz > eq)) | |
625 | + | then cy(bl, cz) | |
626 | + | else if (if (!(eB)) | |
627 | + | then (eu > 0) | |
604 | 628 | else false) | |
605 | - | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + | |
606 | - | else if (if (!( | |
607 | - | then ( | |
629 | + | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + ev)))) | |
630 | + | else if (if (!(eB)) | |
631 | + | then (eD > eE) | |
608 | 632 | else false) | |
609 | - | then throw(((("You have exceeded your swap limit! Requested: " + toString( | |
610 | - | else if ( | |
611 | - | then | |
633 | + | then throw(((("You have exceeded your swap limit! Requested: " + toString(eD)) + ", available: ") + toString(eE))) | |
634 | + | else if (cH) | |
635 | + | then cA() | |
612 | 636 | else { | |
613 | - | let er = if (if ((aX == "outNeutrino")) | |
614 | - | then (bC == "WAVES") | |
637 | + | let eF = l(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
638 | + | let bT = o(eF[U]) | |
639 | + | let eG = q(eF[V]) | |
640 | + | let eH = bO(eq, bQ, bT, eG) | |
641 | + | if (if ((bl == "outNeutrino")) | |
642 | + | then (0 >= eH[1]) | |
615 | 643 | else false) | |
616 | - | then dN(0) | |
617 | - | else nil | |
618 | - | $Tuple2(([IntegerEntry(bq(ed), ep), IntegerEntry(bs(ed), height), IntegerEntry(aZ(aX, ed, bC), (el + ec)), IntegerEntry(aM(ed), dd), IntegerEntry(aY(aX, bC), (ek + ec)), StringEntry(cT(ed, ee), dl(aX, ec, dd, bC))] ++ er), unit) | |
644 | + | then throw((((((("Net amount is non-positive, cannot swap. (gross, net, fee) = (" + toString(eH[0])) + ", ") + toString(eH[1])) + ", ") + toString(eH[2])) + ")")) | |
645 | + | else { | |
646 | + | let eI = if (if ((bl == "outNeutrino")) | |
647 | + | then (bQ == "WAVES") | |
648 | + | else false) | |
649 | + | then eb(0) | |
650 | + | else nil | |
651 | + | $Tuple2(([IntegerEntry(bE(er), eD), IntegerEntry(bG(er), height), IntegerEntry(bn(bl, er, bQ), (ez + eq)), IntegerEntry(ba(er), dr), IntegerEntry(bm(bl, bQ), (ey + eq)), StringEntry(dh(er, es), dz(bl, eq, dr, bQ))] ++ eI), unit) | |
652 | + | } | |
619 | 653 | } | |
620 | 654 | } | |
621 | 655 | ||
622 | - | ||
623 | - | let es = 0 | |
624 | - | ||
625 | - | let et = 1 | |
626 | - | ||
627 | - | let eu = 2 | |
628 | - | ||
629 | - | let ev = 3 | |
630 | - | ||
631 | - | let ew = 4 | |
632 | - | ||
633 | - | let ex = 5 | |
634 | - | ||
635 | - | let ey = 6 | |
636 | - | ||
637 | - | let ez = 7 | |
638 | - | ||
639 | - | let eA = 8 | |
640 | - | ||
641 | - | let eB = 9 | |
642 | - | ||
643 | - | let eC = 10 | |
644 | - | ||
645 | - | let eD = 11 | |
646 | - | ||
647 | - | let eE = 12 | |
648 | - | ||
649 | - | let eF = 13 | |
650 | - | ||
651 | - | let eG = 14 | |
652 | - | ||
653 | - | let eH = 15 | |
654 | - | ||
655 | - | let eI = 16 | |
656 | 656 | ||
657 | 657 | let eJ = 0 | |
658 | 658 | ||
659 | 659 | let eK = 1 | |
660 | 660 | ||
661 | 661 | let eL = 2 | |
662 | 662 | ||
663 | 663 | let eM = 3 | |
664 | 664 | ||
665 | 665 | let eN = 4 | |
666 | 666 | ||
667 | 667 | let eO = 5 | |
668 | 668 | ||
669 | 669 | let eP = 6 | |
670 | 670 | ||
671 | 671 | let eQ = 7 | |
672 | 672 | ||
673 | 673 | let eR = 8 | |
674 | 674 | ||
675 | 675 | let eS = 9 | |
676 | 676 | ||
677 | 677 | let eT = 10 | |
678 | 678 | ||
679 | - | func eU ( | |
680 | - | let | |
681 | - | $Tuple12( | |
679 | + | func eU (bP,bQ,bT,eG) = { | |
680 | + | let eV = bO(bP, bQ, bT, eG) | |
681 | + | $Tuple12(eV[0], cG, 0, bQ, 0, eG, bP, 0, 0, 0, nil, [eV[1], eV[2]]) | |
682 | 682 | } | |
683 | 683 | ||
684 | 684 | ||
685 | - | func | |
686 | - | let | |
687 | - | let | |
685 | + | func eW (eX,bT,dx,eY,cr) = { | |
686 | + | let eZ = valueOrElse(getInteger(this, br()), E) | |
687 | + | let fa = if ((eZ >= dx)) | |
688 | 688 | then 0 | |
689 | - | else fraction(( | |
690 | - | let | |
691 | - | then | |
692 | - | else | |
693 | - | let | |
694 | - | then fraction(( | |
689 | + | else fraction((eY - fraction(eZ, cr, C)), C, (C - eZ)) | |
690 | + | let fb = if ((eX > fa)) | |
691 | + | then fa | |
692 | + | else eX | |
693 | + | let fc = if ((eX > fa)) | |
694 | + | then fraction((eX - fa), dx, C) | |
695 | 695 | else 0 | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | $Tuple12( | |
696 | + | let fd = (fb + fc) | |
697 | + | let fe = (eX - fd) | |
698 | + | let ff = cq(fd, bT, cr) | |
699 | + | $Tuple12(ff._2, unit, fe, cG, ff._2, ff._3, fd, fa, fb, fc, ff._1, nil) | |
700 | 700 | } | |
701 | 701 | ||
702 | 702 | ||
703 | - | func | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | then eU( | |
712 | - | else if (( | |
713 | - | then | |
714 | - | else throw(("Unsupported swap type " + | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | then | |
703 | + | func fg (bl,bP,bJ,eF,bQ) = { | |
704 | + | let eZ = valueOrElse(getInteger(this, br()), E) | |
705 | + | let fh = q(eF[O]) | |
706 | + | let fi = q(eF[W]) | |
707 | + | let cr = q(eF[L]) | |
708 | + | let bT = o(eF[U]) | |
709 | + | let eG = q(eF[V]) | |
710 | + | let fj = if ((bl == "outNeutrino")) | |
711 | + | then eU(bP, bQ, bT, eG) | |
712 | + | else if ((bl == "outMulti")) | |
713 | + | then eW(bP, bT, fh, fi, cr) | |
714 | + | else throw(("Unsupported swap type " + bl)) | |
715 | + | let ff = fj._1 | |
716 | + | let fk = fj._2 | |
717 | + | let fl = fj._3 | |
718 | + | let fm = fj._4 | |
719 | + | let fn = fj._5 | |
720 | + | let fo = fj._6 | |
721 | + | let dy = fj._11 | |
722 | + | let fp = fj._12 | |
723 | + | let fq = if ((bl == "outNeutrino")) | |
724 | + | then fp[0] | |
725 | 725 | else 0 | |
726 | - | let | |
727 | - | then | |
726 | + | let fr = if ((bl == "outNeutrino")) | |
727 | + | then fp[1] | |
728 | 728 | else 0 | |
729 | - | let | |
729 | + | let dw = if ((0 >= fl)) | |
730 | 730 | then 0 | |
731 | - | else q(l(invoke( | |
732 | - | let | |
733 | - | then | |
731 | + | else q(l(invoke(as, "surfFunctionREADONLY", [fl, fm], nil))[eJ]) | |
732 | + | let fs = if ((bl == "outMulti")) | |
733 | + | then dK(dy) | |
734 | 734 | else "" | |
735 | - | $Tuple9( | |
735 | + | $Tuple9(fq, fk, dw, fl, fn, fr, ff, fo, fs) | |
736 | 736 | } | |
737 | 737 | ||
738 | 738 | ||
739 | - | func | |
739 | + | func ft () = "%s__applyInProgress" | |
740 | 740 | ||
741 | 741 | ||
742 | - | func | |
742 | + | func fu (fv) = ("%s%d__proposalData__" + toString(fv)) | |
743 | 743 | ||
744 | 744 | ||
745 | - | let | |
745 | + | let fw = 9 | |
746 | 746 | ||
747 | - | func | |
748 | - | let n = | |
747 | + | func fx (cO) = { | |
748 | + | let n = cO | |
749 | 749 | if ($isInstanceOf(n, "Order")) | |
750 | 750 | then { | |
751 | - | let | |
751 | + | let fy = n | |
752 | 752 | throw("Orders aren't allowed") | |
753 | 753 | } | |
754 | 754 | else if (if ($isInstanceOf(n, "DataTransaction")) | |
755 | 755 | then true | |
756 | 756 | else if ($isInstanceOf(n, "SponsorFeeTransaction")) | |
757 | 757 | then true | |
758 | 758 | else if ($isInstanceOf(n, "SetScriptTransaction")) | |
759 | 759 | then true | |
760 | 760 | else if ($isInstanceOf(n, "CreateAliasTransaction")) | |
761 | 761 | then true | |
762 | 762 | else if ($isInstanceOf(n, "LeaseCancelTransaction")) | |
763 | 763 | then true | |
764 | 764 | else if ($isInstanceOf(n, "LeaseTransaction")) | |
765 | 765 | then true | |
766 | 766 | else if ($isInstanceOf(n, "IssueTransaction")) | |
767 | 767 | then true | |
768 | 768 | else if ($isInstanceOf(n, "InvokeExpressionTransaction")) | |
769 | 769 | then true | |
770 | 770 | else if ($isInstanceOf(n, "UpdateAssetInfoTransaction")) | |
771 | 771 | then true | |
772 | 772 | else if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
773 | 773 | then true | |
774 | 774 | else if ($isInstanceOf(n, "SetAssetScriptTransaction")) | |
775 | 775 | then true | |
776 | 776 | else if ($isInstanceOf(n, "TransferTransaction")) | |
777 | 777 | then true | |
778 | 778 | else if ($isInstanceOf(n, "ExchangeTransaction")) | |
779 | 779 | then true | |
780 | 780 | else if ($isInstanceOf(n, "MassTransferTransaction")) | |
781 | 781 | then true | |
782 | 782 | else if ($isInstanceOf(n, "BurnTransaction")) | |
783 | 783 | then true | |
784 | 784 | else $isInstanceOf(n, "ReissueTransaction")) | |
785 | 785 | then { | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | if (!(isDefined(indexOf( | |
791 | - | then throw(((("Unknown txId: " + | |
786 | + | let fz = n | |
787 | + | let di = toBase58String(fz.id) | |
788 | + | let fv = valueOrErrorMessage(getInteger(ay, ft()), "Apply is not happening") | |
789 | + | let fA = split(split(a(ay, fu(fv)), z)[fw], A) | |
790 | + | if (!(isDefined(indexOf(fA, di)))) | |
791 | + | then throw(((("Unknown txId: " + di) + " for proposalId=") + toString(fv))) | |
792 | 792 | else true | |
793 | 793 | } | |
794 | 794 | else throw("Match error") | |
795 | 795 | } | |
796 | 796 | ||
797 | 797 | ||
798 | 798 | @Callable(r) | |
799 | - | func constructorV1 (fD,fE,fF,fG,fH,fI,fJ,fK,fL,fM | |
800 | - | let | |
801 | - | if (( | |
799 | + | func constructorV1 (fB,fC,fD,fE,fF,fG,fH,fI,fJ,fK,fL,fM) = { | |
800 | + | let fN = ea(r) | |
801 | + | if ((fN == fN)) | |
802 | 802 | then if ((size(r.payments) != 0)) | |
803 | 803 | then throw("no payments allowed") | |
804 | - | else [StringEntry( | |
804 | + | else [StringEntry(az, fB), StringEntry(aA, fC), StringEntry(aB, fD), StringEntry(aD, fE), StringEntry(aE, fF), StringEntry(aM, fG), IntegerEntry(aH, fH), IntegerEntry(aI, fI), IntegerEntry(aJ("WAVES"), fJ), IntegerEntry(aL, fK), IntegerEntry(aN, fL), IntegerEntry(aO, fM)] | |
805 | 805 | else throw("Strict value is not equal to itself.") | |
806 | 806 | } | |
807 | 807 | ||
808 | 808 | ||
809 | 809 | ||
810 | 810 | @Callable(r) | |
811 | - | func constructorV2 ( | |
812 | - | let | |
813 | - | if (( | |
811 | + | func constructorV2 (as,at,fO) = { | |
812 | + | let fN = ea(r) | |
813 | + | if ((fN == fN)) | |
814 | 814 | then if ((size(r.payments) != 0)) | |
815 | 815 | then throw("no payments allowed") | |
816 | - | else [StringEntry( | |
816 | + | else [StringEntry(aG, as), StringEntry(aC, at), IntegerEntry(bq(), fO)] | |
817 | 817 | else throw("Strict value is not equal to itself.") | |
818 | 818 | } | |
819 | 819 | ||
820 | 820 | ||
821 | 821 | ||
822 | 822 | @Callable(r) | |
823 | - | func constructorV3 (fR,fS,fT | |
824 | - | let | |
825 | - | if (( | |
823 | + | func constructorV3 (fP,fQ,fR,fS,fT) = { | |
824 | + | let fN = ea(r) | |
825 | + | if ((fN == fN)) | |
826 | 826 | then if ((size(r.payments) != 0)) | |
827 | 827 | then throw("no payments allowed") | |
828 | 828 | else { | |
829 | - | func | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | let | |
834 | - | $Tuple2(( | |
829 | + | func fU (bV,bW) = { | |
830 | + | let ct = split(bW, "_") | |
831 | + | let aK = ct[0] | |
832 | + | let fV = parseIntValue(ct[1]) | |
833 | + | let fW = parseIntValue(ct[2]) | |
834 | + | $Tuple2((bV._1 :+ aK), ((bV._2 :+ IntegerEntry(bx(aK), fV)) :+ IntegerEntry(aJ(aK), fW))) | |
835 | 835 | } | |
836 | 836 | ||
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | func | |
842 | - | then | |
843 | - | else | |
837 | + | let fX = { | |
838 | + | let bZ = fP | |
839 | + | let ca = size(bZ) | |
840 | + | let cb = $Tuple2(nil, nil) | |
841 | + | func cc (cd,ce) = if ((ce >= ca)) | |
842 | + | then cd | |
843 | + | else fU(cd, bZ[ce]) | |
844 | 844 | ||
845 | - | func | |
846 | - | then | |
845 | + | func cf (cd,ce) = if ((ce >= ca)) | |
846 | + | then cd | |
847 | 847 | else throw("List size exceeds 10") | |
848 | 848 | ||
849 | - | | |
849 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
850 | 850 | } | |
851 | - | ((((( | |
851 | + | (((((fX._2 :+ IntegerEntry(bt(), fQ)) :+ IntegerEntry(bu(), fR)) :+ IntegerEntry(bv(), fS)) :+ IntegerEntry(bw(), log(fT, 6, fS, 6, 6, HALFUP))) :+ StringEntry(bs(), makeString(fX._1, z))) | |
852 | 852 | } | |
853 | 853 | else throw("Strict value is not equal to itself.") | |
854 | 854 | } | |
855 | 855 | ||
856 | 856 | ||
857 | 857 | ||
858 | 858 | @Callable(r) | |
859 | 859 | func swapTokenToNeutrino () = if ((size(r.payments) != 1)) | |
860 | 860 | then throw("swapTokenToNeutrino require only one payment") | |
861 | 861 | else { | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | if (!(contains( | |
866 | - | then throw((( | |
862 | + | let fY = value(r.payments[0]) | |
863 | + | let fZ = valueOrElse(getString(bs()), "WAVES") | |
864 | + | let ga = toBase58String(valueOrElse(fY.assetId, F)) | |
865 | + | if (!(contains(fZ, ga))) | |
866 | + | then throw(((ga + " is not one of basket tokens:") + fZ)) | |
867 | 867 | else { | |
868 | - | let | |
869 | - | let | |
870 | - | | |
868 | + | let bF = toString(r.caller) | |
869 | + | let es = toBase58String(r.transactionId) | |
870 | + | ep("outNeutrino", fY.amount, ga, bF, es) | |
871 | 871 | } | |
872 | 872 | } | |
873 | 873 | ||
874 | 874 | ||
875 | 875 | ||
876 | 876 | @Callable(r) | |
877 | 877 | func swapNeutrinoToBasket () = if ((size(r.payments) != 1)) | |
878 | 878 | then throw("swapNeutrinoToBasket require only one payment") | |
879 | 879 | else { | |
880 | - | let | |
881 | - | if (( | |
880 | + | let fY = value(r.payments[0]) | |
881 | + | if ((fY.assetId != cG)) | |
882 | 882 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
883 | 883 | else { | |
884 | - | let | |
885 | - | let | |
886 | - | | |
884 | + | let bF = toString(r.caller) | |
885 | + | let es = toBase58String(r.transactionId) | |
886 | + | ep("outMulti", fY.amount, toBase58String(cG), bF, es) | |
887 | 887 | } | |
888 | 888 | } | |
889 | 889 | ||
890 | 890 | ||
891 | 891 | ||
892 | 892 | @Callable(r) | |
893 | - | func withdraw ( | |
894 | - | let | |
893 | + | func withdraw (gb,aW,dE) = { | |
894 | + | let di = toBase58String(r.transactionId) | |
895 | 895 | if ((size(r.payments) != 0)) | |
896 | 896 | then throw("no payments allowed") | |
897 | 897 | else { | |
898 | - | let | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | let | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | let | |
914 | - | if ( | |
915 | - | then | |
916 | - | else if (( | |
898 | + | let eF = l(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
899 | + | let fh = q(eF[O]) | |
900 | + | let bF = addressFromStringValue(gb) | |
901 | + | let dC = dD(gb, dE) | |
902 | + | let dr = parseIntValue(dC[dd]) | |
903 | + | let bl = dC[cY] | |
904 | + | let bP = parseIntValue(dC[da]) | |
905 | + | let gc = dC[cZ] | |
906 | + | let dn = parseIntValue(dC[db]) | |
907 | + | let bQ = dC[dg] | |
908 | + | let ey = bA(bl, bQ) | |
909 | + | let ez = bB(bl, gb, bQ) | |
910 | + | let cE = dr | |
911 | + | let cD = cW(aW) | |
912 | + | let cF = cW((aW - 1)) | |
913 | + | let eA = cV(cD) | |
914 | + | if (cH) | |
915 | + | then cA() | |
916 | + | else if ((gc != "PENDING")) | |
917 | 917 | then throw("swap has been already processed") | |
918 | - | else if (( | |
919 | - | then throw((("please wait for: " + toString( | |
920 | - | else if (if (if (( | |
918 | + | else if ((cE > height)) | |
919 | + | then throw((("please wait for: " + toString(cE)) + " block height to withdraw funds")) | |
920 | + | else if (if (if ((aW > cC)) | |
921 | 921 | then true | |
922 | - | else ( | |
922 | + | else (cE > cD)) | |
923 | 923 | then true | |
924 | - | else if (( | |
925 | - | then ( | |
924 | + | else if ((cF != 0)) | |
925 | + | then (cF >= cE) | |
926 | 926 | else false) | |
927 | - | then | |
927 | + | then cB(aW, cC, cD, cE, cF) | |
928 | 928 | else { | |
929 | - | let | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | let | |
935 | - | let | |
936 | - | let | |
937 | - | let | |
938 | - | if ((0 >= | |
929 | + | let gd = fg(bl, bP, eA, eF, bQ) | |
930 | + | let dl = gd._1 | |
931 | + | let fk = gd._2 | |
932 | + | let dw = gd._3 | |
933 | + | let fn = gd._5 | |
934 | + | let dm = gd._6 | |
935 | + | let ff = gd._7 | |
936 | + | let fo = gd._8 | |
937 | + | let fs = gd._9 | |
938 | + | if ((0 >= ff)) | |
939 | 939 | then throw("balance equals zero") | |
940 | 940 | else { | |
941 | - | let | |
941 | + | let ge = if ((dw > 0)) | |
942 | 942 | then { | |
943 | - | let | |
944 | - | if (( | |
943 | + | let gf = invoke(aw, "issueSurf", [dw, gb], nil) | |
944 | + | if ((gf == gf)) | |
945 | 945 | then 0 | |
946 | 946 | else throw("Strict value is not equal to itself.") | |
947 | 947 | } | |
948 | 948 | else 0 | |
949 | - | if (( | |
949 | + | if ((ge == ge)) | |
950 | 950 | then { | |
951 | - | let | |
952 | - | if (( | |
951 | + | let gg = invoke(this, "internalUnleaseAndLease", [fn], nil) | |
952 | + | if ((gg == gg)) | |
953 | 953 | then { | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | if (( | |
954 | + | let gh = l(invoke(av, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil)) | |
955 | + | let gi = q(gh[1]) | |
956 | + | let gj = q(l(gh[3])[3]) | |
957 | + | let gk = [IntegerEntry(bn(bl, gb, bQ), (ez - bP)), IntegerEntry(bm(bl, bQ), (ey - bP)), StringEntry(dh(gb, dE), dB(dC, fo, dl, dm, cE, aW, di, dw, fh, fs, bQ))] | |
958 | + | if ((bl == "outMulti")) | |
959 | 959 | then { | |
960 | - | let | |
961 | - | func | |
962 | - | let | |
963 | - | let | |
964 | - | let | |
960 | + | let gl = split(fs, "_") | |
961 | + | func gm (bV,bW) = { | |
962 | + | let bY = split(bW, A) | |
963 | + | let gn = fromBase58String(bY[0]) | |
964 | + | let aK = if ((gn == F)) | |
965 | 965 | then unit | |
966 | - | else | |
967 | - | let | |
968 | - | let | |
969 | - | let | |
970 | - | then fraction( | |
966 | + | else gn | |
967 | + | let co = parseIntValue(bY[2]) | |
968 | + | let cp = parseIntValue(bY[3]) | |
969 | + | let go = if ((gi != 0)) | |
970 | + | then fraction(cp, gj, gi) | |
971 | 971 | else 0 | |
972 | - | let | |
973 | - | then fraction( | |
972 | + | let gp = if ((gi != 0)) | |
973 | + | then fraction(cp, (C - fh), C) | |
974 | 974 | else 0 | |
975 | - | let | |
976 | - | let | |
977 | - | $Tuple5(( | |
975 | + | let gq = max([go, gp]) | |
976 | + | let gr = (cp - gq) | |
977 | + | $Tuple5((bV._1 :+ ScriptTransfer(bF, co, aK)), (bV._2 :+ AttachedPayment(aK, gq)), (bV._3 :+ AttachedPayment(aK, gr)), (bV._4 + gq), (bV._5 + gr)) | |
978 | 978 | } | |
979 | 979 | ||
980 | - | let | |
981 | - | let | |
982 | - | let | |
983 | - | let | |
984 | - | func | |
985 | - | then | |
986 | - | else | |
980 | + | let fX = { | |
981 | + | let bZ = gl | |
982 | + | let ca = size(bZ) | |
983 | + | let cb = $Tuple5(nil, nil, nil, 0, 0) | |
984 | + | func cc (cd,ce) = if ((ce >= ca)) | |
985 | + | then cd | |
986 | + | else gm(cd, bZ[ce]) | |
987 | 987 | ||
988 | - | func | |
989 | - | then | |
988 | + | func cf (cd,ce) = if ((ce >= ca)) | |
989 | + | then cd | |
990 | 990 | else throw("List size exceeds 10") | |
991 | 991 | ||
992 | - | | |
992 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
993 | 993 | } | |
994 | - | let | |
994 | + | let gs = if ((fX._4 > 0)) | |
995 | 995 | then { | |
996 | - | let | |
997 | - | if (( | |
996 | + | let gt = invoke(au, "deposit", nil, fX._2) | |
997 | + | if ((gt == gt)) | |
998 | 998 | then 0 | |
999 | 999 | else throw("Strict value is not equal to itself.") | |
1000 | 1000 | } | |
1001 | 1001 | else 0 | |
1002 | - | if (( | |
1002 | + | if ((gs == gs)) | |
1003 | 1003 | then { | |
1004 | - | let | |
1004 | + | let gu = if ((fX._5 > 0)) | |
1005 | 1005 | then { | |
1006 | - | let | |
1007 | - | if (( | |
1006 | + | let gv = invoke(at, "deposit", nil, fX._3) | |
1007 | + | if ((gv == gv)) | |
1008 | 1008 | then 0 | |
1009 | 1009 | else throw("Strict value is not equal to itself.") | |
1010 | 1010 | } | |
1011 | 1011 | else 0 | |
1012 | - | if (( | |
1013 | - | then ( | |
1012 | + | if ((gu == gu)) | |
1013 | + | then (gk ++ fX._1) | |
1014 | 1014 | else throw("Strict value is not equal to itself.") | |
1015 | 1015 | } | |
1016 | 1016 | else throw("Strict value is not equal to itself.") | |
1017 | 1017 | } | |
1018 | 1018 | else { | |
1019 | - | let | |
1020 | - | let | |
1021 | - | then fraction( | |
1019 | + | let gw = AttachedPayment(fk, dm) | |
1020 | + | let gx = if ((gi != 0)) | |
1021 | + | then fraction(gw.amount, gj, gi) | |
1022 | 1022 | else 0 | |
1023 | - | let | |
1024 | - | then fraction( | |
1023 | + | let gy = if ((gi != 0)) | |
1024 | + | then fraction(gw.amount, (C - fh), C) | |
1025 | 1025 | else 0 | |
1026 | - | let | |
1027 | - | let | |
1028 | - | let | |
1026 | + | let gz = max([gx, gy]) | |
1027 | + | let gA = (gw.amount - gz) | |
1028 | + | let gs = if ((gz > 0)) | |
1029 | 1029 | then { | |
1030 | - | let | |
1031 | - | if (( | |
1030 | + | let gt = invoke(au, "deposit", nil, [AttachedPayment(gw.assetId, gz)]) | |
1031 | + | if ((gt == gt)) | |
1032 | 1032 | then nil | |
1033 | 1033 | else throw("Strict value is not equal to itself.") | |
1034 | 1034 | } | |
1035 | 1035 | else nil | |
1036 | - | if (( | |
1036 | + | if ((gs == gs)) | |
1037 | 1037 | then { | |
1038 | - | let | |
1038 | + | let gu = if ((gA > 0)) | |
1039 | 1039 | then { | |
1040 | - | let | |
1041 | - | if (( | |
1040 | + | let gv = invoke(at, "deposit", nil, [AttachedPayment(gw.assetId, gA)]) | |
1041 | + | if ((gv == gv)) | |
1042 | 1042 | then nil | |
1043 | 1043 | else throw("Strict value is not equal to itself.") | |
1044 | 1044 | } | |
1045 | 1045 | else nil | |
1046 | - | if (( | |
1047 | - | then ( | |
1046 | + | if ((gu == gu)) | |
1047 | + | then (gk :+ ScriptTransfer(bF, dl, fk)) | |
1048 | 1048 | else throw("Strict value is not equal to itself.") | |
1049 | 1049 | } | |
1050 | 1050 | else throw("Strict value is not equal to itself.") | |
1051 | 1051 | } | |
1052 | 1052 | } | |
1053 | 1053 | else throw("Strict value is not equal to itself.") | |
1054 | 1054 | } | |
1055 | 1055 | else throw("Strict value is not equal to itself.") | |
1056 | 1056 | } | |
1057 | 1057 | } | |
1058 | 1058 | } | |
1059 | 1059 | } | |
1060 | 1060 | ||
1061 | 1061 | ||
1062 | 1062 | ||
1063 | 1063 | @Callable(r) | |
1064 | - | func internalUnleaseAndLease ( | |
1064 | + | func internalUnleaseAndLease (dS) = if ((r.caller != this)) | |
1065 | 1065 | then throw("internalUnleaseAndLease is not public method") | |
1066 | - | else | |
1066 | + | else eb(dS) | |
1067 | 1067 | ||
1068 | 1068 | ||
1069 | 1069 | ||
1070 | 1070 | @Callable(r) | |
1071 | - | func transferUsdnToUser ( | |
1071 | + | func transferUsdnToUser (bI,gB) = if ((r.caller != aw)) | |
1072 | 1072 | then throw("Only auction contract is authorized") | |
1073 | - | else [ScriptTransfer(addressFromStringValue( | |
1073 | + | else [ScriptTransfer(addressFromStringValue(gB), bI, cG)] | |
1074 | 1074 | ||
1075 | 1075 | ||
1076 | 1076 | ||
1077 | 1077 | @Callable(r) | |
1078 | - | func acceptWaves () = if (if ((r.caller != | |
1079 | - | then (r.caller != | |
1078 | + | func acceptWaves () = if (if ((r.caller != aw)) | |
1079 | + | then (r.caller != ay) | |
1080 | 1080 | else false) | |
1081 | 1081 | then throw("Currently only auction and governance contracts are allowed to call") | |
1082 | - | else $Tuple2( | |
1082 | + | else $Tuple2(eb(0), "success") | |
1083 | 1083 | ||
1084 | 1084 | ||
1085 | 1085 | ||
1086 | 1086 | @Callable(r) | |
1087 | - | func approveLeasings ( | |
1088 | - | let | |
1089 | - | let | |
1090 | - | let | |
1091 | - | let | |
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | if (isDefined( | |
1096 | - | then throw((("group " + toString( | |
1087 | + | func approveLeasings (gC,bj,gD) = { | |
1088 | + | let gE = [0, 1, 2, 3, 4, 5, 6, 7] | |
1089 | + | let gF = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
1090 | + | let gG = fromBase58String(gF) | |
1091 | + | let gH = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE") | |
1092 | + | let gI = addressFromStringValue(gH) | |
1093 | + | let gJ = bi(bj) | |
1094 | + | let gK = getString(this, gJ) | |
1095 | + | if (isDefined(gK)) | |
1096 | + | then throw((("group " + toString(bj)) + " already initialized")) | |
1097 | 1097 | else { | |
1098 | - | let | |
1099 | - | let | |
1100 | - | if ((r.callerPublicKey != | |
1098 | + | let gL = split(gC, z) | |
1099 | + | let gM = size(gE) | |
1100 | + | if ((r.callerPublicKey != gG)) | |
1101 | 1101 | then throw("approveLeasings not authorized") | |
1102 | 1102 | else { | |
1103 | - | let | |
1104 | - | let | |
1105 | - | let | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1109 | - | let | |
1110 | - | let | |
1111 | - | if (( | |
1103 | + | let gN = ej(0) | |
1104 | + | let gO = gN._1 | |
1105 | + | let gP = gN._2 | |
1106 | + | let gQ = gN._3 | |
1107 | + | let gR = gN._4 | |
1108 | + | let gS = gN._5 | |
1109 | + | let gT = Lease(gO, (gQ - (gD * gM))) | |
1110 | + | let gU = invoke(gI, "validateAndApproveLeasings", [gC], nil) | |
1111 | + | if ((gU == gU)) | |
1112 | 1112 | then { | |
1113 | - | func | |
1114 | - | let | |
1115 | - | let | |
1116 | - | ( | |
1113 | + | func gV (dO,r) = { | |
1114 | + | let gW = gL[r] | |
1115 | + | let gX = Lease(addressFromStringValue(gW), gD) | |
1116 | + | (dO ++ [gX, BinaryEntry(be(gW), d(gX)), IntegerEntry(bh(gW), gD)]) | |
1117 | 1117 | } | |
1118 | 1118 | ||
1119 | - | ([StringEntry( | |
1120 | - | let | |
1121 | - | let | |
1122 | - | let | |
1123 | - | func | |
1124 | - | then | |
1125 | - | else | |
1119 | + | ([StringEntry(gJ, gC), BinaryEntry(gR, d(gT)), IntegerEntry(gP, gT.amount), LeaseCancel(gS), gT] ++ { | |
1120 | + | let bZ = gE | |
1121 | + | let ca = size(bZ) | |
1122 | + | let cb = nil | |
1123 | + | func cc (cd,ce) = if ((ce >= ca)) | |
1124 | + | then cd | |
1125 | + | else gV(cd, bZ[ce]) | |
1126 | 1126 | ||
1127 | - | func | |
1128 | - | then | |
1127 | + | func cf (cd,ce) = if ((ce >= ca)) | |
1128 | + | then cd | |
1129 | 1129 | else throw("List size exceeds 8") | |
1130 | 1130 | ||
1131 | - | | |
1131 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
1132 | 1132 | }) | |
1133 | 1133 | } | |
1134 | 1134 | else throw("Strict value is not equal to itself.") | |
1135 | 1135 | } | |
1136 | 1136 | } | |
1137 | 1137 | } | |
1138 | 1138 | ||
1139 | 1139 | ||
1140 | 1140 | ||
1141 | 1141 | @Callable(r) | |
1142 | - | func rebalanceLeasings ( | |
1143 | - | let | |
1144 | - | let | |
1145 | - | let | |
1146 | - | let | |
1147 | - | let | |
1148 | - | let | |
1149 | - | if ((r.callerPublicKey != | |
1142 | + | func rebalanceLeasings (bI,bj) = { | |
1143 | + | let gE = [0, 1, 2, 3, 4, 5, 6, 7] | |
1144 | + | let gF = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
1145 | + | let gG = fromBase58String(gF) | |
1146 | + | let gJ = bi(bj) | |
1147 | + | let gC = a(this, gJ) | |
1148 | + | let gL = split(gC, z) | |
1149 | + | if ((r.callerPublicKey != gG)) | |
1150 | 1150 | then throw("rebalanceLeasings not authorized") | |
1151 | 1151 | else { | |
1152 | - | let | |
1153 | - | let | |
1154 | - | let | |
1155 | - | let | |
1156 | - | let | |
1157 | - | let | |
1158 | - | let | |
1159 | - | let | |
1160 | - | func | |
1161 | - | let | |
1162 | - | let | |
1163 | - | let | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | ( | |
1152 | + | let fn = ((bI / size(gL)) + 1) | |
1153 | + | let gY = ej(0) | |
1154 | + | let gO = gY._1 | |
1155 | + | let gP = gY._2 | |
1156 | + | let gQ = gY._3 | |
1157 | + | let gR = gY._4 | |
1158 | + | let gS = gY._5 | |
1159 | + | let gT = Lease(gO, (gQ + (fn * size(gL)))) | |
1160 | + | func gZ (dO,r) = { | |
1161 | + | let gW = gL[r] | |
1162 | + | let ha = be(gW) | |
1163 | + | let hb = getBinaryValue(this, ha) | |
1164 | + | let hc = bh(gW) | |
1165 | + | let gD = getIntegerValue(this, hc) | |
1166 | + | let hd = LeaseCancel(value(hb)) | |
1167 | + | let gX = Lease(addressFromStringValue(gW), (gD - fn)) | |
1168 | + | (dO ++ [LeaseCancel(value(hb)), gX, BinaryEntry(ha, d(gX)), IntegerEntry(hc, gX.amount)]) | |
1169 | 1169 | } | |
1170 | 1170 | ||
1171 | 1171 | ({ | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | func | |
1176 | - | then | |
1177 | - | else | |
1172 | + | let bZ = gE | |
1173 | + | let ca = size(bZ) | |
1174 | + | let cb = nil | |
1175 | + | func cc (cd,ce) = if ((ce >= ca)) | |
1176 | + | then cd | |
1177 | + | else gZ(cd, bZ[ce]) | |
1178 | 1178 | ||
1179 | - | func | |
1180 | - | then | |
1179 | + | func cf (cd,ce) = if ((ce >= ca)) | |
1180 | + | then cd | |
1181 | 1181 | else throw("List size exceeds 8") | |
1182 | 1182 | ||
1183 | - | | |
1184 | - | } ++ [BinaryEntry( | |
1183 | + | cf(cc(cc(cc(cc(cc(cc(cc(cc(cb, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
1184 | + | } ++ [BinaryEntry(gR, d(gT)), IntegerEntry(gP, gT.amount), LeaseCancel(gS), gT]) | |
1185 | 1185 | } | |
1186 | 1186 | } | |
1187 | 1187 | ||
1188 | 1188 | ||
1189 | 1189 | ||
1190 | 1190 | @Callable(r) | |
1191 | - | func swapParamsByUserSYSREADONLY ( | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | let | |
1202 | - | let | |
1203 | - | let | |
1191 | + | func swapParamsByUserSYSREADONLY (er,he) = { | |
1192 | + | let gh = l(invoke(av, "gnsbtInfoSYSREADONLY", [er, 0, 0], nil)) | |
1193 | + | let hf = (q(gh[0]) + he) | |
1194 | + | let gi = (q(gh[1]) + he) | |
1195 | + | let hg = l(invoke(as, "calcSwapLimitREADONLY", [hf], nil)) | |
1196 | + | let hh = q(hg[0]) | |
1197 | + | let ew = q(hg[1]) | |
1198 | + | let ex = q(hg[2]) | |
1199 | + | let hi = valueOrElse(getInteger(this, bG(er)), 0) | |
1200 | + | let hj = bz() | |
1201 | + | let hk = (height - hi) | |
1202 | + | let hl = (hk >= hj) | |
1203 | + | let hm = if (hl) | |
1204 | 1204 | then 0 | |
1205 | - | else valueOrElse(getInteger(this, | |
1206 | - | let | |
1205 | + | else valueOrElse(getInteger(this, bE(er)), 0) | |
1206 | + | let ev = if (hl) | |
1207 | 1207 | then 0 | |
1208 | - | else ( | |
1209 | - | $Tuple2(nil, $Tuple7( | |
1208 | + | else (hj - hk) | |
1209 | + | $Tuple2(nil, $Tuple7(hh, hm, ev, hf, gi, ew, ex)) | |
1210 | 1210 | } | |
1211 | 1211 | ||
1212 | 1212 | ||
1213 | 1213 | ||
1214 | 1214 | @Callable(r) | |
1215 | - | func calcWithdrawResultSYSREADONLY ( | |
1216 | - | let | |
1217 | - | $Tuple2(nil, | |
1215 | + | func calcWithdrawResultSYSREADONLY (bl,bP,bJ,bQ) = { | |
1216 | + | let eF = l(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
1217 | + | $Tuple2(nil, fg(bl, bP, bJ, eF, bQ)) | |
1218 | 1218 | } | |
1219 | 1219 | ||
1220 | 1220 | ||
1221 | 1221 | ||
1222 | 1222 | @Callable(r) | |
1223 | - | func replaceCommunityNode (hp | |
1224 | - | let | |
1225 | - | let | |
1226 | - | if ((r.callerPublicKey != | |
1223 | + | func replaceCommunityNode (hn,ho,bj,hp) = { | |
1224 | + | let gF = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
1225 | + | let gG = fromBase58String(gF) | |
1226 | + | if ((r.callerPublicKey != gG)) | |
1227 | 1227 | then throw("replaceCommunityNode not authorized") | |
1228 | 1228 | else { | |
1229 | - | let | |
1230 | - | let | |
1231 | - | if (!(contains( | |
1232 | - | then throw(((("Group " + toString( | |
1229 | + | let hq = bi(bj) | |
1230 | + | let hr = a(this, hq) | |
1231 | + | if (!(contains(hr, hn))) | |
1232 | + | then throw(((("Group " + toString(bj)) + " does not contain address ") + hn)) | |
1233 | 1233 | else { | |
1234 | - | let | |
1235 | - | if (( | |
1234 | + | let hs = invoke(ax, "replaceApprovedNode", [hn, ho, bj, hp], nil) | |
1235 | + | if ((hs == hs)) | |
1236 | 1236 | then { | |
1237 | - | let | |
1238 | - | let | |
1239 | - | let | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | $Tuple2([LeaseCancel(getBinaryValue( | |
1237 | + | let ht = be(hn) | |
1238 | + | let hu = bh(hn) | |
1239 | + | let hv = getIntegerValue(hu) | |
1240 | + | let hw = be(ho) | |
1241 | + | let hx = bh(ho) | |
1242 | + | let hy = Lease(addressFromStringValue(ho), hv) | |
1243 | + | let hz = makeString(split(hr, hn), ho) | |
1244 | + | $Tuple2([LeaseCancel(getBinaryValue(ht)), DeleteEntry(ht), DeleteEntry(hu), StringEntry(hq, hz), hy, BinaryEntry(hw, d(hy)), IntegerEntry(hx, hv)], unit) | |
1245 | 1245 | } | |
1246 | 1246 | else throw("Strict value is not equal to itself.") | |
1247 | 1247 | } | |
1248 | 1248 | } | |
1249 | 1249 | } | |
1250 | 1250 | ||
1251 | 1251 | ||
1252 | 1252 | ||
1253 | 1253 | @Callable(r) | |
1254 | 1254 | func updateReservesAndNeutrinoSupply () = { | |
1255 | - | func | |
1255 | + | func hA (c) = { | |
1256 | 1256 | let n = getInteger(this, c) | |
1257 | 1257 | if ($isInstanceOf(n, "Int")) | |
1258 | 1258 | then { | |
1259 | - | let | |
1260 | - | | |
1259 | + | let dO = n | |
1260 | + | dO | |
1261 | 1261 | } | |
1262 | 1262 | else 0 | |
1263 | 1263 | } | |
1264 | 1264 | ||
1265 | - | let | |
1266 | - | let | |
1267 | - | let | |
1268 | - | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", | |
1265 | + | let hB = l(invoke(as, "calcNeutinoMetricsREADONLY", nil, nil)) | |
1266 | + | let aq = hA("updateReservesAndNeutrinoSupplyIdx") | |
1267 | + | let hC = (aq + 1) | |
1268 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", hC), IntegerEntry("reserve", q(hB[3])), IntegerEntry("neutrinoSupply", q(hB[5])), IntegerEntry("reservesInUsdn", bK(q(hB[3]), q(hB[0]))), IntegerEntry("surplus", q(hB[6])), IntegerEntry("deficit", -(q(hB[6])))] | |
1269 | 1269 | } | |
1270 | 1270 | ||
1271 | 1271 | ||
1272 | 1272 | ||
1273 | 1273 | @Callable(r) | |
1274 | 1274 | func wavesBalancesVsPayment () = { | |
1275 | - | let | |
1276 | - | [IntegerEntry("wavesBalance_available", | |
1275 | + | let hD = wavesBalance(this) | |
1276 | + | [IntegerEntry("wavesBalance_available", hD.available), IntegerEntry("wavesBalance_regular", hD.regular), IntegerEntry("wavesBalance_generating", hD.generating), IntegerEntry("wavesBalance_effective", hD.effective), IntegerEntry("waves_payment", value(r.payments[0]).amount)] | |
1277 | 1277 | } | |
1278 | 1278 | ||
1279 | 1279 | ||
1280 | - | @Verifier( | |
1281 | - | func | |
1282 | - | let | |
1283 | - | let | |
1284 | - | let | |
1280 | + | @Verifier(cO) | |
1281 | + | func hE () = { | |
1282 | + | let hF = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], z) | |
1283 | + | let hG = split(valueOrElse(getString(ar, "%s__multisig"), hF), z) | |
1284 | + | let hH = ((((if (sigVerify(cO.bodyBytes, cO.proofs[0], fromBase58String(hG[0]))) | |
1285 | 1285 | then 1 | |
1286 | - | else 0) + (if (sigVerify( | |
1286 | + | else 0) + (if (sigVerify(cO.bodyBytes, cO.proofs[1], fromBase58String(hG[1]))) | |
1287 | 1287 | then 1 | |
1288 | - | else 0)) + (if (sigVerify( | |
1288 | + | else 0)) + (if (sigVerify(cO.bodyBytes, cO.proofs[2], fromBase58String(hG[2]))) | |
1289 | 1289 | then 1 | |
1290 | - | else 0)) + (if (sigVerify( | |
1290 | + | else 0)) + (if (sigVerify(cO.bodyBytes, cO.proofs[3], fromBase58String(hG[3]))) | |
1291 | 1291 | then 2 | |
1292 | 1292 | else 0)) | |
1293 | - | if (if ( | |
1294 | - | then (getStringValue( | |
1293 | + | if (if (cH) | |
1294 | + | then (getStringValue(ar, "is_blocked_caller") == toString(ay)) | |
1295 | 1295 | else false) | |
1296 | - | then | |
1296 | + | then fx(cO) | |
1297 | 1297 | else { | |
1298 | - | let n = | |
1298 | + | let n = cO | |
1299 | 1299 | if ($isInstanceOf(n, "SponsorFeeTransaction")) | |
1300 | 1300 | then { | |
1301 | - | let | |
1302 | - | if ( | |
1303 | - | then ( | |
1301 | + | let hI = n | |
1302 | + | if (cN(hI)) | |
1303 | + | then (hH >= 3) | |
1304 | 1304 | else false | |
1305 | 1305 | } | |
1306 | - | else ( | |
1306 | + | else (hH >= 3) | |
1307 | 1307 | } | |
1308 | 1308 | } | |
1309 | 1309 |
github/deemru/w8io/169f3d6 628.83 ms ◑