tx · 5tkknVVKLuUkW7vV7LkVXnvq6jiRzHUCsD21GNHTuA7Q

3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi:  -0.02700000 Waves

2023.02.10 14:32 [2443487] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves

{ "type": 13, "id": "5tkknVVKLuUkW7vV7LkVXnvq6jiRzHUCsD21GNHTuA7Q", "fee": 2700000, "feeAssetId": null, "timestamp": 1676028858351, "version": 2, "chainId": 84, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "pGjWURuoVDMvQY7y24wVmsSygNQ6pYjNvutRSypsbauRwZrb6wnAMarDyVE9wKtRKfPa3DyoNjg8jb3rioj9TP5", "47r9aqE9363EGZ3pY1PS6TMUi3easaiogBH4NqQNxmZec1hGKrZXthgZFR3P59BmMLf6cNbwDDQVNrfY64QWsEXa", "5cWrPA1R5q7WCYqnB6w9uzvLTABaZcCpU77FEK9DM19kDuGzcg6ULw6SXv8uyMUwRYEk3v7zX3phVQd3KNgx8di3" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAAB1AAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAAAAAAA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BZG1pbnNMaXN0AAAAAAAAAAACAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAMJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADy52SHA==", "height": 2443487, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 31k1wxKGSaXgRpYWrvf2WQQwvSzchRMC2YXdaykP92Mt Next: 2EzqEsav8AicpC9xCBhHFkQwfMoNWi9zqtqNVbXWZj9M Diff:
OldNewDifferences
103103 func T () = "surf_asset_id"
104104
105105
106-func U () = "balance_lock_"
106+func U () = "swaps_timeframe"
107107
108108
109-func V () = (U() + "waves")
109+func V (W) = makeString(["%s%s", "userLastQuickSwapHeight", W], d)
110110
111111
112-func W () = (U() + "neutrino")
112+func X (W) = makeString(["%s%s", "quickSwapUserSpentInPeriod", W], d)
113113
114114
115-func X () = "swaps_timeframe"
115+func Y () = "%s%s__common__basketAssets"
116116
117117
118-func Y (Z) = makeString(["%s%s", "userLastQuickSwapHeight", Z], d)
118+func Z () = "price"
119119
120120
121-func aa (Z) = makeString(["%s%s", "quickSwapUserSpentInPeriod", Z], d)
121+func aa (ab) = ("%s%s%s__common__priceByAsset__" + ab)
122122
123123
124-func ab () = "%s%s__common__basketAssets"
124+let ac = "rpd_balance"
125+
126+func ad (ae,ab) = makeString([ac, ab, ae], "_")
125127
126128
127-func ac () = "price"
129+func af (ag,ah) = valueOrErrorMessage(getString(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], ""))
128130
129131
130-func ad (ae) = "%s%s__common__priceByAsset"
132+func ai (ag,ah) = valueOrErrorMessage(getInteger(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], ""))
131133
132134
133-let af = "rpd_balance"
134-
135-func ag (ah,ae) = makeString([af, ae, ah], "_")
135+func aj (ag,ah) = valueOrElse(getInteger(ag, ah), 0)
136136
137137
138-func ai (aj,ak) = valueOrErrorMessage(getString(aj, ak), makeString(["mandatory ", toString(aj), ".", ak, " is not defined"], ""))
138+func ak (ag,ah) = valueOrErrorMessage(getBoolean(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], ""))
139139
140140
141-func al (aj,ak) = valueOrErrorMessage(getInteger(aj, ak), makeString(["mandatory ", toString(aj), ".", ak, " is not defined"], ""))
141+func al (am,an) = fraction(am, j, an)
142142
143143
144-func am (aj,ak) = valueOrElse(getInteger(aj, ak), 0)
144+func ao (am,an) = fraction(am, an, j)
145145
146146
147-func an (aj,ak) = valueOrErrorMessage(getBoolean(aj, ak), makeString(["mandatory ", toString(aj), ".", ak, " is not defined"], ""))
147+func ap (aq,ar) = fraction(toBigInt(aq), m, toBigInt(ar))
148148
149149
150-func ao (ap,aq) = fraction(ap, j, aq)
150+func as (at,au) = toInt(fraction(at, toBigInt(au), m))
151151
152152
153-func ar (ap,aq) = fraction(ap, aq, j)
154-
155-
156-func as (at,au) = fraction(toBigInt(at), m, toBigInt(au))
157-
158-
159-func av (aw,ax) = toInt(fraction(aw, toBigInt(ax), m))
160-
161-
162-func ay (aw) = {
163- let az = aw
164- if ($isInstanceOf(az, "List[Any]"))
153+func av (at) = {
154+ let aw = at
155+ if ($isInstanceOf(aw, "List[Any]"))
165156 then {
166- let aA = az
167- aA
157+ let ax = aw
158+ ax
168159 }
169160 else throw("fail to cast into List[Any]")
170161 }
171162
172163
173-func aB (aw) = {
174- let az = aw
175- if ($isInstanceOf(az, "Int"))
164+func ay (at) = {
165+ let aw = at
166+ if ($isInstanceOf(aw, "Int"))
176167 then {
177- let aC = az
178- aC
168+ let az = aw
169+ az
179170 }
180171 else throw("fail to cast into Int")
181172 }
182173
183174
184-func aD (aw) = {
185- let az = aw
186- if ($isInstanceOf(az, "String"))
175+func aA (at) = {
176+ let aw = at
177+ if ($isInstanceOf(aw, "String"))
187178 then {
188- let aE = az
189- aE
179+ let aB = aw
180+ aB
190181 }
191182 else throw("fail to cast into String")
192183 }
193184
194185
195-func aF (aG) = {
196- let az = aG
197- if ($isInstanceOf(az, "(Int, Int, Int, Int)"))
186+func aC (aD) = {
187+ let aw = aD
188+ if ($isInstanceOf(aw, "(Int, Int, Int, Int)"))
198189 then {
199- let aH = az
200- aH
190+ let aE = aw
191+ aE
201192 }
202193 else throw("fail to cast into PriceSTRUCT")
203194 }
204195
205196
206-let aI = 1
197+let aF = 1
207198
208-let aJ = 2
199+let aG = 2
209200
210-let aK = 3
201+let aH = 3
211202
212-let aL = 4
203+let aI = 4
213204
214-let aM = 5
205+let aJ = 5
215206
216-let aN = 6
207+let aK = 6
217208
218-let aO = 7
209+let aL = 7
219210
220-let aP = 8
211+let aM = 8
221212
222-let aQ = 9
213+let aN = 9
223214
224-let aR = 10
215+let aO = 10
225216
226-let aS = 11
217+let aP = 11
227218
228-let aT = 12
219+let aQ = 12
229220
230-let aU = 13
221+let aR = 13
231222
232-let aV = 14
223+let aS = 14
233224
234-func aW () = "%s%s__config__controlAddress"
225+func aT () = "%s%s__config__controlAddress"
235226
236227
237-func aX () = "%s__controlConfig"
228+func aU () = "%s__controlConfig"
238229
239230
240-func aY (aZ) = split(ai(aZ, aX()), d)
231+func aV (aW) = split(af(aW, aU()), d)
241232
242233
243-func ba (bb,bc) = valueOrErrorMessage(addressFromString(bb[bc]), ("Control cfg doesn't contain address at index " + toString(bc)))
234+func aX (aY,aZ) = valueOrErrorMessage(addressFromString(aY[aZ]), ("Control cfg doesn't contain address at index " + toString(aZ)))
244235
245236
246-let bd = addressFromStringValue(valueOrElse(getString(this, aW()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
237+let ba = addressFromStringValue(valueOrElse(getString(this, aT()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
247238
248-let bb = aY(bd)
239+let aY = aV(ba)
249240
250-let be = ba(bb, aI)
241+let bb = aX(aY, aF)
251242
252-let bf = ba(bb, aJ)
243+let bc = aX(aY, aG)
253244
254-let bg = ba(bb, aM)
245+let bd = aX(aY, aJ)
255246
256-let bh = ba(bb, aK)
247+let be = aX(aY, aH)
257248
258-let bi = ba(bb, aV)
249+let bf = aX(aY, aS)
259250
260-let bj = ai(be, R())
251+let bg = af(bb, R())
261252
262-let bk = fromBase58String(bj)
253+let bh = fromBase58String(bg)
263254
264-let bl = fromBase58String(getStringValue(be, S()))
255+let bi = fromBase58String(getStringValue(bb, S()))
265256
266-let bm = fromBase58String(getStringValue(bf, T()))
257+let bj = fromBase58String(getStringValue(bc, T()))
267258
268-func bn () = {
269- let bo = valueOrElse(getString(bd, "%s%s__control__outOfMarketAddressList"), "")
270- if ((bo == ""))
259+func bk () = "balance_lock_"
260+
261+
262+func bl (bm,ab) = makeString(["%s%s%s", "balanceLock", bm, ab], d)
263+
264+
265+func bn (ab) = bl("outNeutrino", ab)
266+
267+
268+func bo () = bl("outMulti", bg)
269+
270+
271+func bp () = (bk() + "neutrino")
272+
273+
274+func bq () = (bk() + "waves")
275+
276+
277+func br () = {
278+ let bs = valueOrElse(getString(ba, "%s%s__control__outOfMarketAddressList"), "")
279+ if ((bs == ""))
271280 then 0
272281 else {
273- func bp (bq,br) = ((bq + valueOrElse(getInteger(bh, ag(br, bj)), 0)) + assetBalance(addressFromStringValue(br), bk))
282+ func bt (bu,bv) = ((bu + valueOrElse(getInteger(be, ad(bv, bg)), 0)) + assetBalance(addressFromStringValue(bv), bh))
274283
275- let bs = split(bo, d)
276- let bt = size(bs)
277- let bu = 0
278- func bv (bw,bx) = if ((bx >= bt))
279- then bw
280- else bp(bw, bs[bx])
284+ let bw = split(bs, d)
285+ let bx = size(bw)
286+ let by = 0
287+ func bz (bA,bB) = if ((bB >= bx))
288+ then bA
289+ else bt(bA, bw[bB])
281290
282- func by (bw,bx) = if ((bx >= bt))
283- then bw
291+ func bC (bA,bB) = if ((bB >= bx))
292+ then bA
284293 else throw("List size exceeds 7")
285294
286- by(bv(bv(bv(bv(bv(bv(bv(bu, 0), 1), 2), 3), 4), 5), 6), 7)
295+ bC(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7)
287296 }
288297 }
289298
290299
291-func bz () = aF(invoke(bi, "price", [4], nil))._2
300+func bD () = aC(invoke(bf, "price", [4], nil))._2
292301
293302
294-func bA (bB,bC) = {
295- let bD = valueOrElse(getInteger(this, P()), 600000)
296- let bE = valueOrElse(getInteger(this, Q()), 150000)
297- let bF = max([bD, fraction((h + bE), bC, h)])
298- let bG = min([bF, h])
299- fraction(bB, h, bG)
303+func bE (bF,bG) = {
304+ let bH = valueOrElse(getInteger(this, P()), 600000)
305+ let bI = valueOrElse(getInteger(this, Q()), 150000)
306+ let bJ = max([bH, fraction((h + bI), bG, h)])
307+ let bK = min([bJ, h])
308+ fraction(bF, h, bK)
300309 }
301310
302311
303-let bH = getIntegerValue(bd, ac())
312+let bL = getIntegerValue(ba, Z())
304313
305-let bC = bz()
314+let bG = bD()
306315
307-let bI = bA(bH, bC)
316+let bM = bE(bL, bG)
308317
309-let bJ = valueOrElse(getInteger(be, W()), 0)
318+let bN = (valueOrElse(getInteger(bb, bp()), 0) + valueOrElse(getInteger(bb, bo()), 0))
310319
311-let bK = valueOrElse(getInteger(be, V()), 0)
320+let bO = (valueOrElse(getInteger(bb, bq()), 0) + valueOrElse(getInteger(bb, bn("WAVES")), 0))
312321
313-let bL = (wavesBalance(be).regular - bK)
314-
315-let bM = ar(bL, bI)
316-
317-let bN = bn()
318-
319-let bO = (((bJ + value(assetInfo(bk)).quantity) - assetBalance(be, bk)) - assetBalance(bg, bk))
320-
321-let bP = (bO - bN)
322-
323-let bQ = if ((bP == 0))
324- then 0
325- else fraction(bM, h, bP)
326-
327-func bR () = {
328- let bS = valueOrElse(getString(be, ab()), "WAVES")
329- let bT = split(bS, d)
330- func bU (bV,ae) = {
331- let bW = fromBase58String(ae)
332- let bX = if ((bW == n))
333- then bL
334- else assetBalance(be, bW)
335- let bY = valueOrElse(getInteger(bd, ad(ae)), h)
336- let bZ = fraction(bX, bY, j)
337- $Tuple2((bV._1 :+ $Tuple4(ae, bX, bZ, bY)), (bV._2 + bZ))
338- }
339-
340- let ca = {
341- let bs = bT
342- let bt = size(bs)
343- let bu = $Tuple2(nil, 0)
344- func bv (bw,bx) = if ((bx >= bt))
345- then bw
346- else bU(bw, bs[bx])
347-
348- func by (bw,bx) = if ((bx >= bt))
349- then bw
350- else throw("List size exceeds 10")
351-
352- by(bv(bv(bv(bv(bv(bv(bv(bv(bv(bv(bu, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
353- }
354- func cb (bV,cc) = {
355- let cd = if ((ca._2 == 0))
356- then h
357- else fraction(cc._3, h, ca._2)
358- (bV :+ makeString([cc._1, toString(cd), toString(cc._4), toString(cc._2)], ":"))
359- }
360-
361- let ce = if ((bP == 0))
362- then 0
363- else fraction(ca._2, h, bP)
364- $Tuple3(makeString({
365- let bs = ca._1
366- let bt = size(bs)
367- let bu = nil
368- func cf (bw,bx) = if ((bx >= bt))
369- then bw
370- else cb(bw, bs[bx])
371-
372- func cg (bw,bx) = if ((bx >= bt))
373- then bw
374- else throw("List size exceeds 10")
375-
376- cg(cf(cf(cf(cf(cf(cf(cf(cf(cf(cf(bu, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
377- }, "_"), ce, ca._2)
322+func bP (ab) = {
323+ let bQ = fromBase58String(ab)
324+ if ((bQ == n))
325+ then (wavesBalance(bb).regular - bO)
326+ else (assetBalance(bb, bQ) - valueOrElse(getInteger(bb, bn(ab)), 0))
378327 }
379328
380329
381-@Callable(ch)
382-func constructorV1 (ci,cj,ck) = if ((ch.caller != this))
330+func bR (ab) = {
331+ let bQ = fromBase58String(ab)
332+ let bS = bP(ab)
333+ if ((bQ == n))
334+ then ao(bS, bM)
335+ else {
336+ let bT = valueOrElse(getInteger(ba, aa(ab)), h)
337+ fraction(bS, bT, j)
338+ }
339+ }
340+
341+
342+let bU = br()
343+
344+let bV = (((bN + value(assetInfo(bh)).quantity) - assetBalance(bb, bh)) - assetBalance(bd, bh))
345+
346+let bW = (bV - bU)
347+
348+func bX () = {
349+ let bY = split(valueOrElse(getString(bb, Y()), "WAVES"), d)
350+ func bZ (ca,ab) = (ca + fraction(bR(ab), h, bW))
351+
352+ let bw = bY
353+ let bx = size(bw)
354+ let by = 0
355+ func bz (bA,bB) = if ((bB >= bx))
356+ then bA
357+ else bZ(bA, bw[bB])
358+
359+ func bC (bA,bB) = if ((bB >= bx))
360+ then bA
361+ else throw("List size exceeds 10")
362+
363+ bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
364+ }
365+
366+
367+let cb = if ((bW == 0))
368+ then 0
369+ else bX()
370+
371+func cc () = {
372+ let cd = valueOrElse(getString(bb, Y()), "WAVES")
373+ let bY = split(cd, d)
374+ func ce (ca,ab) = {
375+ let bS = bP(ab)
376+ let bT = valueOrElse(getInteger(ba, aa(ab)), h)
377+ let cf = fraction(bS, bT, j)
378+ $Tuple2((ca._1 :+ $Tuple4(ab, bS, cf, bT)), (ca._2 + cf))
379+ }
380+
381+ let cg = {
382+ let bw = bY
383+ let bx = size(bw)
384+ let by = $Tuple2(nil, 0)
385+ func bz (bA,bB) = if ((bB >= bx))
386+ then bA
387+ else ce(bA, bw[bB])
388+
389+ func bC (bA,bB) = if ((bB >= bx))
390+ then bA
391+ else throw("List size exceeds 10")
392+
393+ bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
394+ }
395+ func ch (ca,ci) = {
396+ let cj = if ((cg._2 == 0))
397+ then h
398+ else fraction(ci._3, h, cg._2)
399+ (ca :+ makeString([ci._1, toString(cj), toString(ci._4), toString(ci._2)], ":"))
400+ }
401+
402+ let ck = if ((bW == 0))
403+ then 0
404+ else fraction(cg._2, h, bW)
405+ $Tuple3(makeString({
406+ let bw = cg._1
407+ let bx = size(bw)
408+ let by = nil
409+ func cl (bA,bB) = if ((bB >= bx))
410+ then bA
411+ else ch(bA, bw[bB])
412+
413+ func cm (bA,bB) = if ((bB >= bx))
414+ then bA
415+ else throw("List size exceeds 10")
416+
417+ cm(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
418+ }, "_"), ck, cg._2)
419+ }
420+
421+
422+@Callable(cn)
423+func constructorV1 (co,cp,cq) = if ((cn.caller != this))
383424 then throw("not authorized")
384- else [StringEntry(K(), ci), IntegerEntry(L(), ck)]
425+ else [StringEntry(K(), co), IntegerEntry(L(), cq)]
385426
386427
387428
388-@Callable(ch)
389-func calcSwapLimitREADONLY (cl) = {
390- let cm = if ((0 >= cl))
429+@Callable(cn)
430+func calcSwapLimitREADONLY (cr) = {
431+ let cs = if ((0 >= cr))
391432 then 0
392433 else {
393- let cn = toBigInt(al(this, L()))
394- let co = toBigInt(al(this, M()))
395- let cp = pow(toBigInt(cl), 6, co, 16, 8, CEILING)
396- toInt(fraction(cn, cp, l))
434+ let ct = toBigInt(ai(this, L()))
435+ let cu = toBigInt(ai(this, M()))
436+ let cv = pow(toBigInt(cr), 6, cu, 16, 8, CEILING)
437+ toInt(fraction(ct, cv, l))
397438 }
398- let cq = ao(cm, bH)
399- let cr = if ((0 >= cl))
439+ let cw = al(cs, bL)
440+ let cx = if ((0 >= cr))
400441 then 0
401442 else {
402- let cn = toBigInt(al(this, N()))
403- let co = toBigInt(al(this, O()))
404- let cs = toBigInt(bQ)
405- let cp = pow(toBigInt(cl), 6, co, 16, 8, CEILING)
406- toInt(fraction(fraction(cn, cp, l), cs, i))
443+ let ct = toBigInt(ai(this, N()))
444+ let cu = toBigInt(ai(this, O()))
445+ let cy = toBigInt(cb)
446+ let cv = pow(toBigInt(cr), 6, cu, 16, 8, CEILING)
447+ toInt(fraction(fraction(ct, cv, l), cy, i))
407448 }
408- $Tuple2(nil, [cm, cq, cr])
449+ $Tuple2(nil, [cs, cw, cx])
409450 }
410451
411452
412453
413-@Callable(ch)
414-func calculateKREADONLY (ct,cu,aq,cv,cw) = {
415- let cx = toBigInt(2718281)
416- let cy = 6
417- let cz = valueOrElse(getInteger(bf, "nsbtCurveParam_a"), 3)
418- let cA = valueOrElse(getInteger(bf, "nsbtCurveParam_b"), ((3 * h) / 10))
419- let cB = ar(ct, aq)
420- let cC = fraction(cB, j, cu)
421- if ((cC > 10678564816))
422- then throw((("BR=" + toString(cC)) + " > 10678.564816% will overflow exponent"))
454+@Callable(cn)
455+func calculateKREADONLY (cz,cA,an,cB,cC) = {
456+ let cD = toBigInt(2718281)
457+ let cE = 6
458+ let cF = valueOrElse(getInteger(bc, "nsbtCurveParam_a"), 3)
459+ let cG = valueOrElse(getInteger(bc, "nsbtCurveParam_b"), ((3 * h) / 10))
460+ let cH = ao(cz, an)
461+ let cI = fraction(cH, j, cA)
462+ if ((cI > 10678564816))
463+ then throw((("BR=" + toString(cI)) + " > 10678.564816% will overflow exponent"))
423464 else {
424- let cD = (cz * (cC - j))
425- let cE = pow(cx, cy, toBigInt(cD), b, c, DOWN)
426- let cF = fraction(toBigInt(cA), cE, i)
427- $Tuple2(nil, [cz, cA, cB, cC, cD, toString(cE), toString(cF)])
465+ let cJ = (cF * (cI - j))
466+ let cK = pow(cD, cE, toBigInt(cJ), b, c, DOWN)
467+ let cL = fraction(toBigInt(cG), cK, i)
468+ $Tuple2(nil, [cF, cG, cH, cI, cJ, toString(cK), toString(cL)])
428469 }
429470 }
430471
431472
432473
433-@Callable(ch)
434-func curveFunctionREADONLY (cG) = {
435- let cH = ay(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
436- let aq = aB(cH[v])
437- let ct = aB(cH[y])
438- let cu = aB(cH[A])
439- let cw = aB(cH[E])
440- let cv = aB(cH[F])
441- let cI = ay(invoke(this, "calculateKREADONLY", [ct, cu, aq, cv, cw], nil))
442- let cF = parseBigIntValue(aD(cI[u]))
443- let cJ = ar(cG, aq)
444- let cK = toBigInt(cv)
445- let cL = toBigInt((cv - cw))
446- let cM = fraction(toBigInt(cJ), m, cF)
447- let cN = fraction(cM, cL, cK)
448- let cO = toInt(fraction(cL, cK, (cN + cK)))
449- let cP = ((cv - cw) - cO)
450- $Tuple2(nil, [cP, cJ, ct, cu, cv, cw, aB(cI[o]), aB(cI[p]), aB(cI[q]), aq, aB(cI[r]), aB(cI[s]), cI[t], cI[u], toString(cM), toString(cN), cO])
474+@Callable(cn)
475+func curveFunctionREADONLY (cM) = {
476+ let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
477+ let an = ay(cN[v])
478+ let cz = ay(cN[y])
479+ let cA = ay(cN[A])
480+ let cC = ay(cN[E])
481+ let cB = ay(cN[F])
482+ let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil))
483+ let cL = parseBigIntValue(aA(cO[u]))
484+ let cP = ao(cM, an)
485+ let cQ = toBigInt(cB)
486+ let cR = toBigInt((cB - cC))
487+ let cS = fraction(toBigInt(cP), m, cL)
488+ let cT = fraction(cS, cR, cQ)
489+ let cU = toInt(fraction(cR, cQ, (cT + cQ)))
490+ let cV = ((cB - cC) - cU)
491+ $Tuple2(nil, [cV, cP, cz, cA, cB, cC, ay(cO[o]), ay(cO[p]), ay(cO[q]), an, ay(cO[r]), ay(cO[s]), cO[t], cO[u], toString(cS), toString(cT), cU])
451492 }
452493
453494
454495
455-@Callable(ch)
456-func surfFunctionREADONLY (ap,ae) = if ((0 > ap))
496+@Callable(cn)
497+func surfFunctionREADONLY (am,ab) = if ((0 > am))
457498 then throw("amount should be positive")
458499 else {
459- let aq = bH
460- let cQ = toBigInt(aq)
461- let cR = toBigInt(bL)
462- let cS = bP
463- let cT = toBigInt(cS)
464- if ((bQ >= h))
465- then throw((("BR = " + toString(bQ)) + ", cannot buy SURF"))
500+ let an = bL
501+ let cW = toBigInt(an)
502+ let cX = bP("WAVES")
503+ let cY = toBigInt(cX)
504+ let cZ = bW
505+ let da = toBigInt(cZ)
506+ if ((cb >= h))
507+ then throw((("BR = " + toString(cb)) + ", cannot buy SURF"))
466508 else {
467- let cU = (fraction(cS, j, aq) - bL)
468- let cV = (cS - fraction(bL, aq, j))
469- let cW = if ((ae == bk))
470- then if ((ap > cV))
471- then cV
472- else ap
473- else if ((ae == n))
474- then if ((ap > cU))
475- then cU
476- else ap
509+ let db = (fraction(cZ, j, an) - cX)
510+ let dc = (cZ - fraction(cX, an, j))
511+ let dd = if ((ab == bh))
512+ then if ((am > dc))
513+ then dc
514+ else am
515+ else if ((ab == n))
516+ then if ((am > db))
517+ then db
518+ else am
477519 else 0
478- let cX = toBigInt(cW)
479- if ((ae == bk))
480- then $Tuple2(nil, [toInt(fraction(fraction(cX, k, cQ), (cT - (cX / g)), cR)), 0, cW, bL, cS, bQ, bL, (cS - cW), fraction(ar(bL, aq), h, (cS - cW)), (ap - cW), aq])
481- else if ((ae == n))
482- then $Tuple2(nil, [toInt(fraction(cT, log(fraction((cR + cX), m, cR), 16, f, 16, 16, HALFUP), m)), cW, 0, bL, cS, bQ, (bL + cW), cS, fraction(ar((bL + cW), aq), h, cS), (ap - cW), aq])
520+ let de = toBigInt(dd)
521+ if ((ab == bh))
522+ then $Tuple2(nil, [toInt(fraction(fraction(de, k, cW), (da - (de / g)), cY)), 0, dd, cX, cZ, cb, cX, (cZ - dd), fraction(ao(cX, an), h, (cZ - dd)), (am - dd), an])
523+ else if ((ab == n))
524+ then $Tuple2(nil, [toInt(fraction(da, log(fraction((cY + de), m, cY), 16, f, 16, 16, HALFUP), m)), dd, 0, cX, cZ, cb, (cX + dd), cZ, fraction(ao((cX + dd), an), h, cZ), (am - dd), an])
483525 else throw("Unsupported asset")
484526 }
485527 }
486528
487529
488530
489-@Callable(ch)
490-func calcContractNsbtPriceSYSREADONLY (cY) = {
491- let cH = ay(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
492- let aq = aB(cH[v])
493- let ct = aB(cH[y])
494- let cu = (aB(cH[A]) - cY)
495- let cw = (aB(cH[E]) + cY)
496- let cv = aB(cH[F])
497- let cI = ay(invoke(this, "calculateKREADONLY", [ct, cu, aq, cv, cw], nil))
498- let cZ = parseBigIntValue(aD(cI[u]))
499- let da = fraction(toBigInt(cv), m, toBigInt((cv - cw)))
500- let db = fraction(da, da, m)
501- let dc = fraction(cZ, db, m)
502- let dd = toInt(fraction(dc, toBigInt(h), m))
503- let de = fraction(dd, h, aq)
504- $Tuple2(nil, [dd, de])
531+@Callable(cn)
532+func calcContractNsbtPriceSYSREADONLY (df) = {
533+ let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
534+ let an = ay(cN[v])
535+ let cz = ay(cN[y])
536+ let cA = (ay(cN[A]) - df)
537+ let cC = (ay(cN[E]) + df)
538+ let cB = ay(cN[F])
539+ let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil))
540+ let dg = parseBigIntValue(aA(cO[u]))
541+ let dh = fraction(toBigInt(cB), m, toBigInt((cB - cC)))
542+ let di = fraction(dh, dh, m)
543+ let dj = fraction(dg, di, m)
544+ let dk = toInt(fraction(dj, toBigInt(h), m))
545+ let dl = fraction(dk, h, an)
546+ $Tuple2(nil, [dk, dl])
505547 }
506548
507549
508550
509-@Callable(ch)
551+@Callable(cn)
510552 func calcNeutinoMetricsREADONLY () = {
511- let df = value(assetInfo(bl)).quantity
512- let dg = (df - assetBalance(bf, bl))
513- let dh = value(assetInfo(bm)).quantity
514- let di = bR()
515- $Tuple2(nil, [bH, bJ, bK, bL, bM, bP, bN, bO, bQ, dg, df, dh, bC, bI, di._1, di._2, di._3])
553+ let dm = value(assetInfo(bi)).quantity
554+ let dn = (dm - assetBalance(bc, bi))
555+ let do = value(assetInfo(bj)).quantity
556+ let dp = cc()
557+ $Tuple2(nil, [bL, bN, bO, bP("WAVES"), bR("WAVES"), bW, bU, bV, cb, dn, dm, do, bG, bM, dp._1, dp._2, dp._3])
516558 }
517559
518560
519561
520-@Callable(ch)
521-func getUnstakeComissionAmountREADONLY (ap,dj,dk) = $Tuple2(nil, fraction(ap, pow(2, 0, fraction(-((height - dj)), j, dk), 8, 8, HALFUP), j))
562+@Callable(cn)
563+func getUnstakeComissionAmountREADONLY (am,dq,dr) = $Tuple2(nil, fraction(am, pow(2, 0, fraction(-((height - dq)), j, dr), 8, 8, HALFUP), j))
522564
523565
524566
525-@Callable(ch)
526-func mergeStakesREADONLY (dl,dm,dn,do,dk) = {
527- let dp = fraction(dn, pow(2, 0, fraction((do - dm), j, dk), 8, 8, HALFUP), j)
528- let aG = fraction((dl + dn), j, (dl + dp))
529- $Tuple2(nil, (dm + ((e - (dk * log(aG, 8, 2, 0, 8, HALFUP))) / j)))
567+@Callable(cn)
568+func mergeStakesREADONLY (ds,dt,du,dv,dr) = {
569+ let dw = fraction(du, pow(2, 0, fraction((dv - dt), j, dr), 8, 8, HALFUP), j)
570+ let aD = fraction((ds + du), j, (ds + dw))
571+ $Tuple2(nil, (dt + ((e - (dr * log(aD, 8, 2, 0, 8, HALFUP))) / j)))
530572 }
531573
532574
533-@Verifier(dq)
534-func dr () = {
535- let ds = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d)
536- let dt = split(valueOrElse(getString(bd, "%s__multisig"), ds), d)
537- let du = ((((if (sigVerify(dq.bodyBytes, dq.proofs[0], fromBase58String(dt[0])))
575+@Verifier(dx)
576+func dy () = {
577+ let dz = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d)
578+ let dA = split(valueOrElse(getString(ba, "%s__multisig"), dz), d)
579+ let dB = ((((if (sigVerify(dx.bodyBytes, dx.proofs[0], fromBase58String(dA[0])))
538580 then 1
539- else 0) + (if (sigVerify(dq.bodyBytes, dq.proofs[1], fromBase58String(dt[1])))
581+ else 0) + (if (sigVerify(dx.bodyBytes, dx.proofs[1], fromBase58String(dA[1])))
540582 then 1
541- else 0)) + (if (sigVerify(dq.bodyBytes, dq.proofs[2], fromBase58String(dt[2])))
583+ else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[2], fromBase58String(dA[2])))
542584 then 1
543- else 0)) + (if (sigVerify(dq.bodyBytes, dq.proofs[3], fromBase58String(dt[3])))
585+ else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[3], fromBase58String(dA[3])))
544586 then 2
545587 else 0))
546- (du >= 3)
588+ (dB >= 3)
547589 }
548590
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = ""
55
66 let b = 8
77
88 let c = 16
99
1010 let d = "__"
1111
1212 let e = 50000000
1313
1414 let f = toBigInt(27182818284590452)
1515
1616 let g = toBigInt(2)
1717
1818 let h = 1000000
1919
2020 let i = toBigInt(1000000)
2121
2222 let j = 100000000
2323
2424 let k = toBigInt(100000000)
2525
2626 let l = toBigInt(10000000000)
2727
2828 let m = toBigInt(10000000000000000)
2929
3030 let n = fromBase58String("WAVES")
3131
3232 let o = 0
3333
3434 let p = 1
3535
3636 let q = 2
3737
3838 let r = 3
3939
4040 let s = 4
4141
4242 let t = 5
4343
4444 let u = 6
4545
4646 let v = 0
4747
4848 let w = 1
4949
5050 let x = 2
5151
5252 let y = 3
5353
5454 let z = 4
5555
5656 let A = 5
5757
5858 let B = 6
5959
6060 let C = 7
6161
6262 let D = 8
6363
6464 let E = 9
6565
6666 let F = 10
6767
6868 let G = 11
6969
7070 let H = 12
7171
7272 let I = 13
7373
7474 let J = 14
7575
7676 func K () = "%s%s__config__neutrinoAddress"
7777
7878
7979 func L () = "%s%s__config__swapAParam"
8080
8181
8282 func M () = "%s%s__config__swapBParam"
8383
8484
8585 func N () = "%s%s__config__usdnSwapAParam"
8686
8787
8888 func O () = "%s%s__config__usdnSwapBParam"
8989
9090
9191 func P () = "%s%s__priceAdj__minCoefficient"
9292
9393
9494 func Q () = "%s%s__priceAdj__arbRegulator"
9595
9696
9797 func R () = "neutrino_asset_id"
9898
9999
100100 func S () = "bond_asset_id"
101101
102102
103103 func T () = "surf_asset_id"
104104
105105
106-func U () = "balance_lock_"
106+func U () = "swaps_timeframe"
107107
108108
109-func V () = (U() + "waves")
109+func V (W) = makeString(["%s%s", "userLastQuickSwapHeight", W], d)
110110
111111
112-func W () = (U() + "neutrino")
112+func X (W) = makeString(["%s%s", "quickSwapUserSpentInPeriod", W], d)
113113
114114
115-func X () = "swaps_timeframe"
115+func Y () = "%s%s__common__basketAssets"
116116
117117
118-func Y (Z) = makeString(["%s%s", "userLastQuickSwapHeight", Z], d)
118+func Z () = "price"
119119
120120
121-func aa (Z) = makeString(["%s%s", "quickSwapUserSpentInPeriod", Z], d)
121+func aa (ab) = ("%s%s%s__common__priceByAsset__" + ab)
122122
123123
124-func ab () = "%s%s__common__basketAssets"
124+let ac = "rpd_balance"
125+
126+func ad (ae,ab) = makeString([ac, ab, ae], "_")
125127
126128
127-func ac () = "price"
129+func af (ag,ah) = valueOrErrorMessage(getString(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], ""))
128130
129131
130-func ad (ae) = "%s%s__common__priceByAsset"
132+func ai (ag,ah) = valueOrErrorMessage(getInteger(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], ""))
131133
132134
133-let af = "rpd_balance"
134-
135-func ag (ah,ae) = makeString([af, ae, ah], "_")
135+func aj (ag,ah) = valueOrElse(getInteger(ag, ah), 0)
136136
137137
138-func ai (aj,ak) = valueOrErrorMessage(getString(aj, ak), makeString(["mandatory ", toString(aj), ".", ak, " is not defined"], ""))
138+func ak (ag,ah) = valueOrErrorMessage(getBoolean(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], ""))
139139
140140
141-func al (aj,ak) = valueOrErrorMessage(getInteger(aj, ak), makeString(["mandatory ", toString(aj), ".", ak, " is not defined"], ""))
141+func al (am,an) = fraction(am, j, an)
142142
143143
144-func am (aj,ak) = valueOrElse(getInteger(aj, ak), 0)
144+func ao (am,an) = fraction(am, an, j)
145145
146146
147-func an (aj,ak) = valueOrErrorMessage(getBoolean(aj, ak), makeString(["mandatory ", toString(aj), ".", ak, " is not defined"], ""))
147+func ap (aq,ar) = fraction(toBigInt(aq), m, toBigInt(ar))
148148
149149
150-func ao (ap,aq) = fraction(ap, j, aq)
150+func as (at,au) = toInt(fraction(at, toBigInt(au), m))
151151
152152
153-func ar (ap,aq) = fraction(ap, aq, j)
154-
155-
156-func as (at,au) = fraction(toBigInt(at), m, toBigInt(au))
157-
158-
159-func av (aw,ax) = toInt(fraction(aw, toBigInt(ax), m))
160-
161-
162-func ay (aw) = {
163- let az = aw
164- if ($isInstanceOf(az, "List[Any]"))
153+func av (at) = {
154+ let aw = at
155+ if ($isInstanceOf(aw, "List[Any]"))
165156 then {
166- let aA = az
167- aA
157+ let ax = aw
158+ ax
168159 }
169160 else throw("fail to cast into List[Any]")
170161 }
171162
172163
173-func aB (aw) = {
174- let az = aw
175- if ($isInstanceOf(az, "Int"))
164+func ay (at) = {
165+ let aw = at
166+ if ($isInstanceOf(aw, "Int"))
176167 then {
177- let aC = az
178- aC
168+ let az = aw
169+ az
179170 }
180171 else throw("fail to cast into Int")
181172 }
182173
183174
184-func aD (aw) = {
185- let az = aw
186- if ($isInstanceOf(az, "String"))
175+func aA (at) = {
176+ let aw = at
177+ if ($isInstanceOf(aw, "String"))
187178 then {
188- let aE = az
189- aE
179+ let aB = aw
180+ aB
190181 }
191182 else throw("fail to cast into String")
192183 }
193184
194185
195-func aF (aG) = {
196- let az = aG
197- if ($isInstanceOf(az, "(Int, Int, Int, Int)"))
186+func aC (aD) = {
187+ let aw = aD
188+ if ($isInstanceOf(aw, "(Int, Int, Int, Int)"))
198189 then {
199- let aH = az
200- aH
190+ let aE = aw
191+ aE
201192 }
202193 else throw("fail to cast into PriceSTRUCT")
203194 }
204195
205196
206-let aI = 1
197+let aF = 1
207198
208-let aJ = 2
199+let aG = 2
209200
210-let aK = 3
201+let aH = 3
211202
212-let aL = 4
203+let aI = 4
213204
214-let aM = 5
205+let aJ = 5
215206
216-let aN = 6
207+let aK = 6
217208
218-let aO = 7
209+let aL = 7
219210
220-let aP = 8
211+let aM = 8
221212
222-let aQ = 9
213+let aN = 9
223214
224-let aR = 10
215+let aO = 10
225216
226-let aS = 11
217+let aP = 11
227218
228-let aT = 12
219+let aQ = 12
229220
230-let aU = 13
221+let aR = 13
231222
232-let aV = 14
223+let aS = 14
233224
234-func aW () = "%s%s__config__controlAddress"
225+func aT () = "%s%s__config__controlAddress"
235226
236227
237-func aX () = "%s__controlConfig"
228+func aU () = "%s__controlConfig"
238229
239230
240-func aY (aZ) = split(ai(aZ, aX()), d)
231+func aV (aW) = split(af(aW, aU()), d)
241232
242233
243-func ba (bb,bc) = valueOrErrorMessage(addressFromString(bb[bc]), ("Control cfg doesn't contain address at index " + toString(bc)))
234+func aX (aY,aZ) = valueOrErrorMessage(addressFromString(aY[aZ]), ("Control cfg doesn't contain address at index " + toString(aZ)))
244235
245236
246-let bd = addressFromStringValue(valueOrElse(getString(this, aW()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
237+let ba = addressFromStringValue(valueOrElse(getString(this, aT()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
247238
248-let bb = aY(bd)
239+let aY = aV(ba)
249240
250-let be = ba(bb, aI)
241+let bb = aX(aY, aF)
251242
252-let bf = ba(bb, aJ)
243+let bc = aX(aY, aG)
253244
254-let bg = ba(bb, aM)
245+let bd = aX(aY, aJ)
255246
256-let bh = ba(bb, aK)
247+let be = aX(aY, aH)
257248
258-let bi = ba(bb, aV)
249+let bf = aX(aY, aS)
259250
260-let bj = ai(be, R())
251+let bg = af(bb, R())
261252
262-let bk = fromBase58String(bj)
253+let bh = fromBase58String(bg)
263254
264-let bl = fromBase58String(getStringValue(be, S()))
255+let bi = fromBase58String(getStringValue(bb, S()))
265256
266-let bm = fromBase58String(getStringValue(bf, T()))
257+let bj = fromBase58String(getStringValue(bc, T()))
267258
268-func bn () = {
269- let bo = valueOrElse(getString(bd, "%s%s__control__outOfMarketAddressList"), "")
270- if ((bo == ""))
259+func bk () = "balance_lock_"
260+
261+
262+func bl (bm,ab) = makeString(["%s%s%s", "balanceLock", bm, ab], d)
263+
264+
265+func bn (ab) = bl("outNeutrino", ab)
266+
267+
268+func bo () = bl("outMulti", bg)
269+
270+
271+func bp () = (bk() + "neutrino")
272+
273+
274+func bq () = (bk() + "waves")
275+
276+
277+func br () = {
278+ let bs = valueOrElse(getString(ba, "%s%s__control__outOfMarketAddressList"), "")
279+ if ((bs == ""))
271280 then 0
272281 else {
273- func bp (bq,br) = ((bq + valueOrElse(getInteger(bh, ag(br, bj)), 0)) + assetBalance(addressFromStringValue(br), bk))
282+ func bt (bu,bv) = ((bu + valueOrElse(getInteger(be, ad(bv, bg)), 0)) + assetBalance(addressFromStringValue(bv), bh))
274283
275- let bs = split(bo, d)
276- let bt = size(bs)
277- let bu = 0
278- func bv (bw,bx) = if ((bx >= bt))
279- then bw
280- else bp(bw, bs[bx])
284+ let bw = split(bs, d)
285+ let bx = size(bw)
286+ let by = 0
287+ func bz (bA,bB) = if ((bB >= bx))
288+ then bA
289+ else bt(bA, bw[bB])
281290
282- func by (bw,bx) = if ((bx >= bt))
283- then bw
291+ func bC (bA,bB) = if ((bB >= bx))
292+ then bA
284293 else throw("List size exceeds 7")
285294
286- by(bv(bv(bv(bv(bv(bv(bv(bu, 0), 1), 2), 3), 4), 5), 6), 7)
295+ bC(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7)
287296 }
288297 }
289298
290299
291-func bz () = aF(invoke(bi, "price", [4], nil))._2
300+func bD () = aC(invoke(bf, "price", [4], nil))._2
292301
293302
294-func bA (bB,bC) = {
295- let bD = valueOrElse(getInteger(this, P()), 600000)
296- let bE = valueOrElse(getInteger(this, Q()), 150000)
297- let bF = max([bD, fraction((h + bE), bC, h)])
298- let bG = min([bF, h])
299- fraction(bB, h, bG)
303+func bE (bF,bG) = {
304+ let bH = valueOrElse(getInteger(this, P()), 600000)
305+ let bI = valueOrElse(getInteger(this, Q()), 150000)
306+ let bJ = max([bH, fraction((h + bI), bG, h)])
307+ let bK = min([bJ, h])
308+ fraction(bF, h, bK)
300309 }
301310
302311
303-let bH = getIntegerValue(bd, ac())
312+let bL = getIntegerValue(ba, Z())
304313
305-let bC = bz()
314+let bG = bD()
306315
307-let bI = bA(bH, bC)
316+let bM = bE(bL, bG)
308317
309-let bJ = valueOrElse(getInteger(be, W()), 0)
318+let bN = (valueOrElse(getInteger(bb, bp()), 0) + valueOrElse(getInteger(bb, bo()), 0))
310319
311-let bK = valueOrElse(getInteger(be, V()), 0)
320+let bO = (valueOrElse(getInteger(bb, bq()), 0) + valueOrElse(getInteger(bb, bn("WAVES")), 0))
312321
313-let bL = (wavesBalance(be).regular - bK)
314-
315-let bM = ar(bL, bI)
316-
317-let bN = bn()
318-
319-let bO = (((bJ + value(assetInfo(bk)).quantity) - assetBalance(be, bk)) - assetBalance(bg, bk))
320-
321-let bP = (bO - bN)
322-
323-let bQ = if ((bP == 0))
324- then 0
325- else fraction(bM, h, bP)
326-
327-func bR () = {
328- let bS = valueOrElse(getString(be, ab()), "WAVES")
329- let bT = split(bS, d)
330- func bU (bV,ae) = {
331- let bW = fromBase58String(ae)
332- let bX = if ((bW == n))
333- then bL
334- else assetBalance(be, bW)
335- let bY = valueOrElse(getInteger(bd, ad(ae)), h)
336- let bZ = fraction(bX, bY, j)
337- $Tuple2((bV._1 :+ $Tuple4(ae, bX, bZ, bY)), (bV._2 + bZ))
338- }
339-
340- let ca = {
341- let bs = bT
342- let bt = size(bs)
343- let bu = $Tuple2(nil, 0)
344- func bv (bw,bx) = if ((bx >= bt))
345- then bw
346- else bU(bw, bs[bx])
347-
348- func by (bw,bx) = if ((bx >= bt))
349- then bw
350- else throw("List size exceeds 10")
351-
352- by(bv(bv(bv(bv(bv(bv(bv(bv(bv(bv(bu, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
353- }
354- func cb (bV,cc) = {
355- let cd = if ((ca._2 == 0))
356- then h
357- else fraction(cc._3, h, ca._2)
358- (bV :+ makeString([cc._1, toString(cd), toString(cc._4), toString(cc._2)], ":"))
359- }
360-
361- let ce = if ((bP == 0))
362- then 0
363- else fraction(ca._2, h, bP)
364- $Tuple3(makeString({
365- let bs = ca._1
366- let bt = size(bs)
367- let bu = nil
368- func cf (bw,bx) = if ((bx >= bt))
369- then bw
370- else cb(bw, bs[bx])
371-
372- func cg (bw,bx) = if ((bx >= bt))
373- then bw
374- else throw("List size exceeds 10")
375-
376- cg(cf(cf(cf(cf(cf(cf(cf(cf(cf(cf(bu, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
377- }, "_"), ce, ca._2)
322+func bP (ab) = {
323+ let bQ = fromBase58String(ab)
324+ if ((bQ == n))
325+ then (wavesBalance(bb).regular - bO)
326+ else (assetBalance(bb, bQ) - valueOrElse(getInteger(bb, bn(ab)), 0))
378327 }
379328
380329
381-@Callable(ch)
382-func constructorV1 (ci,cj,ck) = if ((ch.caller != this))
330+func bR (ab) = {
331+ let bQ = fromBase58String(ab)
332+ let bS = bP(ab)
333+ if ((bQ == n))
334+ then ao(bS, bM)
335+ else {
336+ let bT = valueOrElse(getInteger(ba, aa(ab)), h)
337+ fraction(bS, bT, j)
338+ }
339+ }
340+
341+
342+let bU = br()
343+
344+let bV = (((bN + value(assetInfo(bh)).quantity) - assetBalance(bb, bh)) - assetBalance(bd, bh))
345+
346+let bW = (bV - bU)
347+
348+func bX () = {
349+ let bY = split(valueOrElse(getString(bb, Y()), "WAVES"), d)
350+ func bZ (ca,ab) = (ca + fraction(bR(ab), h, bW))
351+
352+ let bw = bY
353+ let bx = size(bw)
354+ let by = 0
355+ func bz (bA,bB) = if ((bB >= bx))
356+ then bA
357+ else bZ(bA, bw[bB])
358+
359+ func bC (bA,bB) = if ((bB >= bx))
360+ then bA
361+ else throw("List size exceeds 10")
362+
363+ bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
364+ }
365+
366+
367+let cb = if ((bW == 0))
368+ then 0
369+ else bX()
370+
371+func cc () = {
372+ let cd = valueOrElse(getString(bb, Y()), "WAVES")
373+ let bY = split(cd, d)
374+ func ce (ca,ab) = {
375+ let bS = bP(ab)
376+ let bT = valueOrElse(getInteger(ba, aa(ab)), h)
377+ let cf = fraction(bS, bT, j)
378+ $Tuple2((ca._1 :+ $Tuple4(ab, bS, cf, bT)), (ca._2 + cf))
379+ }
380+
381+ let cg = {
382+ let bw = bY
383+ let bx = size(bw)
384+ let by = $Tuple2(nil, 0)
385+ func bz (bA,bB) = if ((bB >= bx))
386+ then bA
387+ else ce(bA, bw[bB])
388+
389+ func bC (bA,bB) = if ((bB >= bx))
390+ then bA
391+ else throw("List size exceeds 10")
392+
393+ bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
394+ }
395+ func ch (ca,ci) = {
396+ let cj = if ((cg._2 == 0))
397+ then h
398+ else fraction(ci._3, h, cg._2)
399+ (ca :+ makeString([ci._1, toString(cj), toString(ci._4), toString(ci._2)], ":"))
400+ }
401+
402+ let ck = if ((bW == 0))
403+ then 0
404+ else fraction(cg._2, h, bW)
405+ $Tuple3(makeString({
406+ let bw = cg._1
407+ let bx = size(bw)
408+ let by = nil
409+ func cl (bA,bB) = if ((bB >= bx))
410+ then bA
411+ else ch(bA, bw[bB])
412+
413+ func cm (bA,bB) = if ((bB >= bx))
414+ then bA
415+ else throw("List size exceeds 10")
416+
417+ cm(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
418+ }, "_"), ck, cg._2)
419+ }
420+
421+
422+@Callable(cn)
423+func constructorV1 (co,cp,cq) = if ((cn.caller != this))
383424 then throw("not authorized")
384- else [StringEntry(K(), ci), IntegerEntry(L(), ck)]
425+ else [StringEntry(K(), co), IntegerEntry(L(), cq)]
385426
386427
387428
388-@Callable(ch)
389-func calcSwapLimitREADONLY (cl) = {
390- let cm = if ((0 >= cl))
429+@Callable(cn)
430+func calcSwapLimitREADONLY (cr) = {
431+ let cs = if ((0 >= cr))
391432 then 0
392433 else {
393- let cn = toBigInt(al(this, L()))
394- let co = toBigInt(al(this, M()))
395- let cp = pow(toBigInt(cl), 6, co, 16, 8, CEILING)
396- toInt(fraction(cn, cp, l))
434+ let ct = toBigInt(ai(this, L()))
435+ let cu = toBigInt(ai(this, M()))
436+ let cv = pow(toBigInt(cr), 6, cu, 16, 8, CEILING)
437+ toInt(fraction(ct, cv, l))
397438 }
398- let cq = ao(cm, bH)
399- let cr = if ((0 >= cl))
439+ let cw = al(cs, bL)
440+ let cx = if ((0 >= cr))
400441 then 0
401442 else {
402- let cn = toBigInt(al(this, N()))
403- let co = toBigInt(al(this, O()))
404- let cs = toBigInt(bQ)
405- let cp = pow(toBigInt(cl), 6, co, 16, 8, CEILING)
406- toInt(fraction(fraction(cn, cp, l), cs, i))
443+ let ct = toBigInt(ai(this, N()))
444+ let cu = toBigInt(ai(this, O()))
445+ let cy = toBigInt(cb)
446+ let cv = pow(toBigInt(cr), 6, cu, 16, 8, CEILING)
447+ toInt(fraction(fraction(ct, cv, l), cy, i))
407448 }
408- $Tuple2(nil, [cm, cq, cr])
449+ $Tuple2(nil, [cs, cw, cx])
409450 }
410451
411452
412453
413-@Callable(ch)
414-func calculateKREADONLY (ct,cu,aq,cv,cw) = {
415- let cx = toBigInt(2718281)
416- let cy = 6
417- let cz = valueOrElse(getInteger(bf, "nsbtCurveParam_a"), 3)
418- let cA = valueOrElse(getInteger(bf, "nsbtCurveParam_b"), ((3 * h) / 10))
419- let cB = ar(ct, aq)
420- let cC = fraction(cB, j, cu)
421- if ((cC > 10678564816))
422- then throw((("BR=" + toString(cC)) + " > 10678.564816% will overflow exponent"))
454+@Callable(cn)
455+func calculateKREADONLY (cz,cA,an,cB,cC) = {
456+ let cD = toBigInt(2718281)
457+ let cE = 6
458+ let cF = valueOrElse(getInteger(bc, "nsbtCurveParam_a"), 3)
459+ let cG = valueOrElse(getInteger(bc, "nsbtCurveParam_b"), ((3 * h) / 10))
460+ let cH = ao(cz, an)
461+ let cI = fraction(cH, j, cA)
462+ if ((cI > 10678564816))
463+ then throw((("BR=" + toString(cI)) + " > 10678.564816% will overflow exponent"))
423464 else {
424- let cD = (cz * (cC - j))
425- let cE = pow(cx, cy, toBigInt(cD), b, c, DOWN)
426- let cF = fraction(toBigInt(cA), cE, i)
427- $Tuple2(nil, [cz, cA, cB, cC, cD, toString(cE), toString(cF)])
465+ let cJ = (cF * (cI - j))
466+ let cK = pow(cD, cE, toBigInt(cJ), b, c, DOWN)
467+ let cL = fraction(toBigInt(cG), cK, i)
468+ $Tuple2(nil, [cF, cG, cH, cI, cJ, toString(cK), toString(cL)])
428469 }
429470 }
430471
431472
432473
433-@Callable(ch)
434-func curveFunctionREADONLY (cG) = {
435- let cH = ay(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
436- let aq = aB(cH[v])
437- let ct = aB(cH[y])
438- let cu = aB(cH[A])
439- let cw = aB(cH[E])
440- let cv = aB(cH[F])
441- let cI = ay(invoke(this, "calculateKREADONLY", [ct, cu, aq, cv, cw], nil))
442- let cF = parseBigIntValue(aD(cI[u]))
443- let cJ = ar(cG, aq)
444- let cK = toBigInt(cv)
445- let cL = toBigInt((cv - cw))
446- let cM = fraction(toBigInt(cJ), m, cF)
447- let cN = fraction(cM, cL, cK)
448- let cO = toInt(fraction(cL, cK, (cN + cK)))
449- let cP = ((cv - cw) - cO)
450- $Tuple2(nil, [cP, cJ, ct, cu, cv, cw, aB(cI[o]), aB(cI[p]), aB(cI[q]), aq, aB(cI[r]), aB(cI[s]), cI[t], cI[u], toString(cM), toString(cN), cO])
474+@Callable(cn)
475+func curveFunctionREADONLY (cM) = {
476+ let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
477+ let an = ay(cN[v])
478+ let cz = ay(cN[y])
479+ let cA = ay(cN[A])
480+ let cC = ay(cN[E])
481+ let cB = ay(cN[F])
482+ let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil))
483+ let cL = parseBigIntValue(aA(cO[u]))
484+ let cP = ao(cM, an)
485+ let cQ = toBigInt(cB)
486+ let cR = toBigInt((cB - cC))
487+ let cS = fraction(toBigInt(cP), m, cL)
488+ let cT = fraction(cS, cR, cQ)
489+ let cU = toInt(fraction(cR, cQ, (cT + cQ)))
490+ let cV = ((cB - cC) - cU)
491+ $Tuple2(nil, [cV, cP, cz, cA, cB, cC, ay(cO[o]), ay(cO[p]), ay(cO[q]), an, ay(cO[r]), ay(cO[s]), cO[t], cO[u], toString(cS), toString(cT), cU])
451492 }
452493
453494
454495
455-@Callable(ch)
456-func surfFunctionREADONLY (ap,ae) = if ((0 > ap))
496+@Callable(cn)
497+func surfFunctionREADONLY (am,ab) = if ((0 > am))
457498 then throw("amount should be positive")
458499 else {
459- let aq = bH
460- let cQ = toBigInt(aq)
461- let cR = toBigInt(bL)
462- let cS = bP
463- let cT = toBigInt(cS)
464- if ((bQ >= h))
465- then throw((("BR = " + toString(bQ)) + ", cannot buy SURF"))
500+ let an = bL
501+ let cW = toBigInt(an)
502+ let cX = bP("WAVES")
503+ let cY = toBigInt(cX)
504+ let cZ = bW
505+ let da = toBigInt(cZ)
506+ if ((cb >= h))
507+ then throw((("BR = " + toString(cb)) + ", cannot buy SURF"))
466508 else {
467- let cU = (fraction(cS, j, aq) - bL)
468- let cV = (cS - fraction(bL, aq, j))
469- let cW = if ((ae == bk))
470- then if ((ap > cV))
471- then cV
472- else ap
473- else if ((ae == n))
474- then if ((ap > cU))
475- then cU
476- else ap
509+ let db = (fraction(cZ, j, an) - cX)
510+ let dc = (cZ - fraction(cX, an, j))
511+ let dd = if ((ab == bh))
512+ then if ((am > dc))
513+ then dc
514+ else am
515+ else if ((ab == n))
516+ then if ((am > db))
517+ then db
518+ else am
477519 else 0
478- let cX = toBigInt(cW)
479- if ((ae == bk))
480- then $Tuple2(nil, [toInt(fraction(fraction(cX, k, cQ), (cT - (cX / g)), cR)), 0, cW, bL, cS, bQ, bL, (cS - cW), fraction(ar(bL, aq), h, (cS - cW)), (ap - cW), aq])
481- else if ((ae == n))
482- then $Tuple2(nil, [toInt(fraction(cT, log(fraction((cR + cX), m, cR), 16, f, 16, 16, HALFUP), m)), cW, 0, bL, cS, bQ, (bL + cW), cS, fraction(ar((bL + cW), aq), h, cS), (ap - cW), aq])
520+ let de = toBigInt(dd)
521+ if ((ab == bh))
522+ then $Tuple2(nil, [toInt(fraction(fraction(de, k, cW), (da - (de / g)), cY)), 0, dd, cX, cZ, cb, cX, (cZ - dd), fraction(ao(cX, an), h, (cZ - dd)), (am - dd), an])
523+ else if ((ab == n))
524+ then $Tuple2(nil, [toInt(fraction(da, log(fraction((cY + de), m, cY), 16, f, 16, 16, HALFUP), m)), dd, 0, cX, cZ, cb, (cX + dd), cZ, fraction(ao((cX + dd), an), h, cZ), (am - dd), an])
483525 else throw("Unsupported asset")
484526 }
485527 }
486528
487529
488530
489-@Callable(ch)
490-func calcContractNsbtPriceSYSREADONLY (cY) = {
491- let cH = ay(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
492- let aq = aB(cH[v])
493- let ct = aB(cH[y])
494- let cu = (aB(cH[A]) - cY)
495- let cw = (aB(cH[E]) + cY)
496- let cv = aB(cH[F])
497- let cI = ay(invoke(this, "calculateKREADONLY", [ct, cu, aq, cv, cw], nil))
498- let cZ = parseBigIntValue(aD(cI[u]))
499- let da = fraction(toBigInt(cv), m, toBigInt((cv - cw)))
500- let db = fraction(da, da, m)
501- let dc = fraction(cZ, db, m)
502- let dd = toInt(fraction(dc, toBigInt(h), m))
503- let de = fraction(dd, h, aq)
504- $Tuple2(nil, [dd, de])
531+@Callable(cn)
532+func calcContractNsbtPriceSYSREADONLY (df) = {
533+ let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
534+ let an = ay(cN[v])
535+ let cz = ay(cN[y])
536+ let cA = (ay(cN[A]) - df)
537+ let cC = (ay(cN[E]) + df)
538+ let cB = ay(cN[F])
539+ let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil))
540+ let dg = parseBigIntValue(aA(cO[u]))
541+ let dh = fraction(toBigInt(cB), m, toBigInt((cB - cC)))
542+ let di = fraction(dh, dh, m)
543+ let dj = fraction(dg, di, m)
544+ let dk = toInt(fraction(dj, toBigInt(h), m))
545+ let dl = fraction(dk, h, an)
546+ $Tuple2(nil, [dk, dl])
505547 }
506548
507549
508550
509-@Callable(ch)
551+@Callable(cn)
510552 func calcNeutinoMetricsREADONLY () = {
511- let df = value(assetInfo(bl)).quantity
512- let dg = (df - assetBalance(bf, bl))
513- let dh = value(assetInfo(bm)).quantity
514- let di = bR()
515- $Tuple2(nil, [bH, bJ, bK, bL, bM, bP, bN, bO, bQ, dg, df, dh, bC, bI, di._1, di._2, di._3])
553+ let dm = value(assetInfo(bi)).quantity
554+ let dn = (dm - assetBalance(bc, bi))
555+ let do = value(assetInfo(bj)).quantity
556+ let dp = cc()
557+ $Tuple2(nil, [bL, bN, bO, bP("WAVES"), bR("WAVES"), bW, bU, bV, cb, dn, dm, do, bG, bM, dp._1, dp._2, dp._3])
516558 }
517559
518560
519561
520-@Callable(ch)
521-func getUnstakeComissionAmountREADONLY (ap,dj,dk) = $Tuple2(nil, fraction(ap, pow(2, 0, fraction(-((height - dj)), j, dk), 8, 8, HALFUP), j))
562+@Callable(cn)
563+func getUnstakeComissionAmountREADONLY (am,dq,dr) = $Tuple2(nil, fraction(am, pow(2, 0, fraction(-((height - dq)), j, dr), 8, 8, HALFUP), j))
522564
523565
524566
525-@Callable(ch)
526-func mergeStakesREADONLY (dl,dm,dn,do,dk) = {
527- let dp = fraction(dn, pow(2, 0, fraction((do - dm), j, dk), 8, 8, HALFUP), j)
528- let aG = fraction((dl + dn), j, (dl + dp))
529- $Tuple2(nil, (dm + ((e - (dk * log(aG, 8, 2, 0, 8, HALFUP))) / j)))
567+@Callable(cn)
568+func mergeStakesREADONLY (ds,dt,du,dv,dr) = {
569+ let dw = fraction(du, pow(2, 0, fraction((dv - dt), j, dr), 8, 8, HALFUP), j)
570+ let aD = fraction((ds + du), j, (ds + dw))
571+ $Tuple2(nil, (dt + ((e - (dr * log(aD, 8, 2, 0, 8, HALFUP))) / j)))
530572 }
531573
532574
533-@Verifier(dq)
534-func dr () = {
535- let ds = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d)
536- let dt = split(valueOrElse(getString(bd, "%s__multisig"), ds), d)
537- let du = ((((if (sigVerify(dq.bodyBytes, dq.proofs[0], fromBase58String(dt[0])))
575+@Verifier(dx)
576+func dy () = {
577+ let dz = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d)
578+ let dA = split(valueOrElse(getString(ba, "%s__multisig"), dz), d)
579+ let dB = ((((if (sigVerify(dx.bodyBytes, dx.proofs[0], fromBase58String(dA[0])))
538580 then 1
539- else 0) + (if (sigVerify(dq.bodyBytes, dq.proofs[1], fromBase58String(dt[1])))
581+ else 0) + (if (sigVerify(dx.bodyBytes, dx.proofs[1], fromBase58String(dA[1])))
540582 then 1
541- else 0)) + (if (sigVerify(dq.bodyBytes, dq.proofs[2], fromBase58String(dt[2])))
583+ else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[2], fromBase58String(dA[2])))
542584 then 1
543- else 0)) + (if (sigVerify(dq.bodyBytes, dq.proofs[3], fromBase58String(dt[3])))
585+ else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[3], fromBase58String(dA[3])))
544586 then 2
545587 else 0))
546- (du >= 3)
588+ (dB >= 3)
547589 }
548590

github/deemru/w8io/169f3d6 
210.09 ms