tx · JBgaBA6LL8vWHByeKcujbj1if9ZtHh91DMobjhFcCaHC

3ND6qeDAKCuRg6oTgcC9KvNF5UfdS3J2SzR:  -0.02800000 Waves

2022.06.15 16:44 [2097569] smart account 3ND6qeDAKCuRg6oTgcC9KvNF5UfdS3J2SzR > SELF 0.00000000 Waves

{ "type": 13, "id": "JBgaBA6LL8vWHByeKcujbj1if9ZtHh91DMobjhFcCaHC", "fee": 2800000, "feeAssetId": null, "timestamp": 1655300680660, "version": 2, "chainId": 84, "sender": "3ND6qeDAKCuRg6oTgcC9KvNF5UfdS3J2SzR", "senderPublicKey": "FnJniYXAWfwAQ3qtBt1aPAaNDyz1pHYUfCQu7QihnhLu", "proofs": [ "4N1m2MhXrmHaUZZUr8MbjtRnRa6ComgFds1fFEo6miWAjL2FjNJZ45ofjD9ftuAT8CwPF9TPNP3Dm72rqU8XzFKM" ], "script": "base64:AAIFAAAAAAAAADQIAhIDCgEIEgkKBwgICAgBCAgSAwoBARIAEgASBQoDCAgIEgQKAggBEgMKAQgSAwoBCBIAAAAAOQAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgIAAAAVTm8gZGF0YSBmb3IgdGhpcy5rZXk9BQAAAANrZXkBAAAAEGdldEJvb2xlYW5PckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACAgAAABVObyBkYXRhIGZvciB0aGlzLmtleT0FAAAAA2tleQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAABBtYW5hZ2VyUHVibGljS2V5BQAAAANuaWwFAAAAA1NFUA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sHB8DyCT Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = 8
4+let a = "__"
55
6-let b = 100000000
6+let b = ""
77
8-let c = toBigInt(100000000)
9-
10-let d = toBigInt(1000000000000000000)
11-
12-let e = toBigInt(0)
13-
14-let f = "__"
15-
16-let g = ""
17-
18-let h = 1
19-
20-let i = 2
21-
22-let j = 3
23-
24-let k = 4
25-
26-let l = 1
27-
28-let m = 2
29-
30-let n = 3
31-
32-let o = 4
33-
34-let p = 5
35-
36-let q = 6
37-
38-let r = 7
39-
40-let s = 8
41-
42-let t = 9
43-
44-let u = 10
45-
46-let v = 1
47-
48-let w = 2
49-
50-let x = 3
51-
52-let y = 1
53-
54-let z = 7
55-
56-func A (B,C) = fraction(toBigInt(B), d, toBigInt(C))
8+func c (d) = valueOrErrorMessage(getString(this, d), ("No data for this.key=" + d))
579
5810
59-func D (E,F) = toInt(fraction(E, toBigInt(F), d))
11+func e (d) = valueOrErrorMessage(getBoolean(this, d), ("No data for this.key=" + d))
6012
6113
62-func G (H,I,J) = fraction(H, I, J)
14+func f () = makeString(["%s", "managerPublicKey"], a)
6315
6416
65-func K (E) = if ((e > E))
66- then -(E)
67- else E
17+func g () = makeString(["%s", "pendingManagerPublicKey"], a)
6818
6919
70-func L () = "%s__factoryContract"
20+func h (i,j,k,l) = throw(((((((i + ": baseAssetStr=") + j) + " userAddressStr=") + k) + " getTxIdStr=") + l))
7121
7222
73-func M () = "%s__managerPublicKey"
23+func m () = makeString(["%s", "assetsStoreContract"], a)
7424
7525
76-func N () = "%s%s__price__last"
26+func n (j) = ("%s%s%s__config__asset__" + j)
7727
7828
79-func O (P,Q) = makeString(["%s%s%d%d__price__history", toString(P), toString(Q)], f)
29+func o (p) = makeString(["%s%s", "proxyAddress", p], a)
8030
8131
82-func R (S,T) = ((("%s%s%s__P__" + S) + "__") + T)
32+func q (p) = makeString(["%s%s", "balance", p], a)
8333
8434
85-func U (S,T) = ((("%s%s%s__G__" + S) + "__") + T)
35+func r () = "%s__nextInternalAssetId"
8636
8737
88-func V () = "%s__amountAsset"
38+func s (t) = ("%s%s%d__price__last__" + t)
8939
9040
91-func W () = "%s__priceAsset"
41+func u (t,v) = makeString(["%s%s%s%d%s__topup__last__height", t, v], a)
9242
9343
94-func X (P,Q) = makeString(["%s%s%d%d__K_history", toString(P), toString(Q)], f)
44+func w (t,x,y) = makeString(["%s%s%d%d%d__price__history", t, toString(x), toString(y)], a)
9545
9646
97-func Y () = "%s__factoryConfig"
47+func z (t) = ("%s%s%d__total__locked__" + t)
9848
9949
100-func Z () = "%s%s__matcher__publicKey"
50+func A (B,k) = makeString(["%s%s%d%s__total__locked", B, k], a)
10151
10252
103-func aa (ab) = (("%s%s%s__" + ab) + "__mappings__poolContract2LpAsset")
53+func C (D) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(D))
10454
10555
106-func ac (ad,ae) = (((("%d%d%s__" + ad) + "__") + ae) + "__config")
56+func E (j) = ("%s%s%s__mappings__baseAsset2internalId__" + j)
10757
10858
109-func af (ag) = ("%s%s%s__mappings__baseAsset2internalId__" + ag)
59+func F (G) = ("%s%s%s__mappings__share2baseAssetId__" + G)
11060
11161
112-func ah () = "%s__shutdown"
62+func H (j) = ("%s%s%s__mappings__baseAsset2shareId__" + j)
11363
11464
115-func ai (aj) = ("%s%s__poolWeight__" + aj)
65+func I (B) = ("%s%s%d__shutdown__put__" + B)
11666
11767
118-func ak (al,am,an) = throw(((((("order validation failed: orderValid=" + toString(al)) + " senderValid=") + toString(am)) + " matcherValid=") + toString(an)))
68+func J (B) = ("%s%s%d__shutdown__manager__" + B)
11969
12070
121-func ao (ap,aq) = valueOrErrorMessage(getString(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], ""))
71+func K () = addressFromStringValue(value(getString(m())))
12272
12373
124-func ar (ap,aq) = valueOrErrorMessage(getInteger(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], ""))
74+let L = 1
75+
76+let M = 2
77+
78+let N = 3
79+
80+let O = 4
81+
82+let P = 5
83+
84+func Q (G,B,R,S,T) = makeString(["%s%d%d%d%d", G, B, toString(R), toString(S), toString(T)], a)
12585
12686
127-let as = addressFromStringValue(ao(this, L()))
87+let U = 1
12888
129-func at () = valueOrElse(getBoolean(as, ah()), false)
89+let V = 2
90+
91+func W (X,Y) = makeString(["%d%d", toString(X), toString(Y)], a)
13092
13193
132-func au () = fromBase58String(ao(as, Z()))
133-
134-
135-func av () = {
136- let aw = ao(this, V())
137- let ax = ao(this, W())
138- let ae = ar(as, af(ax))
139- let ad = ar(as, af(aw))
140- split(ao(as, ac(toString(ad), toString(ae))), f)
94+func Z (d) = {
95+ let aa = split(valueOrElse(getString(this, d), W(0, 0)), a)
96+[-1, parseIntValue(aa[U]), parseIntValue(aa[V])]
14197 }
14298
14399
144-func ay () = split(ao(as, Y()), f)
100+func ab (ac,B,ad,ae) = makeString(["%s%d%s%s", ac, B, ad, ae], a)
145101
146102
147-func az (aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ)], f)
103+let af = 1
104+
105+let ag = 2
106+
107+let ah = 3
108+
109+let ai = 4
110+
111+let aj = 5
112+
113+let ak = 6
114+
115+let al = 7
116+
117+let am = 8
118+
119+func an (ao,ap,aq,ar,as,at,au,av) = makeString(["%s%d%d%d%d%d%d%d", ao, ap, aq, ar, as, at, au, av], a)
148120
149121
150-func aK (aL,aM,aN,aD,aG,aH) = makeString(["%d%d%d%d%d%d", toString(aL), toString(aM), toString(aN), toString(aD), toString(aG), toString(aH)], f)
122+func aw (ao,ap,aq,ar,as,at,au,av) = an(ao, toString(ap), toString(aq), toString(ar), toString(as), toString(at), toString(au), toString(av))
151123
152124
153-func aO (aP) = if ((aP == "WAVES"))
154- then wavesBalance(this).available
155- else assetBalance(this, fromBase58String(aP))
125+func ax (ay,az,aA) = an(az, ay[ag], ay[ah], ay[ai], ay[aj], ay[ak], ay[al], toString(aA))
156126
157127
158-func aQ (aR,aS) = fraction(aR, d, aS)
159-
160-
161-func aT (aU,aV,aW,aX) = {
162- let aY = A(aW, aU)
163- let aZ = A(aX, aV)
164- aQ(aZ, aY)
128+func aB (j) = {
129+ let d = n(j)
130+ split(c(d), a)
165131 }
166132
167133
168-func ba (aW,aX,bb) = {
169- let bc = av()
170- let bd = parseIntValue(bc[q])
171- let be = parseIntValue(bc[r])
172- let bf = aT(bd, be, aW, aX)
173- let aS = A(aW, bd)
174- let aR = A(aX, be)
175- let bg = A(bb, b)
176- let bh = aQ(aS, bg)
177- let bi = aQ(aR, bg)
178-[bf, bh, bi]
134+func aC (d,X,Y) = {
135+ let aD = Z(d)
136+ StringEntry(d, W((aD[U] + X), (aD[V] + Y)))
179137 }
180138
181139
182-func bj (aW,aX,bb) = {
183- let bk = ba(aW, aX, bb)
184-[D(bk[0], b), D(bk[1], b), D(bk[2], b)]
140+func aE (d,X,Y) = {
141+ let aD = Z(d)
142+ StringEntry(d, W((aD[U] - X), (aD[V] - Y)))
185143 }
186144
187145
188-func bl (bm,bn,bo,S) = {
189- let bc = av()
190- let bp = bc[n]
191- let bq = bc[o]
192- let br = bc[p]
193- let aU = parseIntValue(bc[q])
194- let aV = parseIntValue(bc[r])
195- let bs = bc[m]
196- let bt = valueOrErrorMessage(assetInfo(fromBase58String(bp)), (("Asset " + bp) + " doesn't exist")).quantity
197- if ((bp != bn))
198- then throw("Invalid asset passed.")
199- else {
200- let bu = aO(bq)
201- let bv = A(bu, aU)
202- let bw = aO(br)
203- let bx = A(bw, aV)
204- let by = aQ(bx, bv)
205- let bz = D(by, b)
206- let bA = A(bo, b)
207- let bB = A(bt, b)
208- let bC = fraction(bv, bA, bB)
209- let bD = fraction(bx, bA, bB)
210- let bE = D(bC, aU)
211- let bF = D(bD, aV)
212- let bG = if ((bm == ""))
213- then nil
214- else [ScriptTransfer(S, bE, if ((bq == "WAVES"))
215- then unit
216- else fromBase58String(bq)), ScriptTransfer(S, bF, if ((br == "WAVES"))
217- then unit
218- else fromBase58String(br)), StringEntry(U(toString(S), bm), aK(bE, bF, bo, bz, height, lastBlock.timestamp)), IntegerEntry(N(), bz), IntegerEntry(O(height, lastBlock.timestamp), bz)]
219- $Tuple10(bE, bF, bq, br, bu, bw, bt, by, bs, bG)
146+func aF () = {
147+ let aG = getString(f())
148+ if ($isInstanceOf(aG, "String"))
149+ then {
150+ let aH = aG
151+ fromBase58String(aH)
220152 }
221- }
222-
223-
224-func bH (bm,bI,bJ,bK,bL,bM,S,bN,bO) = {
225- let bc = av()
226- let bp = fromBase58String(bc[n])
227- let bP = bc[o]
228- let bQ = bc[p]
229- let bR = bc[s]
230- let bS = bc[t]
231- let bd = parseIntValue(bc[q])
232- let be = parseIntValue(bc[r])
233- let bs = bc[m]
234- let bt = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity
235- let bT = toBase58String(valueOrElse(bK, fromBase58String("WAVES")))
236- let bU = toBase58String(valueOrElse(bM, fromBase58String("WAVES")))
237- if (if ((bP != bT))
238- then true
239- else (bQ != bU))
240- then throw("Invalid amt or price asset passed.")
241- else {
242- let bu = if (bN)
243- then aO(bP)
244- else (aO(bP) - bJ)
245- let bw = if (bN)
246- then aO(bQ)
247- else (aO(bQ) - bL)
248- let bV = A(bJ, bd)
249- let bW = A(bL, be)
250- let bX = aQ(bW, bV)
251- let bv = A(bu, bd)
252- let bx = A(bw, be)
253- let bY = if ((bt == 0))
254- then {
255- let by = e
256- let bZ = e
257- let bg = pow((bV * bW), 0, toBigInt(5), 1, 0, DOWN)
258- $Tuple5(D(bg, b), D(bV, bd), D(bW, be), aQ((bx + bW), (bv + bV)), bZ)
259- }
260- else {
261- let by = aQ(bx, bv)
262- let bZ = fraction(K((by - bX)), d, by)
263- let ca = A(bI, b)
264- if (if ((by != e))
265- then (bZ > ca)
266- else false)
267- then throw(((("Price slippage " + toString(bZ)) + " exceeded the passed limit of ") + toString(ca)))
268- else {
269- let bB = A(bt, b)
270- let cb = fraction(bV, by, d)
271- let cc = fraction(bW, d, by)
272- let cd = if ((cb > bW))
273- then $Tuple2(cc, bW)
274- else $Tuple2(bV, cb)
275- let ce = cd._1
276- let cf = cd._2
277- let bg = fraction(bB, cf, bx)
278- $Tuple5(D(bg, b), D(ce, bd), D(cf, be), by, bZ)
279- }
280- }
281- let cg = bY._1
282- let ch = bY._2
283- let ci = bY._3
284- let bz = D(bY._4, b)
285- let cj = D(bY._5, b)
286- if ((0 >= cg))
287- then throw("Invalid calculations. LP calculated is less than zero.")
288- else {
289- let ck = if (!(bO))
290- then 0
291- else cg
292- let cl = (bJ - ch)
293- let cm = (bL - ci)
294- let cn = [IntegerEntry(N(), bz), IntegerEntry(O(height, lastBlock.timestamp), bz), StringEntry(R(S, bm), az(ch, ci, ck, bz, bI, cj, height, lastBlock.timestamp, cl, cm))]
295- $Tuple13(cg, ck, bz, bu, bw, bt, bp, bs, cn, cl, cm, bK, bM)
296- }
297- }
298- }
299-
300-
301-func co (cp) = {
302- let bc = av()
303- let cq = bc[o]
304- let cr = bc[p]
305- let bs = parseIntValue(bc[m])
306- let bd = parseIntValue(bc[q])
307- let be = parseIntValue(bc[r])
308- let cs = aO(cq)
309- let ct = aO(cr)
310- let by = if ((cp.orderType == Buy))
311- then aT(bd, be, (cs + cp.amount), ct)
312- else aT(bd, be, (cs - cp.amount), ct)
313- let bz = D(by, b)
314- if (if (if (at())
315- then true
316- else (bs == j))
317- then true
318- else (bs == k))
319- then throw("Exchange operations disabled")
320- else {
321- let cu = cp.assetPair.amountAsset
322- let cv = if ((cu == unit))
323- then "WAVES"
324- else toBase58String(value(cu))
325- let cw = cp.assetPair.priceAsset
326- let cx = if ((cw == unit))
327- then "WAVES"
328- else toBase58String(value(cw))
329- if (if ((cv != cq))
330- then true
331- else (cx != cr))
332- then throw("Wrong order assets.")
333- else {
334- let cy = cp.price
335- let cz = fraction(b, be, bd)
336- let cA = G(cy, b, cz)
337- let cB = if ((cp.orderType == Buy))
338- then (bz >= cA)
339- else (cA >= bz)
340- true
341- }
342- }
343- }
344-
345-
346-func cC (cD) = if ((size(cD.payments) != 1))
347- then throw("exactly 1 payment is expected")
348- else {
349- let cE = value(cD.payments[0])
350- let bn = value(cE.assetId)
351- let cF = cE.amount
352- let bY = bl(toBase58String(cD.transactionId), toBase58String(bn), cF, cD.caller)
353- let bE = bY._1
354- let bF = bY._2
355- let bs = parseIntValue(bY._9)
356- let bG = bY._10
357- if (if (at())
358- then true
359- else (bs == k))
360- then throw(("Get operation is blocked by admin. Status = " + toString(bs)))
361- else $Tuple5(bE, bF, cF, bn, bG)
362- }
363-
364-
365-func cG (cD,bI,bO) = if ((size(cD.payments) != 2))
366- then throw("exactly 2 payments are expected")
367- else {
368- let cH = value(cD.payments[0])
369- let cI = value(cD.payments[1])
370- let cJ = bH(toBase58String(cD.transactionId), bI, cH.amount, cH.assetId, cI.amount, cI.assetId, toString(cD.caller), false, bO)
371- let bs = parseIntValue(cJ._8)
372- if (if (if (at())
373- then true
374- else (bs == i))
375- then true
376- else (bs == k))
377- then throw(("Put operation is blocked by admin. Status = " + toString(bs)))
378- else cJ
379- }
380-
381-
382-func cK () = {
383- let cL = getString(M())
384- if ($isInstanceOf(cL, "String"))
385- then {
386- let cM = cL
387- fromBase58String(cM)
388- }
389- else if ($isInstanceOf(cL, "Unit"))
153+ else if ($isInstanceOf(aG, "Unit"))
390154 then unit
391155 else throw("Match error")
392156 }
393157
394158
395-func cN (cD) = {
396- let cO = throw("Permission denied")
397- let cL = cK()
398- if ($isInstanceOf(cL, "ByteVector"))
159+func aI () = {
160+ let aG = getString(g())
161+ if ($isInstanceOf(aG, "String"))
399162 then {
400- let cP = cL
401- if ((cD.callerPublicKey == cP))
402- then true
403- else cO
163+ let aH = aG
164+ fromBase58String(aH)
404165 }
405- else if ($isInstanceOf(cL, "Unit"))
406- then if ((cD.caller == this))
407- then true
408- else cO
166+ else if ($isInstanceOf(aG, "Unit"))
167+ then unit
409168 else throw("Match error")
410169 }
411170
412171
413-@Callable(cD)
414-func constructor (as) = {
415- let cQ = cN(cD)
416- if ((cQ == cQ))
417- then [StringEntry(L(), as)]
172+func aJ (p) = valueOrElse(getInteger(q(p)), 0)
173+
174+
175+func aK (aL,B,aM,aN,aO,R,S) = {
176+ let aa = Z(z(B))
177+ let aP = aa[V]
178+ let aQ = aL
179+ let aR = ((aQ - aP) + aN)
180+ if ((0 > aR))
181+ then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aQ)) + " baseAssetBalanceConsideringLock=") + toString(aR)))
182+ else {
183+ let aS = value(assetInfo(aO)).quantity
184+ let aq = if ((aS == 0))
185+ then (1 * S)
186+ else fraction(aR, S, aS)
187+ $Tuple5(aq, aQ, aP, aR, aS)
188+ }
189+ }
190+
191+
192+func aT (aL,B,aM,aO,R,S) = aK(aL, B, aM, 0, aO, R, S)
193+
194+
195+func aU (j) = {
196+ let aM = fromBase58String(j)
197+ let aV = aB(j)
198+ let G = aV[L]
199+ let aO = fromBase58String(G)
200+ let R = parseIntValue(aV[N])
201+ let S = parseIntValue(aV[O])
202+ let B = aV[M]
203+ let aW = aT(aJ(j), B, aM, aO, R, S)
204+ $Tuple6(IntegerEntry("price", aW._1), IntegerEntry("decimalsMultPrice", S), IntegerEntry("baseAssetBalance", aW._2), IntegerEntry("totalLockedBaseAmount", aW._3), IntegerEntry("baseAssetBalanceConsideringLock", aW._4), IntegerEntry("shareEmission", aW._5))
205+ }
206+
207+
208+func aX (aY) = {
209+ let aZ = throw("permission denied")
210+ let aG = aF()
211+ if ($isInstanceOf(aG, "ByteVector"))
212+ then {
213+ let ba = aG
214+ if ((aY.callerPublicKey == ba))
215+ then true
216+ else aZ
217+ }
218+ else if ($isInstanceOf(aG, "Unit"))
219+ then if ((aY.caller == this))
220+ then true
221+ else aZ
222+ else throw("Match error")
223+ }
224+
225+
226+func bb (aY,p) = {
227+ let bc = (toString(aY.caller) == valueOrElse(getString(o(p)), b))
228+ if (bc)
229+ then true
230+ else {
231+ let bd = aX(aY)
232+ if ((bd == bd))
233+ then true
234+ else throw("Strict value is not equal to itself.")
235+ }
236+ }
237+
238+
239+@Callable(aY)
240+func constructor (K) = {
241+ let bd = aX(aY)
242+ if ((bd == bd))
243+ then [StringEntry(m(), K)]
418244 else throw("Strict value is not equal to itself.")
419245 }
420246
421247
422248
423-@Callable(cD)
424-func setManager (cR) = {
425- let cQ = cN(cD)
426- if ((cQ == cQ))
249+@Callable(aY)
250+func adminRegisterAsset (j,be,bf,bg,bh,bi,bj) = {
251+ let aM = fromBase58String(j)
252+ let bk = value(assetInfo(aM)).decimals
253+ let bl = aX(aY)
254+ if ((bl == bl))
255+ then if ((toString(addressFromStringValue(bi)) != bi))
256+ then throw("invalid shutdownManagerAddress")
257+ else if ((0 > bh))
258+ then throw(("invalid getDelayinBlocks=" + toString(bh)))
259+ else {
260+ let bm = Issue(be, bf, 1, bk, true)
261+ let aO = calculateAssetId(bm)
262+ let G = toBase58String(aO)
263+ let S = ((100 * 1000) * 1000)
264+ let R = pow(10, 0, bk, 0, 0, DOWN)
265+ let bn = (1 * S)
266+ let bo = valueOrElse(getInteger(this, r()), 0)
267+ let B = toString(bo)
268+ let bp = invoke(K(), "createOrUpdate", [G, bg, false], nil)
269+ if ((bp == bp))
270+ then {
271+ let bq = invoke(K(), "addLabel", [G, "DEFI"], nil)
272+ if ((bq == bq))
273+ then [StringEntry(n(j), Q(G, B, R, S, bh)), StringEntry(C(bo), j), StringEntry(E(j), B), StringEntry(F(G), j), StringEntry(H(j), G), BooleanEntry(I(B), false), StringEntry(J(B), bi), IntegerEntry(r(), (bo + 1)), IntegerEntry(s(B), bn), IntegerEntry(w(B, height, lastBlock.timestamp), bn), bm, Burn(aO, 1), StringEntry(o(j), bj)]
274+ else throw("Strict value is not equal to itself.")
275+ }
276+ else throw("Strict value is not equal to itself.")
277+ }
278+ else throw("Strict value is not equal to itself.")
279+ }
280+
281+
282+
283+@Callable(aY)
284+func shutdownPut (br) = {
285+ let bs = toString(br)
286+ let bt = c(C(br))
287+ let bi = c(J(bs))
288+ if ((1 > size(bt)))
289+ then throw("invalid internalBaseAssetId")
290+ else if ((toString(aY.caller) != bi))
291+ then throw("access denied")
292+ else [BooleanEntry(I(toString(br)), true)]
293+ }
294+
295+
296+
297+@Callable(aY)
298+func put () = {
299+ let bu = value(aY.payments[0])
300+ let aM = value(bu.assetId)
301+ let j = toBase58String(aM)
302+ let k = toString(aY.caller)
303+ let aV = aB(j)
304+ let G = aV[L]
305+ let aO = fromBase58String(G)
306+ let R = parseIntValue(aV[N])
307+ let S = parseIntValue(aV[O])
308+ let B = aV[M]
309+ let bv = e(I(B))
310+ if (bv)
311+ then throw("put operation is blocked")
312+ else {
313+ let aL = (aJ(j) + bu.amount)
314+ let aq = aT(aL, B, aM, aO, R, S)._1
315+ let X = fraction(bu.amount, S, aq)
316+[Reissue(aO, X, true), ScriptTransfer(aY.caller, X, aO), StringEntry(ab("P", B, k, toBase58String(aY.transactionId)), aw("FINISHED", bu.amount, aq, X, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(o(j)))), bu.amount, aM), IntegerEntry(q(j), aL)]
317+ }
318+ }
319+
320+
321+
322+@Callable(aY)
323+func submitGetRequest () = {
324+ let bu = value(aY.payments[0])
325+ let aO = value(bu.assetId)
326+ let G = toBase58String(aO)
327+ let bw = toBase58String(aY.callerPublicKey)
328+ let ad = aY.caller
329+ let k = toString(ad)
330+ let X = bu.amount
331+ let j = c(F(G))
332+ let aM = fromBase58String(j)
333+ let aV = aB(j)
334+ let R = parseIntValue(aV[N])
335+ let S = parseIntValue(aV[O])
336+ let bx = parseIntValue(aV[P])
337+ let B = aV[M]
338+ let aq = aT(aJ(j), B, aM, aO, R, S)._1
339+ let Y = fraction(X, aq, S)
340+ let by = ab("G", B, k, toBase58String(aY.transactionId))
341+ let bz = aw("PENDING", X, aq, Y, height, lastBlock.timestamp, (height + bx), 0)
342+ let aL = aJ(j)
343+[Burn(aO, X), StringEntry(by, bz), aC(z(B), X, Y), aC(A(B, k), X, Y)]
344+ }
345+
346+
347+
348+@Callable(aY)
349+func executeGetRequest (j,k,l) = {
350+ let ad = addressFromStringValue(k)
351+ let bA = aB(j)
352+ let aO = fromBase58String(bA[L])
353+ let aM = fromBase58String(j)
354+ let B = bA[M]
355+ let by = ab("G", B, k, l)
356+ let bB = split(c(by), a)
357+ let ao = bB[af]
358+ let au = parseIntValue(bB[al])
359+ let bC = parseIntValue(bB[ag])
360+ let bD = parseIntValue(bB[ai])
361+ if ((ao != "PENDING"))
362+ then h("Status is not PENDING", j, k, l)
363+ else if ((au > height))
364+ then h(((("EndHeight[" + toString(au)) + "] > ") + toString(height)), j, k, l)
365+ else [ScriptTransfer(ad, bD, aM), StringEntry(by, ax(bB, "FINISHED", lastBlock.timestamp)), aE(z(B), bC, bD), aE(A(B, k), bC, bD), IntegerEntry(q(j), (aJ(j) - bD))]
366+ }
367+
368+
369+
370+@Callable(aY)
371+func topUpBalance (j,bE) = {
372+ let bA = aB(j)
373+ let bu = value(aY.payments[0])
374+ let bF = value(bu.assetId)
375+ let bG = toBase58String(bF)
376+ let aO = fromBase58String(bA[L])
377+ let R = parseIntValue(bA[N])
378+ let S = parseIntValue(bA[O])
379+ let B = bA[M]
380+ let bH = u(B, toString(aY.caller))
381+ let bI = valueOrElse(getInteger(this, bH), 0)
382+ let bJ = [bb(aY, j), if ((bI != height))
383+ then true
384+ else throw("only one topUp per block is allowed")]
385+ if ((bJ == bJ))
386+ then if ((j != bG))
387+ then throw("attached payment's asset id is NOT matched passed baseAssetStr")
388+ else if ((size(aY.payments) > 1))
389+ then throw("only one payment can be attached")
390+ else {
391+ let bK = (aJ(bG) + bE)
392+ let aq = aK(bK, B, bF, bu.amount, aO, R, S)._1
393+[IntegerEntry(s(B), aq), IntegerEntry(w(B, height, lastBlock.timestamp), aq), IntegerEntry(bH, height), IntegerEntry(q(bG), bK)]
394+ }
395+ else throw("Strict value is not equal to itself.")
396+ }
397+
398+
399+
400+@Callable(aY)
401+func currentSysParamsREST (j) = {
402+ let bL = aU(j)
403+ let aq = bL._1.value
404+ let S = bL._2.value
405+ let aQ = bL._3.value
406+ let aP = bL._4.value
407+ let aR = bL._5.value
408+ let aS = bL._6.value
409+ let bM = makeString(["startCurrentSysParamsREST", toString(aq), toString(S), toString(aQ), toString(aP), toString(aR), toString(aS), "endCurrentSysParamsREST"], a)
410+ throw(bM)
411+ }
412+
413+
414+
415+@Callable(aY)
416+func setManager (bN) = {
417+ let bd = aX(aY)
418+ if ((bd == bd))
427419 then {
428- let cS = fromBase58String(cR)
429- if ((cS == cS))
430- then [StringEntry(M(), cR)]
420+ let bO = fromBase58String(bN)
421+ if ((bO == bO))
422+ then [StringEntry(g(), bN)]
431423 else throw("Strict value is not equal to itself.")
432424 }
433425 else throw("Strict value is not equal to itself.")
435427
436428
437429
438-@Callable(cD)
439-func put (bI,cT) = {
440- let cU = ay()
441- let cV = valueOrErrorMessage(addressFromString(cU[y]), "Error. Incorrect staking address.")
442- let cW = valueOrErrorMessage(addressFromString(cU[z]), "Error. Incorrect slippage contract address.")
443- if ((0 > bI))
444- then throw("Invalid slippageTolerance passed")
445- else {
446- let cJ = cG(cD, bI, true)
447- let ck = cJ._2
448- let bp = cJ._7
449- let bG = cJ._9
450- let cl = cJ._10
451- let cm = cJ._11
452- let cX = cJ._12
453- let cY = cJ._13
454- let cZ = invoke(as, "emit", [ck], nil)
455- if ((cZ == cZ))
456- then {
457- let da = {
458- let cL = cZ
459- if ($isInstanceOf(cL, "Address"))
460- then {
461- let db = cL
462- invoke(db, "emit", [ck], nil)
463- }
464- else unit
465- }
466- if ((da == da))
467- then {
468- let dc = if ((cl > 0))
469- then invoke(cW, "put", nil, [AttachedPayment(cX, cl)])
470- else nil
471- if ((dc == dc))
472- then {
473- let dd = if ((cm > 0))
474- then invoke(cW, "put", nil, [AttachedPayment(cY, cm)])
475- else nil
476- if ((dd == dd))
477- then {
478- let de = if (cT)
479- then {
480- let df = invoke(cV, "stake", nil, [AttachedPayment(bp, ck)])
481- if ((df == df))
482- then nil
483- else throw("Strict value is not equal to itself.")
484- }
485- else [ScriptTransfer(cD.caller, ck, bp)]
486- (bG ++ de)
487- }
488- else throw("Strict value is not equal to itself.")
489- }
490- else throw("Strict value is not equal to itself.")
491- }
492- else throw("Strict value is not equal to itself.")
493- }
494- else throw("Strict value is not equal to itself.")
495- }
496- }
497-
498-
499-
500-@Callable(cD)
501-func putForFree (dg) = if ((0 > dg))
502- then throw("Invalid value passed")
503- else {
504- let cJ = cG(cD, dg, false)
505- cJ._9
506- }
507-
508-
509-
510-@Callable(cD)
511-func get () = {
512- let bY = cC(cD)
513- let dh = bY._1
514- let bF = bY._2
515- let cF = bY._3
516- let bn = bY._4
517- let bG = bY._5
518- let di = invoke(as, "burn", [cF], [AttachedPayment(bn, cF)])
519- if ((di == di))
520- then bG
521- else throw("Strict value is not equal to itself.")
522- }
523-
524-
525-
526-@Callable(cD)
527-func getNoLess (dj,dk) = {
528- let bY = cC(cD)
529- let bE = bY._1
530- let bF = bY._2
531- let cF = bY._3
532- let bn = bY._4
533- let bG = bY._5
534- if ((dj > bE))
535- then throw(((("noLessThenAmtAsset failed: " + toString(bE)) + " < ") + toString(dj)))
536- else if ((dk > bF))
537- then throw(((("noLessThenPriceAsset failed: " + toString(bF)) + " < ") + toString(dk)))
538- else {
539- let di = invoke(as, "burn", [cF], [AttachedPayment(bn, cF)])
540- if ((di == di))
541- then bG
542- else throw("Strict value is not equal to itself.")
543- }
544- }
545-
546-
547-
548-@Callable(cD)
549-func unstakeAndGet (dl) = {
550- let dm = if ((size(cD.payments) != 0))
551- then throw("No payments are expected")
552- else true
553- if ((dm == dm))
430+@Callable(aY)
431+func confirmManager () = {
432+ let bP = aI()
433+ let bQ = if (isDefined(bP))
434+ then true
435+ else throw("no pending manager")
436+ if ((bQ == bQ))
554437 then {
555- let bc = av()
556- let cU = ay()
557- let bp = fromBase58String(bc[n])
558- let cV = valueOrErrorMessage(addressFromString(cU[y]), "Error. Incorrect staking address.")
559- let dn = invoke(cV, "unstake", [toBase58String(bp), dl], nil)
560- if ((dn == dn))
561- then {
562- let bY = bl(toBase58String(cD.transactionId), toBase58String(bp), dl, cD.caller)
563- let bs = parseIntValue(bY._9)
564- let bG = bY._10
565- let do = if (if (at())
566- then true
567- else (bs == k))
568- then throw(("Get operation is blocked by admin. Status = " + toString(bs)))
569- else true
570- if ((do == do))
571- then {
572- let di = invoke(as, "burn", [dl], [AttachedPayment(bp, dl)])
573- if ((di == di))
574- then bG
575- else throw("Strict value is not equal to itself.")
576- }
577- else throw("Strict value is not equal to itself.")
578- }
438+ let bR = if ((aY.callerPublicKey == value(bP)))
439+ then true
440+ else throw("you are not pending manager")
441+ if ((bR == bR))
442+ then [StringEntry(f(), toBase58String(value(bP))), DeleteEntry(g())]
579443 else throw("Strict value is not equal to itself.")
580444 }
581445 else throw("Strict value is not equal to itself.")
582446 }
583447
584448
585-
586-@Callable(cD)
587-func activate (dp,dq) = if ((toString(cD.caller) != toString(as)))
588- then throw("permissions denied")
589- else $Tuple2([StringEntry(V(), dp), StringEntry(W(), dq)], "success")
590-
591-
592-
593-@Callable(cD)
594-func getPoolConfigWrapperREADONLY () = $Tuple2(nil, av())
595-
596-
597-
598-@Callable(cD)
599-func getAccBalanceWrapperREADONLY (aP) = $Tuple2(nil, aO(aP))
600-
601-
602-
603-@Callable(cD)
604-func calcPricesWrapperREADONLY (aW,aX,bb) = {
605- let bk = ba(aW, aX, bb)
606- $Tuple2(nil, [toString(bk[0]), toString(bk[1]), toString(bk[2])])
607- }
608-
609-
610-
611-@Callable(cD)
612-func toX18WrapperREADONLY (B,C) = $Tuple2(nil, toString(A(B, C)))
613-
614-
615-
616-@Callable(cD)
617-func fromX18WrapperREADONLY (E,F) = $Tuple2(nil, D(parseBigIntValue(E), F))
618-
619-
620-
621-@Callable(cD)
622-func calcPriceBigIntWrapperREADONLY (aR,aS) = $Tuple2(nil, toString(aQ(parseBigIntValue(aR), parseBigIntValue(aS))))
623-
624-
625-
626-@Callable(cD)
627-func estimatePutOperationWrapperREADONLY (bm,bI,bJ,bK,bL,bM,S,bN,bO) = $Tuple2(nil, bH(bm, bI, bJ, bK, bL, bM, S, bN, bO))
628-
629-
630-
631-@Callable(cD)
632-func estimateGetOperationWrapperREADONLY (bm,bn,bo,S) = {
633- let bY = bl(bm, bn, bo, addressFromStringValue(S))
634- $Tuple2(nil, $Tuple10(bY._1, bY._2, bY._3, bY._4, bY._5, bY._6, bY._7, toString(bY._8), bY._9, bY._10))
635- }
636-
637-
638-
639-@Callable(cD)
640-func statsREADONLY () = {
641- let bc = av()
642- let bp = fromBase58String(bc[n])
643- let cq = bc[o]
644- let cr = bc[p]
645- let bR = bc[s]
646- let bS = bc[t]
647- let bd = parseIntValue(bc[q])
648- let be = parseIntValue(bc[r])
649- let dr = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity
650- let cs = aO(cq)
651- let ct = aO(cr)
652- let ds = if ((dr == 0))
653- then [e, e, e]
654- else ba(cs, ct, dr)
655- let bz = 0
656- let dt = D(ds[1], b)
657- let du = D(ds[2], b)
658- let dv = value(getInteger(as, ai(toString(this))))
659- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cs), toString(ct), toString(dr), toString(bz), toString(dt), toString(du), toString(dv)], f))
660- }
661-
662-
663-
664-@Callable(cD)
665-func evaluatePutByAmountAssetREADONLY (bJ) = {
666- let bc = av()
667- let bp = fromBase58String(bc[n])
668- let bP = bc[o]
669- let bq = fromBase58String(bP)
670- let bQ = bc[p]
671- let br = fromBase58String(bQ)
672- let bd = parseIntValue(bc[q])
673- let be = parseIntValue(bc[r])
674- let bs = bc[m]
675- let dr = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity
676- let cs = aO(bP)
677- let ct = aO(bQ)
678- let aY = A(cs, bd)
679- let aZ = A(ct, be)
680- let by = if ((dr == 0))
681- then e
682- else aQ(aZ, aY)
683- let bV = A(bJ, bd)
684- let bW = fraction(bV, by, d)
685- let bL = D(bW, be)
686- let cJ = bH("", 500000, bJ, bq, bL, br, "", true, false)
687- let cg = cJ._1
688- let dw = cJ._3
689- let bu = cJ._4
690- let bw = cJ._5
691- let bt = cJ._6
692- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cg), toString(D(by, b)), toString(bu), toString(bw), toString(bt), bs, toString(bJ), toString(bL)], f))
693- }
694-
695-
696-
697-@Callable(cD)
698-func evaluatePutByPriceAssetREADONLY (bL) = {
699- let bc = av()
700- let bp = fromBase58String(bc[n])
701- let bP = bc[o]
702- let bq = fromBase58String(bP)
703- let bQ = bc[p]
704- let br = fromBase58String(bQ)
705- let bd = parseIntValue(bc[q])
706- let be = parseIntValue(bc[r])
707- let bs = bc[m]
708- let dr = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity
709- let dx = aO(bP)
710- let dy = aO(bQ)
711- let dz = A(dx, bd)
712- let dA = A(dy, be)
713- let by = if ((dr == 0))
714- then e
715- else aQ(dA, dz)
716- let bW = A(bL, be)
717- let bV = fraction(bW, d, by)
718- let bJ = D(bV, bd)
719- let cJ = bH("", 500000, bJ, bq, bL, br, "", true, false)
720- let cg = cJ._1
721- let dw = cJ._3
722- let bu = cJ._4
723- let bw = cJ._5
724- let bt = cJ._6
725- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cg), toString(D(by, b)), toString(bu), toString(bw), toString(bt), bs, toString(bJ), toString(bL)], f))
726- }
727-
728-
729-
730-@Callable(cD)
731-func evaluateGetREADONLY (dB,dC) = {
732- let bY = bl("", dB, dC, this)
733- let bE = bY._1
734- let bF = bY._2
735- let bu = bY._5
736- let bw = bY._6
737- let bt = bY._7
738- let bz = bY._8
739- let bs = parseIntValue(bY._9)
740- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bE), toString(bF), toString(bu), toString(bw), toString(bt), toString(bz), toString(bs)], f))
741- }
742-
743-
744-@Verifier(dD)
745-func dE () = {
746- let cL = dD
747- if ($isInstanceOf(cL, "Order"))
748- then {
749- let cp = cL
750- let dF = au()
751- let al = co(cp)
752- let am = sigVerify(cp.bodyBytes, cp.proofs[0], cp.senderPublicKey)
753- let an = sigVerify(cp.bodyBytes, cp.proofs[1], dF)
754- if (if (if (al)
755- then am
756- else false)
757- then an
758- else false)
759- then true
760- else ak(al, am, an)
761- }
762- else {
763- let dG = {
764- let dH = cK()
765- if ($isInstanceOf(dH, "ByteVector"))
766- then {
767- let cP = dH
768- cP
769- }
770- else if ($isInstanceOf(dH, "Unit"))
771- then dD.senderPublicKey
772- else throw("Match error")
449+@Verifier(bS)
450+func bT () = {
451+ let bU = {
452+ let aG = aF()
453+ if ($isInstanceOf(aG, "ByteVector"))
454+ then {
455+ let ba = aG
456+ ba
773457 }
774- sigVerify(dD.bodyBytes, dD.proofs[0], dG)
775- }
458+ else if ($isInstanceOf(aG, "Unit"))
459+ then bS.senderPublicKey
460+ else throw("Match error")
461+ }
462+ sigVerify(bS.bodyBytes, bS.proofs[0], bU)
776463 }
777464
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = 8
4+let a = "__"
55
6-let b = 100000000
6+let b = ""
77
8-let c = toBigInt(100000000)
9-
10-let d = toBigInt(1000000000000000000)
11-
12-let e = toBigInt(0)
13-
14-let f = "__"
15-
16-let g = ""
17-
18-let h = 1
19-
20-let i = 2
21-
22-let j = 3
23-
24-let k = 4
25-
26-let l = 1
27-
28-let m = 2
29-
30-let n = 3
31-
32-let o = 4
33-
34-let p = 5
35-
36-let q = 6
37-
38-let r = 7
39-
40-let s = 8
41-
42-let t = 9
43-
44-let u = 10
45-
46-let v = 1
47-
48-let w = 2
49-
50-let x = 3
51-
52-let y = 1
53-
54-let z = 7
55-
56-func A (B,C) = fraction(toBigInt(B), d, toBigInt(C))
8+func c (d) = valueOrErrorMessage(getString(this, d), ("No data for this.key=" + d))
579
5810
59-func D (E,F) = toInt(fraction(E, toBigInt(F), d))
11+func e (d) = valueOrErrorMessage(getBoolean(this, d), ("No data for this.key=" + d))
6012
6113
62-func G (H,I,J) = fraction(H, I, J)
14+func f () = makeString(["%s", "managerPublicKey"], a)
6315
6416
65-func K (E) = if ((e > E))
66- then -(E)
67- else E
17+func g () = makeString(["%s", "pendingManagerPublicKey"], a)
6818
6919
70-func L () = "%s__factoryContract"
20+func h (i,j,k,l) = throw(((((((i + ": baseAssetStr=") + j) + " userAddressStr=") + k) + " getTxIdStr=") + l))
7121
7222
73-func M () = "%s__managerPublicKey"
23+func m () = makeString(["%s", "assetsStoreContract"], a)
7424
7525
76-func N () = "%s%s__price__last"
26+func n (j) = ("%s%s%s__config__asset__" + j)
7727
7828
79-func O (P,Q) = makeString(["%s%s%d%d__price__history", toString(P), toString(Q)], f)
29+func o (p) = makeString(["%s%s", "proxyAddress", p], a)
8030
8131
82-func R (S,T) = ((("%s%s%s__P__" + S) + "__") + T)
32+func q (p) = makeString(["%s%s", "balance", p], a)
8333
8434
85-func U (S,T) = ((("%s%s%s__G__" + S) + "__") + T)
35+func r () = "%s__nextInternalAssetId"
8636
8737
88-func V () = "%s__amountAsset"
38+func s (t) = ("%s%s%d__price__last__" + t)
8939
9040
91-func W () = "%s__priceAsset"
41+func u (t,v) = makeString(["%s%s%s%d%s__topup__last__height", t, v], a)
9242
9343
94-func X (P,Q) = makeString(["%s%s%d%d__K_history", toString(P), toString(Q)], f)
44+func w (t,x,y) = makeString(["%s%s%d%d%d__price__history", t, toString(x), toString(y)], a)
9545
9646
97-func Y () = "%s__factoryConfig"
47+func z (t) = ("%s%s%d__total__locked__" + t)
9848
9949
100-func Z () = "%s%s__matcher__publicKey"
50+func A (B,k) = makeString(["%s%s%d%s__total__locked", B, k], a)
10151
10252
103-func aa (ab) = (("%s%s%s__" + ab) + "__mappings__poolContract2LpAsset")
53+func C (D) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(D))
10454
10555
106-func ac (ad,ae) = (((("%d%d%s__" + ad) + "__") + ae) + "__config")
56+func E (j) = ("%s%s%s__mappings__baseAsset2internalId__" + j)
10757
10858
109-func af (ag) = ("%s%s%s__mappings__baseAsset2internalId__" + ag)
59+func F (G) = ("%s%s%s__mappings__share2baseAssetId__" + G)
11060
11161
112-func ah () = "%s__shutdown"
62+func H (j) = ("%s%s%s__mappings__baseAsset2shareId__" + j)
11363
11464
115-func ai (aj) = ("%s%s__poolWeight__" + aj)
65+func I (B) = ("%s%s%d__shutdown__put__" + B)
11666
11767
118-func ak (al,am,an) = throw(((((("order validation failed: orderValid=" + toString(al)) + " senderValid=") + toString(am)) + " matcherValid=") + toString(an)))
68+func J (B) = ("%s%s%d__shutdown__manager__" + B)
11969
12070
121-func ao (ap,aq) = valueOrErrorMessage(getString(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], ""))
71+func K () = addressFromStringValue(value(getString(m())))
12272
12373
124-func ar (ap,aq) = valueOrErrorMessage(getInteger(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], ""))
74+let L = 1
75+
76+let M = 2
77+
78+let N = 3
79+
80+let O = 4
81+
82+let P = 5
83+
84+func Q (G,B,R,S,T) = makeString(["%s%d%d%d%d", G, B, toString(R), toString(S), toString(T)], a)
12585
12686
127-let as = addressFromStringValue(ao(this, L()))
87+let U = 1
12888
129-func at () = valueOrElse(getBoolean(as, ah()), false)
89+let V = 2
90+
91+func W (X,Y) = makeString(["%d%d", toString(X), toString(Y)], a)
13092
13193
132-func au () = fromBase58String(ao(as, Z()))
133-
134-
135-func av () = {
136- let aw = ao(this, V())
137- let ax = ao(this, W())
138- let ae = ar(as, af(ax))
139- let ad = ar(as, af(aw))
140- split(ao(as, ac(toString(ad), toString(ae))), f)
94+func Z (d) = {
95+ let aa = split(valueOrElse(getString(this, d), W(0, 0)), a)
96+[-1, parseIntValue(aa[U]), parseIntValue(aa[V])]
14197 }
14298
14399
144-func ay () = split(ao(as, Y()), f)
100+func ab (ac,B,ad,ae) = makeString(["%s%d%s%s", ac, B, ad, ae], a)
145101
146102
147-func az (aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ)], f)
103+let af = 1
104+
105+let ag = 2
106+
107+let ah = 3
108+
109+let ai = 4
110+
111+let aj = 5
112+
113+let ak = 6
114+
115+let al = 7
116+
117+let am = 8
118+
119+func an (ao,ap,aq,ar,as,at,au,av) = makeString(["%s%d%d%d%d%d%d%d", ao, ap, aq, ar, as, at, au, av], a)
148120
149121
150-func aK (aL,aM,aN,aD,aG,aH) = makeString(["%d%d%d%d%d%d", toString(aL), toString(aM), toString(aN), toString(aD), toString(aG), toString(aH)], f)
122+func aw (ao,ap,aq,ar,as,at,au,av) = an(ao, toString(ap), toString(aq), toString(ar), toString(as), toString(at), toString(au), toString(av))
151123
152124
153-func aO (aP) = if ((aP == "WAVES"))
154- then wavesBalance(this).available
155- else assetBalance(this, fromBase58String(aP))
125+func ax (ay,az,aA) = an(az, ay[ag], ay[ah], ay[ai], ay[aj], ay[ak], ay[al], toString(aA))
156126
157127
158-func aQ (aR,aS) = fraction(aR, d, aS)
159-
160-
161-func aT (aU,aV,aW,aX) = {
162- let aY = A(aW, aU)
163- let aZ = A(aX, aV)
164- aQ(aZ, aY)
128+func aB (j) = {
129+ let d = n(j)
130+ split(c(d), a)
165131 }
166132
167133
168-func ba (aW,aX,bb) = {
169- let bc = av()
170- let bd = parseIntValue(bc[q])
171- let be = parseIntValue(bc[r])
172- let bf = aT(bd, be, aW, aX)
173- let aS = A(aW, bd)
174- let aR = A(aX, be)
175- let bg = A(bb, b)
176- let bh = aQ(aS, bg)
177- let bi = aQ(aR, bg)
178-[bf, bh, bi]
134+func aC (d,X,Y) = {
135+ let aD = Z(d)
136+ StringEntry(d, W((aD[U] + X), (aD[V] + Y)))
179137 }
180138
181139
182-func bj (aW,aX,bb) = {
183- let bk = ba(aW, aX, bb)
184-[D(bk[0], b), D(bk[1], b), D(bk[2], b)]
140+func aE (d,X,Y) = {
141+ let aD = Z(d)
142+ StringEntry(d, W((aD[U] - X), (aD[V] - Y)))
185143 }
186144
187145
188-func bl (bm,bn,bo,S) = {
189- let bc = av()
190- let bp = bc[n]
191- let bq = bc[o]
192- let br = bc[p]
193- let aU = parseIntValue(bc[q])
194- let aV = parseIntValue(bc[r])
195- let bs = bc[m]
196- let bt = valueOrErrorMessage(assetInfo(fromBase58String(bp)), (("Asset " + bp) + " doesn't exist")).quantity
197- if ((bp != bn))
198- then throw("Invalid asset passed.")
199- else {
200- let bu = aO(bq)
201- let bv = A(bu, aU)
202- let bw = aO(br)
203- let bx = A(bw, aV)
204- let by = aQ(bx, bv)
205- let bz = D(by, b)
206- let bA = A(bo, b)
207- let bB = A(bt, b)
208- let bC = fraction(bv, bA, bB)
209- let bD = fraction(bx, bA, bB)
210- let bE = D(bC, aU)
211- let bF = D(bD, aV)
212- let bG = if ((bm == ""))
213- then nil
214- else [ScriptTransfer(S, bE, if ((bq == "WAVES"))
215- then unit
216- else fromBase58String(bq)), ScriptTransfer(S, bF, if ((br == "WAVES"))
217- then unit
218- else fromBase58String(br)), StringEntry(U(toString(S), bm), aK(bE, bF, bo, bz, height, lastBlock.timestamp)), IntegerEntry(N(), bz), IntegerEntry(O(height, lastBlock.timestamp), bz)]
219- $Tuple10(bE, bF, bq, br, bu, bw, bt, by, bs, bG)
146+func aF () = {
147+ let aG = getString(f())
148+ if ($isInstanceOf(aG, "String"))
149+ then {
150+ let aH = aG
151+ fromBase58String(aH)
220152 }
221- }
222-
223-
224-func bH (bm,bI,bJ,bK,bL,bM,S,bN,bO) = {
225- let bc = av()
226- let bp = fromBase58String(bc[n])
227- let bP = bc[o]
228- let bQ = bc[p]
229- let bR = bc[s]
230- let bS = bc[t]
231- let bd = parseIntValue(bc[q])
232- let be = parseIntValue(bc[r])
233- let bs = bc[m]
234- let bt = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity
235- let bT = toBase58String(valueOrElse(bK, fromBase58String("WAVES")))
236- let bU = toBase58String(valueOrElse(bM, fromBase58String("WAVES")))
237- if (if ((bP != bT))
238- then true
239- else (bQ != bU))
240- then throw("Invalid amt or price asset passed.")
241- else {
242- let bu = if (bN)
243- then aO(bP)
244- else (aO(bP) - bJ)
245- let bw = if (bN)
246- then aO(bQ)
247- else (aO(bQ) - bL)
248- let bV = A(bJ, bd)
249- let bW = A(bL, be)
250- let bX = aQ(bW, bV)
251- let bv = A(bu, bd)
252- let bx = A(bw, be)
253- let bY = if ((bt == 0))
254- then {
255- let by = e
256- let bZ = e
257- let bg = pow((bV * bW), 0, toBigInt(5), 1, 0, DOWN)
258- $Tuple5(D(bg, b), D(bV, bd), D(bW, be), aQ((bx + bW), (bv + bV)), bZ)
259- }
260- else {
261- let by = aQ(bx, bv)
262- let bZ = fraction(K((by - bX)), d, by)
263- let ca = A(bI, b)
264- if (if ((by != e))
265- then (bZ > ca)
266- else false)
267- then throw(((("Price slippage " + toString(bZ)) + " exceeded the passed limit of ") + toString(ca)))
268- else {
269- let bB = A(bt, b)
270- let cb = fraction(bV, by, d)
271- let cc = fraction(bW, d, by)
272- let cd = if ((cb > bW))
273- then $Tuple2(cc, bW)
274- else $Tuple2(bV, cb)
275- let ce = cd._1
276- let cf = cd._2
277- let bg = fraction(bB, cf, bx)
278- $Tuple5(D(bg, b), D(ce, bd), D(cf, be), by, bZ)
279- }
280- }
281- let cg = bY._1
282- let ch = bY._2
283- let ci = bY._3
284- let bz = D(bY._4, b)
285- let cj = D(bY._5, b)
286- if ((0 >= cg))
287- then throw("Invalid calculations. LP calculated is less than zero.")
288- else {
289- let ck = if (!(bO))
290- then 0
291- else cg
292- let cl = (bJ - ch)
293- let cm = (bL - ci)
294- let cn = [IntegerEntry(N(), bz), IntegerEntry(O(height, lastBlock.timestamp), bz), StringEntry(R(S, bm), az(ch, ci, ck, bz, bI, cj, height, lastBlock.timestamp, cl, cm))]
295- $Tuple13(cg, ck, bz, bu, bw, bt, bp, bs, cn, cl, cm, bK, bM)
296- }
297- }
298- }
299-
300-
301-func co (cp) = {
302- let bc = av()
303- let cq = bc[o]
304- let cr = bc[p]
305- let bs = parseIntValue(bc[m])
306- let bd = parseIntValue(bc[q])
307- let be = parseIntValue(bc[r])
308- let cs = aO(cq)
309- let ct = aO(cr)
310- let by = if ((cp.orderType == Buy))
311- then aT(bd, be, (cs + cp.amount), ct)
312- else aT(bd, be, (cs - cp.amount), ct)
313- let bz = D(by, b)
314- if (if (if (at())
315- then true
316- else (bs == j))
317- then true
318- else (bs == k))
319- then throw("Exchange operations disabled")
320- else {
321- let cu = cp.assetPair.amountAsset
322- let cv = if ((cu == unit))
323- then "WAVES"
324- else toBase58String(value(cu))
325- let cw = cp.assetPair.priceAsset
326- let cx = if ((cw == unit))
327- then "WAVES"
328- else toBase58String(value(cw))
329- if (if ((cv != cq))
330- then true
331- else (cx != cr))
332- then throw("Wrong order assets.")
333- else {
334- let cy = cp.price
335- let cz = fraction(b, be, bd)
336- let cA = G(cy, b, cz)
337- let cB = if ((cp.orderType == Buy))
338- then (bz >= cA)
339- else (cA >= bz)
340- true
341- }
342- }
343- }
344-
345-
346-func cC (cD) = if ((size(cD.payments) != 1))
347- then throw("exactly 1 payment is expected")
348- else {
349- let cE = value(cD.payments[0])
350- let bn = value(cE.assetId)
351- let cF = cE.amount
352- let bY = bl(toBase58String(cD.transactionId), toBase58String(bn), cF, cD.caller)
353- let bE = bY._1
354- let bF = bY._2
355- let bs = parseIntValue(bY._9)
356- let bG = bY._10
357- if (if (at())
358- then true
359- else (bs == k))
360- then throw(("Get operation is blocked by admin. Status = " + toString(bs)))
361- else $Tuple5(bE, bF, cF, bn, bG)
362- }
363-
364-
365-func cG (cD,bI,bO) = if ((size(cD.payments) != 2))
366- then throw("exactly 2 payments are expected")
367- else {
368- let cH = value(cD.payments[0])
369- let cI = value(cD.payments[1])
370- let cJ = bH(toBase58String(cD.transactionId), bI, cH.amount, cH.assetId, cI.amount, cI.assetId, toString(cD.caller), false, bO)
371- let bs = parseIntValue(cJ._8)
372- if (if (if (at())
373- then true
374- else (bs == i))
375- then true
376- else (bs == k))
377- then throw(("Put operation is blocked by admin. Status = " + toString(bs)))
378- else cJ
379- }
380-
381-
382-func cK () = {
383- let cL = getString(M())
384- if ($isInstanceOf(cL, "String"))
385- then {
386- let cM = cL
387- fromBase58String(cM)
388- }
389- else if ($isInstanceOf(cL, "Unit"))
153+ else if ($isInstanceOf(aG, "Unit"))
390154 then unit
391155 else throw("Match error")
392156 }
393157
394158
395-func cN (cD) = {
396- let cO = throw("Permission denied")
397- let cL = cK()
398- if ($isInstanceOf(cL, "ByteVector"))
159+func aI () = {
160+ let aG = getString(g())
161+ if ($isInstanceOf(aG, "String"))
399162 then {
400- let cP = cL
401- if ((cD.callerPublicKey == cP))
402- then true
403- else cO
163+ let aH = aG
164+ fromBase58String(aH)
404165 }
405- else if ($isInstanceOf(cL, "Unit"))
406- then if ((cD.caller == this))
407- then true
408- else cO
166+ else if ($isInstanceOf(aG, "Unit"))
167+ then unit
409168 else throw("Match error")
410169 }
411170
412171
413-@Callable(cD)
414-func constructor (as) = {
415- let cQ = cN(cD)
416- if ((cQ == cQ))
417- then [StringEntry(L(), as)]
172+func aJ (p) = valueOrElse(getInteger(q(p)), 0)
173+
174+
175+func aK (aL,B,aM,aN,aO,R,S) = {
176+ let aa = Z(z(B))
177+ let aP = aa[V]
178+ let aQ = aL
179+ let aR = ((aQ - aP) + aN)
180+ if ((0 > aR))
181+ then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aQ)) + " baseAssetBalanceConsideringLock=") + toString(aR)))
182+ else {
183+ let aS = value(assetInfo(aO)).quantity
184+ let aq = if ((aS == 0))
185+ then (1 * S)
186+ else fraction(aR, S, aS)
187+ $Tuple5(aq, aQ, aP, aR, aS)
188+ }
189+ }
190+
191+
192+func aT (aL,B,aM,aO,R,S) = aK(aL, B, aM, 0, aO, R, S)
193+
194+
195+func aU (j) = {
196+ let aM = fromBase58String(j)
197+ let aV = aB(j)
198+ let G = aV[L]
199+ let aO = fromBase58String(G)
200+ let R = parseIntValue(aV[N])
201+ let S = parseIntValue(aV[O])
202+ let B = aV[M]
203+ let aW = aT(aJ(j), B, aM, aO, R, S)
204+ $Tuple6(IntegerEntry("price", aW._1), IntegerEntry("decimalsMultPrice", S), IntegerEntry("baseAssetBalance", aW._2), IntegerEntry("totalLockedBaseAmount", aW._3), IntegerEntry("baseAssetBalanceConsideringLock", aW._4), IntegerEntry("shareEmission", aW._5))
205+ }
206+
207+
208+func aX (aY) = {
209+ let aZ = throw("permission denied")
210+ let aG = aF()
211+ if ($isInstanceOf(aG, "ByteVector"))
212+ then {
213+ let ba = aG
214+ if ((aY.callerPublicKey == ba))
215+ then true
216+ else aZ
217+ }
218+ else if ($isInstanceOf(aG, "Unit"))
219+ then if ((aY.caller == this))
220+ then true
221+ else aZ
222+ else throw("Match error")
223+ }
224+
225+
226+func bb (aY,p) = {
227+ let bc = (toString(aY.caller) == valueOrElse(getString(o(p)), b))
228+ if (bc)
229+ then true
230+ else {
231+ let bd = aX(aY)
232+ if ((bd == bd))
233+ then true
234+ else throw("Strict value is not equal to itself.")
235+ }
236+ }
237+
238+
239+@Callable(aY)
240+func constructor (K) = {
241+ let bd = aX(aY)
242+ if ((bd == bd))
243+ then [StringEntry(m(), K)]
418244 else throw("Strict value is not equal to itself.")
419245 }
420246
421247
422248
423-@Callable(cD)
424-func setManager (cR) = {
425- let cQ = cN(cD)
426- if ((cQ == cQ))
249+@Callable(aY)
250+func adminRegisterAsset (j,be,bf,bg,bh,bi,bj) = {
251+ let aM = fromBase58String(j)
252+ let bk = value(assetInfo(aM)).decimals
253+ let bl = aX(aY)
254+ if ((bl == bl))
255+ then if ((toString(addressFromStringValue(bi)) != bi))
256+ then throw("invalid shutdownManagerAddress")
257+ else if ((0 > bh))
258+ then throw(("invalid getDelayinBlocks=" + toString(bh)))
259+ else {
260+ let bm = Issue(be, bf, 1, bk, true)
261+ let aO = calculateAssetId(bm)
262+ let G = toBase58String(aO)
263+ let S = ((100 * 1000) * 1000)
264+ let R = pow(10, 0, bk, 0, 0, DOWN)
265+ let bn = (1 * S)
266+ let bo = valueOrElse(getInteger(this, r()), 0)
267+ let B = toString(bo)
268+ let bp = invoke(K(), "createOrUpdate", [G, bg, false], nil)
269+ if ((bp == bp))
270+ then {
271+ let bq = invoke(K(), "addLabel", [G, "DEFI"], nil)
272+ if ((bq == bq))
273+ then [StringEntry(n(j), Q(G, B, R, S, bh)), StringEntry(C(bo), j), StringEntry(E(j), B), StringEntry(F(G), j), StringEntry(H(j), G), BooleanEntry(I(B), false), StringEntry(J(B), bi), IntegerEntry(r(), (bo + 1)), IntegerEntry(s(B), bn), IntegerEntry(w(B, height, lastBlock.timestamp), bn), bm, Burn(aO, 1), StringEntry(o(j), bj)]
274+ else throw("Strict value is not equal to itself.")
275+ }
276+ else throw("Strict value is not equal to itself.")
277+ }
278+ else throw("Strict value is not equal to itself.")
279+ }
280+
281+
282+
283+@Callable(aY)
284+func shutdownPut (br) = {
285+ let bs = toString(br)
286+ let bt = c(C(br))
287+ let bi = c(J(bs))
288+ if ((1 > size(bt)))
289+ then throw("invalid internalBaseAssetId")
290+ else if ((toString(aY.caller) != bi))
291+ then throw("access denied")
292+ else [BooleanEntry(I(toString(br)), true)]
293+ }
294+
295+
296+
297+@Callable(aY)
298+func put () = {
299+ let bu = value(aY.payments[0])
300+ let aM = value(bu.assetId)
301+ let j = toBase58String(aM)
302+ let k = toString(aY.caller)
303+ let aV = aB(j)
304+ let G = aV[L]
305+ let aO = fromBase58String(G)
306+ let R = parseIntValue(aV[N])
307+ let S = parseIntValue(aV[O])
308+ let B = aV[M]
309+ let bv = e(I(B))
310+ if (bv)
311+ then throw("put operation is blocked")
312+ else {
313+ let aL = (aJ(j) + bu.amount)
314+ let aq = aT(aL, B, aM, aO, R, S)._1
315+ let X = fraction(bu.amount, S, aq)
316+[Reissue(aO, X, true), ScriptTransfer(aY.caller, X, aO), StringEntry(ab("P", B, k, toBase58String(aY.transactionId)), aw("FINISHED", bu.amount, aq, X, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(o(j)))), bu.amount, aM), IntegerEntry(q(j), aL)]
317+ }
318+ }
319+
320+
321+
322+@Callable(aY)
323+func submitGetRequest () = {
324+ let bu = value(aY.payments[0])
325+ let aO = value(bu.assetId)
326+ let G = toBase58String(aO)
327+ let bw = toBase58String(aY.callerPublicKey)
328+ let ad = aY.caller
329+ let k = toString(ad)
330+ let X = bu.amount
331+ let j = c(F(G))
332+ let aM = fromBase58String(j)
333+ let aV = aB(j)
334+ let R = parseIntValue(aV[N])
335+ let S = parseIntValue(aV[O])
336+ let bx = parseIntValue(aV[P])
337+ let B = aV[M]
338+ let aq = aT(aJ(j), B, aM, aO, R, S)._1
339+ let Y = fraction(X, aq, S)
340+ let by = ab("G", B, k, toBase58String(aY.transactionId))
341+ let bz = aw("PENDING", X, aq, Y, height, lastBlock.timestamp, (height + bx), 0)
342+ let aL = aJ(j)
343+[Burn(aO, X), StringEntry(by, bz), aC(z(B), X, Y), aC(A(B, k), X, Y)]
344+ }
345+
346+
347+
348+@Callable(aY)
349+func executeGetRequest (j,k,l) = {
350+ let ad = addressFromStringValue(k)
351+ let bA = aB(j)
352+ let aO = fromBase58String(bA[L])
353+ let aM = fromBase58String(j)
354+ let B = bA[M]
355+ let by = ab("G", B, k, l)
356+ let bB = split(c(by), a)
357+ let ao = bB[af]
358+ let au = parseIntValue(bB[al])
359+ let bC = parseIntValue(bB[ag])
360+ let bD = parseIntValue(bB[ai])
361+ if ((ao != "PENDING"))
362+ then h("Status is not PENDING", j, k, l)
363+ else if ((au > height))
364+ then h(((("EndHeight[" + toString(au)) + "] > ") + toString(height)), j, k, l)
365+ else [ScriptTransfer(ad, bD, aM), StringEntry(by, ax(bB, "FINISHED", lastBlock.timestamp)), aE(z(B), bC, bD), aE(A(B, k), bC, bD), IntegerEntry(q(j), (aJ(j) - bD))]
366+ }
367+
368+
369+
370+@Callable(aY)
371+func topUpBalance (j,bE) = {
372+ let bA = aB(j)
373+ let bu = value(aY.payments[0])
374+ let bF = value(bu.assetId)
375+ let bG = toBase58String(bF)
376+ let aO = fromBase58String(bA[L])
377+ let R = parseIntValue(bA[N])
378+ let S = parseIntValue(bA[O])
379+ let B = bA[M]
380+ let bH = u(B, toString(aY.caller))
381+ let bI = valueOrElse(getInteger(this, bH), 0)
382+ let bJ = [bb(aY, j), if ((bI != height))
383+ then true
384+ else throw("only one topUp per block is allowed")]
385+ if ((bJ == bJ))
386+ then if ((j != bG))
387+ then throw("attached payment's asset id is NOT matched passed baseAssetStr")
388+ else if ((size(aY.payments) > 1))
389+ then throw("only one payment can be attached")
390+ else {
391+ let bK = (aJ(bG) + bE)
392+ let aq = aK(bK, B, bF, bu.amount, aO, R, S)._1
393+[IntegerEntry(s(B), aq), IntegerEntry(w(B, height, lastBlock.timestamp), aq), IntegerEntry(bH, height), IntegerEntry(q(bG), bK)]
394+ }
395+ else throw("Strict value is not equal to itself.")
396+ }
397+
398+
399+
400+@Callable(aY)
401+func currentSysParamsREST (j) = {
402+ let bL = aU(j)
403+ let aq = bL._1.value
404+ let S = bL._2.value
405+ let aQ = bL._3.value
406+ let aP = bL._4.value
407+ let aR = bL._5.value
408+ let aS = bL._6.value
409+ let bM = makeString(["startCurrentSysParamsREST", toString(aq), toString(S), toString(aQ), toString(aP), toString(aR), toString(aS), "endCurrentSysParamsREST"], a)
410+ throw(bM)
411+ }
412+
413+
414+
415+@Callable(aY)
416+func setManager (bN) = {
417+ let bd = aX(aY)
418+ if ((bd == bd))
427419 then {
428- let cS = fromBase58String(cR)
429- if ((cS == cS))
430- then [StringEntry(M(), cR)]
420+ let bO = fromBase58String(bN)
421+ if ((bO == bO))
422+ then [StringEntry(g(), bN)]
431423 else throw("Strict value is not equal to itself.")
432424 }
433425 else throw("Strict value is not equal to itself.")
434426 }
435427
436428
437429
438-@Callable(cD)
439-func put (bI,cT) = {
440- let cU = ay()
441- let cV = valueOrErrorMessage(addressFromString(cU[y]), "Error. Incorrect staking address.")
442- let cW = valueOrErrorMessage(addressFromString(cU[z]), "Error. Incorrect slippage contract address.")
443- if ((0 > bI))
444- then throw("Invalid slippageTolerance passed")
445- else {
446- let cJ = cG(cD, bI, true)
447- let ck = cJ._2
448- let bp = cJ._7
449- let bG = cJ._9
450- let cl = cJ._10
451- let cm = cJ._11
452- let cX = cJ._12
453- let cY = cJ._13
454- let cZ = invoke(as, "emit", [ck], nil)
455- if ((cZ == cZ))
456- then {
457- let da = {
458- let cL = cZ
459- if ($isInstanceOf(cL, "Address"))
460- then {
461- let db = cL
462- invoke(db, "emit", [ck], nil)
463- }
464- else unit
465- }
466- if ((da == da))
467- then {
468- let dc = if ((cl > 0))
469- then invoke(cW, "put", nil, [AttachedPayment(cX, cl)])
470- else nil
471- if ((dc == dc))
472- then {
473- let dd = if ((cm > 0))
474- then invoke(cW, "put", nil, [AttachedPayment(cY, cm)])
475- else nil
476- if ((dd == dd))
477- then {
478- let de = if (cT)
479- then {
480- let df = invoke(cV, "stake", nil, [AttachedPayment(bp, ck)])
481- if ((df == df))
482- then nil
483- else throw("Strict value is not equal to itself.")
484- }
485- else [ScriptTransfer(cD.caller, ck, bp)]
486- (bG ++ de)
487- }
488- else throw("Strict value is not equal to itself.")
489- }
490- else throw("Strict value is not equal to itself.")
491- }
492- else throw("Strict value is not equal to itself.")
493- }
494- else throw("Strict value is not equal to itself.")
495- }
496- }
497-
498-
499-
500-@Callable(cD)
501-func putForFree (dg) = if ((0 > dg))
502- then throw("Invalid value passed")
503- else {
504- let cJ = cG(cD, dg, false)
505- cJ._9
506- }
507-
508-
509-
510-@Callable(cD)
511-func get () = {
512- let bY = cC(cD)
513- let dh = bY._1
514- let bF = bY._2
515- let cF = bY._3
516- let bn = bY._4
517- let bG = bY._5
518- let di = invoke(as, "burn", [cF], [AttachedPayment(bn, cF)])
519- if ((di == di))
520- then bG
521- else throw("Strict value is not equal to itself.")
522- }
523-
524-
525-
526-@Callable(cD)
527-func getNoLess (dj,dk) = {
528- let bY = cC(cD)
529- let bE = bY._1
530- let bF = bY._2
531- let cF = bY._3
532- let bn = bY._4
533- let bG = bY._5
534- if ((dj > bE))
535- then throw(((("noLessThenAmtAsset failed: " + toString(bE)) + " < ") + toString(dj)))
536- else if ((dk > bF))
537- then throw(((("noLessThenPriceAsset failed: " + toString(bF)) + " < ") + toString(dk)))
538- else {
539- let di = invoke(as, "burn", [cF], [AttachedPayment(bn, cF)])
540- if ((di == di))
541- then bG
542- else throw("Strict value is not equal to itself.")
543- }
544- }
545-
546-
547-
548-@Callable(cD)
549-func unstakeAndGet (dl) = {
550- let dm = if ((size(cD.payments) != 0))
551- then throw("No payments are expected")
552- else true
553- if ((dm == dm))
430+@Callable(aY)
431+func confirmManager () = {
432+ let bP = aI()
433+ let bQ = if (isDefined(bP))
434+ then true
435+ else throw("no pending manager")
436+ if ((bQ == bQ))
554437 then {
555- let bc = av()
556- let cU = ay()
557- let bp = fromBase58String(bc[n])
558- let cV = valueOrErrorMessage(addressFromString(cU[y]), "Error. Incorrect staking address.")
559- let dn = invoke(cV, "unstake", [toBase58String(bp), dl], nil)
560- if ((dn == dn))
561- then {
562- let bY = bl(toBase58String(cD.transactionId), toBase58String(bp), dl, cD.caller)
563- let bs = parseIntValue(bY._9)
564- let bG = bY._10
565- let do = if (if (at())
566- then true
567- else (bs == k))
568- then throw(("Get operation is blocked by admin. Status = " + toString(bs)))
569- else true
570- if ((do == do))
571- then {
572- let di = invoke(as, "burn", [dl], [AttachedPayment(bp, dl)])
573- if ((di == di))
574- then bG
575- else throw("Strict value is not equal to itself.")
576- }
577- else throw("Strict value is not equal to itself.")
578- }
438+ let bR = if ((aY.callerPublicKey == value(bP)))
439+ then true
440+ else throw("you are not pending manager")
441+ if ((bR == bR))
442+ then [StringEntry(f(), toBase58String(value(bP))), DeleteEntry(g())]
579443 else throw("Strict value is not equal to itself.")
580444 }
581445 else throw("Strict value is not equal to itself.")
582446 }
583447
584448
585-
586-@Callable(cD)
587-func activate (dp,dq) = if ((toString(cD.caller) != toString(as)))
588- then throw("permissions denied")
589- else $Tuple2([StringEntry(V(), dp), StringEntry(W(), dq)], "success")
590-
591-
592-
593-@Callable(cD)
594-func getPoolConfigWrapperREADONLY () = $Tuple2(nil, av())
595-
596-
597-
598-@Callable(cD)
599-func getAccBalanceWrapperREADONLY (aP) = $Tuple2(nil, aO(aP))
600-
601-
602-
603-@Callable(cD)
604-func calcPricesWrapperREADONLY (aW,aX,bb) = {
605- let bk = ba(aW, aX, bb)
606- $Tuple2(nil, [toString(bk[0]), toString(bk[1]), toString(bk[2])])
607- }
608-
609-
610-
611-@Callable(cD)
612-func toX18WrapperREADONLY (B,C) = $Tuple2(nil, toString(A(B, C)))
613-
614-
615-
616-@Callable(cD)
617-func fromX18WrapperREADONLY (E,F) = $Tuple2(nil, D(parseBigIntValue(E), F))
618-
619-
620-
621-@Callable(cD)
622-func calcPriceBigIntWrapperREADONLY (aR,aS) = $Tuple2(nil, toString(aQ(parseBigIntValue(aR), parseBigIntValue(aS))))
623-
624-
625-
626-@Callable(cD)
627-func estimatePutOperationWrapperREADONLY (bm,bI,bJ,bK,bL,bM,S,bN,bO) = $Tuple2(nil, bH(bm, bI, bJ, bK, bL, bM, S, bN, bO))
628-
629-
630-
631-@Callable(cD)
632-func estimateGetOperationWrapperREADONLY (bm,bn,bo,S) = {
633- let bY = bl(bm, bn, bo, addressFromStringValue(S))
634- $Tuple2(nil, $Tuple10(bY._1, bY._2, bY._3, bY._4, bY._5, bY._6, bY._7, toString(bY._8), bY._9, bY._10))
635- }
636-
637-
638-
639-@Callable(cD)
640-func statsREADONLY () = {
641- let bc = av()
642- let bp = fromBase58String(bc[n])
643- let cq = bc[o]
644- let cr = bc[p]
645- let bR = bc[s]
646- let bS = bc[t]
647- let bd = parseIntValue(bc[q])
648- let be = parseIntValue(bc[r])
649- let dr = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity
650- let cs = aO(cq)
651- let ct = aO(cr)
652- let ds = if ((dr == 0))
653- then [e, e, e]
654- else ba(cs, ct, dr)
655- let bz = 0
656- let dt = D(ds[1], b)
657- let du = D(ds[2], b)
658- let dv = value(getInteger(as, ai(toString(this))))
659- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cs), toString(ct), toString(dr), toString(bz), toString(dt), toString(du), toString(dv)], f))
660- }
661-
662-
663-
664-@Callable(cD)
665-func evaluatePutByAmountAssetREADONLY (bJ) = {
666- let bc = av()
667- let bp = fromBase58String(bc[n])
668- let bP = bc[o]
669- let bq = fromBase58String(bP)
670- let bQ = bc[p]
671- let br = fromBase58String(bQ)
672- let bd = parseIntValue(bc[q])
673- let be = parseIntValue(bc[r])
674- let bs = bc[m]
675- let dr = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity
676- let cs = aO(bP)
677- let ct = aO(bQ)
678- let aY = A(cs, bd)
679- let aZ = A(ct, be)
680- let by = if ((dr == 0))
681- then e
682- else aQ(aZ, aY)
683- let bV = A(bJ, bd)
684- let bW = fraction(bV, by, d)
685- let bL = D(bW, be)
686- let cJ = bH("", 500000, bJ, bq, bL, br, "", true, false)
687- let cg = cJ._1
688- let dw = cJ._3
689- let bu = cJ._4
690- let bw = cJ._5
691- let bt = cJ._6
692- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cg), toString(D(by, b)), toString(bu), toString(bw), toString(bt), bs, toString(bJ), toString(bL)], f))
693- }
694-
695-
696-
697-@Callable(cD)
698-func evaluatePutByPriceAssetREADONLY (bL) = {
699- let bc = av()
700- let bp = fromBase58String(bc[n])
701- let bP = bc[o]
702- let bq = fromBase58String(bP)
703- let bQ = bc[p]
704- let br = fromBase58String(bQ)
705- let bd = parseIntValue(bc[q])
706- let be = parseIntValue(bc[r])
707- let bs = bc[m]
708- let dr = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity
709- let dx = aO(bP)
710- let dy = aO(bQ)
711- let dz = A(dx, bd)
712- let dA = A(dy, be)
713- let by = if ((dr == 0))
714- then e
715- else aQ(dA, dz)
716- let bW = A(bL, be)
717- let bV = fraction(bW, d, by)
718- let bJ = D(bV, bd)
719- let cJ = bH("", 500000, bJ, bq, bL, br, "", true, false)
720- let cg = cJ._1
721- let dw = cJ._3
722- let bu = cJ._4
723- let bw = cJ._5
724- let bt = cJ._6
725- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cg), toString(D(by, b)), toString(bu), toString(bw), toString(bt), bs, toString(bJ), toString(bL)], f))
726- }
727-
728-
729-
730-@Callable(cD)
731-func evaluateGetREADONLY (dB,dC) = {
732- let bY = bl("", dB, dC, this)
733- let bE = bY._1
734- let bF = bY._2
735- let bu = bY._5
736- let bw = bY._6
737- let bt = bY._7
738- let bz = bY._8
739- let bs = parseIntValue(bY._9)
740- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bE), toString(bF), toString(bu), toString(bw), toString(bt), toString(bz), toString(bs)], f))
741- }
742-
743-
744-@Verifier(dD)
745-func dE () = {
746- let cL = dD
747- if ($isInstanceOf(cL, "Order"))
748- then {
749- let cp = cL
750- let dF = au()
751- let al = co(cp)
752- let am = sigVerify(cp.bodyBytes, cp.proofs[0], cp.senderPublicKey)
753- let an = sigVerify(cp.bodyBytes, cp.proofs[1], dF)
754- if (if (if (al)
755- then am
756- else false)
757- then an
758- else false)
759- then true
760- else ak(al, am, an)
761- }
762- else {
763- let dG = {
764- let dH = cK()
765- if ($isInstanceOf(dH, "ByteVector"))
766- then {
767- let cP = dH
768- cP
769- }
770- else if ($isInstanceOf(dH, "Unit"))
771- then dD.senderPublicKey
772- else throw("Match error")
449+@Verifier(bS)
450+func bT () = {
451+ let bU = {
452+ let aG = aF()
453+ if ($isInstanceOf(aG, "ByteVector"))
454+ then {
455+ let ba = aG
456+ ba
773457 }
774- sigVerify(dD.bodyBytes, dD.proofs[0], dG)
775- }
458+ else if ($isInstanceOf(aG, "Unit"))
459+ then bS.senderPublicKey
460+ else throw("Match error")
461+ }
462+ sigVerify(bS.bodyBytes, bS.proofs[0], bU)
776463 }
777464

github/deemru/w8io/169f3d6 
117.10 ms