tx · 59XkgwYmq5mHKfEiwAkDae3jNdFQgF8gfUfxuAgAXJf8

3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37:  -0.02100000 Waves

2024.05.14 13:48 [3105589] smart account 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37 > SELF 0.00000000 Waves

{ "type": 13, "id": "59XkgwYmq5mHKfEiwAkDae3jNdFQgF8gfUfxuAgAXJf8", "fee": 2100000, "feeAssetId": null, "timestamp": 1715683730637, "version": 2, "chainId": 84, "sender": "3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37", "senderPublicKey": "vmMXxwQAMUAoisvL193ptPiTtaWQqL5YNu2zs1ouTbY", "proofs": [ "5ghrmYfVVrN8AooDeP2Fxq1Ycx3ezNvPooSL8Xc7DEyXWawwSabbDvDqWfoFUH7PSpPHbze51vYgJsKXhhfg4UW1" ], "script": "base64:BwI9CAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGE4ACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAJa011bHRpc2lnAgwlc19fbXVsdGlzaWcBB2tTdGF0dXMCBGRhcHAEdHhJZAkAuQkCCQDMCAICCiVzX19zdGF0dXMJAMwIAgUEZGFwcAkAzAgCBQR0eElkBQNuaWwFCXNlcGFyYXRvcgAJa1NodXRkb3duAgwlc19fc2h1dGRvd24AC2tQdWJsaWNLZXlzAg4lc19fcHVibGljS2V5cwARa01hdGNoZXJQdWJsaWNLZXkCFCVzX19tYXRj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QEBnN0YXR1cwkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwUJc3RhdHVzS2V5BwUGc3RhdHVzBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleedNLWY=", "height": 3105589, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AeE9HsMec7dmamH2zeLctPppdFspzLQdfdpsaXCAjDFS Next: 7xFZNz985VKPzaYDyMqb8ESKpoCmugPRbvKHGek6khZg Diff:
OldNewDifferences
1717
1818 let h = 6
1919
20-let i = "%s__multisig"
20+let i = "WAVES"
2121
22-func j (k,l) = makeString(["%s__status", k, l], a)
22+let j = 32
23+
24+let k = "%s__multisig"
25+
26+func l (m,n) = makeString(["%s__status", m, n], a)
2327
2428
25-let m = "%s__shutdown"
29+let o = "%s__shutdown"
2630
27-let n = "%s__publicKeys"
31+let p = "%s__publicKeys"
2832
29-let o = "%s__matcherPublicKey"
33+let q = "%s__matcherPublicKey"
3034
31-func p (q,r) = fraction(toBigInt(q), f, toBigInt(r))
35+func r (s,t) = fraction(toBigInt(s), f, toBigInt(t))
3236
3337
34-func s (t,u) = toInt(fraction(t, toBigInt(u), f))
38+func u (v,w) = toInt(fraction(v, toBigInt(w), f))
3539
3640
37-func v (w) = isDefined(addressFromString(w))
41+func x (y) = isDefined(addressFromString(y))
3842
3943
40-func x (y) = ((d + ": ") + y)
44+func z (A) = ((d + ": ") + A)
4145
4246
43-func z (y) = throw(x(y))
47+func B (A) = throw(z(A))
4448
4549
46-let A = "%s__factoryAddress"
50+func C (D) = if ((D == i))
51+ then unit
52+ else fromBase58String(D)
4753
48-let B = {
49- let C = getString(this, A)
50- if ($isInstanceOf(C, "String"))
54+
55+func E (D) = if ((D == unit))
56+ then i
57+ else toBase58String(value(D))
58+
59+
60+let F = "%s__factoryAddress"
61+
62+let G = {
63+ let H = getString(this, F)
64+ if ($isInstanceOf(H, "String"))
5165 then {
52- let y = C
53- addressFromString(y)
66+ let A = H
67+ addressFromString(A)
5468 }
55- else if ($isInstanceOf(C, "Unit"))
69+ else if ($isInstanceOf(H, "Unit"))
5670 then unit
5771 else throw("Match error")
5872 }
5973
60-let D = valueOrErrorMessage(B, x("invalid factory address"))
74+let I = valueOrErrorMessage(G, z("invalid factory address"))
6175
62-let E = "%s__calculatorAddress"
76+let J = "%s__usdtAssetId"
6377
64-let F = valueOrElse(getBoolean(D, m), false)
78+let K = {
79+ let H = getString(this, J)
80+ if ($isInstanceOf(H, "String"))
81+ then {
82+ let A = H
83+ C(A)
84+ }
85+ else if ($isInstanceOf(H, "Unit"))
86+ then unit
87+ else throw("Match error")
88+ }
6589
66-func G (H,w) = if ((H == w))
90+let L = valueOrErrorMessage(K, z("invalid usdt asset id"))
91+
92+let M = "%s__calculatorAddress"
93+
94+let N = valueOrElse(getBoolean(I, o), false)
95+
96+func O (P,y) = if ((P == y))
6797 then true
68- else z("permission denied")
98+ else B("permission denied")
6999
70100
71-func I (H) = G(H, this)
101+func Q (P) = O(P, this)
72102
73103
74-func J (H) = G(H, D)
104+func R (P) = O(P, I)
75105
76106
77-func K (L) = {
78- let M = addressFromStringValue(getStringValue(D, i))
79- let N = split(getStringValue(M, n), a)
80- if (containsElement(N, toBase58String(L)))
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)))
81111 then true
82- else z("not allowed")
112+ else B("not allowed")
83113 }
84114
85115
86-let O = "WAVES"
116+let W = "%s__accountScript"
87117
88-let P = 32
89-
90-func Q (R) = if ((R == O))
91- then unit
92- else fromBase58String(R)
118+func X () = valueOrErrorMessage(getBinary(I, W), z("account script is not set"))
93119
94120
95-func S (R) = if ((R == unit))
96- then O
97- else toBase58String(value(R))
121+let Y = "%s__rewardAmount"
122+
123+func Z () = valueOrErrorMessage(getInteger(I, Y), z("reward amount is not set"))
98124
99125
100-let T = "%s__accountScript"
126+let aa = "%s__accountsLimit"
101127
102-func U () = valueOrErrorMessage(getBinary(D, T), x("account script is not set"))
128+let ab = 20
129+
130+func ac () = valueOrElse(getInteger(I, aa), ab)
103131
104132
105-let V = "%s__rewardAmount"
106-
107-func W () = valueOrErrorMessage(getInteger(D, V), x("reward amount is not set"))
133+func ad (ae) = makeString(["%s%s", "deposited", toString(ae)], a)
108134
109135
110-let X = "%s__accountsLimit"
111-
112-let Y = 20
113-
114-func Z () = valueOrElse(getInteger(D, X), Y)
136+func af (ae) = getInteger(I, ad(ae))
115137
116138
117-func aa (ab) = makeString(["%s%s", "deposited", toString(ab)], a)
139+func ag (ae,ah) = makeString(["%s%s%s", "credit", toString(ae), E(ah)], a)
118140
119141
120-func ac (ab) = getInteger(D, aa(ab))
142+func ai (ae) = makeString(["%s%s", "leverage", toString(ae)], a)
121143
122144
123-func ad (ab,ae) = makeString(["%s%s%s", "credit", toString(ab), S(ae)], a)
145+func aj (ak) = makeString(["%s%s", "syntheticAssetId", E(ak)], a)
124146
125147
126-func af (ab) = makeString(["%s%s", "leverage", toString(ab)], a)
148+func al (am) = makeString(["%s%s", "baseAssetId", E(am)], a)
127149
128150
129-func ag (ah) = makeString(["%s%s", "syntheticAssetId", S(ah)], a)
151+let an = 0
152+
153+let ao = 1
154+
155+func ap (aq) = makeString(["%s%s", toBase58String(aq), "status"], a)
130156
131157
132-func ai (aj) = makeString(["%s%s", "baseAssetId", S(aj)], a)
158+func ar (ae) = makeString(["%s%s", toString(ae), "creatorPublicKey"], a)
133159
134160
135-let ak = 0
136-
137-let al = 1
138-
139-func am (an) = makeString(["%s%s", toBase58String(an), "status"], a)
161+func as (aq) = makeString(["%s%s", toBase58String(aq), "ownerPublicKey"], a)
140162
141163
142-func ao (ab) = makeString(["%s%s", toString(ab), "creatorPublicKey"], a)
164+func at (aq) = makeString(["%s%s", toBase58String(aq), "amountAssetId"], a)
143165
144166
145-func ap (an) = makeString(["%s%s", toBase58String(an), "ownerPublicKey"], a)
167+func au (aq) = makeString(["%s%s", toBase58String(aq), "priceAssetId"], a)
146168
147169
148-func aq (an) = makeString(["%s%s", toBase58String(an), "amountAssetId"], a)
170+func av (aq) = makeString(["%s%s", toBase58String(aq), "requestIdToAccountPublicKey"], a)
149171
150172
151-func ar (an) = makeString(["%s%s", toBase58String(an), "priceAssetId"], a)
173+func aw (ae) = makeString(["%s%s", toString(ae), "accountAddressToRequestId"], a)
152174
153175
154-func as (an) = makeString(["%s%s", toBase58String(an), "requestIdToAccountPublicKey"], a)
176+func ax () = makeString(["%s", "requestsQueue"], a)
155177
156178
157-func at (ab) = makeString(["%s%s", toString(ab), "accountAddressToRequestId"], a)
179+func ay () = valueOrElse(getBinary(I, ax()), base58'')
158180
159181
160-func au () = makeString(["%s", "requestsQueue"], a)
182+func az () = makeString(["%s", "accountsQueue"], a)
161183
162184
163-func av () = valueOrElse(getBinary(D, au()), base58'')
185+func aA () = valueOrElse(getBinary(I, az()), base58'')
164186
165187
166-func aw () = makeString(["%s", "accountsQueue"], a)
188+func aB (aC) = makeString(["%s%s", "requests", toString(aC)], a)
167189
168190
169-func ax () = valueOrElse(getBinary(D, aw()), base58'')
191+func aD (aC) = valueOrElse(getBinary(I, aB(aC)), base58'')
170192
171193
172-func ay (az) = makeString(["%s%s", "accounts", toString(az)], a)
194+func aE (aF,aG) = makeString(["%s%s%s", E(aF), E(aG), "pairAllowed"], a)
173195
174196
175-func aA (az) = valueOrElse(getBinary(D, ay(az)), base58'')
197+func aH (aF,aG) = valueOrElse(getBoolean(I, aE(aF, aG)), false)
176198
177199
178-func aB (aC,aD) = makeString(["%s%s%s", S(aC), S(aD), "pairAllowed"], a)
200+func aI (ah) = makeString(["%s", E(ah)], a)
179201
180202
181-func aE (aC,aD) = valueOrElse(getBoolean(D, aB(aC, aD)), false)
182-
183-
184-func aF (ae) = makeString(["%s", S(ae)], a)
185-
186-
187-func aG (ae) = {
188- let aH = fromBase58String(valueOrErrorMessage(getString(D, o), x("invalid matcher public key")))
189- let aI = addressFromPublicKey(aH)
190- let aJ = valueOrErrorMessage(getInteger(aI, aF(ae)), x(("invalid price, assetId = " + S(ae))))
191- aJ
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
192208 }
193209
194210
195-func aK (aL,aM,aN) = ((aL * aN) + aM)
211+func aN (aO,aP,aQ) = ((aO * aQ) + aP)
196212
197213
198-func aO (aP,aQ,aN) = ((aP * aN) + aQ)
214+func aR (aS,aT,aQ) = ((aS * aQ) + aT)
199215
200216
201-func aR (aS,aT) = (aS - aT)
217+func aU (aV,aW) = (aV - aW)
202218
203219
204-func aU (aV,aW,aT) = ((aV * aW) - aT)
220+func aX (aY,aZ,aW) = ((aY * aZ) - aW)
205221
206222
207-func aX (aY,aZ) = if ((aY > 0))
208- then (aY - aZ)
223+func ba (bb,bc) = if ((bb > 0))
224+ then (bb - bc)
209225 else 0
210226
211227
212-func ba (aY,aZ) = if ((aY > 0))
213- then (aZ - aY)
228+func bd (bb,bc) = if ((bb > 0))
229+ then (bc - bb)
214230 else 0
215231
216232
217-func bb (bc,bd) = if ((bd > 0))
218- then max([0, (bc / bd)])
233+func be (bf,bg) = if ((bg > 0))
234+ then max([0, (bf / bg)])
219235 else 0
220236
221237
222-func be (bc,bd) = if ((bd > 0))
223- then max([0, (bd / bc)])
238+func bh (bf,bg) = if ((bg > 0))
239+ then max([0, (bg / bf)])
224240 else 0
225241
226242
227-func bf (bg,bh,aN,bi) = (((bg * aN) + bh) * bi)
243+func bi (bj,bk,aQ,bl) = (((bj * aQ) + bk) * bl)
228244
229245
230-func bj (bk,bi,bl) = ((bk / bi) * bl)
246+func bm (bn,bl,bo) = ((bn / bl) * bo)
231247
232248
233-func bm (aV,bn,bg,bh,bo,bp) = {
234- let bq = if ((bg > 0))
235- then (((aV - bn) / bg) + bo)
249+func bp (aY,bq,bj,bk,br,bs) = {
250+ let bt = if ((bj > 0))
251+ then (((aY - bq) / bj) + br)
236252 else 0
237- let br = if ((bh > 0))
238- then (bp - ((aV - bn) / (bg / bp)))
253+ let bu = if ((bk > 0))
254+ then (bs - ((aY - bq) / (bj / bs)))
239255 else 0
240- (bq + br)
256+ (bt + bu)
241257 }
242258
243259
244-func bs (ab) = {
245- let an = fromBase58String(valueOrErrorMessage(getString(D, at(ab)), x("invalid account address")))
246- let aC = Q(valueOrErrorMessage(getString(D, aq(an)), x("invalid amount asset id")))
247- let aD = Q(valueOrErrorMessage(getString(D, ar(an)), x("invalid amount price id")))
248- $Tuple2(aC, aD)
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)
249265 }
250266
251267
252-@Callable(bt)
253-func init (bu) = {
254- let bv = I(bt.caller)
255- if ((bv == bv))
256- then $Tuple2([StringEntry(A, bu)], unit)
268+@Callable(bw)
269+func init (bx) = {
270+ let by = Q(bw.caller)
271+ if ((by == by))
272+ then $Tuple2([StringEntry(F, bx)], unit)
257273 else throw("Strict value is not equal to itself.")
258274 }
259275
260276
261277
262-@Callable(bt)
263-func requestAccount (L,bw) = {
264- let bx = [if (!(F))
278+@Callable(bw)
279+func requestAccount (T,bz) = {
280+ let bA = [if (!(N))
265281 then true
266- else z("not allowed"), J(bt.caller)]
267- if ((bx == bx))
282+ else B("not allowed"), R(bw.caller)]
283+ if ((bA == bA))
268284 then {
269- let by = bw[0]
270- let bz = bw[1]
271- let bA = addressFromPublicKey(L)
272- let an = sha256(((bA.bytes + fromBase58String(by)) + fromBase58String(bz)))
273- let aC = Q(by)
274- let aD = Q(bz)
275- let bB = (size(ay(bA)) / P)
276- let bC = [if ((size(bt.payments) == 1))
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))
277293 then true
278- else z("1 payment is required"), if ((bt.payments[0].assetId == unit))
294+ else B("1 payment is required"), if ((bw.payments[0].assetId == unit))
279295 then true
280- else z("invalid asset"), if ((bt.payments[0].amount == W()))
296+ else B("invalid asset"), if ((bw.payments[0].amount == Z()))
281297 then true
282- else z("invalid amount"), if (aE(aC, aD))
298+ else B("invalid amount"), if (aH(aF, aG))
283299 then true
284- else z("pair is not allowed"), if ((getInteger(D, am(an)) == unit))
300+ else B("pair is not allowed"), if ((getInteger(I, ap(aq)) == unit))
285301 then true
286- else z("account is already exists"), if ((Z() > bB))
302+ else B("account is already exists"), if ((ac() > bE))
287303 then true
288- else z(("accounts limit is " + toString(Z())))]
289- if ((bC == bC))
304+ else B(("accounts limit is " + toString(ac())))]
305+ if ((bF == bF))
290306 then {
291- let bD = if ((size(ax()) == 0))
292- then $Tuple2([ScriptTransfer(D, W(), unit)], [invoke(D, "integerEntry", [am(an), ak], nil), invoke(D, "binaryEntry", [au(), (av() + an)], nil)])
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)])
293309 else {
294- let bE = take(ax(), P)
295- let ab = addressFromPublicKey(bE)
296- let bF = addressFromPublicKey(valueOrErrorMessage(getBinary(D, ao(ab)), x("invalid creator public key")))
297- $Tuple2([ScriptTransfer(bF, W(), unit)], [invoke(D, "binaryEntry", [aw(), drop(ax(), P)], nil), invoke(D, "integerEntry", [am(an), al], nil), invoke(D, "binaryEntry", [as(an), bE], nil), invoke(D, "stringEntry", [at(ab), toBase58String(an)], nil)])
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)])
298314 }
299- let bG = bD._1
300- let bH = bD._2
301- $Tuple2(bG, (bH ++ [invoke(D, "binaryEntry", [ap(an), L], nil), invoke(D, "binaryEntry", [ay(bA), (aA(bA) + an)], nil), invoke(D, "stringEntry", [aq(an), by], nil), invoke(D, "stringEntry", [ar(an), bz], nil)]))
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)]))
302318 }
303319 else throw("Strict value is not equal to itself.")
304320 }
307323
308324
309325
310-@Callable(bt)
311-func addAccount (L,bw) = {
312- let bx = [if (!(F))
326+@Callable(bw)
327+func addAccount (T,bz) = {
328+ let bA = [if (!(N))
313329 then true
314- else z("not allowed"), J(bt.caller)]
315- if ((bx == bx))
330+ else B("not allowed"), R(bw.caller)]
331+ if ((bA == bA))
316332 then {
317- let bI = fromBase58String(bw[0])
318- let bE = L
319- let ab = addressFromPublicKey(L)
320- let bF = addressFromPublicKey(bI)
321- let bC = [if ((getBinary(D, ao(ab)) == unit))
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))
322338 then true
323- else z("account is already exists"), if ({
324- let C = scriptHash(ab)
325- if ($isInstanceOf(C, "ByteVector"))
339+ else B("account is already exists"), if ({
340+ let H = scriptHash(ae)
341+ if ($isInstanceOf(H, "ByteVector"))
326342 then {
327- let bJ = C
328- (bJ == blake2b256_32Kb(U()))
343+ let bM = H
344+ (bM == blake2b256_32Kb(X()))
329345 }
330346 else false
331347 })
332348 then true
333- else z("invalid script")]
334- if ((bC == bC))
349+ else B("invalid script")]
350+ if ((bF == bF))
335351 then {
336- let bK = if ((size(av()) == 0))
337- then $Tuple2(nil, [invoke(D, "binaryEntry", [aw(), (ax() + bE)], nil)])
352+ let bN = if ((size(ay()) == 0))
353+ then $Tuple2(nil, [invoke(I, "binaryEntry", [az(), (aA() + bH)], nil)])
338354 else {
339- let an = take(av(), P)
340- $Tuple2(nil, [invoke(D, "integerEntry", [am(an), al], nil), invoke(D, "binaryEntry", [as(an), bE], nil), invoke(D, "binaryEntry", [au(), drop(av(), P)], nil), invoke(D, "stringEntry", [at(ab), toBase58String(an)], nil), invoke(D, "transferWaves", [bF.bytes, W()], nil)])
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)])
341357 }
342- let bG = bK._1
343- let bH = bK._2
344- $Tuple2(bG, (bH ++ [invoke(D, "binaryEntry", [ao(ab), bI], nil)]))
358+ let bJ = bN._1
359+ let bK = bN._2
360+ $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [ar(ae), bL], nil)]))
345361 }
346362 else throw("Strict value is not equal to itself.")
347363 }
350366
351367
352368
353-@Callable(bt)
354-func deposit (L,bw) = {
355- let bx = [if (!(F))
369+@Callable(bw)
370+func deposit (T,bz) = {
371+ let bO = bw.payments[0]
372+ let bA = [if (!(N))
356373 then true
357- else z("not allowed"), J(bt.caller)]
358- if ((bx == bx))
374+ else B("not allowed"), R(bw.caller), if ((size(bw.payments) == 1))
375+ then true
376+ else B("1 payment is required"), if ((bO.assetId == L))
377+ then true
378+ else B("invalid asset")]
379+ if ((bA == bA))
359380 then {
360- let ab = valueOrErrorMessage(addressFromString(bw[0]), x("invalid account address"))
361- let bL = bt.payments[0]
362- let bG = [ScriptTransfer(ab, bL.amount, bL.assetId)]
363- let bH = [invoke(D, "integerEntry", [aa(ab), (valueOrElse(ac(ab), 0) + bL.amount)], nil)]
364- $Tuple2(bG, bH)
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)
365385 }
366386 else throw("Strict value is not equal to itself.")
367387 }
368388
369389
370390
371-@Callable(bt)
372-func withdraw (L,bw) = {
373- let bx = [if (!(F))
391+@Callable(bw)
392+func withdraw (T,bz) = {
393+ let bA = [if (!(N))
374394 then true
375- else z("not allowed"), J(bt.caller)]
376- if ((bx == bx))
395+ else B("not allowed"), R(bw.caller)]
396+ if ((bA == bA))
377397 then {
378- let bA = addressFromPublicKey(L)
379- let ab = valueOrErrorMessage(addressFromString(bw[0]), x("invalid account address"))
380- let bM = valueOrErrorMessage(parseInt(bw[1]), x("invalid amount"))
381- let ae = Q(bw[2])
382- let bN = [invoke(ab, "transferAsset", [bA.bytes, bM, ae], nil)]
383- $Tuple2(nil, bN)
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)
384404 }
385405 else throw("Strict value is not equal to itself.")
386406 }
387407
388408
389409
390-@Callable(bt)
391-func borrow (L,bw) = {
392- let bx = [if (!(F))
410+@Callable(bw)
411+func borrow (T,bz) = {
412+ let bA = [if (!(N))
393413 then true
394- else z("not allowed"), J(bt.caller)]
395- if ((bx == bx))
414+ else B("not allowed"), R(bw.caller)]
415+ if ((bA == bA))
396416 then {
397- let ab = valueOrErrorMessage(addressFromString(bw[0]), x("invalid account address"))
398- let ae = Q(bw[1])
399- let bO = parseInt(bw[2])
400- let bP = valueOrElse(ac(ab), 0)
401- let bQ = bs(ab)
402- let aC = bQ._1
403- let aD = bQ._2
404- let aN = aG(aC)
405- let aL = valueOrElse(getInteger(D, ad(ab, aC)), 0)
406- let aM = valueOrElse(getInteger(D, ad(ab, aD)), 0)
407- let aT = aK(aL, aM, aN)
408- let bR = 3
409- let aW = valueOrElse(getInteger(D, af(ab)), bR)
410- let bS = aU(bP, aW, aT)
411- $Tuple2(nil, [bS])
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])
412432 }
413433 else throw("Strict value is not equal to itself.")
414434 }
415435
416436
417437
418-@Callable(bt)
419-func repay (L,bw) = {
420- let bx = [if (!(F))
438+@Callable(bw)
439+func repay (T,bz) = {
440+ let bA = [if (!(N))
421441 then true
422- else z("not allowed"), J(bt.caller)]
423- if ((bx == bx))
442+ else B("not allowed"), R(bw.caller)]
443+ if ((bA == bA))
424444 then $Tuple2(nil, unit)
425445 else throw("Strict value is not equal to itself.")
426446 }
427447
428448
429449
430-@Callable(bt)
431-func setPairAllowance (L,bw) = {
432- let bx = [if (!(F))
450+@Callable(bw)
451+func setPairAllowance (T,bz) = {
452+ let bA = [if (!(N))
433453 then true
434- else z("not allowed"), J(bt.caller), K(L)]
435- if ((bx == bx))
454+ else B("not allowed"), R(bw.caller), S(T)]
455+ if ((bA == bA))
436456 then {
437- let by = bw[0]
438- let bz = bw[1]
439- let bT = bw[2]
440- let aC = Q(by)
441- let aD = Q(bz)
442- let bU = (bT == "true")
443- let bN = [invoke(D, "booleanEntry", [aB(aC, aD), bU], nil)]
444- $Tuple2(nil, bN)
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)
445465 }
446466 else throw("Strict value is not equal to itself.")
447467 }
448468
449469
450470
451-@Callable(bt)
452-func addSyntheticAsset (L,bw) = {
453- let bV = bw[0]
454- let ah = Q(bV)
455- let aj = bt.payments[0].assetId
456- let bx = [if (!(F))
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))
457477 then true
458- else z("not allowed"), J(bt.caller), K(L), if ((getString(D, ag(ah)) == unit))
478+ else B("not allowed"), R(bw.caller), S(T), if ((getString(I, aj(ak)) == unit))
459479 then true
460- else z("invalid base asset"), if ((size(bt.payments) == 1))
480+ else B("invalid base asset"), if ((size(bw.payments) == 1))
461481 then true
462- else z("invalid payments"), if ((getString(D, ai(aj)) == unit))
482+ else B("invalid payments"), if ((getString(I, al(am)) == unit))
463483 then true
464- else z("invalid synthetic asset")]
465- if ((bx == bx))
484+ else B("invalid synthetic asset")]
485+ if ((bA == bA))
466486 then {
467- let bN = [invoke(D, "stringEntry", [ag(ah), S(aj)], nil), invoke(D, "stringEntry", [ai(aj), S(ah)], nil)]
468- $Tuple2(nil, bN)
487+ let bQ = [invoke(I, "stringEntry", [aj(ak), E(am)], nil), invoke(I, "stringEntry", [al(am), E(ak)], nil)]
488+ $Tuple2(nil, bQ)
469489 }
470490 else throw("Strict value is not equal to itself.")
471491 }
472492
473493
474494
475-@Callable(bt)
476-func doShutdown (L,bw) = {
477- let bC = [J(bt.caller), K(L)]
478- if ((bC == bC))
495+@Callable(bw)
496+func doShutdown (T,bz) = {
497+ let bF = [R(bw.caller), S(T)]
498+ if ((bF == bF))
479499 then {
480- let bN = [invoke(D, "booleanEntry", [m, true], nil)]
481- $Tuple2(nil, bN)
500+ let bQ = [invoke(I, "booleanEntry", [o, true], nil)]
501+ $Tuple2(nil, bQ)
482502 }
483503 else throw("Strict value is not equal to itself.")
484504 }
485505
486506
487-@Verifier(bW)
488-func bX () = if (if (isDefined(B))
489- then isDefined(getString(D, i))
507+@Verifier(bZ)
508+func ca () = if (if (isDefined(G))
509+ then isDefined(getString(I, k))
490510 else false)
491511 then {
492- let C = getString(D, i)
493- if ($isInstanceOf(C, "String"))
512+ let H = getString(I, k)
513+ if ($isInstanceOf(H, "String"))
494514 then {
495- let M = C
496- let bY = j(toString(this), toBase58String(bW.id))
497- let bZ = valueOrElse(getBoolean(addressFromStringValue(M), bY), false)
498- bZ
515+ let U = H
516+ let cb = l(toString(this), toBase58String(bZ.id))
517+ let cc = valueOrElse(getBoolean(addressFromStringValue(U), cb), false)
518+ cc
499519 }
500520 else false
501521 }
502- else sigVerify(bW.bodyBytes, bW.proofs[0], bW.senderPublicKey)
522+ else sigVerify(bZ.bodyBytes, bZ.proofs[0], bZ.senderPublicKey)
503523
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
20-let i = "%s__multisig"
20+let i = "WAVES"
2121
22-func j (k,l) = makeString(["%s__status", k, l], a)
22+let j = 32
23+
24+let k = "%s__multisig"
25+
26+func l (m,n) = makeString(["%s__status", m, n], a)
2327
2428
25-let m = "%s__shutdown"
29+let o = "%s__shutdown"
2630
27-let n = "%s__publicKeys"
31+let p = "%s__publicKeys"
2832
29-let o = "%s__matcherPublicKey"
33+let q = "%s__matcherPublicKey"
3034
31-func p (q,r) = fraction(toBigInt(q), f, toBigInt(r))
35+func r (s,t) = fraction(toBigInt(s), f, toBigInt(t))
3236
3337
34-func s (t,u) = toInt(fraction(t, toBigInt(u), f))
38+func u (v,w) = toInt(fraction(v, toBigInt(w), f))
3539
3640
37-func v (w) = isDefined(addressFromString(w))
41+func x (y) = isDefined(addressFromString(y))
3842
3943
40-func x (y) = ((d + ": ") + y)
44+func z (A) = ((d + ": ") + A)
4145
4246
43-func z (y) = throw(x(y))
47+func B (A) = throw(z(A))
4448
4549
46-let A = "%s__factoryAddress"
50+func C (D) = if ((D == i))
51+ then unit
52+ else fromBase58String(D)
4753
48-let B = {
49- let C = getString(this, A)
50- if ($isInstanceOf(C, "String"))
54+
55+func E (D) = if ((D == unit))
56+ then i
57+ else toBase58String(value(D))
58+
59+
60+let F = "%s__factoryAddress"
61+
62+let G = {
63+ let H = getString(this, F)
64+ if ($isInstanceOf(H, "String"))
5165 then {
52- let y = C
53- addressFromString(y)
66+ let A = H
67+ addressFromString(A)
5468 }
55- else if ($isInstanceOf(C, "Unit"))
69+ else if ($isInstanceOf(H, "Unit"))
5670 then unit
5771 else throw("Match error")
5872 }
5973
60-let D = valueOrErrorMessage(B, x("invalid factory address"))
74+let I = valueOrErrorMessage(G, z("invalid factory address"))
6175
62-let E = "%s__calculatorAddress"
76+let J = "%s__usdtAssetId"
6377
64-let F = valueOrElse(getBoolean(D, m), false)
78+let K = {
79+ let H = getString(this, J)
80+ if ($isInstanceOf(H, "String"))
81+ then {
82+ let A = H
83+ C(A)
84+ }
85+ else if ($isInstanceOf(H, "Unit"))
86+ then unit
87+ else throw("Match error")
88+ }
6589
66-func G (H,w) = if ((H == w))
90+let L = valueOrErrorMessage(K, z("invalid usdt asset id"))
91+
92+let M = "%s__calculatorAddress"
93+
94+let N = valueOrElse(getBoolean(I, o), false)
95+
96+func O (P,y) = if ((P == y))
6797 then true
68- else z("permission denied")
98+ else B("permission denied")
6999
70100
71-func I (H) = G(H, this)
101+func Q (P) = O(P, this)
72102
73103
74-func J (H) = G(H, D)
104+func R (P) = O(P, I)
75105
76106
77-func K (L) = {
78- let M = addressFromStringValue(getStringValue(D, i))
79- let N = split(getStringValue(M, n), a)
80- if (containsElement(N, toBase58String(L)))
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)))
81111 then true
82- else z("not allowed")
112+ else B("not allowed")
83113 }
84114
85115
86-let O = "WAVES"
116+let W = "%s__accountScript"
87117
88-let P = 32
89-
90-func Q (R) = if ((R == O))
91- then unit
92- else fromBase58String(R)
118+func X () = valueOrErrorMessage(getBinary(I, W), z("account script is not set"))
93119
94120
95-func S (R) = if ((R == unit))
96- then O
97- else toBase58String(value(R))
121+let Y = "%s__rewardAmount"
122+
123+func Z () = valueOrErrorMessage(getInteger(I, Y), z("reward amount is not set"))
98124
99125
100-let T = "%s__accountScript"
126+let aa = "%s__accountsLimit"
101127
102-func U () = valueOrErrorMessage(getBinary(D, T), x("account script is not set"))
128+let ab = 20
129+
130+func ac () = valueOrElse(getInteger(I, aa), ab)
103131
104132
105-let V = "%s__rewardAmount"
106-
107-func W () = valueOrErrorMessage(getInteger(D, V), x("reward amount is not set"))
133+func ad (ae) = makeString(["%s%s", "deposited", toString(ae)], a)
108134
109135
110-let X = "%s__accountsLimit"
111-
112-let Y = 20
113-
114-func Z () = valueOrElse(getInteger(D, X), Y)
136+func af (ae) = getInteger(I, ad(ae))
115137
116138
117-func aa (ab) = makeString(["%s%s", "deposited", toString(ab)], a)
139+func ag (ae,ah) = makeString(["%s%s%s", "credit", toString(ae), E(ah)], a)
118140
119141
120-func ac (ab) = getInteger(D, aa(ab))
142+func ai (ae) = makeString(["%s%s", "leverage", toString(ae)], a)
121143
122144
123-func ad (ab,ae) = makeString(["%s%s%s", "credit", toString(ab), S(ae)], a)
145+func aj (ak) = makeString(["%s%s", "syntheticAssetId", E(ak)], a)
124146
125147
126-func af (ab) = makeString(["%s%s", "leverage", toString(ab)], a)
148+func al (am) = makeString(["%s%s", "baseAssetId", E(am)], a)
127149
128150
129-func ag (ah) = makeString(["%s%s", "syntheticAssetId", S(ah)], a)
151+let an = 0
152+
153+let ao = 1
154+
155+func ap (aq) = makeString(["%s%s", toBase58String(aq), "status"], a)
130156
131157
132-func ai (aj) = makeString(["%s%s", "baseAssetId", S(aj)], a)
158+func ar (ae) = makeString(["%s%s", toString(ae), "creatorPublicKey"], a)
133159
134160
135-let ak = 0
136-
137-let al = 1
138-
139-func am (an) = makeString(["%s%s", toBase58String(an), "status"], a)
161+func as (aq) = makeString(["%s%s", toBase58String(aq), "ownerPublicKey"], a)
140162
141163
142-func ao (ab) = makeString(["%s%s", toString(ab), "creatorPublicKey"], a)
164+func at (aq) = makeString(["%s%s", toBase58String(aq), "amountAssetId"], a)
143165
144166
145-func ap (an) = makeString(["%s%s", toBase58String(an), "ownerPublicKey"], a)
167+func au (aq) = makeString(["%s%s", toBase58String(aq), "priceAssetId"], a)
146168
147169
148-func aq (an) = makeString(["%s%s", toBase58String(an), "amountAssetId"], a)
170+func av (aq) = makeString(["%s%s", toBase58String(aq), "requestIdToAccountPublicKey"], a)
149171
150172
151-func ar (an) = makeString(["%s%s", toBase58String(an), "priceAssetId"], a)
173+func aw (ae) = makeString(["%s%s", toString(ae), "accountAddressToRequestId"], a)
152174
153175
154-func as (an) = makeString(["%s%s", toBase58String(an), "requestIdToAccountPublicKey"], a)
176+func ax () = makeString(["%s", "requestsQueue"], a)
155177
156178
157-func at (ab) = makeString(["%s%s", toString(ab), "accountAddressToRequestId"], a)
179+func ay () = valueOrElse(getBinary(I, ax()), base58'')
158180
159181
160-func au () = makeString(["%s", "requestsQueue"], a)
182+func az () = makeString(["%s", "accountsQueue"], a)
161183
162184
163-func av () = valueOrElse(getBinary(D, au()), base58'')
185+func aA () = valueOrElse(getBinary(I, az()), base58'')
164186
165187
166-func aw () = makeString(["%s", "accountsQueue"], a)
188+func aB (aC) = makeString(["%s%s", "requests", toString(aC)], a)
167189
168190
169-func ax () = valueOrElse(getBinary(D, aw()), base58'')
191+func aD (aC) = valueOrElse(getBinary(I, aB(aC)), base58'')
170192
171193
172-func ay (az) = makeString(["%s%s", "accounts", toString(az)], a)
194+func aE (aF,aG) = makeString(["%s%s%s", E(aF), E(aG), "pairAllowed"], a)
173195
174196
175-func aA (az) = valueOrElse(getBinary(D, ay(az)), base58'')
197+func aH (aF,aG) = valueOrElse(getBoolean(I, aE(aF, aG)), false)
176198
177199
178-func aB (aC,aD) = makeString(["%s%s%s", S(aC), S(aD), "pairAllowed"], a)
200+func aI (ah) = makeString(["%s", E(ah)], a)
179201
180202
181-func aE (aC,aD) = valueOrElse(getBoolean(D, aB(aC, aD)), false)
182-
183-
184-func aF (ae) = makeString(["%s", S(ae)], a)
185-
186-
187-func aG (ae) = {
188- let aH = fromBase58String(valueOrErrorMessage(getString(D, o), x("invalid matcher public key")))
189- let aI = addressFromPublicKey(aH)
190- let aJ = valueOrErrorMessage(getInteger(aI, aF(ae)), x(("invalid price, assetId = " + S(ae))))
191- aJ
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
192208 }
193209
194210
195-func aK (aL,aM,aN) = ((aL * aN) + aM)
211+func aN (aO,aP,aQ) = ((aO * aQ) + aP)
196212
197213
198-func aO (aP,aQ,aN) = ((aP * aN) + aQ)
214+func aR (aS,aT,aQ) = ((aS * aQ) + aT)
199215
200216
201-func aR (aS,aT) = (aS - aT)
217+func aU (aV,aW) = (aV - aW)
202218
203219
204-func aU (aV,aW,aT) = ((aV * aW) - aT)
220+func aX (aY,aZ,aW) = ((aY * aZ) - aW)
205221
206222
207-func aX (aY,aZ) = if ((aY > 0))
208- then (aY - aZ)
223+func ba (bb,bc) = if ((bb > 0))
224+ then (bb - bc)
209225 else 0
210226
211227
212-func ba (aY,aZ) = if ((aY > 0))
213- then (aZ - aY)
228+func bd (bb,bc) = if ((bb > 0))
229+ then (bc - bb)
214230 else 0
215231
216232
217-func bb (bc,bd) = if ((bd > 0))
218- then max([0, (bc / bd)])
233+func be (bf,bg) = if ((bg > 0))
234+ then max([0, (bf / bg)])
219235 else 0
220236
221237
222-func be (bc,bd) = if ((bd > 0))
223- then max([0, (bd / bc)])
238+func bh (bf,bg) = if ((bg > 0))
239+ then max([0, (bg / bf)])
224240 else 0
225241
226242
227-func bf (bg,bh,aN,bi) = (((bg * aN) + bh) * bi)
243+func bi (bj,bk,aQ,bl) = (((bj * aQ) + bk) * bl)
228244
229245
230-func bj (bk,bi,bl) = ((bk / bi) * bl)
246+func bm (bn,bl,bo) = ((bn / bl) * bo)
231247
232248
233-func bm (aV,bn,bg,bh,bo,bp) = {
234- let bq = if ((bg > 0))
235- then (((aV - bn) / bg) + bo)
249+func bp (aY,bq,bj,bk,br,bs) = {
250+ let bt = if ((bj > 0))
251+ then (((aY - bq) / bj) + br)
236252 else 0
237- let br = if ((bh > 0))
238- then (bp - ((aV - bn) / (bg / bp)))
253+ let bu = if ((bk > 0))
254+ then (bs - ((aY - bq) / (bj / bs)))
239255 else 0
240- (bq + br)
256+ (bt + bu)
241257 }
242258
243259
244-func bs (ab) = {
245- let an = fromBase58String(valueOrErrorMessage(getString(D, at(ab)), x("invalid account address")))
246- let aC = Q(valueOrErrorMessage(getString(D, aq(an)), x("invalid amount asset id")))
247- let aD = Q(valueOrErrorMessage(getString(D, ar(an)), x("invalid amount price id")))
248- $Tuple2(aC, aD)
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)
249265 }
250266
251267
252-@Callable(bt)
253-func init (bu) = {
254- let bv = I(bt.caller)
255- if ((bv == bv))
256- then $Tuple2([StringEntry(A, bu)], unit)
268+@Callable(bw)
269+func init (bx) = {
270+ let by = Q(bw.caller)
271+ if ((by == by))
272+ then $Tuple2([StringEntry(F, bx)], unit)
257273 else throw("Strict value is not equal to itself.")
258274 }
259275
260276
261277
262-@Callable(bt)
263-func requestAccount (L,bw) = {
264- let bx = [if (!(F))
278+@Callable(bw)
279+func requestAccount (T,bz) = {
280+ let bA = [if (!(N))
265281 then true
266- else z("not allowed"), J(bt.caller)]
267- if ((bx == bx))
282+ else B("not allowed"), R(bw.caller)]
283+ if ((bA == bA))
268284 then {
269- let by = bw[0]
270- let bz = bw[1]
271- let bA = addressFromPublicKey(L)
272- let an = sha256(((bA.bytes + fromBase58String(by)) + fromBase58String(bz)))
273- let aC = Q(by)
274- let aD = Q(bz)
275- let bB = (size(ay(bA)) / P)
276- let bC = [if ((size(bt.payments) == 1))
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))
277293 then true
278- else z("1 payment is required"), if ((bt.payments[0].assetId == unit))
294+ else B("1 payment is required"), if ((bw.payments[0].assetId == unit))
279295 then true
280- else z("invalid asset"), if ((bt.payments[0].amount == W()))
296+ else B("invalid asset"), if ((bw.payments[0].amount == Z()))
281297 then true
282- else z("invalid amount"), if (aE(aC, aD))
298+ else B("invalid amount"), if (aH(aF, aG))
283299 then true
284- else z("pair is not allowed"), if ((getInteger(D, am(an)) == unit))
300+ else B("pair is not allowed"), if ((getInteger(I, ap(aq)) == unit))
285301 then true
286- else z("account is already exists"), if ((Z() > bB))
302+ else B("account is already exists"), if ((ac() > bE))
287303 then true
288- else z(("accounts limit is " + toString(Z())))]
289- if ((bC == bC))
304+ else B(("accounts limit is " + toString(ac())))]
305+ if ((bF == bF))
290306 then {
291- let bD = if ((size(ax()) == 0))
292- then $Tuple2([ScriptTransfer(D, W(), unit)], [invoke(D, "integerEntry", [am(an), ak], nil), invoke(D, "binaryEntry", [au(), (av() + an)], nil)])
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)])
293309 else {
294- let bE = take(ax(), P)
295- let ab = addressFromPublicKey(bE)
296- let bF = addressFromPublicKey(valueOrErrorMessage(getBinary(D, ao(ab)), x("invalid creator public key")))
297- $Tuple2([ScriptTransfer(bF, W(), unit)], [invoke(D, "binaryEntry", [aw(), drop(ax(), P)], nil), invoke(D, "integerEntry", [am(an), al], nil), invoke(D, "binaryEntry", [as(an), bE], nil), invoke(D, "stringEntry", [at(ab), toBase58String(an)], nil)])
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)])
298314 }
299- let bG = bD._1
300- let bH = bD._2
301- $Tuple2(bG, (bH ++ [invoke(D, "binaryEntry", [ap(an), L], nil), invoke(D, "binaryEntry", [ay(bA), (aA(bA) + an)], nil), invoke(D, "stringEntry", [aq(an), by], nil), invoke(D, "stringEntry", [ar(an), bz], nil)]))
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)]))
302318 }
303319 else throw("Strict value is not equal to itself.")
304320 }
305321 else throw("Strict value is not equal to itself.")
306322 }
307323
308324
309325
310-@Callable(bt)
311-func addAccount (L,bw) = {
312- let bx = [if (!(F))
326+@Callable(bw)
327+func addAccount (T,bz) = {
328+ let bA = [if (!(N))
313329 then true
314- else z("not allowed"), J(bt.caller)]
315- if ((bx == bx))
330+ else B("not allowed"), R(bw.caller)]
331+ if ((bA == bA))
316332 then {
317- let bI = fromBase58String(bw[0])
318- let bE = L
319- let ab = addressFromPublicKey(L)
320- let bF = addressFromPublicKey(bI)
321- let bC = [if ((getBinary(D, ao(ab)) == unit))
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))
322338 then true
323- else z("account is already exists"), if ({
324- let C = scriptHash(ab)
325- if ($isInstanceOf(C, "ByteVector"))
339+ else B("account is already exists"), if ({
340+ let H = scriptHash(ae)
341+ if ($isInstanceOf(H, "ByteVector"))
326342 then {
327- let bJ = C
328- (bJ == blake2b256_32Kb(U()))
343+ let bM = H
344+ (bM == blake2b256_32Kb(X()))
329345 }
330346 else false
331347 })
332348 then true
333- else z("invalid script")]
334- if ((bC == bC))
349+ else B("invalid script")]
350+ if ((bF == bF))
335351 then {
336- let bK = if ((size(av()) == 0))
337- then $Tuple2(nil, [invoke(D, "binaryEntry", [aw(), (ax() + bE)], nil)])
352+ let bN = if ((size(ay()) == 0))
353+ then $Tuple2(nil, [invoke(I, "binaryEntry", [az(), (aA() + bH)], nil)])
338354 else {
339- let an = take(av(), P)
340- $Tuple2(nil, [invoke(D, "integerEntry", [am(an), al], nil), invoke(D, "binaryEntry", [as(an), bE], nil), invoke(D, "binaryEntry", [au(), drop(av(), P)], nil), invoke(D, "stringEntry", [at(ab), toBase58String(an)], nil), invoke(D, "transferWaves", [bF.bytes, W()], nil)])
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)])
341357 }
342- let bG = bK._1
343- let bH = bK._2
344- $Tuple2(bG, (bH ++ [invoke(D, "binaryEntry", [ao(ab), bI], nil)]))
358+ let bJ = bN._1
359+ let bK = bN._2
360+ $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [ar(ae), bL], nil)]))
345361 }
346362 else throw("Strict value is not equal to itself.")
347363 }
348364 else throw("Strict value is not equal to itself.")
349365 }
350366
351367
352368
353-@Callable(bt)
354-func deposit (L,bw) = {
355- let bx = [if (!(F))
369+@Callable(bw)
370+func deposit (T,bz) = {
371+ let bO = bw.payments[0]
372+ let bA = [if (!(N))
356373 then true
357- else z("not allowed"), J(bt.caller)]
358- if ((bx == bx))
374+ else B("not allowed"), R(bw.caller), if ((size(bw.payments) == 1))
375+ then true
376+ else B("1 payment is required"), if ((bO.assetId == L))
377+ then true
378+ else B("invalid asset")]
379+ if ((bA == bA))
359380 then {
360- let ab = valueOrErrorMessage(addressFromString(bw[0]), x("invalid account address"))
361- let bL = bt.payments[0]
362- let bG = [ScriptTransfer(ab, bL.amount, bL.assetId)]
363- let bH = [invoke(D, "integerEntry", [aa(ab), (valueOrElse(ac(ab), 0) + bL.amount)], nil)]
364- $Tuple2(bG, bH)
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)
365385 }
366386 else throw("Strict value is not equal to itself.")
367387 }
368388
369389
370390
371-@Callable(bt)
372-func withdraw (L,bw) = {
373- let bx = [if (!(F))
391+@Callable(bw)
392+func withdraw (T,bz) = {
393+ let bA = [if (!(N))
374394 then true
375- else z("not allowed"), J(bt.caller)]
376- if ((bx == bx))
395+ else B("not allowed"), R(bw.caller)]
396+ if ((bA == bA))
377397 then {
378- let bA = addressFromPublicKey(L)
379- let ab = valueOrErrorMessage(addressFromString(bw[0]), x("invalid account address"))
380- let bM = valueOrErrorMessage(parseInt(bw[1]), x("invalid amount"))
381- let ae = Q(bw[2])
382- let bN = [invoke(ab, "transferAsset", [bA.bytes, bM, ae], nil)]
383- $Tuple2(nil, bN)
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)
384404 }
385405 else throw("Strict value is not equal to itself.")
386406 }
387407
388408
389409
390-@Callable(bt)
391-func borrow (L,bw) = {
392- let bx = [if (!(F))
410+@Callable(bw)
411+func borrow (T,bz) = {
412+ let bA = [if (!(N))
393413 then true
394- else z("not allowed"), J(bt.caller)]
395- if ((bx == bx))
414+ else B("not allowed"), R(bw.caller)]
415+ if ((bA == bA))
396416 then {
397- let ab = valueOrErrorMessage(addressFromString(bw[0]), x("invalid account address"))
398- let ae = Q(bw[1])
399- let bO = parseInt(bw[2])
400- let bP = valueOrElse(ac(ab), 0)
401- let bQ = bs(ab)
402- let aC = bQ._1
403- let aD = bQ._2
404- let aN = aG(aC)
405- let aL = valueOrElse(getInteger(D, ad(ab, aC)), 0)
406- let aM = valueOrElse(getInteger(D, ad(ab, aD)), 0)
407- let aT = aK(aL, aM, aN)
408- let bR = 3
409- let aW = valueOrElse(getInteger(D, af(ab)), bR)
410- let bS = aU(bP, aW, aT)
411- $Tuple2(nil, [bS])
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])
412432 }
413433 else throw("Strict value is not equal to itself.")
414434 }
415435
416436
417437
418-@Callable(bt)
419-func repay (L,bw) = {
420- let bx = [if (!(F))
438+@Callable(bw)
439+func repay (T,bz) = {
440+ let bA = [if (!(N))
421441 then true
422- else z("not allowed"), J(bt.caller)]
423- if ((bx == bx))
442+ else B("not allowed"), R(bw.caller)]
443+ if ((bA == bA))
424444 then $Tuple2(nil, unit)
425445 else throw("Strict value is not equal to itself.")
426446 }
427447
428448
429449
430-@Callable(bt)
431-func setPairAllowance (L,bw) = {
432- let bx = [if (!(F))
450+@Callable(bw)
451+func setPairAllowance (T,bz) = {
452+ let bA = [if (!(N))
433453 then true
434- else z("not allowed"), J(bt.caller), K(L)]
435- if ((bx == bx))
454+ else B("not allowed"), R(bw.caller), S(T)]
455+ if ((bA == bA))
436456 then {
437- let by = bw[0]
438- let bz = bw[1]
439- let bT = bw[2]
440- let aC = Q(by)
441- let aD = Q(bz)
442- let bU = (bT == "true")
443- let bN = [invoke(D, "booleanEntry", [aB(aC, aD), bU], nil)]
444- $Tuple2(nil, bN)
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)
445465 }
446466 else throw("Strict value is not equal to itself.")
447467 }
448468
449469
450470
451-@Callable(bt)
452-func addSyntheticAsset (L,bw) = {
453- let bV = bw[0]
454- let ah = Q(bV)
455- let aj = bt.payments[0].assetId
456- let bx = [if (!(F))
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))
457477 then true
458- else z("not allowed"), J(bt.caller), K(L), if ((getString(D, ag(ah)) == unit))
478+ else B("not allowed"), R(bw.caller), S(T), if ((getString(I, aj(ak)) == unit))
459479 then true
460- else z("invalid base asset"), if ((size(bt.payments) == 1))
480+ else B("invalid base asset"), if ((size(bw.payments) == 1))
461481 then true
462- else z("invalid payments"), if ((getString(D, ai(aj)) == unit))
482+ else B("invalid payments"), if ((getString(I, al(am)) == unit))
463483 then true
464- else z("invalid synthetic asset")]
465- if ((bx == bx))
484+ else B("invalid synthetic asset")]
485+ if ((bA == bA))
466486 then {
467- let bN = [invoke(D, "stringEntry", [ag(ah), S(aj)], nil), invoke(D, "stringEntry", [ai(aj), S(ah)], nil)]
468- $Tuple2(nil, bN)
487+ let bQ = [invoke(I, "stringEntry", [aj(ak), E(am)], nil), invoke(I, "stringEntry", [al(am), E(ak)], nil)]
488+ $Tuple2(nil, bQ)
469489 }
470490 else throw("Strict value is not equal to itself.")
471491 }
472492
473493
474494
475-@Callable(bt)
476-func doShutdown (L,bw) = {
477- let bC = [J(bt.caller), K(L)]
478- if ((bC == bC))
495+@Callable(bw)
496+func doShutdown (T,bz) = {
497+ let bF = [R(bw.caller), S(T)]
498+ if ((bF == bF))
479499 then {
480- let bN = [invoke(D, "booleanEntry", [m, true], nil)]
481- $Tuple2(nil, bN)
500+ let bQ = [invoke(I, "booleanEntry", [o, true], nil)]
501+ $Tuple2(nil, bQ)
482502 }
483503 else throw("Strict value is not equal to itself.")
484504 }
485505
486506
487-@Verifier(bW)
488-func bX () = if (if (isDefined(B))
489- then isDefined(getString(D, i))
507+@Verifier(bZ)
508+func ca () = if (if (isDefined(G))
509+ then isDefined(getString(I, k))
490510 else false)
491511 then {
492- let C = getString(D, i)
493- if ($isInstanceOf(C, "String"))
512+ let H = getString(I, k)
513+ if ($isInstanceOf(H, "String"))
494514 then {
495- let M = C
496- let bY = j(toString(this), toBase58String(bW.id))
497- let bZ = valueOrElse(getBoolean(addressFromStringValue(M), bY), false)
498- bZ
515+ let U = H
516+ let cb = l(toString(this), toBase58String(bZ.id))
517+ let cc = valueOrElse(getBoolean(addressFromStringValue(U), cb), false)
518+ cc
499519 }
500520 else false
501521 }
502- else sigVerify(bW.bodyBytes, bW.proofs[0], bW.senderPublicKey)
522+ else sigVerify(bZ.bodyBytes, bZ.proofs[0], bZ.senderPublicKey)
503523

github/deemru/w8io/169f3d6 
171.39 ms