tx · 7xFZNz985VKPzaYDyMqb8ESKpoCmugPRbvKHGek6khZg

3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37:  -0.02100000 Waves

2024.05.15 13:06 [3106994] smart account 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37 > SELF 0.00000000 Waves

{ "type": 13, "id": "7xFZNz985VKPzaYDyMqb8ESKpoCmugPRbvKHGek6khZg", "fee": 2100000, "feeAssetId": null, "timestamp": 1715767583851, "version": 2, "chainId": 84, "sender": "3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37", "senderPublicKey": "vmMXxwQAMUAoisvL193ptPiTtaWQqL5YNu2zs1ouTbY", "proofs": [ "3rEXec2NpD63N4NxzdrUjZpvmPSHCs5kAFkV4gGn8XdXdzCuPLyRVQ8VVB4o35PJ81pd1yokuwjwjhSvCCNARUsy" ], "script": "base64:BwI9CAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGFMACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAEYmlnMAkAtgIBAAAACWtNdWx0aXNpZwIMJXNfX211bHRpc2lnAQdrU3RhdHVzAgRkYXBwBHR4SWQJALkJAgkAzAgCAgolc19fc3RhdHVzCQDMCAIFBGRhcHAJAMwIAgUEdHhJZAUDbmlsBQlzZXBhcmF0b3IACWtTaHV0ZG93bgIMJXNfX3NodXRkb3duAAtrUHVibGljS2V5cwIOJXNfX3B1YmxpY0tleXMAEWtNYXRjaGVyUHVibGljS2V5Ah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GlzaWcFCXN0YXR1c0tleQcFBnN0YXR1cwcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkQm8b/", "height": 3106994, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 59XkgwYmq5mHKfEiwAkDae3jNdFQgF8gfUfxuAgAXJf8 Next: CD5g85vYA2m5vvcK62RtTKu1afc3XFYE1UFzpK4KHEit Diff:
OldNewDifferences
2121
2222 let j = 32
2323
24-let k = "%s__multisig"
24+let k = toBigInt(0)
2525
26-func l (m,n) = makeString(["%s__status", m, n], a)
26+let l = "%s__multisig"
27+
28+func m (n,o) = makeString(["%s__status", n, o], a)
2729
2830
29-let o = "%s__shutdown"
31+let p = "%s__shutdown"
3032
31-let p = "%s__publicKeys"
33+let q = "%s__publicKeys"
3234
33-let q = "%s__matcherPublicKey"
35+let r = "%s__matcherPublicKey"
3436
35-func r (s,t) = fraction(toBigInt(s), f, toBigInt(t))
37+func s (t,u) = fraction(toBigInt(t), f, toBigInt(u))
3638
3739
38-func u (v,w) = toInt(fraction(v, toBigInt(w), f))
40+func v (w,x) = toInt(fraction(w, toBigInt(x), f))
3941
4042
41-func x (y) = isDefined(addressFromString(y))
43+func y (z) = isDefined(addressFromString(z))
4244
4345
44-func z (A) = ((d + ": ") + A)
46+func A (B) = ((d + ": ") + B)
4547
4648
47-func B (A) = throw(z(A))
49+func C (B) = throw(A(B))
4850
4951
50-func C (D) = if ((D == i))
52+func D (E) = if ((E == i))
5153 then unit
52- else fromBase58String(D)
54+ else fromBase58String(E)
5355
5456
55-func E (D) = if ((D == unit))
57+func F (E) = if ((E == unit))
5658 then i
57- else toBase58String(value(D))
59+ else toBase58String(value(E))
5860
5961
60-let F = "%s__factoryAddress"
62+func G (H) = valueOrErrorMessage(assetInfo(H), A("invalid asset info"))
6163
62-let G = {
63- let H = getString(this, F)
64- if ($isInstanceOf(H, "String"))
64+
65+func I (H) = {
66+ let J = H
67+ if ($isInstanceOf(J, "Unit"))
68+ then g
69+ else if ($isInstanceOf(J, "ByteVector"))
70+ then {
71+ let H = J
72+ G(H).decimals
73+ }
74+ else throw("Match error")
75+ }
76+
77+
78+func K (L) = pow(10, 0, L, 0, 0, DOWN)
79+
80+
81+func M (H) = K(I(H))
82+
83+
84+let N = "%s__factoryAddress"
85+
86+let O = {
87+ let J = getString(this, N)
88+ if ($isInstanceOf(J, "String"))
6589 then {
66- let A = H
67- addressFromString(A)
90+ let B = J
91+ addressFromString(B)
6892 }
69- else if ($isInstanceOf(H, "Unit"))
93+ else if ($isInstanceOf(J, "Unit"))
7094 then unit
7195 else throw("Match error")
7296 }
7397
74-let I = valueOrErrorMessage(G, z("invalid factory address"))
98+let P = valueOrErrorMessage(O, A("invalid factory address"))
7599
76-let J = "%s__usdtAssetId"
100+let Q = "%s__usdtAssetId"
77101
78-let K = {
79- let H = getString(this, J)
80- if ($isInstanceOf(H, "String"))
102+let R = {
103+ let J = getString(this, Q)
104+ if ($isInstanceOf(J, "String"))
81105 then {
82- let A = H
83- C(A)
106+ let B = J
107+ D(B)
84108 }
85- else if ($isInstanceOf(H, "Unit"))
109+ else if ($isInstanceOf(J, "Unit"))
86110 then unit
87111 else throw("Match error")
88112 }
89113
90-let L = valueOrErrorMessage(K, z("invalid usdt asset id"))
114+let S = valueOrErrorMessage(R, A("invalid usdt asset id"))
91115
92-let M = "%s__calculatorAddress"
116+let T = "%s__calculatorAddress"
93117
94-let N = valueOrElse(getBoolean(I, o), false)
118+let U = valueOrElse(getBoolean(P, p), false)
95119
96-func O (P,y) = if ((P == y))
120+func V (W,z) = if ((W == z))
97121 then true
98- else B("permission denied")
122+ else C("permission denied")
99123
100124
101-func Q (P) = O(P, this)
125+func X (W) = V(W, this)
102126
103127
104-func R (P) = O(P, I)
128+func Y (W) = V(W, P)
105129
106130
107-func S (T) = {
108- let U = addressFromStringValue(getStringValue(I, k))
109- let V = split(getStringValue(U, p), a)
110- if (containsElement(V, toBase58String(T)))
131+func Z (aa) = {
132+ let ab = addressFromStringValue(getStringValue(P, l))
133+ let ac = split(getStringValue(ab, q), a)
134+ if (containsElement(ac, toBase58String(aa)))
111135 then true
112- else B("not allowed")
136+ else C("not allowed")
113137 }
114138
115139
116-let W = "%s__accountScript"
140+let ad = "%s__accountScript"
117141
118-func X () = valueOrErrorMessage(getBinary(I, W), z("account script is not set"))
142+func ae () = valueOrErrorMessage(getBinary(P, ad), A("account script is not set"))
119143
120144
121-let Y = "%s__rewardAmount"
145+let af = "%s__rewardAmount"
122146
123-func Z () = valueOrErrorMessage(getInteger(I, Y), z("reward amount is not set"))
147+func ag () = valueOrErrorMessage(getInteger(P, af), A("reward amount is not set"))
124148
125149
126-let aa = "%s__accountsLimit"
150+let ah = "%s__accountsLimit"
127151
128-let ab = 20
152+let ai = 20
129153
130-func ac () = valueOrElse(getInteger(I, aa), ab)
154+func aj () = valueOrElse(getInteger(P, ah), ai)
131155
132156
133-func ad (ae) = makeString(["%s%s", "deposited", toString(ae)], a)
157+func ak (al) = makeString(["%s%s", "deposited", toString(al)], a)
134158
135159
136-func af (ae) = getInteger(I, ad(ae))
160+func am (al) = getInteger(P, ak(al))
137161
138162
139-func ag (ae,ah) = makeString(["%s%s%s", "credit", toString(ae), E(ah)], a)
163+func an (al,H) = makeString(["%s%s%s", "credit", toString(al), F(H)], a)
140164
141165
142-func ai (ae) = makeString(["%s%s", "leverage", toString(ae)], a)
166+func ao (al) = makeString(["%s%s", "leverage", toString(al)], a)
143167
144168
145-func aj (ak) = makeString(["%s%s", "syntheticAssetId", E(ak)], a)
169+func ap (aq) = makeString(["%s%s", "syntheticAssetId", F(aq)], a)
146170
147171
148-func al (am) = makeString(["%s%s", "baseAssetId", E(am)], a)
172+func ar (as) = makeString(["%s%s", "baseAssetId", F(as)], a)
149173
150174
151-let an = 0
175+let at = 0
152176
153-let ao = 1
177+let au = 1
154178
155-func ap (aq) = makeString(["%s%s", toBase58String(aq), "status"], a)
179+func av (aw) = makeString(["%s%s", toBase58String(aw), "status"], a)
156180
157181
158-func ar (ae) = makeString(["%s%s", toString(ae), "creatorPublicKey"], a)
182+func ax (al) = makeString(["%s%s", toString(al), "creatorPublicKey"], a)
159183
160184
161-func as (aq) = makeString(["%s%s", toBase58String(aq), "ownerPublicKey"], a)
185+func ay (aw) = makeString(["%s%s", toBase58String(aw), "ownerPublicKey"], a)
162186
163187
164-func at (aq) = makeString(["%s%s", toBase58String(aq), "amountAssetId"], a)
188+func az (aw) = makeString(["%s%s", toBase58String(aw), "amountAssetId"], a)
165189
166190
167-func au (aq) = makeString(["%s%s", toBase58String(aq), "priceAssetId"], a)
191+func aA (aw) = makeString(["%s%s", toBase58String(aw), "priceAssetId"], a)
168192
169193
170-func av (aq) = makeString(["%s%s", toBase58String(aq), "requestIdToAccountPublicKey"], a)
194+func aB (aw) = makeString(["%s%s", toBase58String(aw), "requestIdToAccountPublicKey"], a)
171195
172196
173-func aw (ae) = makeString(["%s%s", toString(ae), "accountAddressToRequestId"], a)
197+func aC (al) = makeString(["%s%s", toString(al), "accountAddressToRequestId"], a)
174198
175199
176-func ax () = makeString(["%s", "requestsQueue"], a)
200+func aD () = makeString(["%s", "requestsQueue"], a)
177201
178202
179-func ay () = valueOrElse(getBinary(I, ax()), base58'')
203+func aE () = valueOrElse(getBinary(P, aD()), base58'')
180204
181205
182-func az () = makeString(["%s", "accountsQueue"], a)
206+func aF () = makeString(["%s", "accountsQueue"], a)
183207
184208
185-func aA () = valueOrElse(getBinary(I, az()), base58'')
209+func aG () = valueOrElse(getBinary(P, aF()), base58'')
186210
187211
188-func aB (aC) = makeString(["%s%s", "requests", toString(aC)], a)
212+func aH (aI) = makeString(["%s%s", "requests", toString(aI)], a)
189213
190214
191-func aD (aC) = valueOrElse(getBinary(I, aB(aC)), base58'')
215+func aJ (aI) = valueOrElse(getBinary(P, aH(aI)), base58'')
192216
193217
194-func aE (aF,aG) = makeString(["%s%s%s", E(aF), E(aG), "pairAllowed"], a)
218+func aK (aL,aM) = makeString(["%s%s%s", F(aL), F(aM), "pairAllowed"], a)
195219
196220
197-func aH (aF,aG) = valueOrElse(getBoolean(I, aE(aF, aG)), false)
221+func aN (aL,aM) = valueOrElse(getBoolean(P, aK(aL, aM)), false)
198222
199223
200-func aI (ah) = makeString(["%s", E(ah)], a)
224+func aO (H) = makeString(["%s", F(H)], a)
201225
202226
203-func aJ (ah) = {
204- let aK = fromBase58String(valueOrErrorMessage(getString(I, q), z("invalid matcher public key")))
205- let aL = addressFromPublicKey(aK)
206- let aM = valueOrErrorMessage(getInteger(aL, aI(ah)), z(("invalid price, assetId = " + E(ah))))
207- aM
227+func aP (H) = {
228+ let aQ = fromBase58String(valueOrErrorMessage(getString(P, r), A("invalid matcher public key")))
229+ let aR = addressFromPublicKey(aQ)
230+ let aS = valueOrErrorMessage(getInteger(aR, aO(H)), A(("invalid price, assetId = " + F(H))))
231+ aS
208232 }
209233
210234
211-func aN (aO,aP,aQ) = ((aO * aQ) + aP)
235+func aT (aU,aV,aW) = (fraction(aU, aW, f) + aV)
212236
213237
214-func aR (aS,aT,aQ) = ((aS * aQ) + aT)
238+func aX (aY,aZ,aW) = (fraction(aY, aW, f) + aZ)
215239
216240
217-func aU (aV,aW) = (aV - aW)
241+func ba (bb,bc) = (bb - bc)
218242
219243
220-func aX (aY,aZ,aW) = ((aY * aZ) - aW)
244+func bd (be,bf,bc) = (fraction(be, bf, f) - bc)
221245
222246
223-func ba (bb,bc) = if ((bb > 0))
224- then (bb - bc)
225- else 0
247+func bg (bh,bi) = if ((bh > k))
248+ then (bh - bi)
249+ else k
226250
227251
228-func bd (bb,bc) = if ((bb > 0))
229- then (bc - bb)
230- else 0
252+func bj (bh,bi) = if ((bh > k))
253+ then (bi - bh)
254+ else k
231255
232256
233-func be (bf,bg) = if ((bg > 0))
234- then max([0, (bf / bg)])
235- else 0
257+func bk (bl,bm) = if ((bm > k))
258+ then max([k, fraction(bl, f, bm)])
259+ else k
236260
237261
238-func bh (bf,bg) = if ((bg > 0))
239- then max([0, (bg / bf)])
240- else 0
262+func bn (bl,bm) = if ((bm > k))
263+ then max([k, fraction(bm, f, bl)])
264+ else k
241265
242266
243-func bi (bj,bk,aQ,bl) = (((bj * aQ) + bk) * bl)
267+func bo (bp,bq,aW,br) = fraction((fraction(bp, aW, f) + bq), br, f)
244268
245269
246-func bm (bn,bl,bo) = ((bn / bl) * bo)
270+func bs (bt,br,bu) = fraction(bt, bu, br)
247271
248272
249-func bp (aY,bq,bj,bk,br,bs) = {
250- let bt = if ((bj > 0))
251- then (((aY - bq) / bj) + br)
273+func bv (be,bw,bp,bq,bx,by) = {
274+ let bz = if ((bp > 0))
275+ then (((be - bw) / bp) + bx)
252276 else 0
253- let bu = if ((bk > 0))
254- then (bs - ((aY - bq) / (bj / bs)))
277+ let bA = if ((bq > 0))
278+ then (by - ((be - bw) / (bp / by)))
255279 else 0
256- (bt + bu)
280+ (bz + bA)
257281 }
258282
259283
260-func bv (ae) = {
261- let aq = fromBase58String(valueOrErrorMessage(getString(I, aw(ae)), z("invalid account address")))
262- let aF = C(valueOrErrorMessage(getString(I, at(aq)), z("invalid amount asset id")))
263- let aG = C(valueOrErrorMessage(getString(I, au(aq)), z("invalid amount price id")))
264- $Tuple2(aF, aG)
284+func bB (al) = {
285+ let aw = fromBase58String(valueOrErrorMessage(getString(P, aC(al)), A("invalid account address")))
286+ let aL = D(valueOrErrorMessage(getString(P, az(aw)), A("invalid amount asset id")))
287+ let aM = D(valueOrErrorMessage(getString(P, aA(aw)), A("invalid amount price id")))
288+ $Tuple2(aL, aM)
265289 }
266290
267291
268-@Callable(bw)
269-func init (bx) = {
270- let by = Q(bw.caller)
271- if ((by == by))
272- then $Tuple2([StringEntry(F, bx)], unit)
292+@Callable(bC)
293+func init (bD) = {
294+ let bE = X(bC.caller)
295+ if ((bE == bE))
296+ then $Tuple2([StringEntry(N, bD)], unit)
273297 else throw("Strict value is not equal to itself.")
274298 }
275299
276300
277301
278-@Callable(bw)
279-func requestAccount (T,bz) = {
280- let bA = [if (!(N))
302+@Callable(bC)
303+func requestAccount (aa,bF) = {
304+ let bG = [if (!(U))
281305 then true
282- else B("not allowed"), R(bw.caller)]
283- if ((bA == bA))
306+ else C("not allowed"), Y(bC.caller)]
307+ if ((bG == bG))
284308 then {
285- let bB = bz[0]
286- let bC = bz[1]
287- let bD = addressFromPublicKey(T)
288- let aq = sha256(((bD.bytes + fromBase58String(bB)) + fromBase58String(bC)))
289- let aF = C(bB)
290- let aG = C(bC)
291- let bE = (size(aB(bD)) / j)
292- let bF = [if ((size(bw.payments) == 1))
309+ let bH = bF[0]
310+ let bI = bF[1]
311+ let bJ = addressFromPublicKey(aa)
312+ let aw = sha256(((bJ.bytes + fromBase58String(bH)) + fromBase58String(bI)))
313+ let aL = D(bH)
314+ let aM = D(bI)
315+ let bK = (size(aH(bJ)) / j)
316+ let bL = [if ((size(bC.payments) == 1))
293317 then true
294- else B("1 payment is required"), if ((bw.payments[0].assetId == unit))
318+ else C("1 payment is required"), if ((bC.payments[0].assetId == unit))
295319 then true
296- else B("invalid asset"), if ((bw.payments[0].amount == Z()))
320+ else C("invalid asset"), if ((bC.payments[0].amount == ag()))
297321 then true
298- else B("invalid amount"), if (aH(aF, aG))
322+ else C("invalid amount"), if (aN(aL, aM))
299323 then true
300- else B("pair is not allowed"), if ((getInteger(I, ap(aq)) == unit))
324+ else C("pair is not allowed"), if ((getInteger(P, av(aw)) == unit))
301325 then true
302- else B("account is already exists"), if ((ac() > bE))
326+ else C("account is already exists"), if ((aj() > bK))
303327 then true
304- else B(("accounts limit is " + toString(ac())))]
305- if ((bF == bF))
328+ else C(("accounts limit is " + toString(aj())))]
329+ if ((bL == bL))
306330 then {
307- let bG = if ((size(aA()) == 0))
308- then $Tuple2([ScriptTransfer(I, Z(), unit)], [invoke(I, "integerEntry", [ap(aq), an], nil), invoke(I, "binaryEntry", [ax(), (ay() + aq)], nil)])
331+ let bM = if ((size(aG()) == 0))
332+ then $Tuple2([ScriptTransfer(P, ag(), unit)], [invoke(P, "integerEntry", [av(aw), at], nil), invoke(P, "binaryEntry", [aD(), (aE() + aw)], nil)])
309333 else {
310- let bH = take(aA(), j)
311- let ae = addressFromPublicKey(bH)
312- let bI = addressFromPublicKey(valueOrErrorMessage(getBinary(I, ar(ae)), z("invalid creator public key")))
313- $Tuple2([ScriptTransfer(bI, Z(), unit)], [invoke(I, "binaryEntry", [az(), drop(aA(), j)], nil), invoke(I, "integerEntry", [ap(aq), ao], nil), invoke(I, "binaryEntry", [av(aq), bH], nil), invoke(I, "stringEntry", [aw(ae), toBase58String(aq)], nil)])
334+ let bN = take(aG(), j)
335+ let al = addressFromPublicKey(bN)
336+ let bO = addressFromPublicKey(valueOrErrorMessage(getBinary(P, ax(al)), A("invalid creator public key")))
337+ $Tuple2([ScriptTransfer(bO, ag(), unit)], [invoke(P, "binaryEntry", [aF(), drop(aG(), j)], nil), invoke(P, "integerEntry", [av(aw), au], nil), invoke(P, "binaryEntry", [aB(aw), bN], nil), invoke(P, "stringEntry", [aC(al), toBase58String(aw)], nil)])
314338 }
315- let bJ = bG._1
316- let bK = bG._2
317- $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [as(aq), T], nil), invoke(I, "binaryEntry", [aB(bD), (aD(bD) + aq)], nil), invoke(I, "stringEntry", [at(aq), bB], nil), invoke(I, "stringEntry", [au(aq), bC], nil)]))
339+ let bP = bM._1
340+ let bQ = bM._2
341+ $Tuple2(bP, (bQ ++ [invoke(P, "binaryEntry", [ay(aw), aa], nil), invoke(P, "binaryEntry", [aH(bJ), (aJ(bJ) + aw)], nil), invoke(P, "stringEntry", [az(aw), bH], nil), invoke(P, "stringEntry", [aA(aw), bI], nil)]))
318342 }
319343 else throw("Strict value is not equal to itself.")
320344 }
323347
324348
325349
326-@Callable(bw)
327-func addAccount (T,bz) = {
328- let bA = [if (!(N))
350+@Callable(bC)
351+func addAccount (aa,bF) = {
352+ let bG = [if (!(U))
329353 then true
330- else B("not allowed"), R(bw.caller)]
331- if ((bA == bA))
354+ else C("not allowed"), Y(bC.caller)]
355+ if ((bG == bG))
332356 then {
333- let bL = fromBase58String(bz[0])
334- let bH = T
335- let ae = addressFromPublicKey(T)
336- let bI = addressFromPublicKey(bL)
337- let bF = [if ((getBinary(I, ar(ae)) == unit))
357+ let bR = fromBase58String(bF[0])
358+ let bN = aa
359+ let al = addressFromPublicKey(aa)
360+ let bO = addressFromPublicKey(bR)
361+ let bL = [if ((getBinary(P, ax(al)) == unit))
338362 then true
339- else B("account is already exists"), if ({
340- let H = scriptHash(ae)
341- if ($isInstanceOf(H, "ByteVector"))
363+ else C("account is already exists"), if ({
364+ let J = scriptHash(al)
365+ if ($isInstanceOf(J, "ByteVector"))
342366 then {
343- let bM = H
344- (bM == blake2b256_32Kb(X()))
367+ let bS = J
368+ (bS == blake2b256_32Kb(ae()))
345369 }
346370 else false
347371 })
348372 then true
349- else B("invalid script")]
350- if ((bF == bF))
373+ else C("invalid script")]
374+ if ((bL == bL))
351375 then {
352- let bN = if ((size(ay()) == 0))
353- then $Tuple2(nil, [invoke(I, "binaryEntry", [az(), (aA() + bH)], nil)])
376+ let bT = if ((size(aE()) == 0))
377+ then $Tuple2(nil, [invoke(P, "binaryEntry", [aF(), (aG() + bN)], nil)])
354378 else {
355- let aq = take(ay(), j)
356- $Tuple2(nil, [invoke(I, "integerEntry", [ap(aq), ao], nil), invoke(I, "binaryEntry", [av(aq), bH], nil), invoke(I, "binaryEntry", [ax(), drop(ay(), j)], nil), invoke(I, "stringEntry", [aw(ae), toBase58String(aq)], nil), invoke(I, "transferWaves", [bI.bytes, Z()], nil)])
379+ let aw = take(aE(), j)
380+ $Tuple2(nil, [invoke(P, "integerEntry", [av(aw), au], nil), invoke(P, "binaryEntry", [aB(aw), bN], nil), invoke(P, "binaryEntry", [aD(), drop(aE(), j)], nil), invoke(P, "stringEntry", [aC(al), toBase58String(aw)], nil), invoke(P, "transferWaves", [bO.bytes, ag()], nil)])
357381 }
358- let bJ = bN._1
359- let bK = bN._2
360- $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [ar(ae), bL], nil)]))
382+ let bP = bT._1
383+ let bQ = bT._2
384+ $Tuple2(bP, (bQ ++ [invoke(P, "binaryEntry", [ax(al), bR], nil)]))
361385 }
362386 else throw("Strict value is not equal to itself.")
363387 }
366390
367391
368392
369-@Callable(bw)
370-func deposit (T,bz) = {
371- let bO = bw.payments[0]
372- let bA = [if (!(N))
393+@Callable(bC)
394+func deposit (aa,bF) = {
395+ let bU = bC.payments[0]
396+ let bG = [if (!(U))
373397 then true
374- else B("not allowed"), R(bw.caller), if ((size(bw.payments) == 1))
398+ else C("not allowed"), Y(bC.caller), if ((size(bC.payments) == 1))
375399 then true
376- else B("1 payment is required"), if ((bO.assetId == L))
400+ else C("1 payment is required"), if ((bU.assetId == S))
377401 then true
378- else B("invalid asset")]
379- if ((bA == bA))
402+ else C("invalid asset")]
403+ if ((bG == bG))
380404 then {
381- let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address"))
382- let bJ = [ScriptTransfer(ae, bO.amount, bO.assetId)]
383- let bK = [invoke(I, "integerEntry", [ad(ae), (valueOrElse(af(ae), 0) + bO.amount)], nil)]
384- $Tuple2(bJ, bK)
405+ let al = valueOrErrorMessage(addressFromString(bF[0]), A("invalid account address"))
406+ let bP = [ScriptTransfer(al, bU.amount, bU.assetId)]
407+ let bQ = [invoke(P, "integerEntry", [ak(al), (valueOrElse(am(al), 0) + bU.amount)], nil)]
408+ $Tuple2(bP, bQ)
385409 }
386410 else throw("Strict value is not equal to itself.")
387411 }
388412
389413
390414
391-@Callable(bw)
392-func withdraw (T,bz) = {
393- let bA = [if (!(N))
415+@Callable(bC)
416+func withdraw (aa,bF) = {
417+ let bG = [if (!(U))
394418 then true
395- else B("not allowed"), R(bw.caller)]
396- if ((bA == bA))
419+ else C("not allowed"), Y(bC.caller)]
420+ if ((bG == bG))
397421 then {
398- let bD = addressFromPublicKey(T)
399- let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address"))
400- let bP = valueOrErrorMessage(parseInt(bz[1]), z("invalid amount"))
401- let ah = C(bz[2])
402- let bQ = [invoke(ae, "transferAsset", [bD.bytes, bP, ah], nil)]
403- $Tuple2(nil, bQ)
422+ let bJ = addressFromPublicKey(aa)
423+ let al = valueOrErrorMessage(addressFromString(bF[0]), A("invalid account address"))
424+ let bV = valueOrErrorMessage(parseInt(bF[1]), A("invalid amount"))
425+ let H = D(bF[2])
426+ let bW = [invoke(al, "transferAsset", [bJ.bytes, bV, H], nil)]
427+ $Tuple2(nil, bW)
404428 }
405429 else throw("Strict value is not equal to itself.")
406430 }
407431
408432
409433
410-@Callable(bw)
411-func borrow (T,bz) = {
412- let bA = [if (!(N))
434+@Callable(bC)
435+func borrow (aa,bF) = {
436+ let bG = [if (!(U))
413437 then true
414- else B("not allowed"), R(bw.caller)]
415- if ((bA == bA))
438+ else C("not allowed"), Y(bC.caller)]
439+ if ((bG == bG))
416440 then {
417- let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address"))
418- let ah = C(bz[1])
419- let bR = parseInt(bz[2])
420- let bS = valueOrElse(af(ae), 0)
421- let bT = bv(ae)
422- let aF = bT._1
423- let aG = bT._2
424- let aQ = aJ(aF)
425- let aO = valueOrElse(getInteger(I, ag(ae, aF)), 0)
426- let aP = valueOrElse(getInteger(I, ag(ae, aG)), 0)
427- let aW = aN(aO, aP, aQ)
428- let bU = 3
429- let aZ = valueOrElse(getInteger(I, ai(ae)), bU)
430- let bV = aX(bS, aZ, aW)
431- $Tuple2(nil, [bV])
441+ let al = valueOrErrorMessage(addressFromString(bF[0]), A("invalid account address"))
442+ let H = D(bF[1])
443+ let bX = parseInt(bF[2])
444+ let bY = bB(al)
445+ let aL = bY._1
446+ let aM = bY._2
447+ let bZ = s(valueOrElse(am(al), 0), M(aM))
448+ let aW = s(aP(aL), M(S))
449+ let aU = s(valueOrElse(getInteger(P, an(al, aL)), 0), M(aL))
450+ let aV = s(valueOrElse(getInteger(P, an(al, aM)), 0), M(aM))
451+ let bc = aT(aU, aV, aW)
452+ let ca = 3
453+ let bf = s(valueOrElse(getInteger(P, ao(al)), ca), 1)
454+ let cb = bd(bZ, bf, bc)
455+ $Tuple2(nil, [v(cb, M(aM))])
432456 }
433457 else throw("Strict value is not equal to itself.")
434458 }
435459
436460
437461
438-@Callable(bw)
439-func repay (T,bz) = {
440- let bA = [if (!(N))
462+@Callable(bC)
463+func repay (aa,bF) = {
464+ let bG = [if (!(U))
441465 then true
442- else B("not allowed"), R(bw.caller)]
443- if ((bA == bA))
466+ else C("not allowed"), Y(bC.caller)]
467+ if ((bG == bG))
444468 then $Tuple2(nil, unit)
445469 else throw("Strict value is not equal to itself.")
446470 }
447471
448472
449473
450-@Callable(bw)
451-func setPairAllowance (T,bz) = {
452- let bA = [if (!(N))
474+@Callable(bC)
475+func setPairAllowance (aa,bF) = {
476+ let bG = [if (!(U))
453477 then true
454- else B("not allowed"), R(bw.caller), S(T)]
455- if ((bA == bA))
478+ else C("not allowed"), Y(bC.caller), Z(aa)]
479+ if ((bG == bG))
456480 then {
457- let bB = bz[0]
458- let bC = bz[1]
459- let bW = bz[2]
460- let aF = C(bB)
461- let aG = C(bC)
462- let bX = (bW == "true")
463- let bQ = [invoke(I, "booleanEntry", [aE(aF, aG), bX], nil)]
464- $Tuple2(nil, bQ)
481+ let bH = bF[0]
482+ let bI = bF[1]
483+ let cc = bF[2]
484+ let aL = D(bH)
485+ let aM = D(bI)
486+ let cd = (cc == "true")
487+ let bW = [invoke(P, "booleanEntry", [aK(aL, aM), cd], nil)]
488+ $Tuple2(nil, bW)
465489 }
466490 else throw("Strict value is not equal to itself.")
467491 }
468492
469493
470494
471-@Callable(bw)
472-func addSyntheticAsset (T,bz) = {
473- let bY = bz[0]
474- let ak = C(bY)
475- let am = bw.payments[0].assetId
476- let bA = [if (!(N))
495+@Callable(bC)
496+func addSyntheticAsset (aa,bF) = {
497+ let ce = bF[0]
498+ let aq = D(ce)
499+ let as = bC.payments[0].assetId
500+ let bG = [if (!(U))
477501 then true
478- else B("not allowed"), R(bw.caller), S(T), if ((getString(I, aj(ak)) == unit))
502+ else C("not allowed"), Y(bC.caller), Z(aa), if ((getString(P, ap(aq)) == unit))
479503 then true
480- else B("invalid base asset"), if ((size(bw.payments) == 1))
504+ else C("invalid base asset"), if ((size(bC.payments) == 1))
481505 then true
482- else B("invalid payments"), if ((getString(I, al(am)) == unit))
506+ else C("invalid payments"), if ((getString(P, ar(as)) == unit))
483507 then true
484- else B("invalid synthetic asset")]
485- if ((bA == bA))
508+ else C("invalid synthetic asset")]
509+ if ((bG == bG))
486510 then {
487- let bQ = [invoke(I, "stringEntry", [aj(ak), E(am)], nil), invoke(I, "stringEntry", [al(am), E(ak)], nil)]
488- $Tuple2(nil, bQ)
511+ let bW = [invoke(P, "stringEntry", [ap(aq), F(as)], nil), invoke(P, "stringEntry", [ar(as), F(aq)], nil)]
512+ $Tuple2(nil, bW)
489513 }
490514 else throw("Strict value is not equal to itself.")
491515 }
492516
493517
494518
495-@Callable(bw)
496-func doShutdown (T,bz) = {
497- let bF = [R(bw.caller), S(T)]
498- if ((bF == bF))
519+@Callable(bC)
520+func doShutdown (aa,bF) = {
521+ let bL = [Y(bC.caller), Z(aa)]
522+ if ((bL == bL))
499523 then {
500- let bQ = [invoke(I, "booleanEntry", [o, true], nil)]
501- $Tuple2(nil, bQ)
524+ let bW = [invoke(P, "booleanEntry", [p, true], nil)]
525+ $Tuple2(nil, bW)
502526 }
503527 else throw("Strict value is not equal to itself.")
504528 }
505529
506530
507-@Verifier(bZ)
508-func ca () = if (if (isDefined(G))
509- then isDefined(getString(I, k))
531+@Verifier(cf)
532+func cg () = if (if (isDefined(O))
533+ then isDefined(getString(P, l))
510534 else false)
511535 then {
512- let H = getString(I, k)
513- if ($isInstanceOf(H, "String"))
536+ let J = getString(P, l)
537+ if ($isInstanceOf(J, "String"))
514538 then {
515- let U = H
516- let cb = l(toString(this), toBase58String(bZ.id))
517- let cc = valueOrElse(getBoolean(addressFromStringValue(U), cb), false)
518- cc
539+ let ab = J
540+ let ch = m(toString(this), toBase58String(cf.id))
541+ let ci = valueOrElse(getBoolean(addressFromStringValue(ab), ch), false)
542+ ci
519543 }
520544 else false
521545 }
522- else sigVerify(bZ.bodyBytes, bZ.proofs[0], bZ.senderPublicKey)
546+ else sigVerify(cf.bodyBytes, cf.proofs[0], cf.senderPublicKey)
523547
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
24-let k = "%s__multisig"
24+let k = toBigInt(0)
2525
26-func l (m,n) = makeString(["%s__status", m, n], a)
26+let l = "%s__multisig"
27+
28+func m (n,o) = makeString(["%s__status", n, o], a)
2729
2830
29-let o = "%s__shutdown"
31+let p = "%s__shutdown"
3032
31-let p = "%s__publicKeys"
33+let q = "%s__publicKeys"
3234
33-let q = "%s__matcherPublicKey"
35+let r = "%s__matcherPublicKey"
3436
35-func r (s,t) = fraction(toBigInt(s), f, toBigInt(t))
37+func s (t,u) = fraction(toBigInt(t), f, toBigInt(u))
3638
3739
38-func u (v,w) = toInt(fraction(v, toBigInt(w), f))
40+func v (w,x) = toInt(fraction(w, toBigInt(x), f))
3941
4042
41-func x (y) = isDefined(addressFromString(y))
43+func y (z) = isDefined(addressFromString(z))
4244
4345
44-func z (A) = ((d + ": ") + A)
46+func A (B) = ((d + ": ") + B)
4547
4648
47-func B (A) = throw(z(A))
49+func C (B) = throw(A(B))
4850
4951
50-func C (D) = if ((D == i))
52+func D (E) = if ((E == i))
5153 then unit
52- else fromBase58String(D)
54+ else fromBase58String(E)
5355
5456
55-func E (D) = if ((D == unit))
57+func F (E) = if ((E == unit))
5658 then i
57- else toBase58String(value(D))
59+ else toBase58String(value(E))
5860
5961
60-let F = "%s__factoryAddress"
62+func G (H) = valueOrErrorMessage(assetInfo(H), A("invalid asset info"))
6163
62-let G = {
63- let H = getString(this, F)
64- if ($isInstanceOf(H, "String"))
64+
65+func I (H) = {
66+ let J = H
67+ if ($isInstanceOf(J, "Unit"))
68+ then g
69+ else if ($isInstanceOf(J, "ByteVector"))
70+ then {
71+ let H = J
72+ G(H).decimals
73+ }
74+ else throw("Match error")
75+ }
76+
77+
78+func K (L) = pow(10, 0, L, 0, 0, DOWN)
79+
80+
81+func M (H) = K(I(H))
82+
83+
84+let N = "%s__factoryAddress"
85+
86+let O = {
87+ let J = getString(this, N)
88+ if ($isInstanceOf(J, "String"))
6589 then {
66- let A = H
67- addressFromString(A)
90+ let B = J
91+ addressFromString(B)
6892 }
69- else if ($isInstanceOf(H, "Unit"))
93+ else if ($isInstanceOf(J, "Unit"))
7094 then unit
7195 else throw("Match error")
7296 }
7397
74-let I = valueOrErrorMessage(G, z("invalid factory address"))
98+let P = valueOrErrorMessage(O, A("invalid factory address"))
7599
76-let J = "%s__usdtAssetId"
100+let Q = "%s__usdtAssetId"
77101
78-let K = {
79- let H = getString(this, J)
80- if ($isInstanceOf(H, "String"))
102+let R = {
103+ let J = getString(this, Q)
104+ if ($isInstanceOf(J, "String"))
81105 then {
82- let A = H
83- C(A)
106+ let B = J
107+ D(B)
84108 }
85- else if ($isInstanceOf(H, "Unit"))
109+ else if ($isInstanceOf(J, "Unit"))
86110 then unit
87111 else throw("Match error")
88112 }
89113
90-let L = valueOrErrorMessage(K, z("invalid usdt asset id"))
114+let S = valueOrErrorMessage(R, A("invalid usdt asset id"))
91115
92-let M = "%s__calculatorAddress"
116+let T = "%s__calculatorAddress"
93117
94-let N = valueOrElse(getBoolean(I, o), false)
118+let U = valueOrElse(getBoolean(P, p), false)
95119
96-func O (P,y) = if ((P == y))
120+func V (W,z) = if ((W == z))
97121 then true
98- else B("permission denied")
122+ else C("permission denied")
99123
100124
101-func Q (P) = O(P, this)
125+func X (W) = V(W, this)
102126
103127
104-func R (P) = O(P, I)
128+func Y (W) = V(W, P)
105129
106130
107-func S (T) = {
108- let U = addressFromStringValue(getStringValue(I, k))
109- let V = split(getStringValue(U, p), a)
110- if (containsElement(V, toBase58String(T)))
131+func Z (aa) = {
132+ let ab = addressFromStringValue(getStringValue(P, l))
133+ let ac = split(getStringValue(ab, q), a)
134+ if (containsElement(ac, toBase58String(aa)))
111135 then true
112- else B("not allowed")
136+ else C("not allowed")
113137 }
114138
115139
116-let W = "%s__accountScript"
140+let ad = "%s__accountScript"
117141
118-func X () = valueOrErrorMessage(getBinary(I, W), z("account script is not set"))
142+func ae () = valueOrErrorMessage(getBinary(P, ad), A("account script is not set"))
119143
120144
121-let Y = "%s__rewardAmount"
145+let af = "%s__rewardAmount"
122146
123-func Z () = valueOrErrorMessage(getInteger(I, Y), z("reward amount is not set"))
147+func ag () = valueOrErrorMessage(getInteger(P, af), A("reward amount is not set"))
124148
125149
126-let aa = "%s__accountsLimit"
150+let ah = "%s__accountsLimit"
127151
128-let ab = 20
152+let ai = 20
129153
130-func ac () = valueOrElse(getInteger(I, aa), ab)
154+func aj () = valueOrElse(getInteger(P, ah), ai)
131155
132156
133-func ad (ae) = makeString(["%s%s", "deposited", toString(ae)], a)
157+func ak (al) = makeString(["%s%s", "deposited", toString(al)], a)
134158
135159
136-func af (ae) = getInteger(I, ad(ae))
160+func am (al) = getInteger(P, ak(al))
137161
138162
139-func ag (ae,ah) = makeString(["%s%s%s", "credit", toString(ae), E(ah)], a)
163+func an (al,H) = makeString(["%s%s%s", "credit", toString(al), F(H)], a)
140164
141165
142-func ai (ae) = makeString(["%s%s", "leverage", toString(ae)], a)
166+func ao (al) = makeString(["%s%s", "leverage", toString(al)], a)
143167
144168
145-func aj (ak) = makeString(["%s%s", "syntheticAssetId", E(ak)], a)
169+func ap (aq) = makeString(["%s%s", "syntheticAssetId", F(aq)], a)
146170
147171
148-func al (am) = makeString(["%s%s", "baseAssetId", E(am)], a)
172+func ar (as) = makeString(["%s%s", "baseAssetId", F(as)], a)
149173
150174
151-let an = 0
175+let at = 0
152176
153-let ao = 1
177+let au = 1
154178
155-func ap (aq) = makeString(["%s%s", toBase58String(aq), "status"], a)
179+func av (aw) = makeString(["%s%s", toBase58String(aw), "status"], a)
156180
157181
158-func ar (ae) = makeString(["%s%s", toString(ae), "creatorPublicKey"], a)
182+func ax (al) = makeString(["%s%s", toString(al), "creatorPublicKey"], a)
159183
160184
161-func as (aq) = makeString(["%s%s", toBase58String(aq), "ownerPublicKey"], a)
185+func ay (aw) = makeString(["%s%s", toBase58String(aw), "ownerPublicKey"], a)
162186
163187
164-func at (aq) = makeString(["%s%s", toBase58String(aq), "amountAssetId"], a)
188+func az (aw) = makeString(["%s%s", toBase58String(aw), "amountAssetId"], a)
165189
166190
167-func au (aq) = makeString(["%s%s", toBase58String(aq), "priceAssetId"], a)
191+func aA (aw) = makeString(["%s%s", toBase58String(aw), "priceAssetId"], a)
168192
169193
170-func av (aq) = makeString(["%s%s", toBase58String(aq), "requestIdToAccountPublicKey"], a)
194+func aB (aw) = makeString(["%s%s", toBase58String(aw), "requestIdToAccountPublicKey"], a)
171195
172196
173-func aw (ae) = makeString(["%s%s", toString(ae), "accountAddressToRequestId"], a)
197+func aC (al) = makeString(["%s%s", toString(al), "accountAddressToRequestId"], a)
174198
175199
176-func ax () = makeString(["%s", "requestsQueue"], a)
200+func aD () = makeString(["%s", "requestsQueue"], a)
177201
178202
179-func ay () = valueOrElse(getBinary(I, ax()), base58'')
203+func aE () = valueOrElse(getBinary(P, aD()), base58'')
180204
181205
182-func az () = makeString(["%s", "accountsQueue"], a)
206+func aF () = makeString(["%s", "accountsQueue"], a)
183207
184208
185-func aA () = valueOrElse(getBinary(I, az()), base58'')
209+func aG () = valueOrElse(getBinary(P, aF()), base58'')
186210
187211
188-func aB (aC) = makeString(["%s%s", "requests", toString(aC)], a)
212+func aH (aI) = makeString(["%s%s", "requests", toString(aI)], a)
189213
190214
191-func aD (aC) = valueOrElse(getBinary(I, aB(aC)), base58'')
215+func aJ (aI) = valueOrElse(getBinary(P, aH(aI)), base58'')
192216
193217
194-func aE (aF,aG) = makeString(["%s%s%s", E(aF), E(aG), "pairAllowed"], a)
218+func aK (aL,aM) = makeString(["%s%s%s", F(aL), F(aM), "pairAllowed"], a)
195219
196220
197-func aH (aF,aG) = valueOrElse(getBoolean(I, aE(aF, aG)), false)
221+func aN (aL,aM) = valueOrElse(getBoolean(P, aK(aL, aM)), false)
198222
199223
200-func aI (ah) = makeString(["%s", E(ah)], a)
224+func aO (H) = makeString(["%s", F(H)], a)
201225
202226
203-func aJ (ah) = {
204- let aK = fromBase58String(valueOrErrorMessage(getString(I, q), z("invalid matcher public key")))
205- let aL = addressFromPublicKey(aK)
206- let aM = valueOrErrorMessage(getInteger(aL, aI(ah)), z(("invalid price, assetId = " + E(ah))))
207- aM
227+func aP (H) = {
228+ let aQ = fromBase58String(valueOrErrorMessage(getString(P, r), A("invalid matcher public key")))
229+ let aR = addressFromPublicKey(aQ)
230+ let aS = valueOrErrorMessage(getInteger(aR, aO(H)), A(("invalid price, assetId = " + F(H))))
231+ aS
208232 }
209233
210234
211-func aN (aO,aP,aQ) = ((aO * aQ) + aP)
235+func aT (aU,aV,aW) = (fraction(aU, aW, f) + aV)
212236
213237
214-func aR (aS,aT,aQ) = ((aS * aQ) + aT)
238+func aX (aY,aZ,aW) = (fraction(aY, aW, f) + aZ)
215239
216240
217-func aU (aV,aW) = (aV - aW)
241+func ba (bb,bc) = (bb - bc)
218242
219243
220-func aX (aY,aZ,aW) = ((aY * aZ) - aW)
244+func bd (be,bf,bc) = (fraction(be, bf, f) - bc)
221245
222246
223-func ba (bb,bc) = if ((bb > 0))
224- then (bb - bc)
225- else 0
247+func bg (bh,bi) = if ((bh > k))
248+ then (bh - bi)
249+ else k
226250
227251
228-func bd (bb,bc) = if ((bb > 0))
229- then (bc - bb)
230- else 0
252+func bj (bh,bi) = if ((bh > k))
253+ then (bi - bh)
254+ else k
231255
232256
233-func be (bf,bg) = if ((bg > 0))
234- then max([0, (bf / bg)])
235- else 0
257+func bk (bl,bm) = if ((bm > k))
258+ then max([k, fraction(bl, f, bm)])
259+ else k
236260
237261
238-func bh (bf,bg) = if ((bg > 0))
239- then max([0, (bg / bf)])
240- else 0
262+func bn (bl,bm) = if ((bm > k))
263+ then max([k, fraction(bm, f, bl)])
264+ else k
241265
242266
243-func bi (bj,bk,aQ,bl) = (((bj * aQ) + bk) * bl)
267+func bo (bp,bq,aW,br) = fraction((fraction(bp, aW, f) + bq), br, f)
244268
245269
246-func bm (bn,bl,bo) = ((bn / bl) * bo)
270+func bs (bt,br,bu) = fraction(bt, bu, br)
247271
248272
249-func bp (aY,bq,bj,bk,br,bs) = {
250- let bt = if ((bj > 0))
251- then (((aY - bq) / bj) + br)
273+func bv (be,bw,bp,bq,bx,by) = {
274+ let bz = if ((bp > 0))
275+ then (((be - bw) / bp) + bx)
252276 else 0
253- let bu = if ((bk > 0))
254- then (bs - ((aY - bq) / (bj / bs)))
277+ let bA = if ((bq > 0))
278+ then (by - ((be - bw) / (bp / by)))
255279 else 0
256- (bt + bu)
280+ (bz + bA)
257281 }
258282
259283
260-func bv (ae) = {
261- let aq = fromBase58String(valueOrErrorMessage(getString(I, aw(ae)), z("invalid account address")))
262- let aF = C(valueOrErrorMessage(getString(I, at(aq)), z("invalid amount asset id")))
263- let aG = C(valueOrErrorMessage(getString(I, au(aq)), z("invalid amount price id")))
264- $Tuple2(aF, aG)
284+func bB (al) = {
285+ let aw = fromBase58String(valueOrErrorMessage(getString(P, aC(al)), A("invalid account address")))
286+ let aL = D(valueOrErrorMessage(getString(P, az(aw)), A("invalid amount asset id")))
287+ let aM = D(valueOrErrorMessage(getString(P, aA(aw)), A("invalid amount price id")))
288+ $Tuple2(aL, aM)
265289 }
266290
267291
268-@Callable(bw)
269-func init (bx) = {
270- let by = Q(bw.caller)
271- if ((by == by))
272- then $Tuple2([StringEntry(F, bx)], unit)
292+@Callable(bC)
293+func init (bD) = {
294+ let bE = X(bC.caller)
295+ if ((bE == bE))
296+ then $Tuple2([StringEntry(N, bD)], unit)
273297 else throw("Strict value is not equal to itself.")
274298 }
275299
276300
277301
278-@Callable(bw)
279-func requestAccount (T,bz) = {
280- let bA = [if (!(N))
302+@Callable(bC)
303+func requestAccount (aa,bF) = {
304+ let bG = [if (!(U))
281305 then true
282- else B("not allowed"), R(bw.caller)]
283- if ((bA == bA))
306+ else C("not allowed"), Y(bC.caller)]
307+ if ((bG == bG))
284308 then {
285- let bB = bz[0]
286- let bC = bz[1]
287- let bD = addressFromPublicKey(T)
288- let aq = sha256(((bD.bytes + fromBase58String(bB)) + fromBase58String(bC)))
289- let aF = C(bB)
290- let aG = C(bC)
291- let bE = (size(aB(bD)) / j)
292- let bF = [if ((size(bw.payments) == 1))
309+ let bH = bF[0]
310+ let bI = bF[1]
311+ let bJ = addressFromPublicKey(aa)
312+ let aw = sha256(((bJ.bytes + fromBase58String(bH)) + fromBase58String(bI)))
313+ let aL = D(bH)
314+ let aM = D(bI)
315+ let bK = (size(aH(bJ)) / j)
316+ let bL = [if ((size(bC.payments) == 1))
293317 then true
294- else B("1 payment is required"), if ((bw.payments[0].assetId == unit))
318+ else C("1 payment is required"), if ((bC.payments[0].assetId == unit))
295319 then true
296- else B("invalid asset"), if ((bw.payments[0].amount == Z()))
320+ else C("invalid asset"), if ((bC.payments[0].amount == ag()))
297321 then true
298- else B("invalid amount"), if (aH(aF, aG))
322+ else C("invalid amount"), if (aN(aL, aM))
299323 then true
300- else B("pair is not allowed"), if ((getInteger(I, ap(aq)) == unit))
324+ else C("pair is not allowed"), if ((getInteger(P, av(aw)) == unit))
301325 then true
302- else B("account is already exists"), if ((ac() > bE))
326+ else C("account is already exists"), if ((aj() > bK))
303327 then true
304- else B(("accounts limit is " + toString(ac())))]
305- if ((bF == bF))
328+ else C(("accounts limit is " + toString(aj())))]
329+ if ((bL == bL))
306330 then {
307- let bG = if ((size(aA()) == 0))
308- then $Tuple2([ScriptTransfer(I, Z(), unit)], [invoke(I, "integerEntry", [ap(aq), an], nil), invoke(I, "binaryEntry", [ax(), (ay() + aq)], nil)])
331+ let bM = if ((size(aG()) == 0))
332+ then $Tuple2([ScriptTransfer(P, ag(), unit)], [invoke(P, "integerEntry", [av(aw), at], nil), invoke(P, "binaryEntry", [aD(), (aE() + aw)], nil)])
309333 else {
310- let bH = take(aA(), j)
311- let ae = addressFromPublicKey(bH)
312- let bI = addressFromPublicKey(valueOrErrorMessage(getBinary(I, ar(ae)), z("invalid creator public key")))
313- $Tuple2([ScriptTransfer(bI, Z(), unit)], [invoke(I, "binaryEntry", [az(), drop(aA(), j)], nil), invoke(I, "integerEntry", [ap(aq), ao], nil), invoke(I, "binaryEntry", [av(aq), bH], nil), invoke(I, "stringEntry", [aw(ae), toBase58String(aq)], nil)])
334+ let bN = take(aG(), j)
335+ let al = addressFromPublicKey(bN)
336+ let bO = addressFromPublicKey(valueOrErrorMessage(getBinary(P, ax(al)), A("invalid creator public key")))
337+ $Tuple2([ScriptTransfer(bO, ag(), unit)], [invoke(P, "binaryEntry", [aF(), drop(aG(), j)], nil), invoke(P, "integerEntry", [av(aw), au], nil), invoke(P, "binaryEntry", [aB(aw), bN], nil), invoke(P, "stringEntry", [aC(al), toBase58String(aw)], nil)])
314338 }
315- let bJ = bG._1
316- let bK = bG._2
317- $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [as(aq), T], nil), invoke(I, "binaryEntry", [aB(bD), (aD(bD) + aq)], nil), invoke(I, "stringEntry", [at(aq), bB], nil), invoke(I, "stringEntry", [au(aq), bC], nil)]))
339+ let bP = bM._1
340+ let bQ = bM._2
341+ $Tuple2(bP, (bQ ++ [invoke(P, "binaryEntry", [ay(aw), aa], nil), invoke(P, "binaryEntry", [aH(bJ), (aJ(bJ) + aw)], nil), invoke(P, "stringEntry", [az(aw), bH], nil), invoke(P, "stringEntry", [aA(aw), bI], nil)]))
318342 }
319343 else throw("Strict value is not equal to itself.")
320344 }
321345 else throw("Strict value is not equal to itself.")
322346 }
323347
324348
325349
326-@Callable(bw)
327-func addAccount (T,bz) = {
328- let bA = [if (!(N))
350+@Callable(bC)
351+func addAccount (aa,bF) = {
352+ let bG = [if (!(U))
329353 then true
330- else B("not allowed"), R(bw.caller)]
331- if ((bA == bA))
354+ else C("not allowed"), Y(bC.caller)]
355+ if ((bG == bG))
332356 then {
333- let bL = fromBase58String(bz[0])
334- let bH = T
335- let ae = addressFromPublicKey(T)
336- let bI = addressFromPublicKey(bL)
337- let bF = [if ((getBinary(I, ar(ae)) == unit))
357+ let bR = fromBase58String(bF[0])
358+ let bN = aa
359+ let al = addressFromPublicKey(aa)
360+ let bO = addressFromPublicKey(bR)
361+ let bL = [if ((getBinary(P, ax(al)) == unit))
338362 then true
339- else B("account is already exists"), if ({
340- let H = scriptHash(ae)
341- if ($isInstanceOf(H, "ByteVector"))
363+ else C("account is already exists"), if ({
364+ let J = scriptHash(al)
365+ if ($isInstanceOf(J, "ByteVector"))
342366 then {
343- let bM = H
344- (bM == blake2b256_32Kb(X()))
367+ let bS = J
368+ (bS == blake2b256_32Kb(ae()))
345369 }
346370 else false
347371 })
348372 then true
349- else B("invalid script")]
350- if ((bF == bF))
373+ else C("invalid script")]
374+ if ((bL == bL))
351375 then {
352- let bN = if ((size(ay()) == 0))
353- then $Tuple2(nil, [invoke(I, "binaryEntry", [az(), (aA() + bH)], nil)])
376+ let bT = if ((size(aE()) == 0))
377+ then $Tuple2(nil, [invoke(P, "binaryEntry", [aF(), (aG() + bN)], nil)])
354378 else {
355- let aq = take(ay(), j)
356- $Tuple2(nil, [invoke(I, "integerEntry", [ap(aq), ao], nil), invoke(I, "binaryEntry", [av(aq), bH], nil), invoke(I, "binaryEntry", [ax(), drop(ay(), j)], nil), invoke(I, "stringEntry", [aw(ae), toBase58String(aq)], nil), invoke(I, "transferWaves", [bI.bytes, Z()], nil)])
379+ let aw = take(aE(), j)
380+ $Tuple2(nil, [invoke(P, "integerEntry", [av(aw), au], nil), invoke(P, "binaryEntry", [aB(aw), bN], nil), invoke(P, "binaryEntry", [aD(), drop(aE(), j)], nil), invoke(P, "stringEntry", [aC(al), toBase58String(aw)], nil), invoke(P, "transferWaves", [bO.bytes, ag()], nil)])
357381 }
358- let bJ = bN._1
359- let bK = bN._2
360- $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [ar(ae), bL], nil)]))
382+ let bP = bT._1
383+ let bQ = bT._2
384+ $Tuple2(bP, (bQ ++ [invoke(P, "binaryEntry", [ax(al), bR], nil)]))
361385 }
362386 else throw("Strict value is not equal to itself.")
363387 }
364388 else throw("Strict value is not equal to itself.")
365389 }
366390
367391
368392
369-@Callable(bw)
370-func deposit (T,bz) = {
371- let bO = bw.payments[0]
372- let bA = [if (!(N))
393+@Callable(bC)
394+func deposit (aa,bF) = {
395+ let bU = bC.payments[0]
396+ let bG = [if (!(U))
373397 then true
374- else B("not allowed"), R(bw.caller), if ((size(bw.payments) == 1))
398+ else C("not allowed"), Y(bC.caller), if ((size(bC.payments) == 1))
375399 then true
376- else B("1 payment is required"), if ((bO.assetId == L))
400+ else C("1 payment is required"), if ((bU.assetId == S))
377401 then true
378- else B("invalid asset")]
379- if ((bA == bA))
402+ else C("invalid asset")]
403+ if ((bG == bG))
380404 then {
381- let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address"))
382- let bJ = [ScriptTransfer(ae, bO.amount, bO.assetId)]
383- let bK = [invoke(I, "integerEntry", [ad(ae), (valueOrElse(af(ae), 0) + bO.amount)], nil)]
384- $Tuple2(bJ, bK)
405+ let al = valueOrErrorMessage(addressFromString(bF[0]), A("invalid account address"))
406+ let bP = [ScriptTransfer(al, bU.amount, bU.assetId)]
407+ let bQ = [invoke(P, "integerEntry", [ak(al), (valueOrElse(am(al), 0) + bU.amount)], nil)]
408+ $Tuple2(bP, bQ)
385409 }
386410 else throw("Strict value is not equal to itself.")
387411 }
388412
389413
390414
391-@Callable(bw)
392-func withdraw (T,bz) = {
393- let bA = [if (!(N))
415+@Callable(bC)
416+func withdraw (aa,bF) = {
417+ let bG = [if (!(U))
394418 then true
395- else B("not allowed"), R(bw.caller)]
396- if ((bA == bA))
419+ else C("not allowed"), Y(bC.caller)]
420+ if ((bG == bG))
397421 then {
398- let bD = addressFromPublicKey(T)
399- let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address"))
400- let bP = valueOrErrorMessage(parseInt(bz[1]), z("invalid amount"))
401- let ah = C(bz[2])
402- let bQ = [invoke(ae, "transferAsset", [bD.bytes, bP, ah], nil)]
403- $Tuple2(nil, bQ)
422+ let bJ = addressFromPublicKey(aa)
423+ let al = valueOrErrorMessage(addressFromString(bF[0]), A("invalid account address"))
424+ let bV = valueOrErrorMessage(parseInt(bF[1]), A("invalid amount"))
425+ let H = D(bF[2])
426+ let bW = [invoke(al, "transferAsset", [bJ.bytes, bV, H], nil)]
427+ $Tuple2(nil, bW)
404428 }
405429 else throw("Strict value is not equal to itself.")
406430 }
407431
408432
409433
410-@Callable(bw)
411-func borrow (T,bz) = {
412- let bA = [if (!(N))
434+@Callable(bC)
435+func borrow (aa,bF) = {
436+ let bG = [if (!(U))
413437 then true
414- else B("not allowed"), R(bw.caller)]
415- if ((bA == bA))
438+ else C("not allowed"), Y(bC.caller)]
439+ if ((bG == bG))
416440 then {
417- let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address"))
418- let ah = C(bz[1])
419- let bR = parseInt(bz[2])
420- let bS = valueOrElse(af(ae), 0)
421- let bT = bv(ae)
422- let aF = bT._1
423- let aG = bT._2
424- let aQ = aJ(aF)
425- let aO = valueOrElse(getInteger(I, ag(ae, aF)), 0)
426- let aP = valueOrElse(getInteger(I, ag(ae, aG)), 0)
427- let aW = aN(aO, aP, aQ)
428- let bU = 3
429- let aZ = valueOrElse(getInteger(I, ai(ae)), bU)
430- let bV = aX(bS, aZ, aW)
431- $Tuple2(nil, [bV])
441+ let al = valueOrErrorMessage(addressFromString(bF[0]), A("invalid account address"))
442+ let H = D(bF[1])
443+ let bX = parseInt(bF[2])
444+ let bY = bB(al)
445+ let aL = bY._1
446+ let aM = bY._2
447+ let bZ = s(valueOrElse(am(al), 0), M(aM))
448+ let aW = s(aP(aL), M(S))
449+ let aU = s(valueOrElse(getInteger(P, an(al, aL)), 0), M(aL))
450+ let aV = s(valueOrElse(getInteger(P, an(al, aM)), 0), M(aM))
451+ let bc = aT(aU, aV, aW)
452+ let ca = 3
453+ let bf = s(valueOrElse(getInteger(P, ao(al)), ca), 1)
454+ let cb = bd(bZ, bf, bc)
455+ $Tuple2(nil, [v(cb, M(aM))])
432456 }
433457 else throw("Strict value is not equal to itself.")
434458 }
435459
436460
437461
438-@Callable(bw)
439-func repay (T,bz) = {
440- let bA = [if (!(N))
462+@Callable(bC)
463+func repay (aa,bF) = {
464+ let bG = [if (!(U))
441465 then true
442- else B("not allowed"), R(bw.caller)]
443- if ((bA == bA))
466+ else C("not allowed"), Y(bC.caller)]
467+ if ((bG == bG))
444468 then $Tuple2(nil, unit)
445469 else throw("Strict value is not equal to itself.")
446470 }
447471
448472
449473
450-@Callable(bw)
451-func setPairAllowance (T,bz) = {
452- let bA = [if (!(N))
474+@Callable(bC)
475+func setPairAllowance (aa,bF) = {
476+ let bG = [if (!(U))
453477 then true
454- else B("not allowed"), R(bw.caller), S(T)]
455- if ((bA == bA))
478+ else C("not allowed"), Y(bC.caller), Z(aa)]
479+ if ((bG == bG))
456480 then {
457- let bB = bz[0]
458- let bC = bz[1]
459- let bW = bz[2]
460- let aF = C(bB)
461- let aG = C(bC)
462- let bX = (bW == "true")
463- let bQ = [invoke(I, "booleanEntry", [aE(aF, aG), bX], nil)]
464- $Tuple2(nil, bQ)
481+ let bH = bF[0]
482+ let bI = bF[1]
483+ let cc = bF[2]
484+ let aL = D(bH)
485+ let aM = D(bI)
486+ let cd = (cc == "true")
487+ let bW = [invoke(P, "booleanEntry", [aK(aL, aM), cd], nil)]
488+ $Tuple2(nil, bW)
465489 }
466490 else throw("Strict value is not equal to itself.")
467491 }
468492
469493
470494
471-@Callable(bw)
472-func addSyntheticAsset (T,bz) = {
473- let bY = bz[0]
474- let ak = C(bY)
475- let am = bw.payments[0].assetId
476- let bA = [if (!(N))
495+@Callable(bC)
496+func addSyntheticAsset (aa,bF) = {
497+ let ce = bF[0]
498+ let aq = D(ce)
499+ let as = bC.payments[0].assetId
500+ let bG = [if (!(U))
477501 then true
478- else B("not allowed"), R(bw.caller), S(T), if ((getString(I, aj(ak)) == unit))
502+ else C("not allowed"), Y(bC.caller), Z(aa), if ((getString(P, ap(aq)) == unit))
479503 then true
480- else B("invalid base asset"), if ((size(bw.payments) == 1))
504+ else C("invalid base asset"), if ((size(bC.payments) == 1))
481505 then true
482- else B("invalid payments"), if ((getString(I, al(am)) == unit))
506+ else C("invalid payments"), if ((getString(P, ar(as)) == unit))
483507 then true
484- else B("invalid synthetic asset")]
485- if ((bA == bA))
508+ else C("invalid synthetic asset")]
509+ if ((bG == bG))
486510 then {
487- let bQ = [invoke(I, "stringEntry", [aj(ak), E(am)], nil), invoke(I, "stringEntry", [al(am), E(ak)], nil)]
488- $Tuple2(nil, bQ)
511+ let bW = [invoke(P, "stringEntry", [ap(aq), F(as)], nil), invoke(P, "stringEntry", [ar(as), F(aq)], nil)]
512+ $Tuple2(nil, bW)
489513 }
490514 else throw("Strict value is not equal to itself.")
491515 }
492516
493517
494518
495-@Callable(bw)
496-func doShutdown (T,bz) = {
497- let bF = [R(bw.caller), S(T)]
498- if ((bF == bF))
519+@Callable(bC)
520+func doShutdown (aa,bF) = {
521+ let bL = [Y(bC.caller), Z(aa)]
522+ if ((bL == bL))
499523 then {
500- let bQ = [invoke(I, "booleanEntry", [o, true], nil)]
501- $Tuple2(nil, bQ)
524+ let bW = [invoke(P, "booleanEntry", [p, true], nil)]
525+ $Tuple2(nil, bW)
502526 }
503527 else throw("Strict value is not equal to itself.")
504528 }
505529
506530
507-@Verifier(bZ)
508-func ca () = if (if (isDefined(G))
509- then isDefined(getString(I, k))
531+@Verifier(cf)
532+func cg () = if (if (isDefined(O))
533+ then isDefined(getString(P, l))
510534 else false)
511535 then {
512- let H = getString(I, k)
513- if ($isInstanceOf(H, "String"))
536+ let J = getString(P, l)
537+ if ($isInstanceOf(J, "String"))
514538 then {
515- let U = H
516- let cb = l(toString(this), toBase58String(bZ.id))
517- let cc = valueOrElse(getBoolean(addressFromStringValue(U), cb), false)
518- cc
539+ let ab = J
540+ let ch = m(toString(this), toBase58String(cf.id))
541+ let ci = valueOrElse(getBoolean(addressFromStringValue(ab), ch), false)
542+ ci
519543 }
520544 else false
521545 }
522- else sigVerify(bZ.bodyBytes, bZ.proofs[0], bZ.senderPublicKey)
546+ else sigVerify(cf.bodyBytes, cf.proofs[0], cf.senderPublicKey)
523547

github/deemru/w8io/169f3d6 
197.50 ms