tx · Ajom89W8cuwZjD2rJb91uyrTxnF149vusVg3H7cRstdv 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj: -0.04000000 Waves 2022.10.18 13:26 [2277712] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves
{ "type": 13, "id": "Ajom89W8cuwZjD2rJb91uyrTxnF149vusVg3H7cRstdv", "fee": 4000000, "feeAssetId": null, "timestamp": 1666088861647, "version": 1, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "4wxJTrPN5EUds1fTPoanqRexyxz4kh2VJobmNm7VMUGzPNUZX4QsGjQcskmH2ztrAfmjV6ijZinn7FktPSCKCHyd", "3CPjubERQdeK65h43urR5XVFsbYgzkBEWmgtpjqjcwjpkd5xNt9VeAeZ2fYro7mBHodjHJNdT8YYFV2eugW7Mfi1", "3EbBhwcHT3rkx5bwW14ec6BbGJC4Z4U386vi8gw7NCJaRUgNTCC3Byg9RxTkR31pbYNvDbnxCT3RvN6Vn2mJRuYW" ], "script": "base64:BgJXCAISDgoMCAgICAgIAQEBAQEBEgUKAwgIARIAEgASBQoDCAEIEgMKAQESBAoCAQgSABIFCgMIAQESBAoCAQESBAoCCAESBQoDCAEBEgYKBAgIAQESABIAqwEBD2dldFN0cmluZ09yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNzBQNrZXkJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQVsY2FsYwEBbAkAuQgBBQFsAQ5nZXROdW1iZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAQ5nZXRTdHJpbmdCeU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IBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAAAAAEAAAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEJANkEAQkAkQMCBRBwdWJLZXlBZG1pbnNMaXN0AAEAAQAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAgABAAADCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwADCQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAADAAIAAAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIVU3BvbnNvckZlZVRyYW5zYWN0aW9uBAlzcG9uc29yVHgFByRtYXRjaDADCQEbY2hlY2tJc1ZhbGlkTWluU3BvbnNvcmVkRmVlAQUJc3BvbnNvclR4CQBnAgUFY291bnQAAwcJAGcCBQVjb3VudAADlw42pw==", "chainId": 84, "height": 2277712, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FBKpVvYZtNmJoLSRfrT4K54ipi1SzUzGcHGVAr44x6No Next: HfuG7NEucEjM7vF7E2obE6yPmbk9G5nSchDuNxQwBGCm Diff:
Old | New | Differences | |
---|---|---|---|
131 | 131 | ||
132 | 132 | let S = 11 | |
133 | 133 | ||
134 | - | func T () = "%s%s__config__controlAddress" | |
134 | + | let T = 12 | |
135 | + | ||
136 | + | let U = 13 | |
137 | + | ||
138 | + | func V () = "%s%s__config__controlAddress" | |
135 | 139 | ||
136 | 140 | ||
137 | - | func | |
141 | + | func W () = "%s__controlConfig" | |
138 | 142 | ||
139 | 143 | ||
140 | - | func | |
144 | + | func X (Y) = split_4C(a(Y, W()), z) | |
141 | 145 | ||
142 | 146 | ||
143 | - | func | |
147 | + | func Z (aa,ab) = valueOrErrorMessage(addressFromString(aa[ab]), ("Control cfg doesn't contain address at index " + toString(ab))) | |
144 | 148 | ||
145 | 149 | ||
146 | - | let | |
150 | + | let ac = addressFromStringValue(valueOrElse(getString(this, V()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
147 | 151 | ||
148 | - | let | |
152 | + | let aa = X(ac) | |
149 | 153 | ||
150 | - | let | |
154 | + | let ad = Z(aa, L) | |
151 | 155 | ||
152 | - | let | |
156 | + | let ae = Z(aa, P) | |
153 | 157 | ||
154 | - | let | |
158 | + | let af = Z(aa, R) | |
155 | 159 | ||
156 | - | let | |
160 | + | let ag = Z(aa, S) | |
157 | 161 | ||
158 | - | let | |
162 | + | let ah = Z(aa, J) | |
159 | 163 | ||
160 | - | let | |
164 | + | let ai = Z(aa, O) | |
161 | 165 | ||
162 | - | let | |
166 | + | let aj = Z(aa, U) | |
163 | 167 | ||
164 | - | let | |
168 | + | let ak = "neutrino_asset_id" | |
165 | 169 | ||
166 | - | let | |
170 | + | let al = "bond_asset_id" | |
167 | 171 | ||
168 | - | let | |
172 | + | let am = "auction_contract" | |
169 | 173 | ||
170 | - | let | |
174 | + | let an = "nsbtStakingContract" | |
171 | 175 | ||
172 | - | let | |
176 | + | let ao = "liquidation_contract" | |
173 | 177 | ||
174 | - | let | |
178 | + | let ap = "rpd_contract" | |
175 | 179 | ||
176 | - | let | |
180 | + | let aq = "control_contract" | |
177 | 181 | ||
178 | - | let | |
182 | + | let ar = "math_contract" | |
179 | 183 | ||
180 | - | let | |
184 | + | let as = "balance_waves_lock_interval" | |
181 | 185 | ||
182 | - | let | |
186 | + | let at = "balance_neutrino_lock_interval" | |
183 | 187 | ||
184 | - | let | |
188 | + | let au = "min_waves_swap_amount" | |
185 | 189 | ||
186 | - | let | |
190 | + | let av = "min_neutrino_swap_amount" | |
187 | 191 | ||
188 | - | let | |
192 | + | let aw = "node_oracle_provider" | |
189 | 193 | ||
190 | - | let | |
194 | + | let ax = "neutrinoOut_swap_feePart" | |
191 | 195 | ||
192 | - | func aw (b) = ("%s__" + b) | |
196 | + | let ay = "wavesOut_swap_feePart" | |
197 | + | ||
198 | + | func az (b) = ("%s__" + b) | |
193 | 199 | ||
194 | 200 | ||
195 | - | let | |
201 | + | let aA = "price" | |
196 | 202 | ||
197 | - | let | |
203 | + | let aB = "price_index" | |
198 | 204 | ||
199 | - | let | |
205 | + | let aC = "is_blocked" | |
200 | 206 | ||
201 | - | func | |
207 | + | func aD (aE) = ((aA + "_") + toString(aE)) | |
202 | 208 | ||
203 | 209 | ||
204 | - | func | |
210 | + | func aF (aG) = ((aB + "_") + toString(aG)) | |
205 | 211 | ||
206 | 212 | ||
207 | - | func | |
213 | + | func aH (ab) = g(makeString(["%s%d%s", "lease", toString(ab), "nodeAddress"], z)) | |
208 | 214 | ||
209 | 215 | ||
210 | - | func | |
216 | + | func aI (ab) = addressFromStringValue(aH(ab)) | |
211 | 217 | ||
212 | 218 | ||
213 | - | func | |
219 | + | func aJ () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], z)), (1000 * A)) | |
214 | 220 | ||
215 | 221 | ||
216 | - | func | |
222 | + | func aK (aL) = ("balance_unlock_block_" + aL) | |
217 | 223 | ||
218 | 224 | ||
219 | - | func | |
225 | + | func aM (aN) = makeString(["%s%d%s", "lease", toString(aN), "id"], z) | |
220 | 226 | ||
221 | 227 | ||
222 | - | func | |
228 | + | func aO (aP) = makeString(["%s%s%s", "leaseByAddress", aP, "id"], z) | |
223 | 229 | ||
224 | 230 | ||
225 | - | func | |
231 | + | func aQ (aN) = makeString(["%s%d%s", "lease", toString(aN), "amount"], z) | |
226 | 232 | ||
227 | 233 | ||
228 | - | func | |
234 | + | func aR (aP) = makeString(["%s%s%s", "leaseByAddress", aP, "amount"], z) | |
229 | 235 | ||
230 | 236 | ||
231 | - | func | |
237 | + | func aS (aT) = makeString(["%s%d%s", "leaseGroup", toString(aT), "nodeList"], z) | |
232 | 238 | ||
233 | 239 | ||
234 | - | func | |
240 | + | func aU (aV) = (("min_" + aV) + "_swap_amount") | |
235 | 241 | ||
236 | 242 | ||
237 | - | func | |
243 | + | func aW (aV) = ("balance_lock_" + aV) | |
238 | 244 | ||
239 | 245 | ||
240 | - | func | |
246 | + | func aX (aV,aL) = makeString(["balance_lock", aV, aL], "_") | |
241 | 247 | ||
242 | 248 | ||
243 | - | func | |
249 | + | func aY (aV) = (("balance_" + aV) + "_lock_interval") | |
244 | 250 | ||
245 | 251 | ||
246 | - | func | |
252 | + | func aZ () = "balance_node_lock_interval" | |
247 | 253 | ||
248 | 254 | ||
249 | - | func | |
255 | + | func ba (aV) = (aV + "Out_swap_feePart") | |
250 | 256 | ||
251 | 257 | ||
252 | - | func | |
258 | + | func bb () = "swaps_timeframe" | |
253 | 259 | ||
254 | 260 | ||
255 | - | func | |
261 | + | func bc () = "min_BR_protection_level" | |
256 | 262 | ||
257 | 263 | ||
258 | - | func | |
264 | + | func bd (aV) = valueOrElse(getInteger(this, aU(aV)), 0) | |
259 | 265 | ||
260 | 266 | ||
261 | - | func | |
267 | + | func be () = valueOrElse(getInteger(this, bb()), 1440) | |
262 | 268 | ||
263 | 269 | ||
264 | - | func | |
270 | + | func bf (aV) = valueOrElse(getInteger(this, aW(aV)), 0) | |
265 | 271 | ||
266 | 272 | ||
267 | - | func | |
273 | + | func bg (aV,aL) = valueOrElse(getInteger(this, aX(aV, aL)), 0) | |
268 | 274 | ||
269 | 275 | ||
270 | - | func | |
276 | + | func bh (aV) = valueOrElse(getInteger(this, aY(aV)), 1440) | |
271 | 277 | ||
272 | 278 | ||
273 | - | func | |
279 | + | func bi () = valueOrElse(getInteger(this, aZ()), 1) | |
274 | 280 | ||
275 | 281 | ||
276 | - | func | |
282 | + | func bj (bk) = makeString(["%s%s", "swapUserSpentInPeriod", bk], z) | |
277 | 283 | ||
278 | 284 | ||
279 | - | func | |
285 | + | func bl (bk) = makeString(["%s%s", "userLastSwapHeight", bk], z) | |
280 | 286 | ||
281 | 287 | ||
282 | - | func | |
288 | + | func bm (bn,bo) = fraction(fraction(bn, C, bo), A, B) | |
283 | 289 | ||
284 | 290 | ||
285 | - | func | |
291 | + | func bp (bn,bo) = fraction(fraction(bn, bo, C), B, A) | |
286 | 292 | ||
287 | 293 | ||
288 | - | func | |
294 | + | func bq (bn,bo) = bp(bn, bo) | |
289 | 295 | ||
290 | 296 | ||
291 | - | func | |
297 | + | func br (bs) = split(bs, ",") | |
292 | 298 | ||
293 | 299 | ||
294 | - | func | |
300 | + | func bt (aV,bu) = throw(((("The specified amount in " + aV) + " swap is less than the required minimum of ") + toString(bu))) | |
295 | 301 | ||
296 | 302 | ||
297 | - | func | |
303 | + | func bv () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
298 | 304 | ||
299 | 305 | ||
300 | - | func | |
306 | + | func bw (aG,bx,by,bz,bA) = throw(((((((((("invalid price history index: index=" + toString(aG)) + " priceIndex=") + toString(bx)) + " indexHeight=") + toString(by)) + " unlockHeight=") + toString(bz)) + " prevIndexHeight=") + toString(bA))) | |
301 | 307 | ||
302 | 308 | ||
303 | - | let | |
309 | + | let bB = fromBase58String(g(ak)) | |
304 | 310 | ||
305 | - | let | |
311 | + | let bx = i(ac, aB) | |
306 | 312 | ||
307 | - | let | |
313 | + | let bC = k(ac, aC) | |
308 | 314 | ||
309 | - | let | |
315 | + | let bD = fromBase58String(g(aw)) | |
310 | 316 | ||
311 | - | let | |
317 | + | let bE = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
312 | 318 | ||
313 | - | let | |
319 | + | let bF = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
314 | 320 | ||
315 | - | let | |
321 | + | let bG = this | |
316 | 322 | ||
317 | - | let | |
323 | + | let bH = i(ac, aA) | |
318 | 324 | ||
319 | - | func | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | if (if (( | |
327 | - | then ( | |
325 | + | func bI (bJ) = { | |
326 | + | let bK = 100000 | |
327 | + | let bL = 1000 | |
328 | + | let bM = bp(bK, bH) | |
329 | + | let bN = (bM * 2) | |
330 | + | let bO = fraction(bM, bL, 100) | |
331 | + | let bP = value(bJ.minSponsoredAssetFee) | |
332 | + | if (if ((bP >= bN)) | |
333 | + | then (bO >= bP) | |
328 | 334 | else false) | |
329 | - | then ( | |
335 | + | then (bJ.assetId == bB) | |
330 | 336 | else false | |
331 | 337 | } | |
332 | 338 | ||
333 | 339 | ||
334 | - | func | |
340 | + | func bQ (aE) = i(ac, aD(aE)) | |
335 | 341 | ||
336 | 342 | ||
337 | - | func | |
343 | + | func bR (aG) = i(ac, aF(aG)) | |
338 | 344 | ||
339 | 345 | ||
340 | - | func | |
346 | + | func bS (bk) = makeString(["%s%s%s", "paramByUser", bk, "amount"], z) | |
341 | 347 | ||
342 | 348 | ||
343 | - | let | |
349 | + | let bT = 1 | |
344 | 350 | ||
345 | - | let | |
351 | + | let bU = 2 | |
346 | 352 | ||
347 | - | let | |
353 | + | let bV = 3 | |
348 | 354 | ||
349 | - | let | |
355 | + | let bW = 4 | |
350 | 356 | ||
351 | - | let | |
357 | + | let bX = 5 | |
352 | 358 | ||
353 | - | let | |
359 | + | let bY = 6 | |
354 | 360 | ||
355 | - | let | |
361 | + | let bZ = 7 | |
356 | 362 | ||
357 | - | let | |
363 | + | let ca = 8 | |
358 | 364 | ||
359 | - | let | |
365 | + | let cb = 9 | |
360 | 366 | ||
361 | - | let | |
367 | + | let cc = 10 | |
362 | 368 | ||
363 | - | let | |
369 | + | let cd = 11 | |
364 | 370 | ||
365 | - | let | |
371 | + | let ce = 12 | |
366 | 372 | ||
367 | - | let | |
373 | + | let cf = 13 | |
368 | 374 | ||
369 | - | let | |
375 | + | let cg = 14 | |
370 | 376 | ||
371 | - | let | |
377 | + | let ch = 15 | |
372 | 378 | ||
373 | - | let | |
379 | + | let ci = 16 | |
374 | 380 | ||
375 | - | let | |
381 | + | let cj = 17 | |
376 | 382 | ||
377 | - | let | |
383 | + | let ck = 18 | |
378 | 384 | ||
379 | - | func | |
385 | + | func cl (bk,cm) = makeString(["%s%s", bk, cm], z) | |
380 | 386 | ||
381 | 387 | ||
382 | - | func | |
388 | + | func cn (aV,co,cp,bo,cq,cr,cs,ct,cu,cv,cw,cx,aG,cy,cz,cA,cB,cC) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d", aV, co, cp, bo, cq, cr, cs, ct, cu, cv, cw, cx, aG, cy, cz, cA, cB, cC], z) | |
383 | 389 | ||
384 | 390 | ||
385 | - | func | |
391 | + | func cD (aV,cE,cw) = cn(aV, "PENDING", toString(cE), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(cw), "0", "0", "NULL", "0", "0", "0", "0") | |
386 | 392 | ||
387 | 393 | ||
388 | - | func | |
394 | + | func cF (cG,bo,cq,cr,cx,aG,cy,cB,cC) = cn(cG[bT], "FINISHED", cG[bV], toString(bo), toString(cq), toString(cr), cG[bZ], cG[ca], toString(height), toString(lastBlock.timestamp), cG[cd], toString(cx), toString(aG), cy, cG[ch], cG[ci], toString(cB), toString(cC)) | |
389 | 395 | ||
390 | 396 | ||
391 | - | func | |
392 | - | let | |
393 | - | split(valueOrErrorMessage(getString(this, | |
397 | + | func cH (bk,cI) = { | |
398 | + | let cJ = cl(bk, cI) | |
399 | + | split(valueOrErrorMessage(getString(this, cJ), ("no swap data for " + cJ)), z) | |
394 | 400 | } | |
395 | 401 | ||
396 | 402 | ||
397 | - | func | |
398 | - | let | |
399 | - | [( | |
403 | + | func cK (cL,cM,cN) = { | |
404 | + | let cO = fraction(cL, cN, B) | |
405 | + | [(cL - cO), cO] | |
400 | 406 | } | |
401 | 407 | ||
402 | 408 | ||
403 | - | func | |
404 | - | then -( | |
405 | - | else | |
409 | + | func cP (cQ) = if ((0 > cQ)) | |
410 | + | then -(cQ) | |
411 | + | else cQ | |
406 | 412 | ||
407 | 413 | ||
408 | - | func | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | if (if (( | |
414 | + | func cR (cS) = { | |
415 | + | let cT = ((wavesBalance(bG).available - cS) - aJ()) | |
416 | + | let cU = f(aQ(0)) | |
417 | + | let cV = f(aQ(1)) | |
418 | + | let cW = (cT + cU) | |
419 | + | let cX = (cT + cV) | |
420 | + | if (if ((cW > 0)) | |
415 | 421 | then true | |
416 | - | else ( | |
422 | + | else (cX > 0)) | |
417 | 423 | then { | |
418 | - | let | |
419 | - | let | |
420 | - | if (( | |
421 | - | then $Tuple2(0, | |
422 | - | else $Tuple2(1, | |
424 | + | let cY = cP((cW - cV)) | |
425 | + | let cZ = cP((cX - cU)) | |
426 | + | if ((cZ >= cY)) | |
427 | + | then $Tuple2(0, cW) | |
428 | + | else $Tuple2(1, cX) | |
423 | 429 | } | |
424 | 430 | else $Tuple2(-1, 0) | |
425 | 431 | } | |
426 | 432 | ||
427 | 433 | ||
428 | - | func | |
434 | + | func da (r) = if ((r.caller != this)) | |
429 | 435 | then throw("Permission denied: this contract only allowed") | |
430 | 436 | else true | |
431 | 437 | ||
432 | 438 | ||
433 | - | func | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | if (( | |
439 | + | func db (cS) = { | |
440 | + | let dc = cR(cS) | |
441 | + | let aN = dc._1 | |
442 | + | let dd = dc._2 | |
443 | + | if ((dd > 0)) | |
438 | 444 | then { | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | then [LeaseCancel(value( | |
445 | + | let de = aM(aN) | |
446 | + | let df = getBinary(this, de) | |
447 | + | let dg = if (isDefined(df)) | |
448 | + | then [LeaseCancel(value(df))] | |
443 | 449 | else nil | |
444 | - | let | |
445 | - | let | |
446 | - | ( | |
450 | + | let dh = aQ(aN) | |
451 | + | let di = Lease(aI(aN), dd) | |
452 | + | (dg ++ [di, BinaryEntry(de, d(di)), IntegerEntry(aQ(aN), dd)]) | |
447 | 453 | } | |
448 | 454 | else nil | |
449 | 455 | } | |
450 | 456 | ||
451 | 457 | ||
452 | - | func | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | $Tuple5( | |
458 | + | func dj (dk) = { | |
459 | + | let aP = aI(dk) | |
460 | + | let dl = aQ(dk) | |
461 | + | let dm = f(dl) | |
462 | + | let dn = aM(dk) | |
463 | + | let do = value(getBinary(this, dn)) | |
464 | + | $Tuple5(aP, dl, dm, dn, do) | |
459 | 465 | } | |
460 | 466 | ||
461 | 467 | ||
462 | - | func | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | then | |
475 | - | else | |
476 | - | let | |
477 | - | let | |
478 | - | then | |
479 | - | else | |
480 | - | let | |
481 | - | then | |
482 | - | else | |
483 | - | if (( | |
484 | - | then | |
485 | - | else if (if (!( | |
486 | - | then ( | |
468 | + | func dp (aV,dq,dr,ds,dt) = { | |
469 | + | let du = dt._2 | |
470 | + | let dv = dt._3 | |
471 | + | let dw = dt._6 | |
472 | + | let dx = dt._7 | |
473 | + | let bu = bd(aV) | |
474 | + | let dy = bf(aV) | |
475 | + | let dz = bg(aV, dr) | |
476 | + | let aP = aH(0) | |
477 | + | let dA = bQ(bR(bx)) | |
478 | + | let dB = (aP == dr) | |
479 | + | let dC = if (dB) | |
480 | + | then bi() | |
481 | + | else bh(aV) | |
482 | + | let cw = (height + dC) | |
483 | + | let dD = if ((aV == "neutrino")) | |
484 | + | then dq | |
485 | + | else bp(dq, dA) | |
486 | + | let dE = if ((aV == "neutrino")) | |
487 | + | then dx | |
488 | + | else bp(dw, dA) | |
489 | + | if ((bu > dq)) | |
490 | + | then bt(aV, bu) | |
491 | + | else if (if (!(dB)) | |
492 | + | then (du > 0) | |
487 | 493 | else false) | |
488 | - | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + | |
489 | - | else if (if (!( | |
490 | - | then ( | |
494 | + | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + dv)))) | |
495 | + | else if (if (!(dB)) | |
496 | + | then (dD > dE) | |
491 | 497 | else false) | |
492 | - | then throw(((("You have exceeded your swap limit! Requested: " + toString( | |
493 | - | else if ( | |
494 | - | then | |
498 | + | then throw(((("You have exceeded your swap limit! Requested: " + toString(dD)) + ", available: ") + toString(dE))) | |
499 | + | else if (bC) | |
500 | + | then bv() | |
495 | 501 | else { | |
496 | - | let | |
497 | - | then | |
502 | + | let dF = if ((aV == "waves")) | |
503 | + | then db(0) | |
498 | 504 | else nil | |
499 | - | $Tuple2(([IntegerEntry( | |
505 | + | $Tuple2(([IntegerEntry(bj(dr), dD), IntegerEntry(bl(dr), height), IntegerEntry(aX(aV, dr), (dz + dq)), IntegerEntry(aK(dr), cw), IntegerEntry(aW(aV), (dy + dq)), StringEntry(cl(dr, ds), cD(aV, dq, cw))] ++ dF), unit) | |
500 | 506 | } | |
501 | 507 | } | |
502 | 508 | ||
503 | 509 | ||
504 | - | let | |
510 | + | let dG = 0 | |
505 | 511 | ||
506 | - | let | |
512 | + | let dH = 1 | |
507 | 513 | ||
508 | - | let | |
514 | + | let dI = 2 | |
509 | 515 | ||
510 | - | let | |
516 | + | let dJ = 3 | |
511 | 517 | ||
512 | - | let | |
518 | + | let dK = 4 | |
513 | 519 | ||
514 | - | let | |
520 | + | let dL = 5 | |
515 | 521 | ||
516 | - | let | |
522 | + | let dM = 6 | |
517 | 523 | ||
518 | - | let | |
524 | + | let dN = 7 | |
519 | 525 | ||
520 | - | let | |
526 | + | let dO = 8 | |
521 | 527 | ||
522 | - | let | |
528 | + | let dP = 9 | |
523 | 529 | ||
524 | - | let | |
530 | + | let dQ = 10 | |
525 | 531 | ||
526 | - | let | |
532 | + | let dR = 11 | |
527 | 533 | ||
528 | - | let | |
534 | + | let dS = 0 | |
529 | 535 | ||
530 | - | let | |
536 | + | let dT = 1 | |
531 | 537 | ||
532 | - | let | |
538 | + | let dU = 2 | |
533 | 539 | ||
534 | - | let | |
540 | + | let dV = 3 | |
535 | 541 | ||
536 | - | let | |
542 | + | let dW = 4 | |
537 | 543 | ||
538 | - | let | |
544 | + | let dX = 5 | |
539 | 545 | ||
540 | - | let | |
546 | + | let dY = 6 | |
541 | 547 | ||
542 | - | let | |
548 | + | let dZ = 7 | |
543 | 549 | ||
544 | - | let | |
550 | + | let ea = 8 | |
545 | 551 | ||
546 | - | let | |
552 | + | let eb = 9 | |
547 | 553 | ||
548 | - | let | |
554 | + | let ec = 10 | |
549 | 555 | ||
550 | - | func | |
551 | - | let | |
552 | - | $Tuple9( | |
556 | + | func ed (ee,bo) = { | |
557 | + | let ef = bp(ee, bo) | |
558 | + | $Tuple9(ef, bB, 0, unit, 0, ee, 0, 0, 0) | |
553 | 559 | } | |
554 | 560 | ||
555 | 561 | ||
556 | - | func | |
557 | - | let | |
558 | - | let | |
562 | + | func eg (eh,bo,cC,ei,ej) = { | |
563 | + | let ek = valueOrElse(getInteger(this, bc()), E) | |
564 | + | let el = if ((ek >= cC)) | |
559 | 565 | then 0 | |
560 | - | else fraction(( | |
561 | - | let | |
562 | - | then | |
563 | - | else | |
564 | - | let | |
565 | - | then fraction(( | |
566 | + | else fraction((ei - fraction(ek, ej, B)), B, (B - ek)) | |
567 | + | let em = if ((eh > el)) | |
568 | + | then el | |
569 | + | else eh | |
570 | + | let en = if ((eh > el)) | |
571 | + | then fraction((eh - el), cC, B) | |
566 | 572 | else 0 | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | $Tuple9( | |
573 | + | let eo = (em + en) | |
574 | + | let ep = (eh - eo) | |
575 | + | let ef = bm(eo, bo) | |
576 | + | $Tuple9(ef, unit, ep, bB, ef, eo, el, em, en) | |
571 | 577 | } | |
572 | 578 | ||
573 | 579 | ||
574 | - | func | |
575 | - | let | |
576 | - | if (if ((0 > | |
580 | + | func eq (aV,cp,bo,er) = { | |
581 | + | let es = valueOrElse(getInteger(this, ba(aV)), D) | |
582 | + | if (if ((0 > es)) | |
577 | 583 | then true | |
578 | - | else ( | |
579 | - | then throw(((("invalid outFeePart config for " + | |
584 | + | else (es >= B)) | |
585 | + | then throw(((("invalid outFeePart config for " + aV) + " swap: outFeePart=") + toString(es))) | |
580 | 586 | else { | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | then | |
587 | - | else if (( | |
588 | - | then | |
589 | - | else throw(("Unsupported swap type " + | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
587 | + | let ek = valueOrElse(getInteger(this, bc()), E) | |
588 | + | let et = q(er[dO]) | |
589 | + | let ei = q(er[dK]) | |
590 | + | let ej = q(er[dL]) | |
591 | + | let eu = if ((aV == "waves")) | |
592 | + | then ed(cp, bo) | |
593 | + | else if ((aV == "neutrino")) | |
594 | + | then eg(cp, bo, et, ei, ej) | |
595 | + | else throw(("Unsupported swap type " + aV)) | |
596 | + | let ef = eu._1 | |
597 | + | let ev = eu._2 | |
598 | + | let ew = eu._3 | |
599 | + | let ex = eu._4 | |
600 | + | let ey = eu._5 | |
601 | + | let ez = cK(ef, ew, es) | |
602 | + | let eA = ez[F] | |
603 | + | let eB = ez[G] | |
604 | + | let cB = if ((0 >= ew)) | |
599 | 605 | then 0 | |
600 | 606 | else { | |
601 | - | let | |
602 | - | q( | |
607 | + | let eC = l(invoke(ad, "surfFunctionREADONLY", [ew, ex], nil)) | |
608 | + | q(eC[dS]) | |
603 | 609 | } | |
604 | - | $Tuple7( | |
610 | + | $Tuple7(eA, ev, cB, ew, ey, eB, ef) | |
605 | 611 | } | |
606 | 612 | } | |
607 | 613 | ||
608 | 614 | ||
609 | - | func | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | if ( | |
625 | - | then | |
626 | - | else if (( | |
615 | + | func eD (eE,aG,cI,cy,er) = { | |
616 | + | let bk = addressFromStringValue(eE) | |
617 | + | let cG = cH(eE, cI) | |
618 | + | let cw = parseIntValue(cG[cd]) | |
619 | + | let aV = cG[bT] | |
620 | + | let cp = parseIntValue(cG[bV]) | |
621 | + | let eF = cG[bU] | |
622 | + | let cs = parseIntValue(cG[bZ]) | |
623 | + | let es = valueOrElse(getInteger(this, ba(aV)), D) | |
624 | + | let dy = bf(aV) | |
625 | + | let dz = bg(aV, eE) | |
626 | + | let bz = cw | |
627 | + | let by = bR(aG) | |
628 | + | let bA = bR((aG - 1)) | |
629 | + | let dA = bQ(by) | |
630 | + | if (bC) | |
631 | + | then bv() | |
632 | + | else if ((eF != "PENDING")) | |
627 | 633 | then throw("swap has been already processed") | |
628 | - | else if (( | |
629 | - | then throw((("please wait for: " + toString( | |
630 | - | else if (if (if (( | |
634 | + | else if ((bz > height)) | |
635 | + | then throw((("please wait for: " + toString(bz)) + " block height to withdraw funds")) | |
636 | + | else if (if (if ((aG > bx)) | |
631 | 637 | then true | |
632 | - | else ( | |
638 | + | else (bz > by)) | |
633 | 639 | then true | |
634 | - | else if (( | |
635 | - | then ( | |
640 | + | else if ((bA != 0)) | |
641 | + | then (bA >= bz) | |
636 | 642 | else false) | |
637 | - | then | |
643 | + | then bw(aG, bx, by, bz, bA) | |
638 | 644 | else { | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | if ((0 >= | |
645 | + | let eG = eq(aV, cp, dA, er) | |
646 | + | let cq = eG._1 | |
647 | + | let ev = eG._2 | |
648 | + | let cB = eG._3 | |
649 | + | let ew = eG._4 | |
650 | + | let ey = eG._5 | |
651 | + | let cr = eG._6 | |
652 | + | let ef = eG._7 | |
653 | + | if ((0 >= ef)) | |
648 | 654 | then throw("balance equals zero") | |
649 | 655 | else { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
656 | + | let et = q(er[dO]) | |
657 | + | let eH = [IntegerEntry(aX(aV, eE), (dz - cp)), IntegerEntry(aW(aV), (dy - cp)), ScriptTransfer(bk, cq, ev), StringEntry(cl(eE, cI), cF(cG, dA, cq, cr, bz, aG, cy, cB, et))] | |
658 | + | let eI = if ((cB > 0)) | |
653 | 659 | then { | |
654 | - | let | |
655 | - | if (( | |
660 | + | let eJ = invoke(ah, "issueSurf", [cB, eE], nil) | |
661 | + | if ((eJ == eJ)) | |
656 | 662 | then 0 | |
657 | 663 | else throw("Strict value is not equal to itself.") | |
658 | 664 | } | |
659 | 665 | else 0 | |
660 | - | if (( | |
661 | - | then $Tuple3( | |
666 | + | if ((eI == eI)) | |
667 | + | then $Tuple3(eH, AttachedPayment(ev, cr), ey) | |
662 | 668 | else throw("Strict value is not equal to itself.") | |
663 | 669 | } | |
664 | 670 | } | |
666 | 672 | ||
667 | 673 | ||
668 | 674 | @Callable(r) | |
669 | - | func constructor ( | |
670 | - | let | |
671 | - | if (( | |
675 | + | func constructor (eK,eL,eM,eN,eO,eP,eQ,eR,eS,eT,eU,eV) = { | |
676 | + | let eW = da(r) | |
677 | + | if ((eW == eW)) | |
672 | 678 | then if ((size(r.payments) != 0)) | |
673 | 679 | then throw("no payments allowed") | |
674 | - | else [StringEntry( | |
680 | + | else [StringEntry(ak, eK), StringEntry(al, eL), StringEntry(am, eM), StringEntry(ao, eN), StringEntry(ap, eO), StringEntry(aw, eP), IntegerEntry(as, eQ), IntegerEntry(at, eR), IntegerEntry(au, eS), IntegerEntry(av, eT), IntegerEntry(ax, eU), IntegerEntry(ay, eV)] | |
675 | 681 | else throw("Strict value is not equal to itself.") | |
676 | 682 | } | |
677 | 683 | ||
678 | 684 | ||
679 | 685 | ||
680 | 686 | @Callable(r) | |
681 | - | func constructorV2 ( | |
682 | - | let | |
683 | - | if (( | |
687 | + | func constructorV2 (ad,ae,eX) = { | |
688 | + | let eW = da(r) | |
689 | + | if ((eW == eW)) | |
684 | 690 | then if ((size(r.payments) != 0)) | |
685 | 691 | then throw("no payments allowed") | |
686 | - | else [StringEntry( | |
692 | + | else [StringEntry(ar, ad), StringEntry(an, ae), IntegerEntry(bb(), eX)] | |
687 | 693 | else throw("Strict value is not equal to itself.") | |
688 | 694 | } | |
689 | 695 | ||
693 | 699 | func swapWavesToNeutrino () = if ((size(r.payments) != 1)) | |
694 | 700 | then throw("swapWavesToNeutrino require only one payment") | |
695 | 701 | else { | |
696 | - | let | |
697 | - | if (isDefined( | |
702 | + | let eY = value(r.payments[0]) | |
703 | + | if (isDefined(eY.assetId)) | |
698 | 704 | then throw("Only Waves token is allowed for swapping.") | |
699 | 705 | else { | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | | |
706 | + | let bk = toString(r.caller) | |
707 | + | let ds = toBase58String(r.transactionId) | |
708 | + | let eZ = x(invoke(this, "swapParamsByUserSYSREADONLY", [bk, 0], nil)) | |
709 | + | let fa = dp("waves", eY.amount, bk, ds, eZ) | |
710 | + | fa | |
705 | 711 | } | |
706 | 712 | } | |
707 | 713 | ||
711 | 717 | func swapNeutrinoToWaves () = if ((size(r.payments) != 1)) | |
712 | 718 | then throw("swapNeutrinoToWaves require only one payment") | |
713 | 719 | else { | |
714 | - | let | |
715 | - | if (( | |
720 | + | let eY = value(r.payments[0]) | |
721 | + | if ((eY.assetId != bB)) | |
716 | 722 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
717 | 723 | else { | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | | |
724 | + | let bk = toString(r.caller) | |
725 | + | let ds = toBase58String(r.transactionId) | |
726 | + | let eZ = x(invoke(this, "swapParamsByUserSYSREADONLY", [bk, 0], nil)) | |
727 | + | let fa = dp("neutrino", eY.amount, bk, ds, eZ) | |
728 | + | fa | |
723 | 729 | } | |
724 | 730 | } | |
725 | 731 | ||
726 | 732 | ||
727 | 733 | ||
728 | 734 | @Callable(r) | |
729 | - | func withdraw ( | |
730 | - | let | |
735 | + | func withdraw (eE,aG,cI) = { | |
736 | + | let cm = toBase58String(r.transactionId) | |
731 | 737 | if ((size(r.payments) != 0)) | |
732 | 738 | then throw("no payments allowed") | |
733 | 739 | else { | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | if (( | |
740 | + | let er = l(invoke(ad, "calcNeutinoMetricsREADONLY", nil, nil)) | |
741 | + | let et = q(er[dO]) | |
742 | + | let fb = eD(eE, aG, cI, cm, er) | |
743 | + | let eH = fb._1 | |
744 | + | let fc = fb._2 | |
745 | + | let ey = fb._3 | |
746 | + | let fd = invoke(this, "internalUnleaseAndLease", [ey], nil) | |
747 | + | if ((fd == fd)) | |
742 | 748 | then { | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | then fraction( | |
749 | + | let fe = l(invoke(ag, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil)) | |
750 | + | let ff = q(fe[1]) | |
751 | + | let fg = q(l(fe[3])[3]) | |
752 | + | let fh = if ((ff != 0)) | |
753 | + | then fraction(fc.amount, fg, ff) | |
748 | 754 | else 0 | |
749 | - | let | |
750 | - | then fraction( | |
755 | + | let fi = if ((ff != 0)) | |
756 | + | then fraction(fc.amount, (B - et), B) | |
751 | 757 | else 0 | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
758 | + | let fj = max([fh, fi]) | |
759 | + | let fk = (fc.amount - fj) | |
760 | + | let fl = if ((fj > 0)) | |
755 | 761 | then { | |
756 | - | let | |
757 | - | if (( | |
762 | + | let fm = invoke(af, "deposit", nil, [AttachedPayment(fc.assetId, fj)]) | |
763 | + | if ((fm == fm)) | |
758 | 764 | then nil | |
759 | 765 | else throw("Strict value is not equal to itself.") | |
760 | 766 | } | |
761 | 767 | else nil | |
762 | - | if (( | |
768 | + | if ((fl == fl)) | |
763 | 769 | then { | |
764 | - | let | |
770 | + | let fn = if ((fk > 0)) | |
765 | 771 | then { | |
766 | - | let | |
767 | - | if (( | |
772 | + | let fo = invoke(ae, "deposit", nil, [AttachedPayment(fc.assetId, fk)]) | |
773 | + | if ((fo == fo)) | |
768 | 774 | then nil | |
769 | 775 | else throw("Strict value is not equal to itself.") | |
770 | 776 | } | |
771 | 777 | else nil | |
772 | - | if (( | |
773 | - | then | |
778 | + | if ((fn == fn)) | |
779 | + | then eH | |
774 | 780 | else throw("Strict value is not equal to itself.") | |
775 | 781 | } | |
776 | 782 | else throw("Strict value is not equal to itself.") | |
782 | 788 | ||
783 | 789 | ||
784 | 790 | @Callable(r) | |
785 | - | func internalUnleaseAndLease ( | |
791 | + | func internalUnleaseAndLease (cS) = if ((r.caller != this)) | |
786 | 792 | then throw("internalUnleaseAndLease is not public method") | |
787 | - | else | |
793 | + | else db(cS) | |
788 | 794 | ||
789 | 795 | ||
790 | 796 | ||
791 | 797 | @Callable(r) | |
792 | - | func transferUsdnToUser ( | |
798 | + | func transferUsdnToUser (bn,fp) = if ((r.caller != ah)) | |
793 | 799 | then throw("Only auction contract is authorized") | |
794 | - | else [ScriptTransfer(addressFromStringValue( | |
800 | + | else [ScriptTransfer(addressFromStringValue(fp), bn, bB)] | |
795 | 801 | ||
796 | 802 | ||
797 | 803 | ||
798 | 804 | @Callable(r) | |
799 | - | func acceptWaves () = if ((r.caller != af)) | |
800 | - | then throw("Currently only auction contract is allowed to call") | |
801 | - | else $Tuple2(cY(0), "success") | |
805 | + | func acceptWaves () = if (if ((r.caller != ah)) | |
806 | + | then (r.caller != aj) | |
807 | + | else false) | |
808 | + | then throw("Currently only auction and governance contracts are allowed to call") | |
809 | + | else $Tuple2(db(0), "success") | |
802 | 810 | ||
803 | 811 | ||
804 | 812 | ||
805 | 813 | @Callable(r) | |
806 | - | func approveLeasings ( | |
807 | - | let | |
808 | - | let | |
809 | - | let | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | if (isDefined( | |
815 | - | then throw((("group " + toString( | |
814 | + | func approveLeasings (fq,aT,fr) = { | |
815 | + | let fs = [0, 1, 2, 3, 4, 5, 6, 7] | |
816 | + | let ft = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
817 | + | let fu = fromBase58String(ft) | |
818 | + | let fv = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE") | |
819 | + | let fw = addressFromStringValue(fv) | |
820 | + | let fx = aS(aT) | |
821 | + | let fy = getString(this, fx) | |
822 | + | if (isDefined(fy)) | |
823 | + | then throw((("group " + toString(aT)) + " already initialized")) | |
816 | 824 | else { | |
817 | - | let | |
818 | - | let | |
819 | - | if ((r.callerPublicKey != | |
825 | + | let fz = split(fq, z) | |
826 | + | let fA = size(fs) | |
827 | + | if ((r.callerPublicKey != fu)) | |
820 | 828 | then throw("approveLeasings not authorized") | |
821 | 829 | else { | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | if (( | |
830 | + | let fB = dj(0) | |
831 | + | let fC = fB._1 | |
832 | + | let fD = fB._2 | |
833 | + | let fE = fB._3 | |
834 | + | let fF = fB._4 | |
835 | + | let fG = fB._5 | |
836 | + | let fH = Lease(fC, (fE - (fr * fA))) | |
837 | + | let fI = invoke(fw, "validateAndApproveLeasings", [fq], nil) | |
838 | + | if ((fI == fI)) | |
831 | 839 | then { | |
832 | - | func | |
833 | - | let | |
834 | - | let | |
835 | - | ( | |
840 | + | func fJ (fK,r) = { | |
841 | + | let fL = fz[r] | |
842 | + | let fM = Lease(addressFromStringValue(fL), fr) | |
843 | + | (fK ++ [fM, BinaryEntry(aO(fL), d(fM)), IntegerEntry(aR(fL), fr)]) | |
836 | 844 | } | |
837 | 845 | ||
838 | - | ([StringEntry( | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | func | |
843 | - | then | |
844 | - | else | |
846 | + | ([StringEntry(fx, fq), BinaryEntry(fF, d(fH)), IntegerEntry(fD, fH.amount), LeaseCancel(fG), fH] ++ { | |
847 | + | let fN = fs | |
848 | + | let fO = size(fN) | |
849 | + | let fP = nil | |
850 | + | func fQ (fR,fS) = if ((fS >= fO)) | |
851 | + | then fR | |
852 | + | else fJ(fR, fN[fS]) | |
845 | 853 | ||
846 | - | func | |
847 | - | then | |
854 | + | func fT (fR,fS) = if ((fS >= fO)) | |
855 | + | then fR | |
848 | 856 | else throw("List size exceeds 8") | |
849 | 857 | ||
850 | - | fQ( | |
858 | + | fT(fQ(fQ(fQ(fQ(fQ(fQ(fQ(fQ(fP, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
851 | 859 | }) | |
852 | 860 | } | |
853 | 861 | else throw("Strict value is not equal to itself.") | |
858 | 866 | ||
859 | 867 | ||
860 | 868 | @Callable(r) | |
861 | - | func rebalanceLeasings ( | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | let | |
868 | - | if ((r.callerPublicKey != | |
869 | + | func rebalanceLeasings (bn,aT) = { | |
870 | + | let fs = [0, 1, 2, 3, 4, 5, 6, 7] | |
871 | + | let ft = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
872 | + | let fu = fromBase58String(ft) | |
873 | + | let fx = aS(aT) | |
874 | + | let fq = a(this, fx) | |
875 | + | let fz = split(fq, z) | |
876 | + | if ((r.callerPublicKey != fu)) | |
869 | 877 | then throw("rebalanceLeasings not authorized") | |
870 | 878 | else { | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | let | |
877 | - | let | |
878 | - | let | |
879 | - | func | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | let | |
884 | - | let | |
885 | - | let | |
886 | - | let | |
887 | - | ( | |
879 | + | let ey = ((bn / size(fz)) + 1) | |
880 | + | let fU = dj(0) | |
881 | + | let fC = fU._1 | |
882 | + | let fD = fU._2 | |
883 | + | let fE = fU._3 | |
884 | + | let fF = fU._4 | |
885 | + | let fG = fU._5 | |
886 | + | let fH = Lease(fC, (fE + (ey * size(fz)))) | |
887 | + | func fV (fK,r) = { | |
888 | + | let fL = fz[r] | |
889 | + | let fW = aO(fL) | |
890 | + | let fX = getBinaryValue(this, fW) | |
891 | + | let fY = aR(fL) | |
892 | + | let fr = getIntegerValue(this, fY) | |
893 | + | let fZ = LeaseCancel(value(fX)) | |
894 | + | let fM = Lease(addressFromStringValue(fL), (fr - ey)) | |
895 | + | (fK ++ [LeaseCancel(value(fX)), fM, BinaryEntry(fW, d(fM)), IntegerEntry(fY, fM.amount)]) | |
888 | 896 | } | |
889 | 897 | ||
890 | 898 | ({ | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | func | |
895 | - | then | |
896 | - | else | |
899 | + | let fN = fs | |
900 | + | let fO = size(fN) | |
901 | + | let fP = nil | |
902 | + | func fQ (fR,fS) = if ((fS >= fO)) | |
903 | + | then fR | |
904 | + | else fV(fR, fN[fS]) | |
897 | 905 | ||
898 | - | func | |
899 | - | then | |
906 | + | func fT (fR,fS) = if ((fS >= fO)) | |
907 | + | then fR | |
900 | 908 | else throw("List size exceeds 8") | |
901 | 909 | ||
902 | - | fQ( | |
903 | - | } ++ [BinaryEntry( | |
910 | + | fT(fQ(fQ(fQ(fQ(fQ(fQ(fQ(fQ(fP, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
911 | + | } ++ [BinaryEntry(fF, d(fH)), IntegerEntry(fD, fH.amount), LeaseCancel(fG), fH]) | |
904 | 912 | } | |
905 | 913 | } | |
906 | 914 | ||
907 | 915 | ||
908 | 916 | ||
909 | 917 | @Callable(r) | |
910 | - | func swapParamsByUserSYSREADONLY ( | |
911 | - | let | |
912 | - | let | |
913 | - | let | |
914 | - | let | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
918 | + | func swapParamsByUserSYSREADONLY (dr,ga) = { | |
919 | + | let fe = l(invoke(ag, "gnsbtInfoSYSREADONLY", [dr, 0, 0], nil)) | |
920 | + | let gb = (q(fe[0]) + ga) | |
921 | + | let ff = (q(fe[1]) + ga) | |
922 | + | let gc = l(invoke(ad, "calcSwapLimitREADONLY", [gb], nil)) | |
923 | + | let gd = q(gc[0]) | |
924 | + | let dw = q(gc[1]) | |
925 | + | let dx = q(gc[2]) | |
926 | + | let ge = valueOrElse(getInteger(this, bl(dr)), 0) | |
927 | + | let gf = be() | |
928 | + | let gg = (height - ge) | |
929 | + | let gh = (gg >= gf) | |
930 | + | let gi = if (gh) | |
923 | 931 | then 0 | |
924 | - | else valueOrElse(getInteger(this, | |
925 | - | let | |
932 | + | else valueOrElse(getInteger(this, bj(dr)), 0) | |
933 | + | let dv = if (gh) | |
926 | 934 | then 0 | |
927 | - | else ( | |
928 | - | $Tuple2(nil, $Tuple7( | |
935 | + | else (gf - gg) | |
936 | + | $Tuple2(nil, $Tuple7(gd, gi, dv, gb, ff, dw, dx)) | |
929 | 937 | } | |
930 | 938 | ||
931 | 939 | ||
932 | 940 | ||
933 | 941 | @Callable(r) | |
934 | - | func calcWithdrawResultSYSREADONLY ( | |
935 | - | let | |
936 | - | $Tuple2(nil, | |
942 | + | func calcWithdrawResultSYSREADONLY (aV,cp,bo) = { | |
943 | + | let er = l(invoke(ad, "calcNeutinoMetricsREADONLY", nil, nil)) | |
944 | + | $Tuple2(nil, eq(aV, cp, bo, er)) | |
937 | 945 | } | |
938 | 946 | ||
939 | 947 | ||
940 | 948 | ||
941 | 949 | @Callable(r) | |
942 | - | func replaceCommunityNode ( | |
943 | - | let | |
944 | - | let | |
945 | - | if ((r.callerPublicKey != | |
950 | + | func replaceCommunityNode (gj,gk,aT,gl) = { | |
951 | + | let ft = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
952 | + | let fu = fromBase58String(ft) | |
953 | + | if ((r.callerPublicKey != fu)) | |
946 | 954 | then throw("replaceCommunityNode not authorized") | |
947 | 955 | else { | |
948 | - | let | |
949 | - | let | |
950 | - | if (!(contains( | |
951 | - | then throw(((("Group " + toString( | |
956 | + | let gm = aS(aT) | |
957 | + | let gn = a(this, gm) | |
958 | + | if (!(contains(gn, gj))) | |
959 | + | then throw(((("Group " + toString(aT)) + " does not contain address ") + gj)) | |
952 | 960 | else { | |
953 | - | let | |
954 | - | if (( | |
961 | + | let go = invoke(ai, "replaceApprovedNode", [gj, gk, aT, gl], nil) | |
962 | + | if ((go == go)) | |
955 | 963 | then { | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | let | |
961 | - | let | |
962 | - | let | |
963 | - | $Tuple2([LeaseCancel(getBinaryValue( | |
964 | + | let gp = aO(gj) | |
965 | + | let gq = aR(gj) | |
966 | + | let gr = getIntegerValue(gq) | |
967 | + | let gs = aO(gj) | |
968 | + | let gt = aR(gj) | |
969 | + | let gu = Lease(addressFromStringValue(gk), gr) | |
970 | + | let gv = makeString(split(gn, gj), gk) | |
971 | + | $Tuple2([LeaseCancel(getBinaryValue(gp)), DeleteEntry(gp), DeleteEntry(gq), StringEntry(gm, gv), gu, BinaryEntry(gs, d(gu)), IntegerEntry(gt, gr)], unit) | |
964 | 972 | } | |
965 | 973 | else throw("Strict value is not equal to itself.") | |
966 | 974 | } | |
971 | 979 | ||
972 | 980 | @Callable(r) | |
973 | 981 | func updateReservesAndNeutrinoSupply () = { | |
974 | - | func | |
982 | + | func gw (c) = { | |
975 | 983 | let n = getInteger(this, c) | |
976 | 984 | if ($isInstanceOf(n, "Int")) | |
977 | 985 | then { | |
978 | - | let | |
979 | - | | |
986 | + | let fK = n | |
987 | + | fK | |
980 | 988 | } | |
981 | 989 | else 0 | |
982 | 990 | } | |
983 | 991 | ||
984 | - | let | |
985 | - | let | |
986 | - | let | |
987 | - | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", | |
992 | + | let gx = l(invoke(ad, "calcNeutinoMetricsREADONLY", nil, nil)) | |
993 | + | let ab = gw("updateReservesAndNeutrinoSupplyIdx") | |
994 | + | let gy = (ab + 1) | |
995 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", gy), IntegerEntry("reserve", q(gx[3])), IntegerEntry("neutrinoSupply", q(gx[5])), IntegerEntry("reservesInUsdn", bp(q(gx[3]), q(gx[0]))), IntegerEntry("surplus", q(gx[6])), IntegerEntry("deficit", -(q(gx[6])))] | |
988 | 996 | } | |
989 | 997 | ||
990 | 998 | ||
991 | 999 | ||
992 | 1000 | @Callable(r) | |
993 | 1001 | func wavesBalancesVsPayment () = { | |
994 | - | let | |
995 | - | [IntegerEntry("wavesBalance_available", | |
1002 | + | let gz = wavesBalance(this) | |
1003 | + | [IntegerEntry("wavesBalance_available", gz.available), IntegerEntry("wavesBalance_regular", gz.regular), IntegerEntry("wavesBalance_generating", gz.generating), IntegerEntry("wavesBalance_effective", gz.effective), IntegerEntry("waves_payment", value(r.payments[0]).amount)] | |
996 | 1004 | } | |
997 | 1005 | ||
998 | 1006 | ||
999 | - | @Verifier( | |
1000 | - | func | |
1001 | - | let | |
1002 | - | let | |
1003 | - | let | |
1004 | - | let | |
1007 | + | @Verifier(bJ) | |
1008 | + | func gA () = { | |
1009 | + | let gB = toBase58String(bJ.id) | |
1010 | + | let gC = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], z) | |
1011 | + | let gD = split(valueOrElse(getString(ac, "%s__multisig"), gC), z) | |
1012 | + | let gE = ((((if (sigVerify(bJ.bodyBytes, bJ.proofs[0], fromBase58String(gD[0]))) | |
1005 | 1013 | then 1 | |
1006 | - | else 0) + (if (sigVerify( | |
1014 | + | else 0) + (if (sigVerify(bJ.bodyBytes, bJ.proofs[1], fromBase58String(gD[1]))) | |
1007 | 1015 | then 1 | |
1008 | - | else 0)) + (if (sigVerify( | |
1016 | + | else 0)) + (if (sigVerify(bJ.bodyBytes, bJ.proofs[2], fromBase58String(gD[2]))) | |
1009 | 1017 | then 1 | |
1010 | - | else 0)) + (if (sigVerify( | |
1018 | + | else 0)) + (if (sigVerify(bJ.bodyBytes, bJ.proofs[3], fromBase58String(gD[3]))) | |
1011 | 1019 | then 2 | |
1012 | 1020 | else 0)) | |
1013 | - | let n = | |
1021 | + | let n = bJ | |
1014 | 1022 | if ($isInstanceOf(n, "SponsorFeeTransaction")) | |
1015 | 1023 | then { | |
1016 | - | let | |
1017 | - | if ( | |
1018 | - | then ( | |
1024 | + | let gF = n | |
1025 | + | if (bI(gF)) | |
1026 | + | then (gE >= 3) | |
1019 | 1027 | else false | |
1020 | 1028 | } | |
1021 | - | else ( | |
1029 | + | else (gE >= 3) | |
1022 | 1030 | } | |
1023 | 1031 |
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 = 100000000 | |
97 | 97 | ||
98 | 98 | let B = 1000000 | |
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 = 0 | |
107 | 107 | ||
108 | 108 | let G = 1 | |
109 | 109 | ||
110 | 110 | let H = 2 | |
111 | 111 | ||
112 | 112 | let I = 1 | |
113 | 113 | ||
114 | 114 | let J = 2 | |
115 | 115 | ||
116 | 116 | let K = 3 | |
117 | 117 | ||
118 | 118 | let L = 4 | |
119 | 119 | ||
120 | 120 | let M = 5 | |
121 | 121 | ||
122 | 122 | let N = 6 | |
123 | 123 | ||
124 | 124 | let O = 7 | |
125 | 125 | ||
126 | 126 | let P = 8 | |
127 | 127 | ||
128 | 128 | let Q = 9 | |
129 | 129 | ||
130 | 130 | let R = 10 | |
131 | 131 | ||
132 | 132 | let S = 11 | |
133 | 133 | ||
134 | - | func T () = "%s%s__config__controlAddress" | |
134 | + | let T = 12 | |
135 | + | ||
136 | + | let U = 13 | |
137 | + | ||
138 | + | func V () = "%s%s__config__controlAddress" | |
135 | 139 | ||
136 | 140 | ||
137 | - | func | |
141 | + | func W () = "%s__controlConfig" | |
138 | 142 | ||
139 | 143 | ||
140 | - | func | |
144 | + | func X (Y) = split_4C(a(Y, W()), z) | |
141 | 145 | ||
142 | 146 | ||
143 | - | func | |
147 | + | func Z (aa,ab) = valueOrErrorMessage(addressFromString(aa[ab]), ("Control cfg doesn't contain address at index " + toString(ab))) | |
144 | 148 | ||
145 | 149 | ||
146 | - | let | |
150 | + | let ac = addressFromStringValue(valueOrElse(getString(this, V()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
147 | 151 | ||
148 | - | let | |
152 | + | let aa = X(ac) | |
149 | 153 | ||
150 | - | let | |
154 | + | let ad = Z(aa, L) | |
151 | 155 | ||
152 | - | let | |
156 | + | let ae = Z(aa, P) | |
153 | 157 | ||
154 | - | let | |
158 | + | let af = Z(aa, R) | |
155 | 159 | ||
156 | - | let | |
160 | + | let ag = Z(aa, S) | |
157 | 161 | ||
158 | - | let | |
162 | + | let ah = Z(aa, J) | |
159 | 163 | ||
160 | - | let | |
164 | + | let ai = Z(aa, O) | |
161 | 165 | ||
162 | - | let | |
166 | + | let aj = Z(aa, U) | |
163 | 167 | ||
164 | - | let | |
168 | + | let ak = "neutrino_asset_id" | |
165 | 169 | ||
166 | - | let | |
170 | + | let al = "bond_asset_id" | |
167 | 171 | ||
168 | - | let | |
172 | + | let am = "auction_contract" | |
169 | 173 | ||
170 | - | let | |
174 | + | let an = "nsbtStakingContract" | |
171 | 175 | ||
172 | - | let | |
176 | + | let ao = "liquidation_contract" | |
173 | 177 | ||
174 | - | let | |
178 | + | let ap = "rpd_contract" | |
175 | 179 | ||
176 | - | let | |
180 | + | let aq = "control_contract" | |
177 | 181 | ||
178 | - | let | |
182 | + | let ar = "math_contract" | |
179 | 183 | ||
180 | - | let | |
184 | + | let as = "balance_waves_lock_interval" | |
181 | 185 | ||
182 | - | let | |
186 | + | let at = "balance_neutrino_lock_interval" | |
183 | 187 | ||
184 | - | let | |
188 | + | let au = "min_waves_swap_amount" | |
185 | 189 | ||
186 | - | let | |
190 | + | let av = "min_neutrino_swap_amount" | |
187 | 191 | ||
188 | - | let | |
192 | + | let aw = "node_oracle_provider" | |
189 | 193 | ||
190 | - | let | |
194 | + | let ax = "neutrinoOut_swap_feePart" | |
191 | 195 | ||
192 | - | func aw (b) = ("%s__" + b) | |
196 | + | let ay = "wavesOut_swap_feePart" | |
197 | + | ||
198 | + | func az (b) = ("%s__" + b) | |
193 | 199 | ||
194 | 200 | ||
195 | - | let | |
201 | + | let aA = "price" | |
196 | 202 | ||
197 | - | let | |
203 | + | let aB = "price_index" | |
198 | 204 | ||
199 | - | let | |
205 | + | let aC = "is_blocked" | |
200 | 206 | ||
201 | - | func | |
207 | + | func aD (aE) = ((aA + "_") + toString(aE)) | |
202 | 208 | ||
203 | 209 | ||
204 | - | func | |
210 | + | func aF (aG) = ((aB + "_") + toString(aG)) | |
205 | 211 | ||
206 | 212 | ||
207 | - | func | |
213 | + | func aH (ab) = g(makeString(["%s%d%s", "lease", toString(ab), "nodeAddress"], z)) | |
208 | 214 | ||
209 | 215 | ||
210 | - | func | |
216 | + | func aI (ab) = addressFromStringValue(aH(ab)) | |
211 | 217 | ||
212 | 218 | ||
213 | - | func | |
219 | + | func aJ () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], z)), (1000 * A)) | |
214 | 220 | ||
215 | 221 | ||
216 | - | func | |
222 | + | func aK (aL) = ("balance_unlock_block_" + aL) | |
217 | 223 | ||
218 | 224 | ||
219 | - | func | |
225 | + | func aM (aN) = makeString(["%s%d%s", "lease", toString(aN), "id"], z) | |
220 | 226 | ||
221 | 227 | ||
222 | - | func | |
228 | + | func aO (aP) = makeString(["%s%s%s", "leaseByAddress", aP, "id"], z) | |
223 | 229 | ||
224 | 230 | ||
225 | - | func | |
231 | + | func aQ (aN) = makeString(["%s%d%s", "lease", toString(aN), "amount"], z) | |
226 | 232 | ||
227 | 233 | ||
228 | - | func | |
234 | + | func aR (aP) = makeString(["%s%s%s", "leaseByAddress", aP, "amount"], z) | |
229 | 235 | ||
230 | 236 | ||
231 | - | func | |
237 | + | func aS (aT) = makeString(["%s%d%s", "leaseGroup", toString(aT), "nodeList"], z) | |
232 | 238 | ||
233 | 239 | ||
234 | - | func | |
240 | + | func aU (aV) = (("min_" + aV) + "_swap_amount") | |
235 | 241 | ||
236 | 242 | ||
237 | - | func | |
243 | + | func aW (aV) = ("balance_lock_" + aV) | |
238 | 244 | ||
239 | 245 | ||
240 | - | func | |
246 | + | func aX (aV,aL) = makeString(["balance_lock", aV, aL], "_") | |
241 | 247 | ||
242 | 248 | ||
243 | - | func | |
249 | + | func aY (aV) = (("balance_" + aV) + "_lock_interval") | |
244 | 250 | ||
245 | 251 | ||
246 | - | func | |
252 | + | func aZ () = "balance_node_lock_interval" | |
247 | 253 | ||
248 | 254 | ||
249 | - | func | |
255 | + | func ba (aV) = (aV + "Out_swap_feePart") | |
250 | 256 | ||
251 | 257 | ||
252 | - | func | |
258 | + | func bb () = "swaps_timeframe" | |
253 | 259 | ||
254 | 260 | ||
255 | - | func | |
261 | + | func bc () = "min_BR_protection_level" | |
256 | 262 | ||
257 | 263 | ||
258 | - | func | |
264 | + | func bd (aV) = valueOrElse(getInteger(this, aU(aV)), 0) | |
259 | 265 | ||
260 | 266 | ||
261 | - | func | |
267 | + | func be () = valueOrElse(getInteger(this, bb()), 1440) | |
262 | 268 | ||
263 | 269 | ||
264 | - | func | |
270 | + | func bf (aV) = valueOrElse(getInteger(this, aW(aV)), 0) | |
265 | 271 | ||
266 | 272 | ||
267 | - | func | |
273 | + | func bg (aV,aL) = valueOrElse(getInteger(this, aX(aV, aL)), 0) | |
268 | 274 | ||
269 | 275 | ||
270 | - | func | |
276 | + | func bh (aV) = valueOrElse(getInteger(this, aY(aV)), 1440) | |
271 | 277 | ||
272 | 278 | ||
273 | - | func | |
279 | + | func bi () = valueOrElse(getInteger(this, aZ()), 1) | |
274 | 280 | ||
275 | 281 | ||
276 | - | func | |
282 | + | func bj (bk) = makeString(["%s%s", "swapUserSpentInPeriod", bk], z) | |
277 | 283 | ||
278 | 284 | ||
279 | - | func | |
285 | + | func bl (bk) = makeString(["%s%s", "userLastSwapHeight", bk], z) | |
280 | 286 | ||
281 | 287 | ||
282 | - | func | |
288 | + | func bm (bn,bo) = fraction(fraction(bn, C, bo), A, B) | |
283 | 289 | ||
284 | 290 | ||
285 | - | func | |
291 | + | func bp (bn,bo) = fraction(fraction(bn, bo, C), B, A) | |
286 | 292 | ||
287 | 293 | ||
288 | - | func | |
294 | + | func bq (bn,bo) = bp(bn, bo) | |
289 | 295 | ||
290 | 296 | ||
291 | - | func | |
297 | + | func br (bs) = split(bs, ",") | |
292 | 298 | ||
293 | 299 | ||
294 | - | func | |
300 | + | func bt (aV,bu) = throw(((("The specified amount in " + aV) + " swap is less than the required minimum of ") + toString(bu))) | |
295 | 301 | ||
296 | 302 | ||
297 | - | func | |
303 | + | func bv () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
298 | 304 | ||
299 | 305 | ||
300 | - | func | |
306 | + | func bw (aG,bx,by,bz,bA) = throw(((((((((("invalid price history index: index=" + toString(aG)) + " priceIndex=") + toString(bx)) + " indexHeight=") + toString(by)) + " unlockHeight=") + toString(bz)) + " prevIndexHeight=") + toString(bA))) | |
301 | 307 | ||
302 | 308 | ||
303 | - | let | |
309 | + | let bB = fromBase58String(g(ak)) | |
304 | 310 | ||
305 | - | let | |
311 | + | let bx = i(ac, aB) | |
306 | 312 | ||
307 | - | let | |
313 | + | let bC = k(ac, aC) | |
308 | 314 | ||
309 | - | let | |
315 | + | let bD = fromBase58String(g(aw)) | |
310 | 316 | ||
311 | - | let | |
317 | + | let bE = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
312 | 318 | ||
313 | - | let | |
319 | + | let bF = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
314 | 320 | ||
315 | - | let | |
321 | + | let bG = this | |
316 | 322 | ||
317 | - | let | |
323 | + | let bH = i(ac, aA) | |
318 | 324 | ||
319 | - | func | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | if (if (( | |
327 | - | then ( | |
325 | + | func bI (bJ) = { | |
326 | + | let bK = 100000 | |
327 | + | let bL = 1000 | |
328 | + | let bM = bp(bK, bH) | |
329 | + | let bN = (bM * 2) | |
330 | + | let bO = fraction(bM, bL, 100) | |
331 | + | let bP = value(bJ.minSponsoredAssetFee) | |
332 | + | if (if ((bP >= bN)) | |
333 | + | then (bO >= bP) | |
328 | 334 | else false) | |
329 | - | then ( | |
335 | + | then (bJ.assetId == bB) | |
330 | 336 | else false | |
331 | 337 | } | |
332 | 338 | ||
333 | 339 | ||
334 | - | func | |
340 | + | func bQ (aE) = i(ac, aD(aE)) | |
335 | 341 | ||
336 | 342 | ||
337 | - | func | |
343 | + | func bR (aG) = i(ac, aF(aG)) | |
338 | 344 | ||
339 | 345 | ||
340 | - | func | |
346 | + | func bS (bk) = makeString(["%s%s%s", "paramByUser", bk, "amount"], z) | |
341 | 347 | ||
342 | 348 | ||
343 | - | let | |
349 | + | let bT = 1 | |
344 | 350 | ||
345 | - | let | |
351 | + | let bU = 2 | |
346 | 352 | ||
347 | - | let | |
353 | + | let bV = 3 | |
348 | 354 | ||
349 | - | let | |
355 | + | let bW = 4 | |
350 | 356 | ||
351 | - | let | |
357 | + | let bX = 5 | |
352 | 358 | ||
353 | - | let | |
359 | + | let bY = 6 | |
354 | 360 | ||
355 | - | let | |
361 | + | let bZ = 7 | |
356 | 362 | ||
357 | - | let | |
363 | + | let ca = 8 | |
358 | 364 | ||
359 | - | let | |
365 | + | let cb = 9 | |
360 | 366 | ||
361 | - | let | |
367 | + | let cc = 10 | |
362 | 368 | ||
363 | - | let | |
369 | + | let cd = 11 | |
364 | 370 | ||
365 | - | let | |
371 | + | let ce = 12 | |
366 | 372 | ||
367 | - | let | |
373 | + | let cf = 13 | |
368 | 374 | ||
369 | - | let | |
375 | + | let cg = 14 | |
370 | 376 | ||
371 | - | let | |
377 | + | let ch = 15 | |
372 | 378 | ||
373 | - | let | |
379 | + | let ci = 16 | |
374 | 380 | ||
375 | - | let | |
381 | + | let cj = 17 | |
376 | 382 | ||
377 | - | let | |
383 | + | let ck = 18 | |
378 | 384 | ||
379 | - | func | |
385 | + | func cl (bk,cm) = makeString(["%s%s", bk, cm], z) | |
380 | 386 | ||
381 | 387 | ||
382 | - | func | |
388 | + | func cn (aV,co,cp,bo,cq,cr,cs,ct,cu,cv,cw,cx,aG,cy,cz,cA,cB,cC) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d", aV, co, cp, bo, cq, cr, cs, ct, cu, cv, cw, cx, aG, cy, cz, cA, cB, cC], z) | |
383 | 389 | ||
384 | 390 | ||
385 | - | func | |
391 | + | func cD (aV,cE,cw) = cn(aV, "PENDING", toString(cE), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(cw), "0", "0", "NULL", "0", "0", "0", "0") | |
386 | 392 | ||
387 | 393 | ||
388 | - | func | |
394 | + | func cF (cG,bo,cq,cr,cx,aG,cy,cB,cC) = cn(cG[bT], "FINISHED", cG[bV], toString(bo), toString(cq), toString(cr), cG[bZ], cG[ca], toString(height), toString(lastBlock.timestamp), cG[cd], toString(cx), toString(aG), cy, cG[ch], cG[ci], toString(cB), toString(cC)) | |
389 | 395 | ||
390 | 396 | ||
391 | - | func | |
392 | - | let | |
393 | - | split(valueOrErrorMessage(getString(this, | |
397 | + | func cH (bk,cI) = { | |
398 | + | let cJ = cl(bk, cI) | |
399 | + | split(valueOrErrorMessage(getString(this, cJ), ("no swap data for " + cJ)), z) | |
394 | 400 | } | |
395 | 401 | ||
396 | 402 | ||
397 | - | func | |
398 | - | let | |
399 | - | [( | |
403 | + | func cK (cL,cM,cN) = { | |
404 | + | let cO = fraction(cL, cN, B) | |
405 | + | [(cL - cO), cO] | |
400 | 406 | } | |
401 | 407 | ||
402 | 408 | ||
403 | - | func | |
404 | - | then -( | |
405 | - | else | |
409 | + | func cP (cQ) = if ((0 > cQ)) | |
410 | + | then -(cQ) | |
411 | + | else cQ | |
406 | 412 | ||
407 | 413 | ||
408 | - | func | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | if (if (( | |
414 | + | func cR (cS) = { | |
415 | + | let cT = ((wavesBalance(bG).available - cS) - aJ()) | |
416 | + | let cU = f(aQ(0)) | |
417 | + | let cV = f(aQ(1)) | |
418 | + | let cW = (cT + cU) | |
419 | + | let cX = (cT + cV) | |
420 | + | if (if ((cW > 0)) | |
415 | 421 | then true | |
416 | - | else ( | |
422 | + | else (cX > 0)) | |
417 | 423 | then { | |
418 | - | let | |
419 | - | let | |
420 | - | if (( | |
421 | - | then $Tuple2(0, | |
422 | - | else $Tuple2(1, | |
424 | + | let cY = cP((cW - cV)) | |
425 | + | let cZ = cP((cX - cU)) | |
426 | + | if ((cZ >= cY)) | |
427 | + | then $Tuple2(0, cW) | |
428 | + | else $Tuple2(1, cX) | |
423 | 429 | } | |
424 | 430 | else $Tuple2(-1, 0) | |
425 | 431 | } | |
426 | 432 | ||
427 | 433 | ||
428 | - | func | |
434 | + | func da (r) = if ((r.caller != this)) | |
429 | 435 | then throw("Permission denied: this contract only allowed") | |
430 | 436 | else true | |
431 | 437 | ||
432 | 438 | ||
433 | - | func | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | if (( | |
439 | + | func db (cS) = { | |
440 | + | let dc = cR(cS) | |
441 | + | let aN = dc._1 | |
442 | + | let dd = dc._2 | |
443 | + | if ((dd > 0)) | |
438 | 444 | then { | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | then [LeaseCancel(value( | |
445 | + | let de = aM(aN) | |
446 | + | let df = getBinary(this, de) | |
447 | + | let dg = if (isDefined(df)) | |
448 | + | then [LeaseCancel(value(df))] | |
443 | 449 | else nil | |
444 | - | let | |
445 | - | let | |
446 | - | ( | |
450 | + | let dh = aQ(aN) | |
451 | + | let di = Lease(aI(aN), dd) | |
452 | + | (dg ++ [di, BinaryEntry(de, d(di)), IntegerEntry(aQ(aN), dd)]) | |
447 | 453 | } | |
448 | 454 | else nil | |
449 | 455 | } | |
450 | 456 | ||
451 | 457 | ||
452 | - | func | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | $Tuple5( | |
458 | + | func dj (dk) = { | |
459 | + | let aP = aI(dk) | |
460 | + | let dl = aQ(dk) | |
461 | + | let dm = f(dl) | |
462 | + | let dn = aM(dk) | |
463 | + | let do = value(getBinary(this, dn)) | |
464 | + | $Tuple5(aP, dl, dm, dn, do) | |
459 | 465 | } | |
460 | 466 | ||
461 | 467 | ||
462 | - | func | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | then | |
475 | - | else | |
476 | - | let | |
477 | - | let | |
478 | - | then | |
479 | - | else | |
480 | - | let | |
481 | - | then | |
482 | - | else | |
483 | - | if (( | |
484 | - | then | |
485 | - | else if (if (!( | |
486 | - | then ( | |
468 | + | func dp (aV,dq,dr,ds,dt) = { | |
469 | + | let du = dt._2 | |
470 | + | let dv = dt._3 | |
471 | + | let dw = dt._6 | |
472 | + | let dx = dt._7 | |
473 | + | let bu = bd(aV) | |
474 | + | let dy = bf(aV) | |
475 | + | let dz = bg(aV, dr) | |
476 | + | let aP = aH(0) | |
477 | + | let dA = bQ(bR(bx)) | |
478 | + | let dB = (aP == dr) | |
479 | + | let dC = if (dB) | |
480 | + | then bi() | |
481 | + | else bh(aV) | |
482 | + | let cw = (height + dC) | |
483 | + | let dD = if ((aV == "neutrino")) | |
484 | + | then dq | |
485 | + | else bp(dq, dA) | |
486 | + | let dE = if ((aV == "neutrino")) | |
487 | + | then dx | |
488 | + | else bp(dw, dA) | |
489 | + | if ((bu > dq)) | |
490 | + | then bt(aV, bu) | |
491 | + | else if (if (!(dB)) | |
492 | + | then (du > 0) | |
487 | 493 | else false) | |
488 | - | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + | |
489 | - | else if (if (!( | |
490 | - | then ( | |
494 | + | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + dv)))) | |
495 | + | else if (if (!(dB)) | |
496 | + | then (dD > dE) | |
491 | 497 | else false) | |
492 | - | then throw(((("You have exceeded your swap limit! Requested: " + toString( | |
493 | - | else if ( | |
494 | - | then | |
498 | + | then throw(((("You have exceeded your swap limit! Requested: " + toString(dD)) + ", available: ") + toString(dE))) | |
499 | + | else if (bC) | |
500 | + | then bv() | |
495 | 501 | else { | |
496 | - | let | |
497 | - | then | |
502 | + | let dF = if ((aV == "waves")) | |
503 | + | then db(0) | |
498 | 504 | else nil | |
499 | - | $Tuple2(([IntegerEntry( | |
505 | + | $Tuple2(([IntegerEntry(bj(dr), dD), IntegerEntry(bl(dr), height), IntegerEntry(aX(aV, dr), (dz + dq)), IntegerEntry(aK(dr), cw), IntegerEntry(aW(aV), (dy + dq)), StringEntry(cl(dr, ds), cD(aV, dq, cw))] ++ dF), unit) | |
500 | 506 | } | |
501 | 507 | } | |
502 | 508 | ||
503 | 509 | ||
504 | - | let | |
510 | + | let dG = 0 | |
505 | 511 | ||
506 | - | let | |
512 | + | let dH = 1 | |
507 | 513 | ||
508 | - | let | |
514 | + | let dI = 2 | |
509 | 515 | ||
510 | - | let | |
516 | + | let dJ = 3 | |
511 | 517 | ||
512 | - | let | |
518 | + | let dK = 4 | |
513 | 519 | ||
514 | - | let | |
520 | + | let dL = 5 | |
515 | 521 | ||
516 | - | let | |
522 | + | let dM = 6 | |
517 | 523 | ||
518 | - | let | |
524 | + | let dN = 7 | |
519 | 525 | ||
520 | - | let | |
526 | + | let dO = 8 | |
521 | 527 | ||
522 | - | let | |
528 | + | let dP = 9 | |
523 | 529 | ||
524 | - | let | |
530 | + | let dQ = 10 | |
525 | 531 | ||
526 | - | let | |
532 | + | let dR = 11 | |
527 | 533 | ||
528 | - | let | |
534 | + | let dS = 0 | |
529 | 535 | ||
530 | - | let | |
536 | + | let dT = 1 | |
531 | 537 | ||
532 | - | let | |
538 | + | let dU = 2 | |
533 | 539 | ||
534 | - | let | |
540 | + | let dV = 3 | |
535 | 541 | ||
536 | - | let | |
542 | + | let dW = 4 | |
537 | 543 | ||
538 | - | let | |
544 | + | let dX = 5 | |
539 | 545 | ||
540 | - | let | |
546 | + | let dY = 6 | |
541 | 547 | ||
542 | - | let | |
548 | + | let dZ = 7 | |
543 | 549 | ||
544 | - | let | |
550 | + | let ea = 8 | |
545 | 551 | ||
546 | - | let | |
552 | + | let eb = 9 | |
547 | 553 | ||
548 | - | let | |
554 | + | let ec = 10 | |
549 | 555 | ||
550 | - | func | |
551 | - | let | |
552 | - | $Tuple9( | |
556 | + | func ed (ee,bo) = { | |
557 | + | let ef = bp(ee, bo) | |
558 | + | $Tuple9(ef, bB, 0, unit, 0, ee, 0, 0, 0) | |
553 | 559 | } | |
554 | 560 | ||
555 | 561 | ||
556 | - | func | |
557 | - | let | |
558 | - | let | |
562 | + | func eg (eh,bo,cC,ei,ej) = { | |
563 | + | let ek = valueOrElse(getInteger(this, bc()), E) | |
564 | + | let el = if ((ek >= cC)) | |
559 | 565 | then 0 | |
560 | - | else fraction(( | |
561 | - | let | |
562 | - | then | |
563 | - | else | |
564 | - | let | |
565 | - | then fraction(( | |
566 | + | else fraction((ei - fraction(ek, ej, B)), B, (B - ek)) | |
567 | + | let em = if ((eh > el)) | |
568 | + | then el | |
569 | + | else eh | |
570 | + | let en = if ((eh > el)) | |
571 | + | then fraction((eh - el), cC, B) | |
566 | 572 | else 0 | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | $Tuple9( | |
573 | + | let eo = (em + en) | |
574 | + | let ep = (eh - eo) | |
575 | + | let ef = bm(eo, bo) | |
576 | + | $Tuple9(ef, unit, ep, bB, ef, eo, el, em, en) | |
571 | 577 | } | |
572 | 578 | ||
573 | 579 | ||
574 | - | func | |
575 | - | let | |
576 | - | if (if ((0 > | |
580 | + | func eq (aV,cp,bo,er) = { | |
581 | + | let es = valueOrElse(getInteger(this, ba(aV)), D) | |
582 | + | if (if ((0 > es)) | |
577 | 583 | then true | |
578 | - | else ( | |
579 | - | then throw(((("invalid outFeePart config for " + | |
584 | + | else (es >= B)) | |
585 | + | then throw(((("invalid outFeePart config for " + aV) + " swap: outFeePart=") + toString(es))) | |
580 | 586 | else { | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | then | |
587 | - | else if (( | |
588 | - | then | |
589 | - | else throw(("Unsupported swap type " + | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
587 | + | let ek = valueOrElse(getInteger(this, bc()), E) | |
588 | + | let et = q(er[dO]) | |
589 | + | let ei = q(er[dK]) | |
590 | + | let ej = q(er[dL]) | |
591 | + | let eu = if ((aV == "waves")) | |
592 | + | then ed(cp, bo) | |
593 | + | else if ((aV == "neutrino")) | |
594 | + | then eg(cp, bo, et, ei, ej) | |
595 | + | else throw(("Unsupported swap type " + aV)) | |
596 | + | let ef = eu._1 | |
597 | + | let ev = eu._2 | |
598 | + | let ew = eu._3 | |
599 | + | let ex = eu._4 | |
600 | + | let ey = eu._5 | |
601 | + | let ez = cK(ef, ew, es) | |
602 | + | let eA = ez[F] | |
603 | + | let eB = ez[G] | |
604 | + | let cB = if ((0 >= ew)) | |
599 | 605 | then 0 | |
600 | 606 | else { | |
601 | - | let | |
602 | - | q( | |
607 | + | let eC = l(invoke(ad, "surfFunctionREADONLY", [ew, ex], nil)) | |
608 | + | q(eC[dS]) | |
603 | 609 | } | |
604 | - | $Tuple7( | |
610 | + | $Tuple7(eA, ev, cB, ew, ey, eB, ef) | |
605 | 611 | } | |
606 | 612 | } | |
607 | 613 | ||
608 | 614 | ||
609 | - | func | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | if ( | |
625 | - | then | |
626 | - | else if (( | |
615 | + | func eD (eE,aG,cI,cy,er) = { | |
616 | + | let bk = addressFromStringValue(eE) | |
617 | + | let cG = cH(eE, cI) | |
618 | + | let cw = parseIntValue(cG[cd]) | |
619 | + | let aV = cG[bT] | |
620 | + | let cp = parseIntValue(cG[bV]) | |
621 | + | let eF = cG[bU] | |
622 | + | let cs = parseIntValue(cG[bZ]) | |
623 | + | let es = valueOrElse(getInteger(this, ba(aV)), D) | |
624 | + | let dy = bf(aV) | |
625 | + | let dz = bg(aV, eE) | |
626 | + | let bz = cw | |
627 | + | let by = bR(aG) | |
628 | + | let bA = bR((aG - 1)) | |
629 | + | let dA = bQ(by) | |
630 | + | if (bC) | |
631 | + | then bv() | |
632 | + | else if ((eF != "PENDING")) | |
627 | 633 | then throw("swap has been already processed") | |
628 | - | else if (( | |
629 | - | then throw((("please wait for: " + toString( | |
630 | - | else if (if (if (( | |
634 | + | else if ((bz > height)) | |
635 | + | then throw((("please wait for: " + toString(bz)) + " block height to withdraw funds")) | |
636 | + | else if (if (if ((aG > bx)) | |
631 | 637 | then true | |
632 | - | else ( | |
638 | + | else (bz > by)) | |
633 | 639 | then true | |
634 | - | else if (( | |
635 | - | then ( | |
640 | + | else if ((bA != 0)) | |
641 | + | then (bA >= bz) | |
636 | 642 | else false) | |
637 | - | then | |
643 | + | then bw(aG, bx, by, bz, bA) | |
638 | 644 | else { | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | if ((0 >= | |
645 | + | let eG = eq(aV, cp, dA, er) | |
646 | + | let cq = eG._1 | |
647 | + | let ev = eG._2 | |
648 | + | let cB = eG._3 | |
649 | + | let ew = eG._4 | |
650 | + | let ey = eG._5 | |
651 | + | let cr = eG._6 | |
652 | + | let ef = eG._7 | |
653 | + | if ((0 >= ef)) | |
648 | 654 | then throw("balance equals zero") | |
649 | 655 | else { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
656 | + | let et = q(er[dO]) | |
657 | + | let eH = [IntegerEntry(aX(aV, eE), (dz - cp)), IntegerEntry(aW(aV), (dy - cp)), ScriptTransfer(bk, cq, ev), StringEntry(cl(eE, cI), cF(cG, dA, cq, cr, bz, aG, cy, cB, et))] | |
658 | + | let eI = if ((cB > 0)) | |
653 | 659 | then { | |
654 | - | let | |
655 | - | if (( | |
660 | + | let eJ = invoke(ah, "issueSurf", [cB, eE], nil) | |
661 | + | if ((eJ == eJ)) | |
656 | 662 | then 0 | |
657 | 663 | else throw("Strict value is not equal to itself.") | |
658 | 664 | } | |
659 | 665 | else 0 | |
660 | - | if (( | |
661 | - | then $Tuple3( | |
666 | + | if ((eI == eI)) | |
667 | + | then $Tuple3(eH, AttachedPayment(ev, cr), ey) | |
662 | 668 | else throw("Strict value is not equal to itself.") | |
663 | 669 | } | |
664 | 670 | } | |
665 | 671 | } | |
666 | 672 | ||
667 | 673 | ||
668 | 674 | @Callable(r) | |
669 | - | func constructor ( | |
670 | - | let | |
671 | - | if (( | |
675 | + | func constructor (eK,eL,eM,eN,eO,eP,eQ,eR,eS,eT,eU,eV) = { | |
676 | + | let eW = da(r) | |
677 | + | if ((eW == eW)) | |
672 | 678 | then if ((size(r.payments) != 0)) | |
673 | 679 | then throw("no payments allowed") | |
674 | - | else [StringEntry( | |
680 | + | else [StringEntry(ak, eK), StringEntry(al, eL), StringEntry(am, eM), StringEntry(ao, eN), StringEntry(ap, eO), StringEntry(aw, eP), IntegerEntry(as, eQ), IntegerEntry(at, eR), IntegerEntry(au, eS), IntegerEntry(av, eT), IntegerEntry(ax, eU), IntegerEntry(ay, eV)] | |
675 | 681 | else throw("Strict value is not equal to itself.") | |
676 | 682 | } | |
677 | 683 | ||
678 | 684 | ||
679 | 685 | ||
680 | 686 | @Callable(r) | |
681 | - | func constructorV2 ( | |
682 | - | let | |
683 | - | if (( | |
687 | + | func constructorV2 (ad,ae,eX) = { | |
688 | + | let eW = da(r) | |
689 | + | if ((eW == eW)) | |
684 | 690 | then if ((size(r.payments) != 0)) | |
685 | 691 | then throw("no payments allowed") | |
686 | - | else [StringEntry( | |
692 | + | else [StringEntry(ar, ad), StringEntry(an, ae), IntegerEntry(bb(), eX)] | |
687 | 693 | else throw("Strict value is not equal to itself.") | |
688 | 694 | } | |
689 | 695 | ||
690 | 696 | ||
691 | 697 | ||
692 | 698 | @Callable(r) | |
693 | 699 | func swapWavesToNeutrino () = if ((size(r.payments) != 1)) | |
694 | 700 | then throw("swapWavesToNeutrino require only one payment") | |
695 | 701 | else { | |
696 | - | let | |
697 | - | if (isDefined( | |
702 | + | let eY = value(r.payments[0]) | |
703 | + | if (isDefined(eY.assetId)) | |
698 | 704 | then throw("Only Waves token is allowed for swapping.") | |
699 | 705 | else { | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | | |
706 | + | let bk = toString(r.caller) | |
707 | + | let ds = toBase58String(r.transactionId) | |
708 | + | let eZ = x(invoke(this, "swapParamsByUserSYSREADONLY", [bk, 0], nil)) | |
709 | + | let fa = dp("waves", eY.amount, bk, ds, eZ) | |
710 | + | fa | |
705 | 711 | } | |
706 | 712 | } | |
707 | 713 | ||
708 | 714 | ||
709 | 715 | ||
710 | 716 | @Callable(r) | |
711 | 717 | func swapNeutrinoToWaves () = if ((size(r.payments) != 1)) | |
712 | 718 | then throw("swapNeutrinoToWaves require only one payment") | |
713 | 719 | else { | |
714 | - | let | |
715 | - | if (( | |
720 | + | let eY = value(r.payments[0]) | |
721 | + | if ((eY.assetId != bB)) | |
716 | 722 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
717 | 723 | else { | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | | |
724 | + | let bk = toString(r.caller) | |
725 | + | let ds = toBase58String(r.transactionId) | |
726 | + | let eZ = x(invoke(this, "swapParamsByUserSYSREADONLY", [bk, 0], nil)) | |
727 | + | let fa = dp("neutrino", eY.amount, bk, ds, eZ) | |
728 | + | fa | |
723 | 729 | } | |
724 | 730 | } | |
725 | 731 | ||
726 | 732 | ||
727 | 733 | ||
728 | 734 | @Callable(r) | |
729 | - | func withdraw ( | |
730 | - | let | |
735 | + | func withdraw (eE,aG,cI) = { | |
736 | + | let cm = toBase58String(r.transactionId) | |
731 | 737 | if ((size(r.payments) != 0)) | |
732 | 738 | then throw("no payments allowed") | |
733 | 739 | else { | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | if (( | |
740 | + | let er = l(invoke(ad, "calcNeutinoMetricsREADONLY", nil, nil)) | |
741 | + | let et = q(er[dO]) | |
742 | + | let fb = eD(eE, aG, cI, cm, er) | |
743 | + | let eH = fb._1 | |
744 | + | let fc = fb._2 | |
745 | + | let ey = fb._3 | |
746 | + | let fd = invoke(this, "internalUnleaseAndLease", [ey], nil) | |
747 | + | if ((fd == fd)) | |
742 | 748 | then { | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | then fraction( | |
749 | + | let fe = l(invoke(ag, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil)) | |
750 | + | let ff = q(fe[1]) | |
751 | + | let fg = q(l(fe[3])[3]) | |
752 | + | let fh = if ((ff != 0)) | |
753 | + | then fraction(fc.amount, fg, ff) | |
748 | 754 | else 0 | |
749 | - | let | |
750 | - | then fraction( | |
755 | + | let fi = if ((ff != 0)) | |
756 | + | then fraction(fc.amount, (B - et), B) | |
751 | 757 | else 0 | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
758 | + | let fj = max([fh, fi]) | |
759 | + | let fk = (fc.amount - fj) | |
760 | + | let fl = if ((fj > 0)) | |
755 | 761 | then { | |
756 | - | let | |
757 | - | if (( | |
762 | + | let fm = invoke(af, "deposit", nil, [AttachedPayment(fc.assetId, fj)]) | |
763 | + | if ((fm == fm)) | |
758 | 764 | then nil | |
759 | 765 | else throw("Strict value is not equal to itself.") | |
760 | 766 | } | |
761 | 767 | else nil | |
762 | - | if (( | |
768 | + | if ((fl == fl)) | |
763 | 769 | then { | |
764 | - | let | |
770 | + | let fn = if ((fk > 0)) | |
765 | 771 | then { | |
766 | - | let | |
767 | - | if (( | |
772 | + | let fo = invoke(ae, "deposit", nil, [AttachedPayment(fc.assetId, fk)]) | |
773 | + | if ((fo == fo)) | |
768 | 774 | then nil | |
769 | 775 | else throw("Strict value is not equal to itself.") | |
770 | 776 | } | |
771 | 777 | else nil | |
772 | - | if (( | |
773 | - | then | |
778 | + | if ((fn == fn)) | |
779 | + | then eH | |
774 | 780 | else throw("Strict value is not equal to itself.") | |
775 | 781 | } | |
776 | 782 | else throw("Strict value is not equal to itself.") | |
777 | 783 | } | |
778 | 784 | else throw("Strict value is not equal to itself.") | |
779 | 785 | } | |
780 | 786 | } | |
781 | 787 | ||
782 | 788 | ||
783 | 789 | ||
784 | 790 | @Callable(r) | |
785 | - | func internalUnleaseAndLease ( | |
791 | + | func internalUnleaseAndLease (cS) = if ((r.caller != this)) | |
786 | 792 | then throw("internalUnleaseAndLease is not public method") | |
787 | - | else | |
793 | + | else db(cS) | |
788 | 794 | ||
789 | 795 | ||
790 | 796 | ||
791 | 797 | @Callable(r) | |
792 | - | func transferUsdnToUser ( | |
798 | + | func transferUsdnToUser (bn,fp) = if ((r.caller != ah)) | |
793 | 799 | then throw("Only auction contract is authorized") | |
794 | - | else [ScriptTransfer(addressFromStringValue( | |
800 | + | else [ScriptTransfer(addressFromStringValue(fp), bn, bB)] | |
795 | 801 | ||
796 | 802 | ||
797 | 803 | ||
798 | 804 | @Callable(r) | |
799 | - | func acceptWaves () = if ((r.caller != af)) | |
800 | - | then throw("Currently only auction contract is allowed to call") | |
801 | - | else $Tuple2(cY(0), "success") | |
805 | + | func acceptWaves () = if (if ((r.caller != ah)) | |
806 | + | then (r.caller != aj) | |
807 | + | else false) | |
808 | + | then throw("Currently only auction and governance contracts are allowed to call") | |
809 | + | else $Tuple2(db(0), "success") | |
802 | 810 | ||
803 | 811 | ||
804 | 812 | ||
805 | 813 | @Callable(r) | |
806 | - | func approveLeasings ( | |
807 | - | let | |
808 | - | let | |
809 | - | let | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | if (isDefined( | |
815 | - | then throw((("group " + toString( | |
814 | + | func approveLeasings (fq,aT,fr) = { | |
815 | + | let fs = [0, 1, 2, 3, 4, 5, 6, 7] | |
816 | + | let ft = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
817 | + | let fu = fromBase58String(ft) | |
818 | + | let fv = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE") | |
819 | + | let fw = addressFromStringValue(fv) | |
820 | + | let fx = aS(aT) | |
821 | + | let fy = getString(this, fx) | |
822 | + | if (isDefined(fy)) | |
823 | + | then throw((("group " + toString(aT)) + " already initialized")) | |
816 | 824 | else { | |
817 | - | let | |
818 | - | let | |
819 | - | if ((r.callerPublicKey != | |
825 | + | let fz = split(fq, z) | |
826 | + | let fA = size(fs) | |
827 | + | if ((r.callerPublicKey != fu)) | |
820 | 828 | then throw("approveLeasings not authorized") | |
821 | 829 | else { | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | if (( | |
830 | + | let fB = dj(0) | |
831 | + | let fC = fB._1 | |
832 | + | let fD = fB._2 | |
833 | + | let fE = fB._3 | |
834 | + | let fF = fB._4 | |
835 | + | let fG = fB._5 | |
836 | + | let fH = Lease(fC, (fE - (fr * fA))) | |
837 | + | let fI = invoke(fw, "validateAndApproveLeasings", [fq], nil) | |
838 | + | if ((fI == fI)) | |
831 | 839 | then { | |
832 | - | func | |
833 | - | let | |
834 | - | let | |
835 | - | ( | |
840 | + | func fJ (fK,r) = { | |
841 | + | let fL = fz[r] | |
842 | + | let fM = Lease(addressFromStringValue(fL), fr) | |
843 | + | (fK ++ [fM, BinaryEntry(aO(fL), d(fM)), IntegerEntry(aR(fL), fr)]) | |
836 | 844 | } | |
837 | 845 | ||
838 | - | ([StringEntry( | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | func | |
843 | - | then | |
844 | - | else | |
846 | + | ([StringEntry(fx, fq), BinaryEntry(fF, d(fH)), IntegerEntry(fD, fH.amount), LeaseCancel(fG), fH] ++ { | |
847 | + | let fN = fs | |
848 | + | let fO = size(fN) | |
849 | + | let fP = nil | |
850 | + | func fQ (fR,fS) = if ((fS >= fO)) | |
851 | + | then fR | |
852 | + | else fJ(fR, fN[fS]) | |
845 | 853 | ||
846 | - | func | |
847 | - | then | |
854 | + | func fT (fR,fS) = if ((fS >= fO)) | |
855 | + | then fR | |
848 | 856 | else throw("List size exceeds 8") | |
849 | 857 | ||
850 | - | fQ( | |
858 | + | fT(fQ(fQ(fQ(fQ(fQ(fQ(fQ(fQ(fP, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
851 | 859 | }) | |
852 | 860 | } | |
853 | 861 | else throw("Strict value is not equal to itself.") | |
854 | 862 | } | |
855 | 863 | } | |
856 | 864 | } | |
857 | 865 | ||
858 | 866 | ||
859 | 867 | ||
860 | 868 | @Callable(r) | |
861 | - | func rebalanceLeasings ( | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | let | |
868 | - | if ((r.callerPublicKey != | |
869 | + | func rebalanceLeasings (bn,aT) = { | |
870 | + | let fs = [0, 1, 2, 3, 4, 5, 6, 7] | |
871 | + | let ft = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
872 | + | let fu = fromBase58String(ft) | |
873 | + | let fx = aS(aT) | |
874 | + | let fq = a(this, fx) | |
875 | + | let fz = split(fq, z) | |
876 | + | if ((r.callerPublicKey != fu)) | |
869 | 877 | then throw("rebalanceLeasings not authorized") | |
870 | 878 | else { | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | let | |
877 | - | let | |
878 | - | let | |
879 | - | func | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | let | |
884 | - | let | |
885 | - | let | |
886 | - | let | |
887 | - | ( | |
879 | + | let ey = ((bn / size(fz)) + 1) | |
880 | + | let fU = dj(0) | |
881 | + | let fC = fU._1 | |
882 | + | let fD = fU._2 | |
883 | + | let fE = fU._3 | |
884 | + | let fF = fU._4 | |
885 | + | let fG = fU._5 | |
886 | + | let fH = Lease(fC, (fE + (ey * size(fz)))) | |
887 | + | func fV (fK,r) = { | |
888 | + | let fL = fz[r] | |
889 | + | let fW = aO(fL) | |
890 | + | let fX = getBinaryValue(this, fW) | |
891 | + | let fY = aR(fL) | |
892 | + | let fr = getIntegerValue(this, fY) | |
893 | + | let fZ = LeaseCancel(value(fX)) | |
894 | + | let fM = Lease(addressFromStringValue(fL), (fr - ey)) | |
895 | + | (fK ++ [LeaseCancel(value(fX)), fM, BinaryEntry(fW, d(fM)), IntegerEntry(fY, fM.amount)]) | |
888 | 896 | } | |
889 | 897 | ||
890 | 898 | ({ | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | func | |
895 | - | then | |
896 | - | else | |
899 | + | let fN = fs | |
900 | + | let fO = size(fN) | |
901 | + | let fP = nil | |
902 | + | func fQ (fR,fS) = if ((fS >= fO)) | |
903 | + | then fR | |
904 | + | else fV(fR, fN[fS]) | |
897 | 905 | ||
898 | - | func | |
899 | - | then | |
906 | + | func fT (fR,fS) = if ((fS >= fO)) | |
907 | + | then fR | |
900 | 908 | else throw("List size exceeds 8") | |
901 | 909 | ||
902 | - | fQ( | |
903 | - | } ++ [BinaryEntry( | |
910 | + | fT(fQ(fQ(fQ(fQ(fQ(fQ(fQ(fQ(fP, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
911 | + | } ++ [BinaryEntry(fF, d(fH)), IntegerEntry(fD, fH.amount), LeaseCancel(fG), fH]) | |
904 | 912 | } | |
905 | 913 | } | |
906 | 914 | ||
907 | 915 | ||
908 | 916 | ||
909 | 917 | @Callable(r) | |
910 | - | func swapParamsByUserSYSREADONLY ( | |
911 | - | let | |
912 | - | let | |
913 | - | let | |
914 | - | let | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
918 | + | func swapParamsByUserSYSREADONLY (dr,ga) = { | |
919 | + | let fe = l(invoke(ag, "gnsbtInfoSYSREADONLY", [dr, 0, 0], nil)) | |
920 | + | let gb = (q(fe[0]) + ga) | |
921 | + | let ff = (q(fe[1]) + ga) | |
922 | + | let gc = l(invoke(ad, "calcSwapLimitREADONLY", [gb], nil)) | |
923 | + | let gd = q(gc[0]) | |
924 | + | let dw = q(gc[1]) | |
925 | + | let dx = q(gc[2]) | |
926 | + | let ge = valueOrElse(getInteger(this, bl(dr)), 0) | |
927 | + | let gf = be() | |
928 | + | let gg = (height - ge) | |
929 | + | let gh = (gg >= gf) | |
930 | + | let gi = if (gh) | |
923 | 931 | then 0 | |
924 | - | else valueOrElse(getInteger(this, | |
925 | - | let | |
932 | + | else valueOrElse(getInteger(this, bj(dr)), 0) | |
933 | + | let dv = if (gh) | |
926 | 934 | then 0 | |
927 | - | else ( | |
928 | - | $Tuple2(nil, $Tuple7( | |
935 | + | else (gf - gg) | |
936 | + | $Tuple2(nil, $Tuple7(gd, gi, dv, gb, ff, dw, dx)) | |
929 | 937 | } | |
930 | 938 | ||
931 | 939 | ||
932 | 940 | ||
933 | 941 | @Callable(r) | |
934 | - | func calcWithdrawResultSYSREADONLY ( | |
935 | - | let | |
936 | - | $Tuple2(nil, | |
942 | + | func calcWithdrawResultSYSREADONLY (aV,cp,bo) = { | |
943 | + | let er = l(invoke(ad, "calcNeutinoMetricsREADONLY", nil, nil)) | |
944 | + | $Tuple2(nil, eq(aV, cp, bo, er)) | |
937 | 945 | } | |
938 | 946 | ||
939 | 947 | ||
940 | 948 | ||
941 | 949 | @Callable(r) | |
942 | - | func replaceCommunityNode ( | |
943 | - | let | |
944 | - | let | |
945 | - | if ((r.callerPublicKey != | |
950 | + | func replaceCommunityNode (gj,gk,aT,gl) = { | |
951 | + | let ft = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
952 | + | let fu = fromBase58String(ft) | |
953 | + | if ((r.callerPublicKey != fu)) | |
946 | 954 | then throw("replaceCommunityNode not authorized") | |
947 | 955 | else { | |
948 | - | let | |
949 | - | let | |
950 | - | if (!(contains( | |
951 | - | then throw(((("Group " + toString( | |
956 | + | let gm = aS(aT) | |
957 | + | let gn = a(this, gm) | |
958 | + | if (!(contains(gn, gj))) | |
959 | + | then throw(((("Group " + toString(aT)) + " does not contain address ") + gj)) | |
952 | 960 | else { | |
953 | - | let | |
954 | - | if (( | |
961 | + | let go = invoke(ai, "replaceApprovedNode", [gj, gk, aT, gl], nil) | |
962 | + | if ((go == go)) | |
955 | 963 | then { | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | let | |
961 | - | let | |
962 | - | let | |
963 | - | $Tuple2([LeaseCancel(getBinaryValue( | |
964 | + | let gp = aO(gj) | |
965 | + | let gq = aR(gj) | |
966 | + | let gr = getIntegerValue(gq) | |
967 | + | let gs = aO(gj) | |
968 | + | let gt = aR(gj) | |
969 | + | let gu = Lease(addressFromStringValue(gk), gr) | |
970 | + | let gv = makeString(split(gn, gj), gk) | |
971 | + | $Tuple2([LeaseCancel(getBinaryValue(gp)), DeleteEntry(gp), DeleteEntry(gq), StringEntry(gm, gv), gu, BinaryEntry(gs, d(gu)), IntegerEntry(gt, gr)], unit) | |
964 | 972 | } | |
965 | 973 | else throw("Strict value is not equal to itself.") | |
966 | 974 | } | |
967 | 975 | } | |
968 | 976 | } | |
969 | 977 | ||
970 | 978 | ||
971 | 979 | ||
972 | 980 | @Callable(r) | |
973 | 981 | func updateReservesAndNeutrinoSupply () = { | |
974 | - | func | |
982 | + | func gw (c) = { | |
975 | 983 | let n = getInteger(this, c) | |
976 | 984 | if ($isInstanceOf(n, "Int")) | |
977 | 985 | then { | |
978 | - | let | |
979 | - | | |
986 | + | let fK = n | |
987 | + | fK | |
980 | 988 | } | |
981 | 989 | else 0 | |
982 | 990 | } | |
983 | 991 | ||
984 | - | let | |
985 | - | let | |
986 | - | let | |
987 | - | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", | |
992 | + | let gx = l(invoke(ad, "calcNeutinoMetricsREADONLY", nil, nil)) | |
993 | + | let ab = gw("updateReservesAndNeutrinoSupplyIdx") | |
994 | + | let gy = (ab + 1) | |
995 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", gy), IntegerEntry("reserve", q(gx[3])), IntegerEntry("neutrinoSupply", q(gx[5])), IntegerEntry("reservesInUsdn", bp(q(gx[3]), q(gx[0]))), IntegerEntry("surplus", q(gx[6])), IntegerEntry("deficit", -(q(gx[6])))] | |
988 | 996 | } | |
989 | 997 | ||
990 | 998 | ||
991 | 999 | ||
992 | 1000 | @Callable(r) | |
993 | 1001 | func wavesBalancesVsPayment () = { | |
994 | - | let | |
995 | - | [IntegerEntry("wavesBalance_available", | |
1002 | + | let gz = wavesBalance(this) | |
1003 | + | [IntegerEntry("wavesBalance_available", gz.available), IntegerEntry("wavesBalance_regular", gz.regular), IntegerEntry("wavesBalance_generating", gz.generating), IntegerEntry("wavesBalance_effective", gz.effective), IntegerEntry("waves_payment", value(r.payments[0]).amount)] | |
996 | 1004 | } | |
997 | 1005 | ||
998 | 1006 | ||
999 | - | @Verifier( | |
1000 | - | func | |
1001 | - | let | |
1002 | - | let | |
1003 | - | let | |
1004 | - | let | |
1007 | + | @Verifier(bJ) | |
1008 | + | func gA () = { | |
1009 | + | let gB = toBase58String(bJ.id) | |
1010 | + | let gC = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], z) | |
1011 | + | let gD = split(valueOrElse(getString(ac, "%s__multisig"), gC), z) | |
1012 | + | let gE = ((((if (sigVerify(bJ.bodyBytes, bJ.proofs[0], fromBase58String(gD[0]))) | |
1005 | 1013 | then 1 | |
1006 | - | else 0) + (if (sigVerify( | |
1014 | + | else 0) + (if (sigVerify(bJ.bodyBytes, bJ.proofs[1], fromBase58String(gD[1]))) | |
1007 | 1015 | then 1 | |
1008 | - | else 0)) + (if (sigVerify( | |
1016 | + | else 0)) + (if (sigVerify(bJ.bodyBytes, bJ.proofs[2], fromBase58String(gD[2]))) | |
1009 | 1017 | then 1 | |
1010 | - | else 0)) + (if (sigVerify( | |
1018 | + | else 0)) + (if (sigVerify(bJ.bodyBytes, bJ.proofs[3], fromBase58String(gD[3]))) | |
1011 | 1019 | then 2 | |
1012 | 1020 | else 0)) | |
1013 | - | let n = | |
1021 | + | let n = bJ | |
1014 | 1022 | if ($isInstanceOf(n, "SponsorFeeTransaction")) | |
1015 | 1023 | then { | |
1016 | - | let | |
1017 | - | if ( | |
1018 | - | then ( | |
1024 | + | let gF = n | |
1025 | + | if (bI(gF)) | |
1026 | + | then (gE >= 3) | |
1019 | 1027 | else false | |
1020 | 1028 | } | |
1021 | - | else ( | |
1029 | + | else (gE >= 3) | |
1022 | 1030 | } | |
1023 | 1031 |
github/deemru/w8io/026f985 398.13 ms ◑