tx · HTfawEvDjXoyAAMqobWkMwKdrf1whxkMw35grEAo9vjY

3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37:  -0.02700000 Waves

2024.07.09 09:27 [3186108] smart account 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37 > SELF 0.00000000 Waves

{ "type": 13, "id": "HTfawEvDjXoyAAMqobWkMwKdrf1whxkMw35grEAo9vjY", "fee": 2700000, "feeAssetId": null, "timestamp": 1720506438362, "version": 1, "sender": "3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37", "senderPublicKey": "vmMXxwQAMUAoisvL193ptPiTtaWQqL5YNu2zs1ouTbY", "proofs": [ "4AzSYD5sJMVLFmjYtuGdAXaWPBBN6PSQb54d1pbDPouineyBa7LsGL4ZhBE6xwjsQkUaXqMkZ9jEzFVk1ow1pFeQ" ], "script": "base64:BwJJCAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGFoACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAEYmlnMAkAtgIBAAAACWtNdWx0aXNpZwIMJXNfX211bHRpc2lnAQdrU3RhdHVzAgRkYXBwBHR4SWQJALkJAgkAzAgCAgolc19fc3RhdHVzCQDMCAIFBGRhcHAJAMwIAgUEdHhJZAUDbmlsBQlzZXBhcmF0b3IACWtTaHV0ZG93bgIMJXNfX3NodXRkb3duAAtrUHVibGljS2V5cwIOJXNfX3B1YmxpY0tleXMAEWtNYXRjaGVyUHVibGlj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lsBQthY2NEYXRhTGlzdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQADAwkBCWlzRGVmaW5lZAEFFGZhY3RvcnlBZGRyZXNzT3B0aW9uCQEJaXNEZWZpbmVkAQkAnQgCBQ5mYWN0b3J5QWRkcmVzcwUJa011bHRpc2lnBwQHJG1hdGNoMAkAnQgCBQ5mYWN0b3J5QWRkcmVzcwUJa011bHRpc2lnAwkAAQIFByRtYXRjaDACBlN0cmluZwQIbXVsdGlzaWcFByRtYXRjaDAECXN0YXR1c0tleQkBB2tTdGF0dXMCCQClCAEFBHRoaXMJANgEAQgFAnR4AmlkBAZzdGF0dXMJAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQUIbXVsdGlzaWcFCXN0YXR1c0tleQcFBnN0YXR1cwcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXndR8TT", "chainId": 84, "height": 3186108, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9hGMB5qPwWrXz1ZQSnRXpA3W8UZ6LRCeEdiqRwEHuEtd Next: 4nXj1QNCDqkbazwVwiK3g7BYJAx814Jmx574L4dBXxa9 Diff:
OldNewDifferences
8080 }
8181
8282
83-func M (N) = pow(10, 0, N, 0, 0, DOWN)
83+func M (J,z) = {
84+ let L = J
85+ if ($isInstanceOf(L, "Unit"))
86+ then wavesBalance(z).available
87+ else if ($isInstanceOf(L, "ByteVector"))
88+ then {
89+ let J = L
90+ assetBalance(z, J)
91+ }
92+ else throw("Match error")
93+ }
8494
8595
86-func O (J) = M(K(J))
96+func N (O) = pow(10, 0, O, 0, 0, DOWN)
8797
8898
89-let P = "%s__factoryAddress"
99+func P (J) = N(K(J))
90100
91-let Q = {
92- let L = getString(this, P)
101+
102+let Q = "%s__factoryAddress"
103+
104+let R = {
105+ let L = getString(this, Q)
93106 if ($isInstanceOf(L, "String"))
94107 then {
95108 let B = L
100113 else throw("Match error")
101114 }
102115
103-let R = valueOrErrorMessage(Q, A("invalid factory address"))
116+let S = valueOrErrorMessage(R, A("invalid factory address"))
104117
105-let S = "%s__usdtAssetId"
118+let T = "%s__usdtAssetId"
106119
107-let T = {
108- let L = getString(R, S)
120+let U = {
121+ let L = getString(S, T)
109122 if ($isInstanceOf(L, "String"))
110123 then {
111124 let B = L
116129 else throw("Match error")
117130 }
118131
119-let U = valueOrErrorMessage(T, A("invalid usdt asset id"))
132+let V = valueOrErrorMessage(U, A("invalid usdt asset id"))
120133
121-let V = "%s__calculatorAddress"
134+let W = "%s__calculatorAddress"
122135
123-let W = valueOrElse(getBoolean(R, p), false)
136+let X = valueOrElse(getBoolean(S, p), false)
124137
125-func X (Y,z) = if ((Y == z))
138+func Y (Z,z) = if ((Z == z))
126139 then true
127140 else C("permission denied")
128141
129142
130-func Z (Y) = X(Y, this)
143+func aa (Z) = Y(Z, this)
131144
132145
133-func aa (Y) = X(Y, R)
146+func ab (Z) = Y(Z, S)
134147
135148
136-func ab (ac) = {
137- let ad = addressFromStringValue(getStringValue(R, l))
138- let ae = split(getStringValue(ad, q), a)
139- if (containsElement(ae, toBase58String(ac)))
149+func ac (ad) = {
150+ let ae = addressFromStringValue(getStringValue(S, l))
151+ let af = split(getStringValue(ae, q), a)
152+ if (containsElement(af, toBase58String(ad)))
140153 then true
141154 else C("not allowed")
142155 }
143156
144157
145-let af = "%s__accountScript"
158+let ag = "%s__accountScript"
146159
147-func ag () = valueOrErrorMessage(getBinary(R, af), A("account script is not set"))
160+func ah () = valueOrErrorMessage(getBinary(S, ag), A("account script is not set"))
148161
149162
150-let ah = "%s__rewardAmount"
163+let ai = "%s__rewardAmount"
151164
152-func ai () = valueOrErrorMessage(getInteger(R, ah), A("reward amount is not set"))
165+func aj () = valueOrErrorMessage(getInteger(S, ai), A("reward amount is not set"))
153166
154167
155-let aj = "%s__accountsLimit"
168+let ak = "%s__accountsLimit"
156169
157-let ak = 20
170+let al = 20
158171
159-func al () = valueOrElse(getInteger(R, aj), ak)
172+func am () = valueOrElse(getInteger(S, ak), al)
160173
161174
162-func am (an) = makeString(["%s%s", "deposited", toString(an)], a)
175+func an (ao) = makeString(["%s%s", "deposited", toString(ao)], a)
163176
164177
165-func ao (an) = getInteger(R, am(an))
178+func ap (ao) = getInteger(S, an(ao))
166179
167180
168-func ap (an,J) = makeString(["%s%s%s", "credit", toString(an), H(J)], a)
181+func aq (ao,J) = makeString(["%s%s%s", "credit", toString(ao), H(J)], a)
169182
170183
171-func aq (an,J) = getInteger(R, ap(an, J))
184+func ar (ao,J) = getInteger(S, aq(ao, J))
172185
173186
174-func ar (an) = makeString(["%s%s", "leverage", toString(an)], a)
187+func as (ao) = makeString(["%s%s", "leverage", toString(ao)], a)
175188
176189
177-func as (at) = makeString(["%s%s", "requestLeverage", toBase58String(at)], a)
190+func at (au) = makeString(["%s%s", "requestLeverage", toBase58String(au)], a)
178191
179192
180-func au (av) = makeString(["%s%s", "syntheticAssetId", H(av)], a)
193+func av (aw) = makeString(["%s%s", "syntheticAssetId", H(aw)], a)
181194
182195
183-func aw (ax) = makeString(["%s%s", "baseAssetId", H(ax)], a)
196+func ax (ay) = makeString(["%s%s", "baseAssetId", H(ay)], a)
184197
185198
186-let ay = 0
199+let az = 0
187200
188-let az = 1
201+let aA = 1
189202
190-func aA (at) = makeString(["%s%s", toBase58String(at), "status"], a)
203+func aB (au) = makeString(["%s%s", toBase58String(au), "status"], a)
191204
192205
193-func aB (an) = makeString(["%s%s", toString(an), "creatorPublicKey"], a)
206+func aC (ao) = makeString(["%s%s", toString(ao), "creatorPublicKey"], a)
194207
195208
196-func aC (at) = makeString(["%s%s", toBase58String(at), "ownerPublicKey"], a)
209+func aD (au) = makeString(["%s%s", toBase58String(au), "ownerPublicKey"], a)
197210
198211
199-func aD (at) = makeString(["%s%s", toBase58String(at), "amountAssetId"], a)
212+func aE (au) = makeString(["%s%s", toBase58String(au), "amountAssetId"], a)
200213
201214
202-func aE (at) = makeString(["%s%s", toBase58String(at), "priceAssetId"], a)
215+func aF (au) = makeString(["%s%s", toBase58String(au), "priceAssetId"], a)
203216
204217
205-func aF (at) = makeString(["%s%s", toBase58String(at), "requestIdToAccountPublicKey"], a)
218+func aG (au) = makeString(["%s%s", toBase58String(au), "requestIdToAccountPublicKey"], a)
206219
207220
208-func aG (an) = makeString(["%s%s", toString(an), "accountAddressToRequestId"], a)
221+func aH (ao) = makeString(["%s%s", toString(ao), "accountAddressToRequestId"], a)
209222
210223
211-func aH () = makeString(["%s", "requestsQueue"], a)
224+func aI () = makeString(["%s", "requestsQueue"], a)
212225
213226
214-func aI () = valueOrElse(getBinary(R, aH()), base58'')
227+func aJ () = valueOrElse(getBinary(S, aI()), base58'')
215228
216229
217-func aJ () = makeString(["%s", "accountsQueue"], a)
230+func aK () = makeString(["%s", "accountsQueue"], a)
218231
219232
220-func aK () = valueOrElse(getBinary(R, aJ()), base58'')
233+func aL () = valueOrElse(getBinary(S, aK()), base58'')
221234
222235
223-func aL (aM) = makeString(["%s%s", "requests", toString(aM)], a)
236+func aM (aN) = makeString(["%s%s", "requests", toString(aN)], a)
224237
225238
226-func aN (aM) = valueOrElse(getBinary(R, aL(aM)), base58'')
239+func aO (aN) = valueOrElse(getBinary(S, aM(aN)), base58'')
227240
228241
229-func aO (aP,aQ) = makeString(["%s%s%s", H(aP), H(aQ), "pairAllowed"], a)
242+func aP (aQ,aR) = makeString(["%s%s%s", H(aQ), H(aR), "pairAllowed"], a)
230243
231244
232-func aR (aP,aQ) = valueOrElse(getBoolean(R, aO(aP, aQ)), false)
245+func aS (aQ,aR) = valueOrElse(getBoolean(S, aP(aQ, aR)), false)
233246
234247
235-func aS (J) = makeString(["%s", H(J)], a)
248+func aT (J) = makeString(["%s", H(J)], a)
236249
237250
238-func aT (J) = {
239- let aU = fromBase58String(valueOrErrorMessage(getString(R, r), A("invalid matcher public key")))
240- let aV = addressFromPublicKey(aU)
241- let aW = valueOrErrorMessage(getInteger(aV, aS(J)), A(("invalid price, assetId = " + H(J))))
242- aW
251+func aU (J) = {
252+ let aV = fromBase58String(valueOrErrorMessage(getString(S, r), A("invalid matcher public key")))
253+ let aW = addressFromPublicKey(aV)
254+ let aX = valueOrErrorMessage(getInteger(aW, aT(J)), A(("invalid price, assetId = " + H(J))))
255+ aX
243256 }
244257
245258
246-func aX (aY,aZ,ba) = (fraction(aY, ba, f) + aZ)
259+func aY (aZ,ba,bb) = (fraction(aZ, bb, f) + ba)
247260
248261
249-func bb (bc,bd,ba) = (fraction(bc, ba, f) + bd)
262+func bc (bd,be,bb) = (fraction(bd, bb, f) + be)
250263
251264
252-func be (bf,bg) = (bf - bg)
265+func bf (bg,bh) = (bg - bh)
253266
254267
255-func bh (bi,bj,bg) = (fraction(bi, bj, f) - bg)
268+func bi (bj,bk,bh) = (fraction(bj, bk, f) - bh)
256269
257270
258-func bk (bl,bm) = if ((bl > k))
259- then (bl - bm)
271+func bl (bm,bn) = if ((bm > k))
272+ then (bm - bn)
260273 else k
261274
262275
263-func bn (bl,bm) = if ((bl > k))
264- then (bm - bl)
276+func bo (bm,bn) = if ((bm > k))
277+ then (bn - bm)
265278 else k
266279
267280
268-func bo (bp,bq) = if ((bq > k))
269- then max([k, fraction(bp, f, bq)])
281+func bp (bq,br) = if ((br > k))
282+ then max([k, fraction(bq, f, br)])
270283 else k
271284
272285
273-func br (bp,bq) = if ((bq > k))
274- then max([k, fraction(bq, f, bp)])
286+func bs (bq,br) = if ((br > k))
287+ then max([k, fraction(br, f, bq)])
275288 else k
276289
277290
278-func bs (bt,bu,ba,bv) = fraction((fraction(bt, ba, f) + bu), bv, f)
291+func bt (bu,bv,bb,bw) = fraction((fraction(bu, bb, f) + bv), bw, f)
279292
280293
281-func bw (bx,bv,by) = fraction(bx, by, bv)
294+func bx (by,bw,bz) = fraction(by, bz, bw)
282295
283296
284-func bz (bi,bA,bt,bu,bB,bC) = {
285- let bD = if ((bt > k))
286- then (((bi - bA) / bt) + bB)
297+func bA (bj,bB,bu,bv,bC,bD) = {
298+ let bE = if ((bu > k))
299+ then (((bj - bB) / bu) + bC)
287300 else k
288- let bE = if ((bu > k))
289- then (bC - ((bi - bA) / (bt / bC)))
301+ let bF = if ((bv > k))
302+ then (bD - ((bj - bB) / (bu / bD)))
290303 else k
291- (bD + bE)
304+ (bE + bF)
292305 }
293306
294307
295-func bF (an) = {
296- let at = fromBase58String(valueOrErrorMessage(getString(R, aG(an)), A("invalid account address: request id is undefined")))
297- at
308+func bG (ao) = {
309+ let au = fromBase58String(valueOrErrorMessage(getString(S, aH(ao)), A("invalid account address: request id is undefined")))
310+ au
298311 }
299312
300313
301-func bG (an) = {
302- let at = bF(an)
303- let aP = F(valueOrErrorMessage(getString(R, aD(at)), A("invalid amount asset id")))
304- let aQ = F(valueOrErrorMessage(getString(R, aE(at)), A("invalid amount price id")))
305- $Tuple2(aP, aQ)
314+func bH (ao) = {
315+ let au = bG(ao)
316+ let aQ = F(valueOrErrorMessage(getString(S, aE(au)), A("invalid amount asset id")))
317+ let aR = F(valueOrErrorMessage(getString(S, aF(au)), A("invalid amount price id")))
318+ $Tuple2(aQ, aR)
306319 }
307320
308321
309-func bH (an) = {
310- let at = bF(an)
311- let bI = valueOrErrorMessage(getBinary(R, aC(at)), A("invalid amount asset id"))
312- bI
322+func bI (ao) = {
323+ let au = bG(ao)
324+ let bJ = valueOrErrorMessage(getBinary(S, aD(au)), A("invalid amount asset id"))
325+ bJ
313326 }
314327
315328
316-@Callable(bJ)
317-func init (bK) = {
318- let bL = Z(bJ.caller)
319- if ((bL == bL))
320- then $Tuple2([StringEntry(P, bK)], unit)
329+func bK (ao) = {
330+ let bL = bH(ao)
331+ let aQ = bL._1
332+ let aR = bL._2
333+ let bk = valueOrErrorMessage(getInteger(S, as(ao)), A("leverage should be defined"))
334+ let au = bG(ao)
335+ let bM = valueOrErrorMessage(getBinary(S, aG(au)), "kRequestIdToAccountPublicKey not found")
336+ let bN = s(valueOrElse(ap(ao), 0), P(aR))
337+ let bb = s(aU(aQ), P(aR))
338+ let aZ = s(valueOrElse(getInteger(S, aq(ao, aQ)), 0), P(aQ))
339+ let ba = s(valueOrElse(getInteger(S, aq(ao, aR)), 0), P(aR))
340+ let bO = valueOrErrorMessage(getInteger(S, aB(au)), ("status not found. RequestId = " + toBase58String(au)))
341+ $Tuple12(H(aQ), H(aR), toString(ao), toBase58String(bM), bk, toBase58String(au), bN, aZ, ba, M(aQ, ao), M(aR, ao), bO)
342+ }
343+
344+
345+@Callable(bP)
346+func init (bQ) = {
347+ let bR = aa(bP.caller)
348+ if ((bR == bR))
349+ then $Tuple2([StringEntry(Q, bQ)], unit)
321350 else throw("Strict value is not equal to itself.")
322351 }
323352
324353
325354
326-@Callable(bJ)
327-func requestAccount (ac,bM) = {
328- let bN = [if (!(W))
355+@Callable(bP)
356+func requestAccount (ad,bS) = {
357+ let bT = [if (!(X))
329358 then true
330- else C("not allowed"), aa(bJ.caller)]
331- if ((bN == bN))
359+ else C("not allowed"), ab(bP.caller)]
360+ if ((bT == bT))
332361 then {
333- let bO = bM[0]
334- let bP = bM[1]
335- let bj = valueOrErrorMessage(parseInt(bM[2]), A("invalid leverage"))
336- let bQ = addressFromPublicKey(ac)
337- let at = sha256(((bQ.bytes + fromBase58String(bO)) + fromBase58String(bP)))
338- let aP = F(bO)
339- let aQ = F(bP)
340- let bR = (size(aL(bQ)) / j)
341- let bS = [if ((size(bJ.payments) == 1))
362+ let bU = bS[0]
363+ let bV = bS[1]
364+ let bk = valueOrErrorMessage(parseInt(bS[2]), A("invalid leverage"))
365+ let bW = addressFromPublicKey(ad)
366+ let au = sha256(((bW.bytes + fromBase58String(bU)) + fromBase58String(bV)))
367+ let aQ = F(bU)
368+ let aR = F(bV)
369+ let bX = (size(aM(bW)) / j)
370+ let bY = [if ((size(bP.payments) == 1))
342371 then true
343- else C("1 payment is required"), if ((bJ.payments[0].assetId == unit))
372+ else C("1 payment is required"), if ((bP.payments[0].assetId == unit))
344373 then true
345- else C("invalid asset"), if ((bJ.payments[0].amount == ai()))
374+ else C("invalid asset"), if ((bP.payments[0].amount == aj()))
346375 then true
347- else C("invalid amount"), if (aR(aP, aQ))
376+ else C("invalid amount"), if (aS(aQ, aR))
348377 then true
349- else C("pair is not allowed"), if ((getInteger(R, aA(at)) == unit))
378+ else C("pair is not allowed"), if ((getInteger(S, aB(au)) == unit))
350379 then true
351- else C("account is already exists"), if ((al() > bR))
380+ else C("account is already exists"), if ((am() > bX))
352381 then true
353- else C(("accounts limit is " + toString(al())))]
354- if ((bS == bS))
382+ else C(("accounts limit is " + toString(am())))]
383+ if ((bY == bY))
355384 then {
356- let bT = if ((size(aK()) == 0))
357- then $Tuple2([ScriptTransfer(R, ai(), unit)], [invoke(R, "integerEntry", [aA(at), ay], nil), invoke(R, "binaryEntry", [aH(), (aI() + at)], nil), invoke(R, "integerEntry", [as(at), bj], nil)])
385+ let bZ = if ((size(aL()) == 0))
386+ then $Tuple2([ScriptTransfer(S, aj(), unit)], [invoke(S, "integerEntry", [aB(au), az], nil), invoke(S, "binaryEntry", [aI(), (aJ() + au)], nil), invoke(S, "integerEntry", [at(au), bk], nil)])
358387 else {
359- let bU = take(aK(), j)
360- let an = addressFromPublicKey(bU)
361- let bV = addressFromPublicKey(valueOrErrorMessage(getBinary(R, aB(an)), A("invalid creator public key")))
362- $Tuple2([ScriptTransfer(bV, ai(), unit)], [invoke(R, "binaryEntry", [aJ(), drop(aK(), j)], nil), invoke(R, "integerEntry", [aA(at), az], nil), invoke(R, "binaryEntry", [aF(at), bU], nil), invoke(R, "stringEntry", [aG(an), toBase58String(at)], nil), invoke(R, "integerEntry", [ar(an), bj], nil)])
388+ let bM = take(aL(), j)
389+ let ao = addressFromPublicKey(bM)
390+ let ca = addressFromPublicKey(valueOrErrorMessage(getBinary(S, aC(ao)), A("invalid creator public key")))
391+ $Tuple2([ScriptTransfer(ca, aj(), unit)], [invoke(S, "binaryEntry", [aK(), drop(aL(), j)], nil), invoke(S, "integerEntry", [aB(au), aA], nil), invoke(S, "binaryEntry", [aG(au), bM], nil), invoke(S, "stringEntry", [aH(ao), toBase58String(au)], nil), invoke(S, "integerEntry", [as(ao), bk], nil)])
363392 }
364- let bW = bT._1
365- let bX = bT._2
366- $Tuple2(bW, (bX ++ [invoke(R, "binaryEntry", [aC(at), ac], nil), invoke(R, "binaryEntry", [aL(bQ), (aN(bQ) + at)], nil), invoke(R, "stringEntry", [aD(at), bO], nil), invoke(R, "stringEntry", [aE(at), bP], nil)]))
393+ let cb = bZ._1
394+ let cc = bZ._2
395+ $Tuple2(cb, (cc ++ [invoke(S, "binaryEntry", [aD(au), ad], nil), invoke(S, "binaryEntry", [aM(bW), (aO(bW) + au)], nil), invoke(S, "stringEntry", [aE(au), bU], nil), invoke(S, "stringEntry", [aF(au), bV], nil)]))
367396 }
368397 else throw("Strict value is not equal to itself.")
369398 }
372401
373402
374403
375-@Callable(bJ)
376-func addAccount (ac,bM) = {
377- let bN = [if (!(W))
404+@Callable(bP)
405+func addAccount (ad,bS) = {
406+ let bT = [if (!(X))
378407 then true
379- else C("not allowed"), aa(bJ.caller)]
380- if ((bN == bN))
408+ else C("not allowed"), ab(bP.caller)]
409+ if ((bT == bT))
381410 then {
382- let bY = fromBase58String(bM[0])
383- let bU = ac
384- let an = addressFromPublicKey(ac)
385- let bV = addressFromPublicKey(bY)
386- let bS = [if ((getBinary(R, aB(an)) == unit))
411+ let cd = fromBase58String(bS[0])
412+ let bM = ad
413+ let ao = addressFromPublicKey(ad)
414+ let ca = addressFromPublicKey(cd)
415+ let bY = [if ((getBinary(S, aC(ao)) == unit))
387416 then true
388417 else C("account is already exists"), if ({
389- let L = scriptHash(an)
418+ let L = scriptHash(ao)
390419 if ($isInstanceOf(L, "ByteVector"))
391420 then {
392- let bZ = L
393- (bZ == blake2b256_32Kb(ag()))
421+ let ce = L
422+ (ce == blake2b256_32Kb(ah()))
394423 }
395424 else false
396425 })
397426 then true
398427 else C("invalid script")]
399- if ((bS == bS))
428+ if ((bY == bY))
400429 then {
401- let ca = if ((size(aI()) == 0))
402- then $Tuple2(nil, [invoke(R, "binaryEntry", [aJ(), (aK() + bU)], nil)])
430+ let cf = if ((size(aJ()) == 0))
431+ then $Tuple2(nil, [invoke(S, "binaryEntry", [aK(), (aL() + bM)], nil)])
403432 else {
404- let at = take(aI(), j)
405- let bj = valueOrErrorMessage(getInteger(R, as(at)), A("request's leverage is undefined"))
406- $Tuple2(nil, [invoke(R, "integerEntry", [aA(at), az], nil), invoke(R, "binaryEntry", [aF(at), bU], nil), invoke(R, "binaryEntry", [aH(), drop(aI(), j)], nil), invoke(R, "stringEntry", [aG(an), toBase58String(at)], nil), invoke(R, "transferWaves", [bV.bytes, ai()], nil), invoke(R, "integerEntry", [ar(an), bj], nil)])
433+ let au = take(aJ(), j)
434+ let bk = valueOrErrorMessage(getInteger(S, at(au)), A("request's leverage is undefined"))
435+ $Tuple2(nil, [invoke(S, "integerEntry", [aB(au), aA], nil), invoke(S, "binaryEntry", [aG(au), bM], nil), invoke(S, "binaryEntry", [aI(), drop(aJ(), j)], nil), invoke(S, "stringEntry", [aH(ao), toBase58String(au)], nil), invoke(S, "transferWaves", [ca.bytes, aj()], nil), invoke(S, "integerEntry", [as(ao), bk], nil)])
407436 }
408- let bW = ca._1
409- let bX = ca._2
410- $Tuple2(bW, (bX ++ [invoke(R, "binaryEntry", [aB(an), bY], nil)]))
437+ let cb = cf._1
438+ let cc = cf._2
439+ $Tuple2(cb, (cc ++ [invoke(S, "binaryEntry", [aC(ao), cd], nil)]))
411440 }
412441 else throw("Strict value is not equal to itself.")
413442 }
416445
417446
418447
419-@Callable(bJ)
420-func deposit (ac,bM) = {
421- let cb = bJ.payments[0]
422- let an = valueOrErrorMessage(addressFromString(bM[0]), A("invalid account address"))
423- let bN = [if (!(W))
448+@Callable(bP)
449+func deposit (ad,bS) = {
450+ let cg = bP.payments[0]
451+ let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address"))
452+ let bT = [if (!(X))
424453 then true
425- else C("not allowed"), aa(bJ.caller), if ((size(bJ.payments) == 1))
454+ else C("not allowed"), ab(bP.caller), if ((size(bP.payments) == 1))
426455 then true
427- else C("1 payment is required"), if ((cb.assetId == U))
456+ else C("1 payment is required"), if ((cg.assetId == V))
428457 then true
429- else C("invalid asset"), if ((getInteger(R, aA(bF(an))) == az))
458+ else C("invalid asset"), if ((getInteger(S, aB(bG(ao))) == aA))
430459 then true
431460 else C("account is not ready")]
432- if ((bN == bN))
461+ if ((bT == bT))
433462 then {
434- let bW = [ScriptTransfer(an, cb.amount, cb.assetId)]
435- let bX = [invoke(R, "integerEntry", [am(an), (valueOrElse(ao(an), 0) + cb.amount)], nil)]
436- $Tuple2(bW, bX)
463+ let cb = [ScriptTransfer(ao, cg.amount, cg.assetId)]
464+ let cc = [invoke(S, "integerEntry", [an(ao), (valueOrElse(ap(ao), 0) + cg.amount)], nil)]
465+ $Tuple2(cb, cc)
437466 }
438467 else throw("Strict value is not equal to itself.")
439468 }
440469
441470
442471
443-@Callable(bJ)
444-func withdraw (ac,bM) = {
445- let bN = [if (!(W))
472+@Callable(bP)
473+func withdraw (ad,bS) = {
474+ let bT = [if (!(X))
446475 then true
447- else C("not allowed"), aa(bJ.caller)]
448- if ((bN == bN))
476+ else C("not allowed"), ab(bP.caller)]
477+ if ((bT == bT))
449478 then {
450- let bQ = addressFromPublicKey(ac)
451- let an = valueOrErrorMessage(addressFromString(bM[0]), A("invalid account address"))
452- let cc = valueOrErrorMessage(parseInt(bM[1]), A("invalid amount"))
453- let J = F(bM[2])
454- let cd = [invoke(an, "transferAsset", [bQ.bytes, cc, J], nil)]
455- $Tuple2(nil, cd)
479+ let bW = addressFromPublicKey(ad)
480+ let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address"))
481+ let ch = valueOrErrorMessage(parseInt(bS[1]), A("invalid amount"))
482+ let J = F(bS[2])
483+ let ci = [invoke(ao, "transferAsset", [bW.bytes, ch, J], nil)]
484+ $Tuple2(nil, ci)
456485 }
457486 else throw("Strict value is not equal to itself.")
458487 }
459488
460489
461490
462-@Callable(bJ)
463-func borrow (ac,bM) = {
464- let an = valueOrErrorMessage(addressFromString(bM[0]), A("invalid account address"))
465- let ce = F(bM[1])
466- let cf = D(valueOrErrorMessage(parseInt(bM[2]), A("invalid requested amount")), "requested amount")
467- let cg = bH(an)
468- let bQ = addressFromPublicKey(ac)
469- let bN = [if (!(W))
491+@Callable(bP)
492+func borrow (ad,bS) = {
493+ let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address"))
494+ let cj = F(bS[1])
495+ let ck = D(valueOrErrorMessage(parseInt(bS[2]), A("invalid requested amount")), "requested amount")
496+ let cl = bI(ao)
497+ let bW = addressFromPublicKey(ad)
498+ let bT = [if (!(X))
470499 then true
471- else C("not allowed"), aa(bJ.caller), if ((ac == cg))
500+ else C("not allowed"), ab(bP.caller), if ((ad == cl))
472501 then true
473502 else C("can be called by account owner only")]
474- if ((bN == bN))
503+ if ((bT == bT))
475504 then {
476- let aP = bG(an)._1
477- let ch = s(valueOrElse(ao(an), 0), O(U))
478- let ba = s(aT(aP), O(U))
479- let aY = s(valueOrElse(getInteger(R, ap(an, aP)), 0), O(aP))
480- let aZ = s(valueOrElse(getInteger(R, ap(an, U)), 0), O(U))
481- let bg = aX(aY, aZ, ba)
482- let bj = s(valueOrErrorMessage(getInteger(R, ar(an)), A("leverage should be defined")), 1)
483- let ci = bh(ch, bj, bg)
484- let cj = if ((ce == aP))
485- then v(fraction(ci, f, ba), O(aP))
486- else if ((ce == U))
487- then v(ci, O(U))
505+ let aQ = bH(ao)._1
506+ let bN = s(valueOrElse(ap(ao), 0), P(V))
507+ let bb = s(aU(aQ), P(V))
508+ let aZ = s(valueOrElse(getInteger(S, aq(ao, aQ)), 0), P(aQ))
509+ let ba = s(valueOrElse(getInteger(S, aq(ao, V)), 0), P(V))
510+ let bh = aY(aZ, ba, bb)
511+ let bk = s(valueOrErrorMessage(getInteger(S, as(ao)), A("leverage should be defined")), 1)
512+ let cm = bi(bN, bk, bh)
513+ let cn = if ((cj == aQ))
514+ then v(fraction(cm, f, bb), P(aQ))
515+ else if ((cj == V))
516+ then v(cm, P(V))
488517 else C("invalid requested asset id")
489- let ax = F(valueOrErrorMessage(getString(R, au(ce)), A("synthetic asset for requested asset is undefined")))
490- let ck = if ((cj >= cf))
491- then cf
492- else C(("credit available = " + toString(cj)))
493- let bX = [invoke(R, "integerEntry", [ap(an, ce), (valueOrElse(aq(an, ce), 0) + ck)], nil), invoke(R, "transferAsset", [bQ.bytes, ck, ax], nil)]
494- $Tuple2(nil, [bX, cj])
518+ let ay = F(valueOrErrorMessage(getString(S, av(cj)), A("synthetic asset for requested asset is undefined")))
519+ let co = if ((cn >= ck))
520+ then ck
521+ else C(("credit available = " + toString(cn)))
522+ let cc = [invoke(S, "integerEntry", [aq(ao, cj), (valueOrElse(ar(ao, cj), 0) + co)], nil), invoke(S, "transferAsset", [bW.bytes, co, ay], nil)]
523+ $Tuple2(nil, [cc, cn])
495524 }
496525 else throw("Strict value is not equal to itself.")
497526 }
498527
499528
500529
501-@Callable(bJ)
502-func repay (ac,bM) = {
503- let bN = [if (!(W))
530+@Callable(bP)
531+func repay (ad,bS) = {
532+ let bT = [if (!(X))
504533 then true
505- else C("not allowed"), aa(bJ.caller)]
506- if ((bN == bN))
534+ else C("not allowed"), ab(bP.caller)]
535+ if ((bT == bT))
507536 then $Tuple2(nil, unit)
508537 else throw("Strict value is not equal to itself.")
509538 }
510539
511540
512541
513-@Callable(bJ)
514-func setPairAllowance (ac,bM) = {
515- let bN = [if (!(W))
542+@Callable(bP)
543+func setPairAllowance (ad,bS) = {
544+ let bT = [if (!(X))
516545 then true
517- else C("not allowed"), aa(bJ.caller), ab(ac)]
518- if ((bN == bN))
546+ else C("not allowed"), ab(bP.caller), ac(ad)]
547+ if ((bT == bT))
519548 then {
520- let bO = bM[0]
521- let bP = bM[1]
522- let cl = bM[2]
523- let aP = F(bO)
524- let aQ = F(bP)
525- let cm = (cl == "true")
526- let cd = [invoke(R, "booleanEntry", [aO(aP, aQ), cm], nil)]
527- $Tuple2(nil, cd)
549+ let bU = bS[0]
550+ let bV = bS[1]
551+ let cp = bS[2]
552+ let aQ = F(bU)
553+ let aR = F(bV)
554+ let cq = (cp == "true")
555+ let ci = [invoke(S, "booleanEntry", [aP(aQ, aR), cq], nil)]
556+ $Tuple2(nil, ci)
528557 }
529558 else throw("Strict value is not equal to itself.")
530559 }
531560
532561
533562
534-@Callable(bJ)
535-func addSyntheticAsset (ac,bM) = {
536- let av = F(bM[0])
537- let ax = F(bM[1])
538- let bN = [if (!(W))
563+@Callable(bP)
564+func addSyntheticAsset (ad,bS) = {
565+ let aw = F(bS[0])
566+ let ay = F(bS[1])
567+ let bT = [if (!(X))
539568 then true
540- else C("not allowed"), aa(bJ.caller), ab(ac), if ((getString(R, au(av)) == unit))
569+ else C("not allowed"), ab(bP.caller), ac(ad), if ((getString(S, av(aw)) == unit))
541570 then true
542- else C("invalid base asset"), if ((getString(R, aw(ax)) == unit))
571+ else C("invalid base asset"), if ((getString(S, ax(ay)) == unit))
543572 then true
544573 else C("invalid synthetic asset")]
545- if ((bN == bN))
574+ if ((bT == bT))
546575 then {
547- let cd = [invoke(R, "stringEntry", [au(av), H(ax)], nil), invoke(R, "stringEntry", [aw(ax), H(av)], nil)]
548- $Tuple2(nil, cd)
576+ let ci = [invoke(S, "stringEntry", [av(aw), H(ay)], nil), invoke(S, "stringEntry", [ax(ay), H(aw)], nil)]
577+ $Tuple2(nil, ci)
549578 }
550579 else throw("Strict value is not equal to itself.")
551580 }
552581
553582
554583
555-@Callable(bJ)
556-func doShutdown (ac,bM) = {
557- let bS = [aa(bJ.caller), ab(ac)]
558- if ((bS == bS))
584+@Callable(bP)
585+func doShutdown (ad,bS) = {
586+ let bY = [ab(bP.caller), ac(ad)]
587+ if ((bY == bY))
559588 then {
560- let cd = [invoke(R, "booleanEntry", [p, true], nil)]
561- $Tuple2(nil, cd)
589+ let ci = [invoke(S, "booleanEntry", [p, true], nil)]
590+ $Tuple2(nil, ci)
562591 }
563592 else throw("Strict value is not equal to itself.")
564593 }
565594
566595
567596
568-@Callable(bJ)
569-func getAccountInfoREADONLY (ac,bM) = {
570- let bS = [aa(bJ.caller)]
571- if ((bS == bS))
597+@Callable(bP)
598+func getAccountInfoREADONLY (ad,bS) = {
599+ let bY = [ab(bP.caller)]
600+ if ((bY == bY))
572601 then {
573- let an = valueOrErrorMessage(addressFromString(bM[0]), A("invalid account address"))
574- let cn = bG(an)
575- let aP = cn._1
576- let aQ = cn._2
577- let bj = valueOrErrorMessage(getInteger(R, ar(an)), A("leverage should be defined"))
578- let bQ = addressFromPublicKey(ac)
579- let at = bF(an)
580- let bU = valueOrErrorMessage(getBinary(R, aF(at)), "kRequestIdToAccountPublicKey not found")
581- let ch = s(valueOrElse(ao(an), 0), O(U))
582- let ba = s(aT(aP), O(U))
583- let aY = s(valueOrElse(getInteger(R, ap(an, aP)), 0), O(aP))
584- let aZ = s(valueOrElse(getInteger(R, ap(an, U)), 0), O(U))
585- let co = $Tuple11(H(aP), H(aQ), toString(an), toBase58String(bU), bj, toBase58String(at), ch, aY, aZ, s(0, O(aP)), s(0, O(U)))
586- $Tuple2(nil, co)
602+ let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address"))
603+ let cr = bK(ao)
604+ $Tuple2(nil, cr)
587605 }
588606 else throw("Strict value is not equal to itself.")
589607 }
590608
591609
592-@Verifier(cp)
593-func cq () = if (if (isDefined(Q))
594- then isDefined(getString(R, l))
610+
611+@Callable(bP)
612+func getUserInfoREADONLY (ad,bS) = {
613+ let bY = [ab(bP.caller)]
614+ if ((bY == bY))
615+ then {
616+ let bW = valueOrErrorMessage(addressFromString(bS[0]), A("invalid user address"))
617+ let cs = valueOrErrorMessage(getBinary(S, aM(bW)), "kRequestsByOwner not found")
618+ let bX = (size(cs) / j)
619+ let ct = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
620+ func cu (cv,cw) = {
621+ let cx = cv
622+ let cy = cx._1
623+ let cz = cx._2
624+ let cA = cx._3
625+ if ((cA > cw))
626+ then {
627+ let au = take(cz, j)
628+ let cB = drop(cz, j)
629+ let bM = valueOrErrorMessage(getBinary(S, aG(au)), "kRequestIdToAccountPublicKey not found")
630+ let ao = addressFromPublicKey(bM)
631+ let cr = bK(ao)
632+ $Tuple3((cy :+ cr), cB, cA)
633+ }
634+ else cv
635+ }
636+
637+ let cC = {
638+ let cD = ct
639+ let cE = size(cD)
640+ let cF = $Tuple3(nil, cs, bX)
641+ func cG (cH,cI) = if ((cI >= cE))
642+ then cH
643+ else cu(cH, cD[cI])
644+
645+ func cJ (cH,cI) = if ((cI >= cE))
646+ then cH
647+ else throw("List size exceeds 20")
648+
649+ cJ(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cF, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
650+ }
651+ let cy = cC._1
652+ let cK = cC._2
653+ let cL = cC._3
654+ $Tuple2(nil, cy)
655+ }
656+ else throw("Strict value is not equal to itself.")
657+ }
658+
659+
660+@Verifier(cM)
661+func cN () = if (if (isDefined(R))
662+ then isDefined(getString(S, l))
595663 else false)
596664 then {
597- let L = getString(R, l)
665+ let L = getString(S, l)
598666 if ($isInstanceOf(L, "String"))
599667 then {
600- let ad = L
601- let cr = m(toString(this), toBase58String(cp.id))
602- let cs = valueOrElse(getBoolean(addressFromStringValue(ad), cr), false)
603- cs
668+ let ae = L
669+ let cO = m(toString(this), toBase58String(cM.id))
670+ let bO = valueOrElse(getBoolean(addressFromStringValue(ae), cO), false)
671+ bO
604672 }
605673 else false
606674 }
607- else sigVerify(cp.bodyBytes, cp.proofs[0], cp.senderPublicKey)
675+ else sigVerify(cM.bodyBytes, cM.proofs[0], cM.senderPublicKey)
608676
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = take(drop(this.bytes, 1), 1)
77
88 let c = base58'2W'
99
1010 let d = "futures_calculator.ride"
1111
1212 let e = 100000000
1313
1414 let f = toBigInt(1000000000000000000)
1515
1616 let g = 8
1717
1818 let h = 6
1919
2020 let i = "WAVES"
2121
2222 let j = 32
2323
2424 let k = toBigInt(0)
2525
2626 let l = "%s__multisig"
2727
2828 func m (n,o) = makeString(["%s__status", n, o], a)
2929
3030
3131 let p = "%s__shutdown"
3232
3333 let q = "%s__publicKeys"
3434
3535 let r = "%s__matcherPublicKey"
3636
3737 func s (t,u) = fraction(toBigInt(t), f, toBigInt(u))
3838
3939
4040 func v (w,x) = toInt(fraction(w, toBigInt(x), f))
4141
4242
4343 func y (z) = isDefined(addressFromString(z))
4444
4545
4646 func A (B) = ((d + ": ") + B)
4747
4848
4949 func C (B) = throw(A(B))
5050
5151
5252 func D (E,B) = if ((E >= 0))
5353 then E
5454 else C((B + " value should be positive"))
5555
5656
5757 func F (G) = if ((G == i))
5858 then unit
5959 else fromBase58String(G)
6060
6161
6262 func H (G) = if ((G == unit))
6363 then i
6464 else toBase58String(value(G))
6565
6666
6767 func I (J) = valueOrErrorMessage(assetInfo(J), A("invalid asset info"))
6868
6969
7070 func K (J) = {
7171 let L = J
7272 if ($isInstanceOf(L, "Unit"))
7373 then g
7474 else if ($isInstanceOf(L, "ByteVector"))
7575 then {
7676 let J = L
7777 I(J).decimals
7878 }
7979 else throw("Match error")
8080 }
8181
8282
83-func M (N) = pow(10, 0, N, 0, 0, DOWN)
83+func M (J,z) = {
84+ let L = J
85+ if ($isInstanceOf(L, "Unit"))
86+ then wavesBalance(z).available
87+ else if ($isInstanceOf(L, "ByteVector"))
88+ then {
89+ let J = L
90+ assetBalance(z, J)
91+ }
92+ else throw("Match error")
93+ }
8494
8595
86-func O (J) = M(K(J))
96+func N (O) = pow(10, 0, O, 0, 0, DOWN)
8797
8898
89-let P = "%s__factoryAddress"
99+func P (J) = N(K(J))
90100
91-let Q = {
92- let L = getString(this, P)
101+
102+let Q = "%s__factoryAddress"
103+
104+let R = {
105+ let L = getString(this, Q)
93106 if ($isInstanceOf(L, "String"))
94107 then {
95108 let B = L
96109 addressFromString(B)
97110 }
98111 else if ($isInstanceOf(L, "Unit"))
99112 then unit
100113 else throw("Match error")
101114 }
102115
103-let R = valueOrErrorMessage(Q, A("invalid factory address"))
116+let S = valueOrErrorMessage(R, A("invalid factory address"))
104117
105-let S = "%s__usdtAssetId"
118+let T = "%s__usdtAssetId"
106119
107-let T = {
108- let L = getString(R, S)
120+let U = {
121+ let L = getString(S, T)
109122 if ($isInstanceOf(L, "String"))
110123 then {
111124 let B = L
112125 F(B)
113126 }
114127 else if ($isInstanceOf(L, "Unit"))
115128 then unit
116129 else throw("Match error")
117130 }
118131
119-let U = valueOrErrorMessage(T, A("invalid usdt asset id"))
132+let V = valueOrErrorMessage(U, A("invalid usdt asset id"))
120133
121-let V = "%s__calculatorAddress"
134+let W = "%s__calculatorAddress"
122135
123-let W = valueOrElse(getBoolean(R, p), false)
136+let X = valueOrElse(getBoolean(S, p), false)
124137
125-func X (Y,z) = if ((Y == z))
138+func Y (Z,z) = if ((Z == z))
126139 then true
127140 else C("permission denied")
128141
129142
130-func Z (Y) = X(Y, this)
143+func aa (Z) = Y(Z, this)
131144
132145
133-func aa (Y) = X(Y, R)
146+func ab (Z) = Y(Z, S)
134147
135148
136-func ab (ac) = {
137- let ad = addressFromStringValue(getStringValue(R, l))
138- let ae = split(getStringValue(ad, q), a)
139- if (containsElement(ae, toBase58String(ac)))
149+func ac (ad) = {
150+ let ae = addressFromStringValue(getStringValue(S, l))
151+ let af = split(getStringValue(ae, q), a)
152+ if (containsElement(af, toBase58String(ad)))
140153 then true
141154 else C("not allowed")
142155 }
143156
144157
145-let af = "%s__accountScript"
158+let ag = "%s__accountScript"
146159
147-func ag () = valueOrErrorMessage(getBinary(R, af), A("account script is not set"))
160+func ah () = valueOrErrorMessage(getBinary(S, ag), A("account script is not set"))
148161
149162
150-let ah = "%s__rewardAmount"
163+let ai = "%s__rewardAmount"
151164
152-func ai () = valueOrErrorMessage(getInteger(R, ah), A("reward amount is not set"))
165+func aj () = valueOrErrorMessage(getInteger(S, ai), A("reward amount is not set"))
153166
154167
155-let aj = "%s__accountsLimit"
168+let ak = "%s__accountsLimit"
156169
157-let ak = 20
170+let al = 20
158171
159-func al () = valueOrElse(getInteger(R, aj), ak)
172+func am () = valueOrElse(getInteger(S, ak), al)
160173
161174
162-func am (an) = makeString(["%s%s", "deposited", toString(an)], a)
175+func an (ao) = makeString(["%s%s", "deposited", toString(ao)], a)
163176
164177
165-func ao (an) = getInteger(R, am(an))
178+func ap (ao) = getInteger(S, an(ao))
166179
167180
168-func ap (an,J) = makeString(["%s%s%s", "credit", toString(an), H(J)], a)
181+func aq (ao,J) = makeString(["%s%s%s", "credit", toString(ao), H(J)], a)
169182
170183
171-func aq (an,J) = getInteger(R, ap(an, J))
184+func ar (ao,J) = getInteger(S, aq(ao, J))
172185
173186
174-func ar (an) = makeString(["%s%s", "leverage", toString(an)], a)
187+func as (ao) = makeString(["%s%s", "leverage", toString(ao)], a)
175188
176189
177-func as (at) = makeString(["%s%s", "requestLeverage", toBase58String(at)], a)
190+func at (au) = makeString(["%s%s", "requestLeverage", toBase58String(au)], a)
178191
179192
180-func au (av) = makeString(["%s%s", "syntheticAssetId", H(av)], a)
193+func av (aw) = makeString(["%s%s", "syntheticAssetId", H(aw)], a)
181194
182195
183-func aw (ax) = makeString(["%s%s", "baseAssetId", H(ax)], a)
196+func ax (ay) = makeString(["%s%s", "baseAssetId", H(ay)], a)
184197
185198
186-let ay = 0
199+let az = 0
187200
188-let az = 1
201+let aA = 1
189202
190-func aA (at) = makeString(["%s%s", toBase58String(at), "status"], a)
203+func aB (au) = makeString(["%s%s", toBase58String(au), "status"], a)
191204
192205
193-func aB (an) = makeString(["%s%s", toString(an), "creatorPublicKey"], a)
206+func aC (ao) = makeString(["%s%s", toString(ao), "creatorPublicKey"], a)
194207
195208
196-func aC (at) = makeString(["%s%s", toBase58String(at), "ownerPublicKey"], a)
209+func aD (au) = makeString(["%s%s", toBase58String(au), "ownerPublicKey"], a)
197210
198211
199-func aD (at) = makeString(["%s%s", toBase58String(at), "amountAssetId"], a)
212+func aE (au) = makeString(["%s%s", toBase58String(au), "amountAssetId"], a)
200213
201214
202-func aE (at) = makeString(["%s%s", toBase58String(at), "priceAssetId"], a)
215+func aF (au) = makeString(["%s%s", toBase58String(au), "priceAssetId"], a)
203216
204217
205-func aF (at) = makeString(["%s%s", toBase58String(at), "requestIdToAccountPublicKey"], a)
218+func aG (au) = makeString(["%s%s", toBase58String(au), "requestIdToAccountPublicKey"], a)
206219
207220
208-func aG (an) = makeString(["%s%s", toString(an), "accountAddressToRequestId"], a)
221+func aH (ao) = makeString(["%s%s", toString(ao), "accountAddressToRequestId"], a)
209222
210223
211-func aH () = makeString(["%s", "requestsQueue"], a)
224+func aI () = makeString(["%s", "requestsQueue"], a)
212225
213226
214-func aI () = valueOrElse(getBinary(R, aH()), base58'')
227+func aJ () = valueOrElse(getBinary(S, aI()), base58'')
215228
216229
217-func aJ () = makeString(["%s", "accountsQueue"], a)
230+func aK () = makeString(["%s", "accountsQueue"], a)
218231
219232
220-func aK () = valueOrElse(getBinary(R, aJ()), base58'')
233+func aL () = valueOrElse(getBinary(S, aK()), base58'')
221234
222235
223-func aL (aM) = makeString(["%s%s", "requests", toString(aM)], a)
236+func aM (aN) = makeString(["%s%s", "requests", toString(aN)], a)
224237
225238
226-func aN (aM) = valueOrElse(getBinary(R, aL(aM)), base58'')
239+func aO (aN) = valueOrElse(getBinary(S, aM(aN)), base58'')
227240
228241
229-func aO (aP,aQ) = makeString(["%s%s%s", H(aP), H(aQ), "pairAllowed"], a)
242+func aP (aQ,aR) = makeString(["%s%s%s", H(aQ), H(aR), "pairAllowed"], a)
230243
231244
232-func aR (aP,aQ) = valueOrElse(getBoolean(R, aO(aP, aQ)), false)
245+func aS (aQ,aR) = valueOrElse(getBoolean(S, aP(aQ, aR)), false)
233246
234247
235-func aS (J) = makeString(["%s", H(J)], a)
248+func aT (J) = makeString(["%s", H(J)], a)
236249
237250
238-func aT (J) = {
239- let aU = fromBase58String(valueOrErrorMessage(getString(R, r), A("invalid matcher public key")))
240- let aV = addressFromPublicKey(aU)
241- let aW = valueOrErrorMessage(getInteger(aV, aS(J)), A(("invalid price, assetId = " + H(J))))
242- aW
251+func aU (J) = {
252+ let aV = fromBase58String(valueOrErrorMessage(getString(S, r), A("invalid matcher public key")))
253+ let aW = addressFromPublicKey(aV)
254+ let aX = valueOrErrorMessage(getInteger(aW, aT(J)), A(("invalid price, assetId = " + H(J))))
255+ aX
243256 }
244257
245258
246-func aX (aY,aZ,ba) = (fraction(aY, ba, f) + aZ)
259+func aY (aZ,ba,bb) = (fraction(aZ, bb, f) + ba)
247260
248261
249-func bb (bc,bd,ba) = (fraction(bc, ba, f) + bd)
262+func bc (bd,be,bb) = (fraction(bd, bb, f) + be)
250263
251264
252-func be (bf,bg) = (bf - bg)
265+func bf (bg,bh) = (bg - bh)
253266
254267
255-func bh (bi,bj,bg) = (fraction(bi, bj, f) - bg)
268+func bi (bj,bk,bh) = (fraction(bj, bk, f) - bh)
256269
257270
258-func bk (bl,bm) = if ((bl > k))
259- then (bl - bm)
271+func bl (bm,bn) = if ((bm > k))
272+ then (bm - bn)
260273 else k
261274
262275
263-func bn (bl,bm) = if ((bl > k))
264- then (bm - bl)
276+func bo (bm,bn) = if ((bm > k))
277+ then (bn - bm)
265278 else k
266279
267280
268-func bo (bp,bq) = if ((bq > k))
269- then max([k, fraction(bp, f, bq)])
281+func bp (bq,br) = if ((br > k))
282+ then max([k, fraction(bq, f, br)])
270283 else k
271284
272285
273-func br (bp,bq) = if ((bq > k))
274- then max([k, fraction(bq, f, bp)])
286+func bs (bq,br) = if ((br > k))
287+ then max([k, fraction(br, f, bq)])
275288 else k
276289
277290
278-func bs (bt,bu,ba,bv) = fraction((fraction(bt, ba, f) + bu), bv, f)
291+func bt (bu,bv,bb,bw) = fraction((fraction(bu, bb, f) + bv), bw, f)
279292
280293
281-func bw (bx,bv,by) = fraction(bx, by, bv)
294+func bx (by,bw,bz) = fraction(by, bz, bw)
282295
283296
284-func bz (bi,bA,bt,bu,bB,bC) = {
285- let bD = if ((bt > k))
286- then (((bi - bA) / bt) + bB)
297+func bA (bj,bB,bu,bv,bC,bD) = {
298+ let bE = if ((bu > k))
299+ then (((bj - bB) / bu) + bC)
287300 else k
288- let bE = if ((bu > k))
289- then (bC - ((bi - bA) / (bt / bC)))
301+ let bF = if ((bv > k))
302+ then (bD - ((bj - bB) / (bu / bD)))
290303 else k
291- (bD + bE)
304+ (bE + bF)
292305 }
293306
294307
295-func bF (an) = {
296- let at = fromBase58String(valueOrErrorMessage(getString(R, aG(an)), A("invalid account address: request id is undefined")))
297- at
308+func bG (ao) = {
309+ let au = fromBase58String(valueOrErrorMessage(getString(S, aH(ao)), A("invalid account address: request id is undefined")))
310+ au
298311 }
299312
300313
301-func bG (an) = {
302- let at = bF(an)
303- let aP = F(valueOrErrorMessage(getString(R, aD(at)), A("invalid amount asset id")))
304- let aQ = F(valueOrErrorMessage(getString(R, aE(at)), A("invalid amount price id")))
305- $Tuple2(aP, aQ)
314+func bH (ao) = {
315+ let au = bG(ao)
316+ let aQ = F(valueOrErrorMessage(getString(S, aE(au)), A("invalid amount asset id")))
317+ let aR = F(valueOrErrorMessage(getString(S, aF(au)), A("invalid amount price id")))
318+ $Tuple2(aQ, aR)
306319 }
307320
308321
309-func bH (an) = {
310- let at = bF(an)
311- let bI = valueOrErrorMessage(getBinary(R, aC(at)), A("invalid amount asset id"))
312- bI
322+func bI (ao) = {
323+ let au = bG(ao)
324+ let bJ = valueOrErrorMessage(getBinary(S, aD(au)), A("invalid amount asset id"))
325+ bJ
313326 }
314327
315328
316-@Callable(bJ)
317-func init (bK) = {
318- let bL = Z(bJ.caller)
319- if ((bL == bL))
320- then $Tuple2([StringEntry(P, bK)], unit)
329+func bK (ao) = {
330+ let bL = bH(ao)
331+ let aQ = bL._1
332+ let aR = bL._2
333+ let bk = valueOrErrorMessage(getInteger(S, as(ao)), A("leverage should be defined"))
334+ let au = bG(ao)
335+ let bM = valueOrErrorMessage(getBinary(S, aG(au)), "kRequestIdToAccountPublicKey not found")
336+ let bN = s(valueOrElse(ap(ao), 0), P(aR))
337+ let bb = s(aU(aQ), P(aR))
338+ let aZ = s(valueOrElse(getInteger(S, aq(ao, aQ)), 0), P(aQ))
339+ let ba = s(valueOrElse(getInteger(S, aq(ao, aR)), 0), P(aR))
340+ let bO = valueOrErrorMessage(getInteger(S, aB(au)), ("status not found. RequestId = " + toBase58String(au)))
341+ $Tuple12(H(aQ), H(aR), toString(ao), toBase58String(bM), bk, toBase58String(au), bN, aZ, ba, M(aQ, ao), M(aR, ao), bO)
342+ }
343+
344+
345+@Callable(bP)
346+func init (bQ) = {
347+ let bR = aa(bP.caller)
348+ if ((bR == bR))
349+ then $Tuple2([StringEntry(Q, bQ)], unit)
321350 else throw("Strict value is not equal to itself.")
322351 }
323352
324353
325354
326-@Callable(bJ)
327-func requestAccount (ac,bM) = {
328- let bN = [if (!(W))
355+@Callable(bP)
356+func requestAccount (ad,bS) = {
357+ let bT = [if (!(X))
329358 then true
330- else C("not allowed"), aa(bJ.caller)]
331- if ((bN == bN))
359+ else C("not allowed"), ab(bP.caller)]
360+ if ((bT == bT))
332361 then {
333- let bO = bM[0]
334- let bP = bM[1]
335- let bj = valueOrErrorMessage(parseInt(bM[2]), A("invalid leverage"))
336- let bQ = addressFromPublicKey(ac)
337- let at = sha256(((bQ.bytes + fromBase58String(bO)) + fromBase58String(bP)))
338- let aP = F(bO)
339- let aQ = F(bP)
340- let bR = (size(aL(bQ)) / j)
341- let bS = [if ((size(bJ.payments) == 1))
362+ let bU = bS[0]
363+ let bV = bS[1]
364+ let bk = valueOrErrorMessage(parseInt(bS[2]), A("invalid leverage"))
365+ let bW = addressFromPublicKey(ad)
366+ let au = sha256(((bW.bytes + fromBase58String(bU)) + fromBase58String(bV)))
367+ let aQ = F(bU)
368+ let aR = F(bV)
369+ let bX = (size(aM(bW)) / j)
370+ let bY = [if ((size(bP.payments) == 1))
342371 then true
343- else C("1 payment is required"), if ((bJ.payments[0].assetId == unit))
372+ else C("1 payment is required"), if ((bP.payments[0].assetId == unit))
344373 then true
345- else C("invalid asset"), if ((bJ.payments[0].amount == ai()))
374+ else C("invalid asset"), if ((bP.payments[0].amount == aj()))
346375 then true
347- else C("invalid amount"), if (aR(aP, aQ))
376+ else C("invalid amount"), if (aS(aQ, aR))
348377 then true
349- else C("pair is not allowed"), if ((getInteger(R, aA(at)) == unit))
378+ else C("pair is not allowed"), if ((getInteger(S, aB(au)) == unit))
350379 then true
351- else C("account is already exists"), if ((al() > bR))
380+ else C("account is already exists"), if ((am() > bX))
352381 then true
353- else C(("accounts limit is " + toString(al())))]
354- if ((bS == bS))
382+ else C(("accounts limit is " + toString(am())))]
383+ if ((bY == bY))
355384 then {
356- let bT = if ((size(aK()) == 0))
357- then $Tuple2([ScriptTransfer(R, ai(), unit)], [invoke(R, "integerEntry", [aA(at), ay], nil), invoke(R, "binaryEntry", [aH(), (aI() + at)], nil), invoke(R, "integerEntry", [as(at), bj], nil)])
385+ let bZ = if ((size(aL()) == 0))
386+ then $Tuple2([ScriptTransfer(S, aj(), unit)], [invoke(S, "integerEntry", [aB(au), az], nil), invoke(S, "binaryEntry", [aI(), (aJ() + au)], nil), invoke(S, "integerEntry", [at(au), bk], nil)])
358387 else {
359- let bU = take(aK(), j)
360- let an = addressFromPublicKey(bU)
361- let bV = addressFromPublicKey(valueOrErrorMessage(getBinary(R, aB(an)), A("invalid creator public key")))
362- $Tuple2([ScriptTransfer(bV, ai(), unit)], [invoke(R, "binaryEntry", [aJ(), drop(aK(), j)], nil), invoke(R, "integerEntry", [aA(at), az], nil), invoke(R, "binaryEntry", [aF(at), bU], nil), invoke(R, "stringEntry", [aG(an), toBase58String(at)], nil), invoke(R, "integerEntry", [ar(an), bj], nil)])
388+ let bM = take(aL(), j)
389+ let ao = addressFromPublicKey(bM)
390+ let ca = addressFromPublicKey(valueOrErrorMessage(getBinary(S, aC(ao)), A("invalid creator public key")))
391+ $Tuple2([ScriptTransfer(ca, aj(), unit)], [invoke(S, "binaryEntry", [aK(), drop(aL(), j)], nil), invoke(S, "integerEntry", [aB(au), aA], nil), invoke(S, "binaryEntry", [aG(au), bM], nil), invoke(S, "stringEntry", [aH(ao), toBase58String(au)], nil), invoke(S, "integerEntry", [as(ao), bk], nil)])
363392 }
364- let bW = bT._1
365- let bX = bT._2
366- $Tuple2(bW, (bX ++ [invoke(R, "binaryEntry", [aC(at), ac], nil), invoke(R, "binaryEntry", [aL(bQ), (aN(bQ) + at)], nil), invoke(R, "stringEntry", [aD(at), bO], nil), invoke(R, "stringEntry", [aE(at), bP], nil)]))
393+ let cb = bZ._1
394+ let cc = bZ._2
395+ $Tuple2(cb, (cc ++ [invoke(S, "binaryEntry", [aD(au), ad], nil), invoke(S, "binaryEntry", [aM(bW), (aO(bW) + au)], nil), invoke(S, "stringEntry", [aE(au), bU], nil), invoke(S, "stringEntry", [aF(au), bV], nil)]))
367396 }
368397 else throw("Strict value is not equal to itself.")
369398 }
370399 else throw("Strict value is not equal to itself.")
371400 }
372401
373402
374403
375-@Callable(bJ)
376-func addAccount (ac,bM) = {
377- let bN = [if (!(W))
404+@Callable(bP)
405+func addAccount (ad,bS) = {
406+ let bT = [if (!(X))
378407 then true
379- else C("not allowed"), aa(bJ.caller)]
380- if ((bN == bN))
408+ else C("not allowed"), ab(bP.caller)]
409+ if ((bT == bT))
381410 then {
382- let bY = fromBase58String(bM[0])
383- let bU = ac
384- let an = addressFromPublicKey(ac)
385- let bV = addressFromPublicKey(bY)
386- let bS = [if ((getBinary(R, aB(an)) == unit))
411+ let cd = fromBase58String(bS[0])
412+ let bM = ad
413+ let ao = addressFromPublicKey(ad)
414+ let ca = addressFromPublicKey(cd)
415+ let bY = [if ((getBinary(S, aC(ao)) == unit))
387416 then true
388417 else C("account is already exists"), if ({
389- let L = scriptHash(an)
418+ let L = scriptHash(ao)
390419 if ($isInstanceOf(L, "ByteVector"))
391420 then {
392- let bZ = L
393- (bZ == blake2b256_32Kb(ag()))
421+ let ce = L
422+ (ce == blake2b256_32Kb(ah()))
394423 }
395424 else false
396425 })
397426 then true
398427 else C("invalid script")]
399- if ((bS == bS))
428+ if ((bY == bY))
400429 then {
401- let ca = if ((size(aI()) == 0))
402- then $Tuple2(nil, [invoke(R, "binaryEntry", [aJ(), (aK() + bU)], nil)])
430+ let cf = if ((size(aJ()) == 0))
431+ then $Tuple2(nil, [invoke(S, "binaryEntry", [aK(), (aL() + bM)], nil)])
403432 else {
404- let at = take(aI(), j)
405- let bj = valueOrErrorMessage(getInteger(R, as(at)), A("request's leverage is undefined"))
406- $Tuple2(nil, [invoke(R, "integerEntry", [aA(at), az], nil), invoke(R, "binaryEntry", [aF(at), bU], nil), invoke(R, "binaryEntry", [aH(), drop(aI(), j)], nil), invoke(R, "stringEntry", [aG(an), toBase58String(at)], nil), invoke(R, "transferWaves", [bV.bytes, ai()], nil), invoke(R, "integerEntry", [ar(an), bj], nil)])
433+ let au = take(aJ(), j)
434+ let bk = valueOrErrorMessage(getInteger(S, at(au)), A("request's leverage is undefined"))
435+ $Tuple2(nil, [invoke(S, "integerEntry", [aB(au), aA], nil), invoke(S, "binaryEntry", [aG(au), bM], nil), invoke(S, "binaryEntry", [aI(), drop(aJ(), j)], nil), invoke(S, "stringEntry", [aH(ao), toBase58String(au)], nil), invoke(S, "transferWaves", [ca.bytes, aj()], nil), invoke(S, "integerEntry", [as(ao), bk], nil)])
407436 }
408- let bW = ca._1
409- let bX = ca._2
410- $Tuple2(bW, (bX ++ [invoke(R, "binaryEntry", [aB(an), bY], nil)]))
437+ let cb = cf._1
438+ let cc = cf._2
439+ $Tuple2(cb, (cc ++ [invoke(S, "binaryEntry", [aC(ao), cd], nil)]))
411440 }
412441 else throw("Strict value is not equal to itself.")
413442 }
414443 else throw("Strict value is not equal to itself.")
415444 }
416445
417446
418447
419-@Callable(bJ)
420-func deposit (ac,bM) = {
421- let cb = bJ.payments[0]
422- let an = valueOrErrorMessage(addressFromString(bM[0]), A("invalid account address"))
423- let bN = [if (!(W))
448+@Callable(bP)
449+func deposit (ad,bS) = {
450+ let cg = bP.payments[0]
451+ let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address"))
452+ let bT = [if (!(X))
424453 then true
425- else C("not allowed"), aa(bJ.caller), if ((size(bJ.payments) == 1))
454+ else C("not allowed"), ab(bP.caller), if ((size(bP.payments) == 1))
426455 then true
427- else C("1 payment is required"), if ((cb.assetId == U))
456+ else C("1 payment is required"), if ((cg.assetId == V))
428457 then true
429- else C("invalid asset"), if ((getInteger(R, aA(bF(an))) == az))
458+ else C("invalid asset"), if ((getInteger(S, aB(bG(ao))) == aA))
430459 then true
431460 else C("account is not ready")]
432- if ((bN == bN))
461+ if ((bT == bT))
433462 then {
434- let bW = [ScriptTransfer(an, cb.amount, cb.assetId)]
435- let bX = [invoke(R, "integerEntry", [am(an), (valueOrElse(ao(an), 0) + cb.amount)], nil)]
436- $Tuple2(bW, bX)
463+ let cb = [ScriptTransfer(ao, cg.amount, cg.assetId)]
464+ let cc = [invoke(S, "integerEntry", [an(ao), (valueOrElse(ap(ao), 0) + cg.amount)], nil)]
465+ $Tuple2(cb, cc)
437466 }
438467 else throw("Strict value is not equal to itself.")
439468 }
440469
441470
442471
443-@Callable(bJ)
444-func withdraw (ac,bM) = {
445- let bN = [if (!(W))
472+@Callable(bP)
473+func withdraw (ad,bS) = {
474+ let bT = [if (!(X))
446475 then true
447- else C("not allowed"), aa(bJ.caller)]
448- if ((bN == bN))
476+ else C("not allowed"), ab(bP.caller)]
477+ if ((bT == bT))
449478 then {
450- let bQ = addressFromPublicKey(ac)
451- let an = valueOrErrorMessage(addressFromString(bM[0]), A("invalid account address"))
452- let cc = valueOrErrorMessage(parseInt(bM[1]), A("invalid amount"))
453- let J = F(bM[2])
454- let cd = [invoke(an, "transferAsset", [bQ.bytes, cc, J], nil)]
455- $Tuple2(nil, cd)
479+ let bW = addressFromPublicKey(ad)
480+ let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address"))
481+ let ch = valueOrErrorMessage(parseInt(bS[1]), A("invalid amount"))
482+ let J = F(bS[2])
483+ let ci = [invoke(ao, "transferAsset", [bW.bytes, ch, J], nil)]
484+ $Tuple2(nil, ci)
456485 }
457486 else throw("Strict value is not equal to itself.")
458487 }
459488
460489
461490
462-@Callable(bJ)
463-func borrow (ac,bM) = {
464- let an = valueOrErrorMessage(addressFromString(bM[0]), A("invalid account address"))
465- let ce = F(bM[1])
466- let cf = D(valueOrErrorMessage(parseInt(bM[2]), A("invalid requested amount")), "requested amount")
467- let cg = bH(an)
468- let bQ = addressFromPublicKey(ac)
469- let bN = [if (!(W))
491+@Callable(bP)
492+func borrow (ad,bS) = {
493+ let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address"))
494+ let cj = F(bS[1])
495+ let ck = D(valueOrErrorMessage(parseInt(bS[2]), A("invalid requested amount")), "requested amount")
496+ let cl = bI(ao)
497+ let bW = addressFromPublicKey(ad)
498+ let bT = [if (!(X))
470499 then true
471- else C("not allowed"), aa(bJ.caller), if ((ac == cg))
500+ else C("not allowed"), ab(bP.caller), if ((ad == cl))
472501 then true
473502 else C("can be called by account owner only")]
474- if ((bN == bN))
503+ if ((bT == bT))
475504 then {
476- let aP = bG(an)._1
477- let ch = s(valueOrElse(ao(an), 0), O(U))
478- let ba = s(aT(aP), O(U))
479- let aY = s(valueOrElse(getInteger(R, ap(an, aP)), 0), O(aP))
480- let aZ = s(valueOrElse(getInteger(R, ap(an, U)), 0), O(U))
481- let bg = aX(aY, aZ, ba)
482- let bj = s(valueOrErrorMessage(getInteger(R, ar(an)), A("leverage should be defined")), 1)
483- let ci = bh(ch, bj, bg)
484- let cj = if ((ce == aP))
485- then v(fraction(ci, f, ba), O(aP))
486- else if ((ce == U))
487- then v(ci, O(U))
505+ let aQ = bH(ao)._1
506+ let bN = s(valueOrElse(ap(ao), 0), P(V))
507+ let bb = s(aU(aQ), P(V))
508+ let aZ = s(valueOrElse(getInteger(S, aq(ao, aQ)), 0), P(aQ))
509+ let ba = s(valueOrElse(getInteger(S, aq(ao, V)), 0), P(V))
510+ let bh = aY(aZ, ba, bb)
511+ let bk = s(valueOrErrorMessage(getInteger(S, as(ao)), A("leverage should be defined")), 1)
512+ let cm = bi(bN, bk, bh)
513+ let cn = if ((cj == aQ))
514+ then v(fraction(cm, f, bb), P(aQ))
515+ else if ((cj == V))
516+ then v(cm, P(V))
488517 else C("invalid requested asset id")
489- let ax = F(valueOrErrorMessage(getString(R, au(ce)), A("synthetic asset for requested asset is undefined")))
490- let ck = if ((cj >= cf))
491- then cf
492- else C(("credit available = " + toString(cj)))
493- let bX = [invoke(R, "integerEntry", [ap(an, ce), (valueOrElse(aq(an, ce), 0) + ck)], nil), invoke(R, "transferAsset", [bQ.bytes, ck, ax], nil)]
494- $Tuple2(nil, [bX, cj])
518+ let ay = F(valueOrErrorMessage(getString(S, av(cj)), A("synthetic asset for requested asset is undefined")))
519+ let co = if ((cn >= ck))
520+ then ck
521+ else C(("credit available = " + toString(cn)))
522+ let cc = [invoke(S, "integerEntry", [aq(ao, cj), (valueOrElse(ar(ao, cj), 0) + co)], nil), invoke(S, "transferAsset", [bW.bytes, co, ay], nil)]
523+ $Tuple2(nil, [cc, cn])
495524 }
496525 else throw("Strict value is not equal to itself.")
497526 }
498527
499528
500529
501-@Callable(bJ)
502-func repay (ac,bM) = {
503- let bN = [if (!(W))
530+@Callable(bP)
531+func repay (ad,bS) = {
532+ let bT = [if (!(X))
504533 then true
505- else C("not allowed"), aa(bJ.caller)]
506- if ((bN == bN))
534+ else C("not allowed"), ab(bP.caller)]
535+ if ((bT == bT))
507536 then $Tuple2(nil, unit)
508537 else throw("Strict value is not equal to itself.")
509538 }
510539
511540
512541
513-@Callable(bJ)
514-func setPairAllowance (ac,bM) = {
515- let bN = [if (!(W))
542+@Callable(bP)
543+func setPairAllowance (ad,bS) = {
544+ let bT = [if (!(X))
516545 then true
517- else C("not allowed"), aa(bJ.caller), ab(ac)]
518- if ((bN == bN))
546+ else C("not allowed"), ab(bP.caller), ac(ad)]
547+ if ((bT == bT))
519548 then {
520- let bO = bM[0]
521- let bP = bM[1]
522- let cl = bM[2]
523- let aP = F(bO)
524- let aQ = F(bP)
525- let cm = (cl == "true")
526- let cd = [invoke(R, "booleanEntry", [aO(aP, aQ), cm], nil)]
527- $Tuple2(nil, cd)
549+ let bU = bS[0]
550+ let bV = bS[1]
551+ let cp = bS[2]
552+ let aQ = F(bU)
553+ let aR = F(bV)
554+ let cq = (cp == "true")
555+ let ci = [invoke(S, "booleanEntry", [aP(aQ, aR), cq], nil)]
556+ $Tuple2(nil, ci)
528557 }
529558 else throw("Strict value is not equal to itself.")
530559 }
531560
532561
533562
534-@Callable(bJ)
535-func addSyntheticAsset (ac,bM) = {
536- let av = F(bM[0])
537- let ax = F(bM[1])
538- let bN = [if (!(W))
563+@Callable(bP)
564+func addSyntheticAsset (ad,bS) = {
565+ let aw = F(bS[0])
566+ let ay = F(bS[1])
567+ let bT = [if (!(X))
539568 then true
540- else C("not allowed"), aa(bJ.caller), ab(ac), if ((getString(R, au(av)) == unit))
569+ else C("not allowed"), ab(bP.caller), ac(ad), if ((getString(S, av(aw)) == unit))
541570 then true
542- else C("invalid base asset"), if ((getString(R, aw(ax)) == unit))
571+ else C("invalid base asset"), if ((getString(S, ax(ay)) == unit))
543572 then true
544573 else C("invalid synthetic asset")]
545- if ((bN == bN))
574+ if ((bT == bT))
546575 then {
547- let cd = [invoke(R, "stringEntry", [au(av), H(ax)], nil), invoke(R, "stringEntry", [aw(ax), H(av)], nil)]
548- $Tuple2(nil, cd)
576+ let ci = [invoke(S, "stringEntry", [av(aw), H(ay)], nil), invoke(S, "stringEntry", [ax(ay), H(aw)], nil)]
577+ $Tuple2(nil, ci)
549578 }
550579 else throw("Strict value is not equal to itself.")
551580 }
552581
553582
554583
555-@Callable(bJ)
556-func doShutdown (ac,bM) = {
557- let bS = [aa(bJ.caller), ab(ac)]
558- if ((bS == bS))
584+@Callable(bP)
585+func doShutdown (ad,bS) = {
586+ let bY = [ab(bP.caller), ac(ad)]
587+ if ((bY == bY))
559588 then {
560- let cd = [invoke(R, "booleanEntry", [p, true], nil)]
561- $Tuple2(nil, cd)
589+ let ci = [invoke(S, "booleanEntry", [p, true], nil)]
590+ $Tuple2(nil, ci)
562591 }
563592 else throw("Strict value is not equal to itself.")
564593 }
565594
566595
567596
568-@Callable(bJ)
569-func getAccountInfoREADONLY (ac,bM) = {
570- let bS = [aa(bJ.caller)]
571- if ((bS == bS))
597+@Callable(bP)
598+func getAccountInfoREADONLY (ad,bS) = {
599+ let bY = [ab(bP.caller)]
600+ if ((bY == bY))
572601 then {
573- let an = valueOrErrorMessage(addressFromString(bM[0]), A("invalid account address"))
574- let cn = bG(an)
575- let aP = cn._1
576- let aQ = cn._2
577- let bj = valueOrErrorMessage(getInteger(R, ar(an)), A("leverage should be defined"))
578- let bQ = addressFromPublicKey(ac)
579- let at = bF(an)
580- let bU = valueOrErrorMessage(getBinary(R, aF(at)), "kRequestIdToAccountPublicKey not found")
581- let ch = s(valueOrElse(ao(an), 0), O(U))
582- let ba = s(aT(aP), O(U))
583- let aY = s(valueOrElse(getInteger(R, ap(an, aP)), 0), O(aP))
584- let aZ = s(valueOrElse(getInteger(R, ap(an, U)), 0), O(U))
585- let co = $Tuple11(H(aP), H(aQ), toString(an), toBase58String(bU), bj, toBase58String(at), ch, aY, aZ, s(0, O(aP)), s(0, O(U)))
586- $Tuple2(nil, co)
602+ let ao = valueOrErrorMessage(addressFromString(bS[0]), A("invalid account address"))
603+ let cr = bK(ao)
604+ $Tuple2(nil, cr)
587605 }
588606 else throw("Strict value is not equal to itself.")
589607 }
590608
591609
592-@Verifier(cp)
593-func cq () = if (if (isDefined(Q))
594- then isDefined(getString(R, l))
610+
611+@Callable(bP)
612+func getUserInfoREADONLY (ad,bS) = {
613+ let bY = [ab(bP.caller)]
614+ if ((bY == bY))
615+ then {
616+ let bW = valueOrErrorMessage(addressFromString(bS[0]), A("invalid user address"))
617+ let cs = valueOrErrorMessage(getBinary(S, aM(bW)), "kRequestsByOwner not found")
618+ let bX = (size(cs) / j)
619+ let ct = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
620+ func cu (cv,cw) = {
621+ let cx = cv
622+ let cy = cx._1
623+ let cz = cx._2
624+ let cA = cx._3
625+ if ((cA > cw))
626+ then {
627+ let au = take(cz, j)
628+ let cB = drop(cz, j)
629+ let bM = valueOrErrorMessage(getBinary(S, aG(au)), "kRequestIdToAccountPublicKey not found")
630+ let ao = addressFromPublicKey(bM)
631+ let cr = bK(ao)
632+ $Tuple3((cy :+ cr), cB, cA)
633+ }
634+ else cv
635+ }
636+
637+ let cC = {
638+ let cD = ct
639+ let cE = size(cD)
640+ let cF = $Tuple3(nil, cs, bX)
641+ func cG (cH,cI) = if ((cI >= cE))
642+ then cH
643+ else cu(cH, cD[cI])
644+
645+ func cJ (cH,cI) = if ((cI >= cE))
646+ then cH
647+ else throw("List size exceeds 20")
648+
649+ cJ(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cG(cF, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
650+ }
651+ let cy = cC._1
652+ let cK = cC._2
653+ let cL = cC._3
654+ $Tuple2(nil, cy)
655+ }
656+ else throw("Strict value is not equal to itself.")
657+ }
658+
659+
660+@Verifier(cM)
661+func cN () = if (if (isDefined(R))
662+ then isDefined(getString(S, l))
595663 else false)
596664 then {
597- let L = getString(R, l)
665+ let L = getString(S, l)
598666 if ($isInstanceOf(L, "String"))
599667 then {
600- let ad = L
601- let cr = m(toString(this), toBase58String(cp.id))
602- let cs = valueOrElse(getBoolean(addressFromStringValue(ad), cr), false)
603- cs
668+ let ae = L
669+ let cO = m(toString(this), toBase58String(cM.id))
670+ let bO = valueOrElse(getBoolean(addressFromStringValue(ae), cO), false)
671+ bO
604672 }
605673 else false
606674 }
607- else sigVerify(cp.bodyBytes, cp.proofs[0], cp.senderPublicKey)
675+ else sigVerify(cM.bodyBytes, cM.proofs[0], cM.senderPublicKey)
608676

github/deemru/w8io/026f985 
241.41 ms