tx · FQcKGnKCWEoDER6GCXaZjUchpyqSwfjdQgibexChkgaN

3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh:  -0.04000000 Waves

2022.08.24 13:01 [2198414] smart account 3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh > SELF 0.00000000 Waves

{ "type": 13, "id": "FQcKGnKCWEoDER6GCXaZjUchpyqSwfjdQgibexChkgaN", "fee": 4000000, "feeAssetId": null, "timestamp": 1661335296964, "version": 1, "sender": "3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh", "senderPublicKey": "HiTi1JT7GQRqLNxg4yZhD1mV42y1Mv2AYvRx92JQRbwX", "proofs": [ "2RWmrGCvReXxXcTo2d7CyYAfrZj4EX7PiNjK5h4bCH7MXTuEWmHMNLQkYvnfyJB1tzQ8xZAw3SAk2o5nAhp18yS7" ], "script": "base64:BgIvCAISBAoCAQQSBQoDCAEBEgUKAwgBARIDCgEIEgQKAggBEgUKAwgBCBIFCgMIAQhqAAZFVUxFUjgA1onPgQEABU1VTFQ2AMCEPQAGTVVMVFg2CQC2AgEAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDgJALYCAQCAwtcvAAdNVUxUWDEwCQC2AgEAgMivoCUABk1VTFQxMgCAoJSljR0AB01VTFRYMTYJALYCAQCAgIT+pt7hEQAGTVVMVDE4CQC2AgEAgICQu7rWrfANAANTRVACAl9fABFERUZBVUxUU1dBUEZFRU4yVwCIJwARREVGQVVMVFNXQVBGRUVXMk4AoJwBAAtCUlBST1RFQ1RFRACgjQYAB1dBVkVTSUQJANkEAQIFV0FWRVMBEmtleU5ldXRyaW5vQXNzZXRJZAACEW5ldXRyaW5vX2Fzc2V0X2lkAQ5rZXlOc2J0QXNzZXRJZAACDWJvbmRfYXNzZXRfaWQBDmtleVN1cmZBc3NldElkAAINc3VyZl9hc3NldF9pZAEQa2V5QmFsYW5jZUxvY2tlZAACDWJhbGFuY2VfbG9ja18BFWtleVdhdmVzTG9ja2VkQmFsY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QUMb3V0TmV0QW1vdW50CQDMCAIJAKQDAQUKb3V0U3VyZkFtdAkAzAgCCQCkAwEFDG91dEZlZUFtb3VudAkAzAgCCQCkAwEFBXByaWNlCQDMCAIJAKQDAQUOYmxja3MyTG10UmVzZXQJAMwIAgkApAMBBQ1saW1pdE1heFdhdmVzCQDMCAIJAKQDAQUMbGltaXRNYXhVc2RuCQDMCAIJAKQDAQUPaW5BbXRUb1N1cmZQYXJ0BQNuaWwFA1NFUABrA/Ah", "chainId": 84, "height": 2198414, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8g2WnbZT4qL8h1oL7rvXrsJ7pgHgRSFUzQnf5KZZ8SiQ Next: 62SckJcH7hagXSmBJLcjz7ucac7xwYwkadsKCMPmzsiB Diff:
OldNewDifferences
6565 func z () = "%s%s__config__swapBParam"
6666
6767
68-func A () = "%s__nsbtLockContract"
68+func A () = "%s%s__config__usdnSwapAParam"
6969
7070
71-func B () = "%s__mathContract"
71+func B () = "%s%s__config__usdnSwapBParam"
7272
7373
74-func C () = "balance_waves_lock_interval"
74+func C () = "%s__nsbtLockContract"
7575
7676
77-func D () = "balance_neutrino_lock_interval"
77+func D () = "%s__mathContract"
7878
7979
80-func E () = "price"
80+func E () = "balance_waves_lock_interval"
8181
8282
83-func F (G) = makeString(["%s%s%s", "paramByUser", G, "start"], j)
83+func F () = "balance_neutrino_lock_interval"
8484
8585
86-func H () = "%s__halfLife"
86+func G () = "price"
8787
8888
89-func I () = "%s__minLockAmount"
89+func H (I) = makeString(["%s%s%s", "paramByUser", I, "start"], j)
9090
9191
92-func J () = "min_waves_nsbt_buy"
92+func J () = "%s__halfLife"
9393
9494
95-func K () = "min_nsbt_sell"
95+func K () = "%s__minLockAmount"
9696
9797
98-func L (M,N) = valueOrErrorMessage(getString(M, N), makeString(["mandatory ", toString(M), ".", N, " is not defined"], ""))
98+func L () = "min_waves_nsbt_buy"
9999
100100
101-func O (M,N) = valueOrErrorMessage(getInteger(M, N), makeString(["mandatory ", toString(M), ".", N, " is not defined"], ""))
101+func M () = "min_nsbt_sell"
102102
103103
104-func P (M,N) = valueOrErrorMessage(getBoolean(M, N), makeString(["mandatory ", toString(M), ".", N, " is not defined"], ""))
104+func N (O,P) = valueOrErrorMessage(getString(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], ""))
105105
106106
107-func Q (R,S) = fraction(R, d, S)
107+func Q (O,P) = valueOrErrorMessage(getInteger(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], ""))
108108
109109
110-func T (R,S) = fraction(R, S, d)
110+func R (O,P) = valueOrErrorMessage(getBoolean(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], ""))
111111
112112
113-func U (V) = {
114- let W = V
115- if ($isInstanceOf(W, "List[Any]"))
113+func S (T,U) = fraction(T, d, U)
114+
115+
116+func V (T,U) = fraction(T, U, d)
117+
118+
119+func W (X) = {
120+ let Y = X
121+ if ($isInstanceOf(Y, "List[Any]"))
116122 then {
117- let X = W
118- X
123+ let Z = Y
124+ Z
119125 }
120126 else throw("fail to cast into List[Any]")
121127 }
122128
123129
124-func Y (V) = {
125- let W = V
126- if ($isInstanceOf(W, "Int"))
130+func aa (X) = {
131+ let Y = X
132+ if ($isInstanceOf(Y, "Int"))
127133 then {
128- let Z = W
129- Z
134+ let ab = Y
135+ ab
130136 }
131137 else throw("fail to cast into Int")
132138 }
133139
134140
135-func aa (V) = {
136- let W = V
137- if ($isInstanceOf(W, "String"))
141+func ac (X) = {
142+ let Y = X
143+ if ($isInstanceOf(Y, "String"))
138144 then {
139- let ab = W
140- ab
145+ let ad = Y
146+ ad
141147 }
142148 else throw("fail to cast into String")
143149 }
144150
145151
146-func ac (V) = {
147- let W = V
148- if ($isInstanceOf(W, "(Int, Int)"))
152+func ae (X) = {
153+ let Y = X
154+ if ($isInstanceOf(Y, "(Int, Int)"))
149155 then {
150- let ad = W
151- ad
156+ let af = Y
157+ af
152158 }
153159 else throw("fail to cast into Tuple2 ints")
154160 }
155161
156162
157-func ae (V) = {
158- let W = V
159- if ($isInstanceOf(W, "(Int, Int, Int, Int, Int, Int, Int)"))
163+func ag (X) = {
164+ let Y = X
165+ if ($isInstanceOf(Y, "(Int, Int, Int, Int, Int, Int, Int)"))
160166 then {
161- let af = W
162- af
167+ let ah = Y
168+ ah
163169 }
164170 else throw("fail to cast into SwapParamsSTRUCT")
165171 }
166172
167173
168-func ag (V) = {
169- let W = V
170- if (if ($isInstanceOf(W, "(Int, Unit, Int, Int, Int, Int, Int)"))
174+func ai (X) = {
175+ let Y = X
176+ if (if ($isInstanceOf(Y, "(Int, Unit, Int, Int, Int, Int, Int)"))
171177 then true
172- else $isInstanceOf(W, "(Int, ByteVector, Int, Int, Int, Int, Int)"))
178+ else $isInstanceOf(Y, "(Int, ByteVector, Int, Int, Int, Int, Int)"))
173179 then {
174- let af = W
175- af
180+ let ah = Y
181+ ah
176182 }
177183 else throw("fail to cast into WithdrawResult")
178184 }
179185
180186
181-func ah (ai) = if ((0 > ai))
187+func aj (ak) = if ((0 > ak))
182188 then -1
183189 else {
184- let W = blockInfoByHeight(ai)
185- if ($isInstanceOf(W, "BlockInfo"))
190+ let Y = blockInfoByHeight(ak)
191+ if ($isInstanceOf(Y, "BlockInfo"))
186192 then {
187- let aj = W
188- aj.timestamp
193+ let al = Y
194+ al.timestamp
189195 }
190196 else -1
191197 }
192198
193199
194-func ak (al,am) = fraction(toBigInt(al), i, toBigInt(am))
200+func am (an,ao) = fraction(toBigInt(an), i, toBigInt(ao))
195201
196202
197-func an (V,ao) = toInt(fraction(V, toBigInt(ao), i))
203+func ap (X,aq) = toInt(fraction(X, toBigInt(aq), i))
198204
199205
200-let ap = 0
206+let ar = 0
201207
202-let aq = 1
208+let as = 1
203209
204-let ar = 2
210+let at = 2
205211
206-let as = 3
212+let au = 3
207213
208-let at = 4
214+let av = 4
209215
210-let au = 5
216+let aw = 5
211217
212-let av = 6
218+let ax = 6
213219
214-let aw = 7
220+let ay = 7
215221
216-let ax = 8
222+let az = 8
217223
218-let ay = 9
224+let aA = 9
219225
220-let az = 10
226+let aB = 10
221227
222-let aA = 11
228+let aC = 11
223229
224-let aB = 1
230+let aD = 1
225231
226-let aC = 2
232+let aE = 2
227233
228-let aD = 3
234+let aF = 3
229235
230-let aE = 4
236+let aG = 4
231237
232-let aF = 5
238+let aH = 5
233239
234-let aG = 6
240+let aI = 6
235241
236-let aH = 7
242+let aJ = 7
237243
238-let aI = 8
244+let aK = 8
239245
240-let aJ = 9
246+let aL = 9
241247
242-let aK = 10
248+let aM = 10
243249
244-let aL = 11
250+let aN = 11
245251
246-let aM = 0
252+let aO = 0
247253
248-let aN = 1
254+let aP = 1
249255
250-let aO = 2
256+let aQ = 2
251257
252-let aP = 3
258+let aR = 3
253259
254-let aQ = 4
260+let aS = 4
255261
256-let aR = 5
262+let aT = 5
257263
258-let aS = 6
264+let aU = 6
259265
260-let aT = 7
266+let aV = 7
261267
262-let aU = 8
268+let aW = 8
263269
264-let aV = 9
270+let aX = 9
265271
266-let aW = 10
272+let aY = 10
267273
268-func aX () = "%s%s__config__controlAddress"
274+func aZ () = "%s%s__config__controlAddress"
269275
270276
271-func aY () = "%s__controlConfig"
277+func ba () = "%s__controlConfig"
272278
273279
274-func aZ (ba) = split(L(ba, aY()), j)
280+func bb (bc) = split(N(bc, ba()), j)
275281
276282
277-func bb (bc,bd) = valueOrErrorMessage(addressFromString(bc[bd]), ("Control cfg doesn't contain address at index " + toString(bd)))
283+func bd (be,bf) = valueOrErrorMessage(addressFromString(be[bf]), ("Control cfg doesn't contain address at index " + toString(bf)))
278284
279285
280-let be = addressFromStringValue(valueOrElse(getString(this, aX()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
286+let bg = addressFromStringValue(valueOrElse(getString(this, aZ()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
281287
282-let bc = aZ(be)
288+let be = bb(bg)
283289
284-let bf = bb(bc, aE)
290+let bh = bd(be, aG)
285291
286-let bg = bb(bc, aB)
292+let bi = bd(be, aD)
287293
288-let bh = bb(bc, aC)
294+let bj = bd(be, aE)
289295
290-let bi = bb(bc, aF)
296+let bk = bd(be, aH)
291297
292-let bj = bb(bc, aD)
298+let bl = bd(be, aF)
293299
294-let bk = bb(bc, aI)
300+let bm = bd(be, aK)
295301
296-let bl = bb(bc, aK)
302+let bn = bd(be, aM)
297303
298-let bm = bb(bc, aL)
304+let bo = bd(be, aN)
299305
300-let bn = L(bg, o())
301-
302-let bo = fromBase58String(bn)
303-
304-let bp = getStringValue(bg, p())
306+let bp = N(bi, o())
305307
306308 let bq = fromBase58String(bp)
307309
308-let br = getStringValue(bh, q())
310+let br = getStringValue(bi, p())
309311
310312 let bs = fromBase58String(br)
311313
312-@Callable(bt)
313-func reverseSwapLimitREADONLY (bu) = {
314- let bv = if ((0 >= bu))
314+let bt = getStringValue(bj, q())
315+
316+let bu = fromBase58String(bt)
317+
318+@Callable(bv)
319+func reverseSwapLimitREADONLY (bw,bx) = {
320+ let by = aa(W(invoke(bh, "calcNeutinoMetricsREADONLY", nil, nil))[az])
321+ let bz = if ((0 >= bw))
315322 then 0
316323 else {
317- let bw = toBigInt(O(bf, y()))
318- let bx = toBigInt(O(bf, z()))
319- let by = fraction(toBigInt(bu), f, bw)
320- let bz = fraction(h, h, bx)
321- toInt(pow(by, 8, bz, 16, 6, CEILING))
324+ let bA = toBigInt(Q(bh, if (bx)
325+ then y()
326+ else A()))
327+ let bB = toBigInt(Q(bh, if (bx)
328+ then z()
329+ else B()))
330+ let bC = if (bx)
331+ then fraction(toBigInt(bw), f, bA)
332+ else fraction(fraction(toBigInt(bw), f, bA), c, toBigInt(by))
333+ let bD = fraction(h, h, bB)
334+ toInt(pow(bC, 8, bD, 16, 6, CEILING))
322335 }
323- $Tuple2(nil, bv)
336+ $Tuple2(nil, bz)
324337 }
325338
326339
327340
328-@Callable(bt)
329-func gnsbtInfoINTERNAL (bA,bB,bC) = {
330- let bD = if ((bA != ""))
331- then addressFromStringValue(bA)
341+@Callable(bv)
342+func gnsbtInfoINTERNAL (bE,bF,bG) = {
343+ let bH = if ((bE != ""))
344+ then addressFromStringValue(bE)
332345 else this
333- let bE = getIntegerValue(be, E())
334- let bF = bB
335- let bG = Y(invoke(bl, "gnsbtFromSurfSYSREADONLY", [bC], nil))
336- let bH = (bF + bG)
337- let bI = ae(invoke(bg, "swapParamsByUserSYSREADONLY", [bA, 0], nil))
338- let bJ = bI._3
339- let bK = bI._4
340- let bL = bI._5
341- let bM = bI._6
342- let bN = bI._7
343- let bO = ae(invoke(bg, "swapParamsByUserSYSREADONLY", [bA, bH], nil))
344- let bP = bO._3
345- let bQ = bO._4
346- let bR = bO._5
347- let bS = bO._6
348- let bT = bO._7
349- let bU = if ((bA != ""))
350- then assetBalance(bD, bq)
346+ let bI = getIntegerValue(bg, G())
347+ let bJ = bF
348+ let bK = aa(invoke(bn, "gnsbtFromSurfSYSREADONLY", [bG], nil))
349+ let bL = (bJ + bK)
350+ let bM = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, 0], nil))
351+ let bN = bM._3
352+ let bO = bM._4
353+ let bP = bM._5
354+ let bQ = bM._6
355+ let bR = bM._7
356+ let bS = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, bL], nil))
357+ let bT = bS._3
358+ let bU = bS._4
359+ let bV = bS._5
360+ let bW = bS._6
361+ let bX = bS._7
362+ let bY = if ((bE != ""))
363+ then assetBalance(bH, bs)
351364 else 0
352- let bV = if ((bA != ""))
353- then assetBalance(bD, bs)
365+ let bZ = if ((bE != ""))
366+ then assetBalance(bH, bu)
354367 else 0
355- let bW = if ((bB >= 0))
356- then bB
368+ let ca = if ((bF >= 0))
369+ then bF
357370 else {
358- let bX = U(invoke(bk, "nsbtUnstakingSYSREADONLY", [bA, (-1 * bB)], nil))
359- let bY = Y(bX[2])
360- let bZ = -(bY)
361- bZ
371+ let cb = W(invoke(bm, "nsbtUnstakingSYSREADONLY", [bE, (-1 * bF)], nil))
372+ let cc = aa(cb[2])
373+ let cd = -(cc)
374+ cd
362375 }
363- let ca = (bU - bW)
364- let cb = (bV - bC)
365- let cc = U(invoke(bm, "gnsbtInfoSYSREADONLY", [bA, bB, bC], nil))
366- let cd = Y(cc[0])
367- let ce = Y(cc[1])
368- let cf = U(cc[2])
369- let cg = U(cc[3])
370- let ch = Y(cc[4])
371- let ci = Y(cc[5])
372- let cj = Y(cf[2])
373- let ck = Y(cg[2])
374- let cl = (cj + bF)
375- let cm = (ck + bG)
376- let cn = Y(cf[3])
377- let co = Y(cg[3])
378- let cp = 0
379- let cq = co
380- let cr = (cn + bF)
381- let cs = (co + bG)
382- let ct = cs
383- let cu = fraction(cj, d, (cn + cp))
384- let cv = fraction(cl, d, (cr + cp))
385- let cw = fraction((cj + ck), d, ((cn + cp) + cq))
386- let cx = fraction((cl + cm), d, ((cr + cp) + ct))
387- let cy = if ((ch == 0))
376+ let ce = (bY - ca)
377+ let cf = (bZ - bG)
378+ let cg = W(invoke(bo, "gnsbtInfoSYSREADONLY", [bE, bF, bG], nil))
379+ let ch = aa(cg[0])
380+ let ci = aa(cg[1])
381+ let cj = W(cg[2])
382+ let ck = W(cg[3])
383+ let cl = aa(cg[4])
384+ let cm = aa(cg[5])
385+ let cn = aa(cj[2])
386+ let co = aa(ck[2])
387+ let cp = (cn + bJ)
388+ let cq = (co + bK)
389+ let cr = aa(cj[3])
390+ let cs = aa(ck[3])
391+ let ct = 0
392+ let cu = cs
393+ let cv = (cr + bJ)
394+ let cw = (cs + bK)
395+ let cx = cw
396+ let cy = fraction(cn, d, (cr + ct))
397+ let cz = fraction(cp, d, (cv + ct))
398+ let cA = fraction((cn + co), d, ((cr + ct) + cu))
399+ let cB = fraction((cp + cq), d, ((cv + ct) + cx))
400+ let cC = if ((cl == 0))
388401 then height
389- else ch
390- let cz = if ((ci == 0))
402+ else cl
403+ let cD = if ((cm == 0))
391404 then height
392- else ci
393- $Tuple2(nil, [0, bU, bV, ca, cb, cj, ck, cl, cm, cn, co, cr, cs, bN, bM, bT, bS, bJ, bP, cu, cv, cw, cx, cy, cz])
405+ else cm
406+ $Tuple2(nil, [0, bY, bZ, ce, cf, cn, co, cp, cq, cr, cs, cv, cw, bR, bQ, bX, bW, bN, bT, cy, cz, cA, cB, cC, cD])
394407 }
395408
396409
397410
398-@Callable(bt)
399-func gnsbtInfoREADONLY (bA,bB,bC) = {
400- let cA = U(invoke(this, "gnsbtInfoINTERNAL", [bA, bB, bC], nil))
401- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(Y(cA[1])), toString(Y(cA[2])), toString(Y(cA[3])), toString(Y(cA[4])), toString(Y(cA[5])), toString(Y(cA[6])), toString(Y(cA[7])), toString(Y(cA[8])), toString(Y(cA[9])), toString(Y(cA[10])), toString(Y(cA[11])), toString(Y(cA[12])), toString(Y(cA[13])), toString(Y(cA[14])), toString(Y(cA[15])), toString(Y(cA[16])), toString(Y(cA[17])), toString(Y(cA[18])), toString(Y(cA[19])), toString(Y(cA[20])), toString(Y(cA[21])), toString(Y(cA[22])), toString(Y(cA[23])), toString(Y(cA[24]))], j))
411+@Callable(bv)
412+func gnsbtInfoREADONLY (bE,bF,bG) = {
413+ let cE = W(invoke(this, "gnsbtInfoINTERNAL", [bE, bF, bG], nil))
414+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(aa(cE[1])), toString(aa(cE[2])), toString(aa(cE[3])), toString(aa(cE[4])), toString(aa(cE[5])), toString(aa(cE[6])), toString(aa(cE[7])), toString(aa(cE[8])), toString(aa(cE[9])), toString(aa(cE[10])), toString(aa(cE[11])), toString(aa(cE[12])), toString(aa(cE[13])), toString(aa(cE[14])), toString(aa(cE[15])), toString(aa(cE[16])), toString(aa(cE[17])), toString(aa(cE[18])), toString(aa(cE[19])), toString(aa(cE[20])), toString(aa(cE[21])), toString(aa(cE[22])), toString(aa(cE[23])), toString(aa(cE[24]))], j))
402415 }
403416
404417
405418
406-@Callable(bt)
407-func rewardInfoREADONLY (bA) = {
408- let cB = U(invoke(bm, "gnsbtRewardsSYSREADONLY", [bA], nil))
409- $Tuple2(nil, makeString(["%s%s", aa(cB[0]), aa(cB[1])], j))
419+@Callable(bv)
420+func rewardInfoREADONLY (bE) = {
421+ let cF = W(invoke(bo, "gnsbtRewardsSYSREADONLY", [bE], nil))
422+ $Tuple2(nil, makeString(["%s%s", ac(cF[0]), ac(cF[1])], j))
410423 }
411424
412425
413426
414-@Callable(bt)
415-func mergeNsbtREADONLY (cC,cD) = {
416- let cf = U(invoke(bk, "nsbtStakingSYSREADONLY", [cC, cD], nil))
417- let cE = Y(cf[0])
418- let cF = if ((0 >= cE))
427+@Callable(bv)
428+func mergeNsbtREADONLY (cG,cH) = {
429+ let cj = W(invoke(bm, "nsbtStakingSYSREADONLY", [cG, cH], nil))
430+ let cI = aa(cj[0])
431+ let cJ = if ((0 >= cI))
419432 then -1
420- else Y(cf[2])
421- let cG = ah(cF)
422- let cH = if ((0 >= cD))
423- then cF
433+ else aa(cj[2])
434+ let cK = aj(cJ)
435+ let cL = if ((0 >= cH))
436+ then cJ
424437 else {
425- let cI = O(bk, H())
426- Y(invoke(bf, "mergeStakesREADONLY", [cE, cF, cD, height, cI], nil))
438+ let cM = Q(bm, J())
439+ aa(invoke(bh, "mergeStakesREADONLY", [cI, cJ, cH, height, cM], nil))
427440 }
428- let cJ = ah(cH)
429- $Tuple2(nil, makeString(["%d%d%d%d", toString(cF), toString(cG), toString(cH), toString(cJ)], j))
441+ let cN = aj(cL)
442+ $Tuple2(nil, makeString(["%d%d%d%d", toString(cJ), toString(cK), toString(cL), toString(cN)], j))
430443 }
431444
432445
433446
434-@Callable(bt)
435-func swapLimitCalculatorREADONLY (cK,cL,cM) = {
436- let cN = if ((cK == ""))
447+@Callable(bv)
448+func swapLimitCalculatorREADONLY (cO,cP,cQ) = {
449+ let cR = if ((cO == ""))
437450 then 0
438- else Y(ae(invoke(bg, "swapParamsByUserSYSREADONLY", [cK, 0], nil))._4)
439- let cO = if ((cM == "WAVES"))
440- then T(cL, getIntegerValue(be, E()))
441- else cL
442- let cP = Y(invoke(this, "reverseSwapLimitREADONLY", [cO], nil))
443- let cQ = (cP - cN)
444- $Tuple2(nil, makeString(["%s%s", toString(cN), toString(cQ)], j))
451+ else aa(ag(invoke(bi, "swapParamsByUserSYSREADONLY", [cO, 0], nil))._4)
452+ let cS = if ((cQ == "WAVES"))
453+ then V(cP, getIntegerValue(bg, G()))
454+ else cP
455+ let cT = aa(invoke(this, "reverseSwapLimitREADONLY", [cS, (cQ == "WAVES")], nil))
456+ let cU = (cT - cR)
457+ $Tuple2(nil, makeString(["%s%s", toString(cR), toString(cU)], j))
445458 }
446459
447460
448461
449-@Callable(bt)
450-func swapInfoREADONLY (bA,R,cM) = {
451- let cR = U(invoke(bf, "calcNeutinoMetricsREADONLY", nil, nil))
452- let S = Y(cR[ap])
453- let bI = ae(invoke(bg, "swapParamsByUserSYSREADONLY", [bA, 0], nil))
454- let bJ = bI._3
455- let bM = bI._6
456- let bN = bI._7
457- let cS = fromBase58String(cM)
458- let cT = if ((cS == n))
462+@Callable(bv)
463+func swapInfoREADONLY (bE,T,cQ) = {
464+ let cV = W(invoke(bh, "calcNeutinoMetricsREADONLY", nil, nil))
465+ let U = aa(cV[ar])
466+ let bM = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, 0], nil))
467+ let bN = bM._3
468+ let bQ = bM._6
469+ let bR = bM._7
470+ let cW = fromBase58String(cQ)
471+ let cX = if ((cW == n))
459472 then "waves"
460- else if ((cS == bo))
473+ else if ((cW == bq))
461474 then "neutrino"
462- else throw(("Can't swap assetId=" + cM))
463- let cU = ag(invoke(bg, "calcWithdrawResultSYSREADONLY", [cT, R, S], nil))
464- let cV = cU._1
465- let cW = cU._2
466- let cX = cU._3
467- let cY = cU._4
468- let cZ = cU._5
469- let da = cU._6
470- let db = cU._7
471- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cV), toString(cX), toString(da), toString(S), toString(bJ), toString(bM), toString(bN), toString(cY)], j))
475+ else throw(("Can't swap assetId=" + cQ))
476+ let cY = ai(invoke(bi, "calcWithdrawResultSYSREADONLY", [cX, T, U], nil))
477+ let cZ = cY._1
478+ let da = cY._2
479+ let db = cY._3
480+ let dc = cY._4
481+ let dd = cY._5
482+ let de = cY._6
483+ let df = cY._7
484+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cZ), toString(db), toString(de), toString(U), toString(bN), toString(bQ), toString(bR), toString(dc)], j))
472485 }
473486
474487
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 271828182
55
66 let b = 1000000
77
88 let c = toBigInt(1000000)
99
1010 let d = 100000000
1111
1212 let e = toBigInt(100000000)
1313
1414 let f = toBigInt(10000000000)
1515
1616 let g = 1000000000000
1717
1818 let h = toBigInt(10000000000000000)
1919
2020 let i = toBigInt(1000000000000000000)
2121
2222 let j = "__"
2323
2424 let k = 5000
2525
2626 let l = 20000
2727
2828 let m = 100000
2929
3030 let n = fromBase58String("WAVES")
3131
3232 func o () = "neutrino_asset_id"
3333
3434
3535 func p () = "bond_asset_id"
3636
3737
3838 func q () = "surf_asset_id"
3939
4040
4141 func r () = "balance_lock_"
4242
4343
4444 func s () = (r() + "waves")
4545
4646
4747 func t () = (r() + "neutrino")
4848
4949
5050 func u () = "min_waves_swap_amount"
5151
5252
5353 func v () = "min_neutrino_swap_amount"
5454
5555
5656 func w () = "wavesOut_swap_feePart"
5757
5858
5959 func x () = "neutrinoOut_swap_feePart"
6060
6161
6262 func y () = "%s%s__config__swapAParam"
6363
6464
6565 func z () = "%s%s__config__swapBParam"
6666
6767
68-func A () = "%s__nsbtLockContract"
68+func A () = "%s%s__config__usdnSwapAParam"
6969
7070
71-func B () = "%s__mathContract"
71+func B () = "%s%s__config__usdnSwapBParam"
7272
7373
74-func C () = "balance_waves_lock_interval"
74+func C () = "%s__nsbtLockContract"
7575
7676
77-func D () = "balance_neutrino_lock_interval"
77+func D () = "%s__mathContract"
7878
7979
80-func E () = "price"
80+func E () = "balance_waves_lock_interval"
8181
8282
83-func F (G) = makeString(["%s%s%s", "paramByUser", G, "start"], j)
83+func F () = "balance_neutrino_lock_interval"
8484
8585
86-func H () = "%s__halfLife"
86+func G () = "price"
8787
8888
89-func I () = "%s__minLockAmount"
89+func H (I) = makeString(["%s%s%s", "paramByUser", I, "start"], j)
9090
9191
92-func J () = "min_waves_nsbt_buy"
92+func J () = "%s__halfLife"
9393
9494
95-func K () = "min_nsbt_sell"
95+func K () = "%s__minLockAmount"
9696
9797
98-func L (M,N) = valueOrErrorMessage(getString(M, N), makeString(["mandatory ", toString(M), ".", N, " is not defined"], ""))
98+func L () = "min_waves_nsbt_buy"
9999
100100
101-func O (M,N) = valueOrErrorMessage(getInteger(M, N), makeString(["mandatory ", toString(M), ".", N, " is not defined"], ""))
101+func M () = "min_nsbt_sell"
102102
103103
104-func P (M,N) = valueOrErrorMessage(getBoolean(M, N), makeString(["mandatory ", toString(M), ".", N, " is not defined"], ""))
104+func N (O,P) = valueOrErrorMessage(getString(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], ""))
105105
106106
107-func Q (R,S) = fraction(R, d, S)
107+func Q (O,P) = valueOrErrorMessage(getInteger(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], ""))
108108
109109
110-func T (R,S) = fraction(R, S, d)
110+func R (O,P) = valueOrErrorMessage(getBoolean(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], ""))
111111
112112
113-func U (V) = {
114- let W = V
115- if ($isInstanceOf(W, "List[Any]"))
113+func S (T,U) = fraction(T, d, U)
114+
115+
116+func V (T,U) = fraction(T, U, d)
117+
118+
119+func W (X) = {
120+ let Y = X
121+ if ($isInstanceOf(Y, "List[Any]"))
116122 then {
117- let X = W
118- X
123+ let Z = Y
124+ Z
119125 }
120126 else throw("fail to cast into List[Any]")
121127 }
122128
123129
124-func Y (V) = {
125- let W = V
126- if ($isInstanceOf(W, "Int"))
130+func aa (X) = {
131+ let Y = X
132+ if ($isInstanceOf(Y, "Int"))
127133 then {
128- let Z = W
129- Z
134+ let ab = Y
135+ ab
130136 }
131137 else throw("fail to cast into Int")
132138 }
133139
134140
135-func aa (V) = {
136- let W = V
137- if ($isInstanceOf(W, "String"))
141+func ac (X) = {
142+ let Y = X
143+ if ($isInstanceOf(Y, "String"))
138144 then {
139- let ab = W
140- ab
145+ let ad = Y
146+ ad
141147 }
142148 else throw("fail to cast into String")
143149 }
144150
145151
146-func ac (V) = {
147- let W = V
148- if ($isInstanceOf(W, "(Int, Int)"))
152+func ae (X) = {
153+ let Y = X
154+ if ($isInstanceOf(Y, "(Int, Int)"))
149155 then {
150- let ad = W
151- ad
156+ let af = Y
157+ af
152158 }
153159 else throw("fail to cast into Tuple2 ints")
154160 }
155161
156162
157-func ae (V) = {
158- let W = V
159- if ($isInstanceOf(W, "(Int, Int, Int, Int, Int, Int, Int)"))
163+func ag (X) = {
164+ let Y = X
165+ if ($isInstanceOf(Y, "(Int, Int, Int, Int, Int, Int, Int)"))
160166 then {
161- let af = W
162- af
167+ let ah = Y
168+ ah
163169 }
164170 else throw("fail to cast into SwapParamsSTRUCT")
165171 }
166172
167173
168-func ag (V) = {
169- let W = V
170- if (if ($isInstanceOf(W, "(Int, Unit, Int, Int, Int, Int, Int)"))
174+func ai (X) = {
175+ let Y = X
176+ if (if ($isInstanceOf(Y, "(Int, Unit, Int, Int, Int, Int, Int)"))
171177 then true
172- else $isInstanceOf(W, "(Int, ByteVector, Int, Int, Int, Int, Int)"))
178+ else $isInstanceOf(Y, "(Int, ByteVector, Int, Int, Int, Int, Int)"))
173179 then {
174- let af = W
175- af
180+ let ah = Y
181+ ah
176182 }
177183 else throw("fail to cast into WithdrawResult")
178184 }
179185
180186
181-func ah (ai) = if ((0 > ai))
187+func aj (ak) = if ((0 > ak))
182188 then -1
183189 else {
184- let W = blockInfoByHeight(ai)
185- if ($isInstanceOf(W, "BlockInfo"))
190+ let Y = blockInfoByHeight(ak)
191+ if ($isInstanceOf(Y, "BlockInfo"))
186192 then {
187- let aj = W
188- aj.timestamp
193+ let al = Y
194+ al.timestamp
189195 }
190196 else -1
191197 }
192198
193199
194-func ak (al,am) = fraction(toBigInt(al), i, toBigInt(am))
200+func am (an,ao) = fraction(toBigInt(an), i, toBigInt(ao))
195201
196202
197-func an (V,ao) = toInt(fraction(V, toBigInt(ao), i))
203+func ap (X,aq) = toInt(fraction(X, toBigInt(aq), i))
198204
199205
200-let ap = 0
206+let ar = 0
201207
202-let aq = 1
208+let as = 1
203209
204-let ar = 2
210+let at = 2
205211
206-let as = 3
212+let au = 3
207213
208-let at = 4
214+let av = 4
209215
210-let au = 5
216+let aw = 5
211217
212-let av = 6
218+let ax = 6
213219
214-let aw = 7
220+let ay = 7
215221
216-let ax = 8
222+let az = 8
217223
218-let ay = 9
224+let aA = 9
219225
220-let az = 10
226+let aB = 10
221227
222-let aA = 11
228+let aC = 11
223229
224-let aB = 1
230+let aD = 1
225231
226-let aC = 2
232+let aE = 2
227233
228-let aD = 3
234+let aF = 3
229235
230-let aE = 4
236+let aG = 4
231237
232-let aF = 5
238+let aH = 5
233239
234-let aG = 6
240+let aI = 6
235241
236-let aH = 7
242+let aJ = 7
237243
238-let aI = 8
244+let aK = 8
239245
240-let aJ = 9
246+let aL = 9
241247
242-let aK = 10
248+let aM = 10
243249
244-let aL = 11
250+let aN = 11
245251
246-let aM = 0
252+let aO = 0
247253
248-let aN = 1
254+let aP = 1
249255
250-let aO = 2
256+let aQ = 2
251257
252-let aP = 3
258+let aR = 3
253259
254-let aQ = 4
260+let aS = 4
255261
256-let aR = 5
262+let aT = 5
257263
258-let aS = 6
264+let aU = 6
259265
260-let aT = 7
266+let aV = 7
261267
262-let aU = 8
268+let aW = 8
263269
264-let aV = 9
270+let aX = 9
265271
266-let aW = 10
272+let aY = 10
267273
268-func aX () = "%s%s__config__controlAddress"
274+func aZ () = "%s%s__config__controlAddress"
269275
270276
271-func aY () = "%s__controlConfig"
277+func ba () = "%s__controlConfig"
272278
273279
274-func aZ (ba) = split(L(ba, aY()), j)
280+func bb (bc) = split(N(bc, ba()), j)
275281
276282
277-func bb (bc,bd) = valueOrErrorMessage(addressFromString(bc[bd]), ("Control cfg doesn't contain address at index " + toString(bd)))
283+func bd (be,bf) = valueOrErrorMessage(addressFromString(be[bf]), ("Control cfg doesn't contain address at index " + toString(bf)))
278284
279285
280-let be = addressFromStringValue(valueOrElse(getString(this, aX()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
286+let bg = addressFromStringValue(valueOrElse(getString(this, aZ()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
281287
282-let bc = aZ(be)
288+let be = bb(bg)
283289
284-let bf = bb(bc, aE)
290+let bh = bd(be, aG)
285291
286-let bg = bb(bc, aB)
292+let bi = bd(be, aD)
287293
288-let bh = bb(bc, aC)
294+let bj = bd(be, aE)
289295
290-let bi = bb(bc, aF)
296+let bk = bd(be, aH)
291297
292-let bj = bb(bc, aD)
298+let bl = bd(be, aF)
293299
294-let bk = bb(bc, aI)
300+let bm = bd(be, aK)
295301
296-let bl = bb(bc, aK)
302+let bn = bd(be, aM)
297303
298-let bm = bb(bc, aL)
304+let bo = bd(be, aN)
299305
300-let bn = L(bg, o())
301-
302-let bo = fromBase58String(bn)
303-
304-let bp = getStringValue(bg, p())
306+let bp = N(bi, o())
305307
306308 let bq = fromBase58String(bp)
307309
308-let br = getStringValue(bh, q())
310+let br = getStringValue(bi, p())
309311
310312 let bs = fromBase58String(br)
311313
312-@Callable(bt)
313-func reverseSwapLimitREADONLY (bu) = {
314- let bv = if ((0 >= bu))
314+let bt = getStringValue(bj, q())
315+
316+let bu = fromBase58String(bt)
317+
318+@Callable(bv)
319+func reverseSwapLimitREADONLY (bw,bx) = {
320+ let by = aa(W(invoke(bh, "calcNeutinoMetricsREADONLY", nil, nil))[az])
321+ let bz = if ((0 >= bw))
315322 then 0
316323 else {
317- let bw = toBigInt(O(bf, y()))
318- let bx = toBigInt(O(bf, z()))
319- let by = fraction(toBigInt(bu), f, bw)
320- let bz = fraction(h, h, bx)
321- toInt(pow(by, 8, bz, 16, 6, CEILING))
324+ let bA = toBigInt(Q(bh, if (bx)
325+ then y()
326+ else A()))
327+ let bB = toBigInt(Q(bh, if (bx)
328+ then z()
329+ else B()))
330+ let bC = if (bx)
331+ then fraction(toBigInt(bw), f, bA)
332+ else fraction(fraction(toBigInt(bw), f, bA), c, toBigInt(by))
333+ let bD = fraction(h, h, bB)
334+ toInt(pow(bC, 8, bD, 16, 6, CEILING))
322335 }
323- $Tuple2(nil, bv)
336+ $Tuple2(nil, bz)
324337 }
325338
326339
327340
328-@Callable(bt)
329-func gnsbtInfoINTERNAL (bA,bB,bC) = {
330- let bD = if ((bA != ""))
331- then addressFromStringValue(bA)
341+@Callable(bv)
342+func gnsbtInfoINTERNAL (bE,bF,bG) = {
343+ let bH = if ((bE != ""))
344+ then addressFromStringValue(bE)
332345 else this
333- let bE = getIntegerValue(be, E())
334- let bF = bB
335- let bG = Y(invoke(bl, "gnsbtFromSurfSYSREADONLY", [bC], nil))
336- let bH = (bF + bG)
337- let bI = ae(invoke(bg, "swapParamsByUserSYSREADONLY", [bA, 0], nil))
338- let bJ = bI._3
339- let bK = bI._4
340- let bL = bI._5
341- let bM = bI._6
342- let bN = bI._7
343- let bO = ae(invoke(bg, "swapParamsByUserSYSREADONLY", [bA, bH], nil))
344- let bP = bO._3
345- let bQ = bO._4
346- let bR = bO._5
347- let bS = bO._6
348- let bT = bO._7
349- let bU = if ((bA != ""))
350- then assetBalance(bD, bq)
346+ let bI = getIntegerValue(bg, G())
347+ let bJ = bF
348+ let bK = aa(invoke(bn, "gnsbtFromSurfSYSREADONLY", [bG], nil))
349+ let bL = (bJ + bK)
350+ let bM = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, 0], nil))
351+ let bN = bM._3
352+ let bO = bM._4
353+ let bP = bM._5
354+ let bQ = bM._6
355+ let bR = bM._7
356+ let bS = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, bL], nil))
357+ let bT = bS._3
358+ let bU = bS._4
359+ let bV = bS._5
360+ let bW = bS._6
361+ let bX = bS._7
362+ let bY = if ((bE != ""))
363+ then assetBalance(bH, bs)
351364 else 0
352- let bV = if ((bA != ""))
353- then assetBalance(bD, bs)
365+ let bZ = if ((bE != ""))
366+ then assetBalance(bH, bu)
354367 else 0
355- let bW = if ((bB >= 0))
356- then bB
368+ let ca = if ((bF >= 0))
369+ then bF
357370 else {
358- let bX = U(invoke(bk, "nsbtUnstakingSYSREADONLY", [bA, (-1 * bB)], nil))
359- let bY = Y(bX[2])
360- let bZ = -(bY)
361- bZ
371+ let cb = W(invoke(bm, "nsbtUnstakingSYSREADONLY", [bE, (-1 * bF)], nil))
372+ let cc = aa(cb[2])
373+ let cd = -(cc)
374+ cd
362375 }
363- let ca = (bU - bW)
364- let cb = (bV - bC)
365- let cc = U(invoke(bm, "gnsbtInfoSYSREADONLY", [bA, bB, bC], nil))
366- let cd = Y(cc[0])
367- let ce = Y(cc[1])
368- let cf = U(cc[2])
369- let cg = U(cc[3])
370- let ch = Y(cc[4])
371- let ci = Y(cc[5])
372- let cj = Y(cf[2])
373- let ck = Y(cg[2])
374- let cl = (cj + bF)
375- let cm = (ck + bG)
376- let cn = Y(cf[3])
377- let co = Y(cg[3])
378- let cp = 0
379- let cq = co
380- let cr = (cn + bF)
381- let cs = (co + bG)
382- let ct = cs
383- let cu = fraction(cj, d, (cn + cp))
384- let cv = fraction(cl, d, (cr + cp))
385- let cw = fraction((cj + ck), d, ((cn + cp) + cq))
386- let cx = fraction((cl + cm), d, ((cr + cp) + ct))
387- let cy = if ((ch == 0))
376+ let ce = (bY - ca)
377+ let cf = (bZ - bG)
378+ let cg = W(invoke(bo, "gnsbtInfoSYSREADONLY", [bE, bF, bG], nil))
379+ let ch = aa(cg[0])
380+ let ci = aa(cg[1])
381+ let cj = W(cg[2])
382+ let ck = W(cg[3])
383+ let cl = aa(cg[4])
384+ let cm = aa(cg[5])
385+ let cn = aa(cj[2])
386+ let co = aa(ck[2])
387+ let cp = (cn + bJ)
388+ let cq = (co + bK)
389+ let cr = aa(cj[3])
390+ let cs = aa(ck[3])
391+ let ct = 0
392+ let cu = cs
393+ let cv = (cr + bJ)
394+ let cw = (cs + bK)
395+ let cx = cw
396+ let cy = fraction(cn, d, (cr + ct))
397+ let cz = fraction(cp, d, (cv + ct))
398+ let cA = fraction((cn + co), d, ((cr + ct) + cu))
399+ let cB = fraction((cp + cq), d, ((cv + ct) + cx))
400+ let cC = if ((cl == 0))
388401 then height
389- else ch
390- let cz = if ((ci == 0))
402+ else cl
403+ let cD = if ((cm == 0))
391404 then height
392- else ci
393- $Tuple2(nil, [0, bU, bV, ca, cb, cj, ck, cl, cm, cn, co, cr, cs, bN, bM, bT, bS, bJ, bP, cu, cv, cw, cx, cy, cz])
405+ else cm
406+ $Tuple2(nil, [0, bY, bZ, ce, cf, cn, co, cp, cq, cr, cs, cv, cw, bR, bQ, bX, bW, bN, bT, cy, cz, cA, cB, cC, cD])
394407 }
395408
396409
397410
398-@Callable(bt)
399-func gnsbtInfoREADONLY (bA,bB,bC) = {
400- let cA = U(invoke(this, "gnsbtInfoINTERNAL", [bA, bB, bC], nil))
401- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(Y(cA[1])), toString(Y(cA[2])), toString(Y(cA[3])), toString(Y(cA[4])), toString(Y(cA[5])), toString(Y(cA[6])), toString(Y(cA[7])), toString(Y(cA[8])), toString(Y(cA[9])), toString(Y(cA[10])), toString(Y(cA[11])), toString(Y(cA[12])), toString(Y(cA[13])), toString(Y(cA[14])), toString(Y(cA[15])), toString(Y(cA[16])), toString(Y(cA[17])), toString(Y(cA[18])), toString(Y(cA[19])), toString(Y(cA[20])), toString(Y(cA[21])), toString(Y(cA[22])), toString(Y(cA[23])), toString(Y(cA[24]))], j))
411+@Callable(bv)
412+func gnsbtInfoREADONLY (bE,bF,bG) = {
413+ let cE = W(invoke(this, "gnsbtInfoINTERNAL", [bE, bF, bG], nil))
414+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(aa(cE[1])), toString(aa(cE[2])), toString(aa(cE[3])), toString(aa(cE[4])), toString(aa(cE[5])), toString(aa(cE[6])), toString(aa(cE[7])), toString(aa(cE[8])), toString(aa(cE[9])), toString(aa(cE[10])), toString(aa(cE[11])), toString(aa(cE[12])), toString(aa(cE[13])), toString(aa(cE[14])), toString(aa(cE[15])), toString(aa(cE[16])), toString(aa(cE[17])), toString(aa(cE[18])), toString(aa(cE[19])), toString(aa(cE[20])), toString(aa(cE[21])), toString(aa(cE[22])), toString(aa(cE[23])), toString(aa(cE[24]))], j))
402415 }
403416
404417
405418
406-@Callable(bt)
407-func rewardInfoREADONLY (bA) = {
408- let cB = U(invoke(bm, "gnsbtRewardsSYSREADONLY", [bA], nil))
409- $Tuple2(nil, makeString(["%s%s", aa(cB[0]), aa(cB[1])], j))
419+@Callable(bv)
420+func rewardInfoREADONLY (bE) = {
421+ let cF = W(invoke(bo, "gnsbtRewardsSYSREADONLY", [bE], nil))
422+ $Tuple2(nil, makeString(["%s%s", ac(cF[0]), ac(cF[1])], j))
410423 }
411424
412425
413426
414-@Callable(bt)
415-func mergeNsbtREADONLY (cC,cD) = {
416- let cf = U(invoke(bk, "nsbtStakingSYSREADONLY", [cC, cD], nil))
417- let cE = Y(cf[0])
418- let cF = if ((0 >= cE))
427+@Callable(bv)
428+func mergeNsbtREADONLY (cG,cH) = {
429+ let cj = W(invoke(bm, "nsbtStakingSYSREADONLY", [cG, cH], nil))
430+ let cI = aa(cj[0])
431+ let cJ = if ((0 >= cI))
419432 then -1
420- else Y(cf[2])
421- let cG = ah(cF)
422- let cH = if ((0 >= cD))
423- then cF
433+ else aa(cj[2])
434+ let cK = aj(cJ)
435+ let cL = if ((0 >= cH))
436+ then cJ
424437 else {
425- let cI = O(bk, H())
426- Y(invoke(bf, "mergeStakesREADONLY", [cE, cF, cD, height, cI], nil))
438+ let cM = Q(bm, J())
439+ aa(invoke(bh, "mergeStakesREADONLY", [cI, cJ, cH, height, cM], nil))
427440 }
428- let cJ = ah(cH)
429- $Tuple2(nil, makeString(["%d%d%d%d", toString(cF), toString(cG), toString(cH), toString(cJ)], j))
441+ let cN = aj(cL)
442+ $Tuple2(nil, makeString(["%d%d%d%d", toString(cJ), toString(cK), toString(cL), toString(cN)], j))
430443 }
431444
432445
433446
434-@Callable(bt)
435-func swapLimitCalculatorREADONLY (cK,cL,cM) = {
436- let cN = if ((cK == ""))
447+@Callable(bv)
448+func swapLimitCalculatorREADONLY (cO,cP,cQ) = {
449+ let cR = if ((cO == ""))
437450 then 0
438- else Y(ae(invoke(bg, "swapParamsByUserSYSREADONLY", [cK, 0], nil))._4)
439- let cO = if ((cM == "WAVES"))
440- then T(cL, getIntegerValue(be, E()))
441- else cL
442- let cP = Y(invoke(this, "reverseSwapLimitREADONLY", [cO], nil))
443- let cQ = (cP - cN)
444- $Tuple2(nil, makeString(["%s%s", toString(cN), toString(cQ)], j))
451+ else aa(ag(invoke(bi, "swapParamsByUserSYSREADONLY", [cO, 0], nil))._4)
452+ let cS = if ((cQ == "WAVES"))
453+ then V(cP, getIntegerValue(bg, G()))
454+ else cP
455+ let cT = aa(invoke(this, "reverseSwapLimitREADONLY", [cS, (cQ == "WAVES")], nil))
456+ let cU = (cT - cR)
457+ $Tuple2(nil, makeString(["%s%s", toString(cR), toString(cU)], j))
445458 }
446459
447460
448461
449-@Callable(bt)
450-func swapInfoREADONLY (bA,R,cM) = {
451- let cR = U(invoke(bf, "calcNeutinoMetricsREADONLY", nil, nil))
452- let S = Y(cR[ap])
453- let bI = ae(invoke(bg, "swapParamsByUserSYSREADONLY", [bA, 0], nil))
454- let bJ = bI._3
455- let bM = bI._6
456- let bN = bI._7
457- let cS = fromBase58String(cM)
458- let cT = if ((cS == n))
462+@Callable(bv)
463+func swapInfoREADONLY (bE,T,cQ) = {
464+ let cV = W(invoke(bh, "calcNeutinoMetricsREADONLY", nil, nil))
465+ let U = aa(cV[ar])
466+ let bM = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, 0], nil))
467+ let bN = bM._3
468+ let bQ = bM._6
469+ let bR = bM._7
470+ let cW = fromBase58String(cQ)
471+ let cX = if ((cW == n))
459472 then "waves"
460- else if ((cS == bo))
473+ else if ((cW == bq))
461474 then "neutrino"
462- else throw(("Can't swap assetId=" + cM))
463- let cU = ag(invoke(bg, "calcWithdrawResultSYSREADONLY", [cT, R, S], nil))
464- let cV = cU._1
465- let cW = cU._2
466- let cX = cU._3
467- let cY = cU._4
468- let cZ = cU._5
469- let da = cU._6
470- let db = cU._7
471- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cV), toString(cX), toString(da), toString(S), toString(bJ), toString(bM), toString(bN), toString(cY)], j))
475+ else throw(("Can't swap assetId=" + cQ))
476+ let cY = ai(invoke(bi, "calcWithdrawResultSYSREADONLY", [cX, T, U], nil))
477+ let cZ = cY._1
478+ let da = cY._2
479+ let db = cY._3
480+ let dc = cY._4
481+ let dd = cY._5
482+ let de = cY._6
483+ let df = cY._7
484+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cZ), toString(db), toString(de), toString(U), toString(bN), toString(bQ), toString(bR), toString(dc)], j))
472485 }
473486
474487

github/deemru/w8io/026f985 
171.76 ms