tx · 7wXQx9mHF7gVGG8uaTCAQa1ERj3jvRhoVbTPf7MiHuzH 3N7b3kPunHUXhZp1vMG9NhPMARNEprCMWxT: -0.03600000 Waves 2023.01.20 14:23 [2413225] smart account 3N7b3kPunHUXhZp1vMG9NhPMARNEprCMWxT > SELF 0.00000000 Waves
{ "type": 13, "id": "7wXQx9mHF7gVGG8uaTCAQa1ERj3jvRhoVbTPf7MiHuzH", "fee": 3600000, "feeAssetId": null, "timestamp": 1674213863084, "version": 1, "sender": "3N7b3kPunHUXhZp1vMG9NhPMARNEprCMWxT", "senderPublicKey": "AYbpHveq7zviKTDV7SGTB1pZGFbkumgfq3jSwVv6BznT", "proofs": [ "2JFj6zJy9abYJFjvDPZqhhHHHoLtZ1EzFeYJ1U84sg571jL5Agpq3expvD2RduuQCFs8j31yAhmQBEK9jApG2c2f" ], "script": "base64:BgKBLggCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXRE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5bicC63G Next: 3HzS5zWaowaTuXXM1UgzeTbZ81r8E2LGQWsoqGBe6F7k Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 8 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 100000000 | |
7 | 7 | ||
8 | - | let c = toBigInt( | |
8 | + | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | - | let d = toBigInt( | |
10 | + | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | - | let e = toBigInt( | |
12 | + | let e = toBigInt(0) | |
13 | 13 | ||
14 | - | let f = toBigInt( | |
14 | + | let f = toBigInt(0) | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = toBigInt(1) | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = toBigInt(2) | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = "WAVES" | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = "__" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 1 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 2 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 3 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 4 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 2 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 3 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 4 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 5 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 6 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 7 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 8 | |
47 | 47 | ||
48 | - | func w (x,y) = fraction(toBigInt(x), b, toBigInt(y)) | |
48 | + | let w = 9 | |
49 | + | ||
50 | + | let x = 10 | |
51 | + | ||
52 | + | let y = 1 | |
53 | + | ||
54 | + | let z = 2 | |
55 | + | ||
56 | + | let A = 3 | |
57 | + | ||
58 | + | let B = 1 | |
59 | + | ||
60 | + | let C = 7 | |
61 | + | ||
62 | + | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
49 | 63 | ||
50 | 64 | ||
51 | - | func | |
65 | + | func G (E,F) = fraction(E, d, F) | |
52 | 66 | ||
53 | 67 | ||
54 | - | func | |
68 | + | func H (I,J) = toInt(fraction(I, toBigInt(J), d)) | |
55 | 69 | ||
56 | 70 | ||
57 | - | func | |
71 | + | func K (I,J,L) = toInt(fraction(I, toBigInt(J), d, L)) | |
58 | 72 | ||
59 | 73 | ||
60 | - | func F (B) = if ((c > B)) | |
61 | - | then -(B) | |
62 | - | else B | |
74 | + | func M (N,O,P) = fraction(N, O, P) | |
63 | 75 | ||
64 | 76 | ||
65 | - | func G () = "%s__factoryContract" | |
77 | + | func Q (I) = if ((0 > I)) | |
78 | + | then -(I) | |
79 | + | else I | |
66 | 80 | ||
67 | 81 | ||
68 | - | func H () = "%s__managerPublicKey" | |
82 | + | func R (I) = if ((e > I)) | |
83 | + | then -(I) | |
84 | + | else I | |
69 | 85 | ||
70 | 86 | ||
71 | - | func | |
87 | + | func S () = "%s__factoryContract" | |
72 | 88 | ||
73 | 89 | ||
74 | - | func | |
90 | + | func T () = "%s__managerPublicKey" | |
75 | 91 | ||
76 | 92 | ||
77 | - | func | |
93 | + | func U () = "%s__pendingManagerPublicKey" | |
78 | 94 | ||
79 | 95 | ||
80 | - | func | |
96 | + | func V () = "%s%s__price__last" | |
81 | 97 | ||
82 | 98 | ||
83 | - | func | |
99 | + | func W (X,Y) = makeString(["%s%s%d%d__price__history", toString(X), toString(Y)], j) | |
84 | 100 | ||
85 | 101 | ||
86 | - | func | |
102 | + | func Z (aa,ab) = ((("%s%s%s__P__" + aa) + "__") + ab) | |
87 | 103 | ||
88 | 104 | ||
89 | - | func | |
105 | + | func ac (aa,ab) = ((("%s%s%s__G__" + aa) + "__") + ab) | |
90 | 106 | ||
91 | 107 | ||
92 | - | let T = "%s__fee" | |
93 | - | ||
94 | - | let U = fraction(10, a, 10000) | |
95 | - | ||
96 | - | let V = valueOrElse(getInteger(this, T), U) | |
97 | - | ||
98 | - | let W = makeString(["%s", "kLp"], h) | |
99 | - | ||
100 | - | let X = makeString(["%s", "kLpRefreshedHeight"], h) | |
101 | - | ||
102 | - | let Y = makeString(["%s", "refreshKLpDelay"], h) | |
103 | - | ||
104 | - | let Z = 30 | |
105 | - | ||
106 | - | let aa = valueOrElse(getInteger(this, Y), Z) | |
107 | - | ||
108 | - | func ab () = "%s__factoryConfig" | |
108 | + | func ad () = "%s__amountAsset" | |
109 | 109 | ||
110 | 110 | ||
111 | - | func | |
111 | + | func ae () = "%s__priceAsset" | |
112 | 112 | ||
113 | 113 | ||
114 | - | func ad (ae,af) = (((("%d%d%s__" + ae) + "__") + af) + "__config") | |
114 | + | let af = "%s__fee" | |
115 | + | ||
116 | + | let ag = fraction(10, b, 10000) | |
117 | + | ||
118 | + | let ah = valueOrElse(getInteger(this, af), ag) | |
119 | + | ||
120 | + | let ai = makeString(["%s", "kLp"], j) | |
121 | + | ||
122 | + | let aj = makeString(["%s", "kLpRefreshedHeight"], j) | |
123 | + | ||
124 | + | let ak = makeString(["%s", "refreshKLpDelay"], j) | |
125 | + | ||
126 | + | let al = 30 | |
127 | + | ||
128 | + | let am = valueOrElse(getInteger(this, ak), al) | |
129 | + | ||
130 | + | func an () = "%s__factoryConfig" | |
115 | 131 | ||
116 | 132 | ||
117 | - | func | |
133 | + | func ao () = "%s%s__matcher__publicKey" | |
118 | 134 | ||
119 | 135 | ||
120 | - | func | |
136 | + | func ap (aq) = (("%s%s%s__" + aq) + "__mappings__poolContract2LpAsset") | |
121 | 137 | ||
122 | 138 | ||
123 | - | func | |
139 | + | func ar (as,at) = (((("%d%d%s__" + as) + "__") + at) + "__config") | |
124 | 140 | ||
125 | 141 | ||
126 | - | func | |
142 | + | func au (av) = ("%s%s%s__mappings__baseAsset2internalId__" + av) | |
127 | 143 | ||
128 | 144 | ||
129 | - | let am = "%s__feeCollectorAddress" | |
130 | - | ||
131 | - | func an (ao,ap,aq,ar) = throw((((((((("order validation failed: orderValid=" + toString(ao)) + " (") + ap) + ")") + " senderValid=") + toString(aq)) + " matcherValid=") + toString(ar))) | |
145 | + | func aw () = "%s__shutdown" | |
132 | 146 | ||
133 | 147 | ||
134 | - | func | |
148 | + | func ax (ay) = ("%s%s__poolWeight__" + ay) | |
135 | 149 | ||
136 | 150 | ||
137 | - | func | |
151 | + | func az () = "%s__allowedLpScriptHash" | |
138 | 152 | ||
139 | 153 | ||
140 | - | func aw (ax) = throw(makeString(["lp.ride:", ax], " ")) | |
154 | + | let aA = "%s__feeCollectorAddress" | |
155 | + | ||
156 | + | func aB (aC,aD,aE,aF) = throw((((((((("order validation failed: orderValid=" + toString(aC)) + " (") + aD) + ")") + " senderValid=") + toString(aE)) + " matcherValid=") + toString(aF))) | |
141 | 157 | ||
142 | 158 | ||
143 | - | func | |
159 | + | func aG (aH,aI) = valueOrErrorMessage(getString(aH, aI), makeString(["mandatory ", toString(aH), ".", aI, " is not defined"], "")) | |
144 | 160 | ||
145 | 161 | ||
146 | - | ||
162 | + | func aJ (aH,aI) = valueOrErrorMessage(getInteger(aH, aI), makeString(["mandatory ", toString(aH), ".", aI, " is not defined"], "")) | |
147 | 163 | ||
148 | - | let aA = addressFromStringValue(as(az, am)) | |
149 | 164 | ||
150 | - | let aB = { | |
151 | - | let aC = invoke(az, "getInFeeREADONLY", [toString(this)], nil) | |
152 | - | if ($isInstanceOf(aC, "Int")) | |
153 | - | then aC | |
154 | - | else throw(($getType(aC) + " couldn't be cast to Int")) | |
165 | + | func aK (aL) = throw(makeString(["lp.ride:", aL], " ")) | |
166 | + | ||
167 | + | ||
168 | + | func aM (aL) = makeString(["lp.ride:", aL], " ") | |
169 | + | ||
170 | + | ||
171 | + | let aN = addressFromStringValue(aG(this, S())) | |
172 | + | ||
173 | + | let aO = addressFromStringValue(aG(aN, aA)) | |
174 | + | ||
175 | + | let aP = { | |
176 | + | let aQ = invoke(aN, "getInFeeREADONLY", [toString(this)], nil) | |
177 | + | if ($isInstanceOf(aQ, "Int")) | |
178 | + | then aQ | |
179 | + | else throw(($getType(aQ) + " couldn't be cast to Int")) | |
155 | 180 | } | |
156 | 181 | ||
157 | - | let | |
158 | - | let | |
159 | - | if ($isInstanceOf( | |
160 | - | then | |
161 | - | else throw(($getType( | |
182 | + | let aR = { | |
183 | + | let aQ = invoke(aN, "getOutFeeREADONLY", [toString(this)], nil) | |
184 | + | if ($isInstanceOf(aQ, "Int")) | |
185 | + | then aQ | |
186 | + | else throw(($getType(aQ) + " couldn't be cast to Int")) | |
162 | 187 | } | |
163 | 188 | ||
164 | - | func | |
189 | + | func aS () = valueOrElse(getBoolean(aN, aw()), false) | |
165 | 190 | ||
166 | 191 | ||
167 | - | func | |
192 | + | func aT () = fromBase58String(aG(aN, ao())) | |
168 | 193 | ||
169 | 194 | ||
170 | - | func | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | split( | |
195 | + | func aU () = { | |
196 | + | let aV = aG(this, ad()) | |
197 | + | let aW = aG(this, ae()) | |
198 | + | let at = aJ(aN, au(aW)) | |
199 | + | let as = aJ(aN, au(aV)) | |
200 | + | split(aG(aN, ar(toString(as), toString(at))), j) | |
176 | 201 | } | |
177 | 202 | ||
178 | 203 | ||
179 | - | func | |
204 | + | func aX (aY) = if ((aY == i)) | |
180 | 205 | then unit | |
181 | - | else fromBase58String( | |
206 | + | else fromBase58String(aY) | |
182 | 207 | ||
183 | 208 | ||
184 | - | func | |
185 | - | then | |
186 | - | else toBase58String(value( | |
209 | + | func aZ (aY) = if ((aY == unit)) | |
210 | + | then i | |
211 | + | else toBase58String(value(aY)) | |
187 | 212 | ||
188 | 213 | ||
189 | - | func | |
214 | + | func ba (bb) = $Tuple7(addressFromStringValue(bb[o]), parseIntValue(bb[p]), fromBase58String(bb[q]), aX(bb[r]), aX(bb[s]), parseIntValue(bb[t]), parseIntValue(bb[u])) | |
190 | 215 | ||
191 | 216 | ||
192 | - | let | |
217 | + | let bc = ba(aU()) | |
193 | 218 | ||
194 | - | let | |
219 | + | let bd = bc | |
195 | 220 | ||
196 | - | let | |
221 | + | let be = bd._1 | |
197 | 222 | ||
198 | - | let | |
223 | + | let bf = bd._2 | |
199 | 224 | ||
200 | - | let | |
225 | + | let bg = bd._3 | |
201 | 226 | ||
202 | - | let | |
227 | + | let bh = bd._4 | |
203 | 228 | ||
204 | - | let | |
229 | + | let bi = bd._5 | |
205 | 230 | ||
206 | - | let | |
231 | + | let bj = bd._6 | |
207 | 232 | ||
208 | - | func aW () = split(as(az, ab()), h) | |
233 | + | let bk = bd._7 | |
234 | + | ||
235 | + | func bl () = split(aG(aN, an()), j) | |
209 | 236 | ||
210 | 237 | ||
211 | - | let | |
238 | + | let bm = valueOrErrorMessage(addressFromString(bl()[B]), "incorrect staking address") | |
212 | 239 | ||
213 | - | let | |
240 | + | let bn = valueOrErrorMessage(addressFromString(bl()[C]), "incorrect staking address") | |
214 | 241 | ||
215 | - | func | |
242 | + | func bo (bp,bq,br,bs,bt,bu,bv,bw,bx,by) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bp), toString(bq), toString(br), toString(bs), toString(bt), toString(bu), toString(bv), toString(bw), toString(bx), toString(by)], j) | |
216 | 243 | ||
217 | 244 | ||
218 | - | func | |
245 | + | func bz (bA,bB,bC,bs,bv,bw) = makeString(["%d%d%d%d%d%d", toString(bA), toString(bB), toString(bC), toString(bs), toString(bv), toString(bw)], j) | |
219 | 246 | ||
220 | 247 | ||
221 | - | func | |
248 | + | func bD (bE) = if ((bE == "WAVES")) | |
222 | 249 | then wavesBalance(this).available | |
223 | - | else assetBalance(this, fromBase58String( | |
250 | + | else assetBalance(this, fromBase58String(bE)) | |
224 | 251 | ||
225 | 252 | ||
226 | - | func | |
253 | + | func bF (bG,bH) = fraction(bG, d, bH) | |
227 | 254 | ||
228 | 255 | ||
229 | - | func | |
256 | + | func bI (bG,bH,L) = fraction(bG, d, bH, L) | |
230 | 257 | ||
231 | 258 | ||
232 | - | func | |
233 | - | let | |
234 | - | let | |
235 | - | | |
259 | + | func bJ (bK,bL,bM,bN) = { | |
260 | + | let bO = D(bM, bK) | |
261 | + | let bP = D(bN, bL) | |
262 | + | bF(bP, bO) | |
236 | 263 | } | |
237 | 264 | ||
238 | 265 | ||
239 | - | func | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | [ | |
266 | + | func bQ (bM,bN,bR) = { | |
267 | + | let bS = aU() | |
268 | + | let bT = parseIntValue(bS[t]) | |
269 | + | let bU = parseIntValue(bS[u]) | |
270 | + | let bV = bJ(bT, bU, bM, bN) | |
271 | + | let bH = D(bM, bT) | |
272 | + | let bG = D(bN, bU) | |
273 | + | let bW = D(bR, b) | |
274 | + | let bX = bF(bH, bW) | |
275 | + | let bY = bF(bG, bW) | |
276 | + | [bV, bX, bY] | |
250 | 277 | } | |
251 | 278 | ||
252 | 279 | ||
253 | - | func bK (bL,bM,bN,O) = { | |
254 | - | let bD = aG() | |
255 | - | let bO = bD[n] | |
256 | - | let bP = bD[o] | |
257 | - | let bQ = bD[p] | |
258 | - | let bv = parseIntValue(bD[q]) | |
259 | - | let bw = parseIntValue(bD[r]) | |
260 | - | let bR = bD[m] | |
261 | - | let bS = valueOrErrorMessage(assetInfo(fromBase58String(bO)), (("Asset " + bO) + " doesn't exist")).quantity | |
262 | - | if ((bO != bM)) | |
280 | + | func bZ (bM,bN,bR) = { | |
281 | + | let ca = bQ(bM, bN, bR) | |
282 | + | [H(ca[0], b), H(ca[1], b), H(ca[2], b)] | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | func cb (cc,cd,ce,aa) = { | |
287 | + | let bS = aU() | |
288 | + | let cf = bS[q] | |
289 | + | let cg = bS[r] | |
290 | + | let ch = bS[s] | |
291 | + | let bK = parseIntValue(bS[t]) | |
292 | + | let bL = parseIntValue(bS[u]) | |
293 | + | let ci = bS[p] | |
294 | + | let cj = valueOrErrorMessage(assetInfo(fromBase58String(cf)), (("Asset " + cf) + " doesn't exist")).quantity | |
295 | + | if ((cf != cd)) | |
263 | 296 | then throw("Invalid asset passed.") | |
264 | 297 | else { | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
298 | + | let ck = bD(cg) | |
299 | + | let cl = D(ck, bK) | |
300 | + | let cm = bD(ch) | |
301 | + | let cn = D(cm, bL) | |
302 | + | let co = bF(cn, cl) | |
303 | + | let cp = H(co, b) | |
304 | + | let cq = D(ce, b) | |
305 | + | let cr = D(cj, b) | |
306 | + | let cs = fraction(cl, cq, cr) | |
307 | + | let ct = fraction(cn, cq, cr) | |
308 | + | let cu = K(cs, bK, FLOOR) | |
309 | + | let cv = K(ct, bL, FLOOR) | |
310 | + | let cw = if ((cc == "")) | |
278 | 311 | then nil | |
279 | - | else [ScriptTransfer( | |
312 | + | else [ScriptTransfer(aa, cu, if ((cg == "WAVES")) | |
280 | 313 | then unit | |
281 | - | else fromBase58String( | |
314 | + | else fromBase58String(cg)), ScriptTransfer(aa, cv, if ((ch == "WAVES")) | |
282 | 315 | then unit | |
283 | - | else fromBase58String( | |
284 | - | $Tuple10( | |
316 | + | else fromBase58String(ch)), StringEntry(ac(toString(aa), cc), bz(cu, cv, ce, cp, height, lastBlock.timestamp)), IntegerEntry(V(), cp), IntegerEntry(W(height, lastBlock.timestamp), cp)] | |
317 | + | $Tuple10(cu, cv, cg, ch, ck, cm, cj, co, ci, cw) | |
285 | 318 | } | |
286 | 319 | } | |
287 | 320 | ||
288 | 321 | ||
289 | - | func | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | if (if (( | |
322 | + | func cx (cc,cy,cz,cA,cB,cC,aa,cD,cE) = { | |
323 | + | let bS = aU() | |
324 | + | let cf = fromBase58String(bS[q]) | |
325 | + | let cF = bS[r] | |
326 | + | let cG = bS[s] | |
327 | + | let cH = bS[v] | |
328 | + | let cI = bS[w] | |
329 | + | let bT = parseIntValue(bS[t]) | |
330 | + | let bU = parseIntValue(bS[u]) | |
331 | + | let ci = bS[p] | |
332 | + | let cj = valueOrErrorMessage(assetInfo(cf), (("Asset " + toBase58String(cf)) + " doesn't exist")).quantity | |
333 | + | let cJ = toBase58String(valueOrElse(cA, fromBase58String("WAVES"))) | |
334 | + | let cK = toBase58String(valueOrElse(cC, fromBase58String("WAVES"))) | |
335 | + | if (if ((cF != cJ)) | |
303 | 336 | then true | |
304 | - | else ( | |
337 | + | else (cG != cK)) | |
305 | 338 | then throw("Invalid amt or price asset passed.") | |
306 | 339 | else { | |
307 | - | let | |
308 | - | then | |
309 | - | else ( | |
310 | - | let | |
311 | - | then | |
312 | - | else ( | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
340 | + | let ck = if (cD) | |
341 | + | then bD(cF) | |
342 | + | else (bD(cF) - cz) | |
343 | + | let cm = if (cD) | |
344 | + | then bD(cG) | |
345 | + | else (bD(cG) - cB) | |
346 | + | let cL = D(cz, bT) | |
347 | + | let cM = D(cB, bU) | |
348 | + | let cN = bF(cM, cL) | |
349 | + | let cl = D(ck, bT) | |
350 | + | let cn = D(cm, bU) | |
351 | + | let cO = if ((cj == 0)) | |
319 | 352 | then { | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | $Tuple5( | |
353 | + | let co = e | |
354 | + | let cP = e | |
355 | + | let bW = pow((cL * cM), 0, toBigInt(5), 1, 0, DOWN) | |
356 | + | $Tuple5(H(bW, b), H(cL, bT), H(cM, bU), bF((cn + cM), (cl + cL)), cP) | |
324 | 357 | } | |
325 | 358 | else { | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | if (if (( | |
330 | - | then ( | |
359 | + | let co = bF(cn, cl) | |
360 | + | let cP = fraction(R((co - cN)), d, co) | |
361 | + | let cQ = D(cy, b) | |
362 | + | if (if ((co != e)) | |
363 | + | then (cP > cQ) | |
331 | 364 | else false) | |
332 | - | then throw(((("Price slippage " + toString( | |
365 | + | then throw(((("Price slippage " + toString(cP)) + " exceeded the passed limit of ") + toString(cQ))) | |
333 | 366 | else { | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | then $Tuple2( | |
339 | - | else $Tuple2( | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | $Tuple5( | |
367 | + | let cr = D(cj, b) | |
368 | + | let cR = fraction(cL, bI(cn, cl, CEILING), d, CEILING) | |
369 | + | let cS = fraction(cM, d, bI(cn, cl, FLOOR), CEILING) | |
370 | + | let cT = if ((cR > cM)) | |
371 | + | then $Tuple2(cS, cM) | |
372 | + | else $Tuple2(cL, cR) | |
373 | + | let cU = cT._1 | |
374 | + | let cV = cT._2 | |
375 | + | let bW = fraction(cr, cV, cn, FLOOR) | |
376 | + | $Tuple5(K(bW, b, FLOOR), K(cU, bT, CEILING), K(cV, bU, CEILING), co, cP) | |
344 | 377 | } | |
345 | 378 | } | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | if ((0 >= | |
379 | + | let cW = cO._1 | |
380 | + | let cX = cO._2 | |
381 | + | let cY = cO._3 | |
382 | + | let cp = H(cO._4, b) | |
383 | + | let cZ = H(cO._5, b) | |
384 | + | if ((0 >= cW)) | |
352 | 385 | then throw("Invalid calculations. LP calculated is less than zero.") | |
353 | 386 | else { | |
354 | - | let | |
387 | + | let da = if (!(cE)) | |
355 | 388 | then 0 | |
356 | - | else | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | $Tuple13( | |
389 | + | else cW | |
390 | + | let db = (cz - cX) | |
391 | + | let dc = (cB - cY) | |
392 | + | let dd = [IntegerEntry(V(), cp), IntegerEntry(W(height, lastBlock.timestamp), cp), StringEntry(Z(aa, cc), bo(cX, cY, da, cp, cy, cZ, height, lastBlock.timestamp, db, dc))] | |
393 | + | $Tuple13(cW, da, cp, ck, cm, cj, cf, ci, dd, db, dc, cA, cC) | |
361 | 394 | } | |
362 | 395 | } | |
363 | 396 | } | |
364 | 397 | ||
365 | 398 | ||
366 | - | func | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | if (( | |
371 | - | then | |
372 | - | else | |
399 | + | func de (df,dg,cj) = { | |
400 | + | let dh = G(df, toBigInt(bj)) | |
401 | + | let di = G(dg, toBigInt(bk)) | |
402 | + | let dj = fraction(pow((dh * di), 0, toBigInt(5), 1, 18, DOWN), g, cj) | |
403 | + | if ((cj == f)) | |
404 | + | then f | |
405 | + | else dj | |
373 | 406 | } | |
374 | 407 | ||
375 | 408 | ||
376 | - | func | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | | |
409 | + | func dk (dl,dm,dn) = { | |
410 | + | let do = (toBigInt(bD(aZ(bh))) - dl) | |
411 | + | let dp = (toBigInt(bD(aZ(bi))) - dm) | |
412 | + | let dq = (toBigInt(value(assetInfo(bg)).quantity) - dn) | |
413 | + | let dr = de(do, dp, dq) | |
414 | + | dr | |
382 | 415 | } | |
383 | 416 | ||
384 | 417 | ||
385 | - | func | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | $Tuple2( | |
418 | + | func ds (dt,du,dn) = { | |
419 | + | let do = (bD(aZ(bh)) + dt) | |
420 | + | let dp = (bD(aZ(bi)) + du) | |
421 | + | let dq = (value(assetInfo(bg)).quantity + dn) | |
422 | + | let dj = de(toBigInt(do), toBigInt(dp), toBigInt(dq)) | |
423 | + | let dv = [IntegerEntry(aj, height), StringEntry(ai, toString(dj))] | |
424 | + | $Tuple2(dv, dj) | |
392 | 425 | } | |
393 | 426 | ||
394 | 427 | ||
395 | - | func | |
428 | + | func dw (dx,dj) = if ((dj >= dx)) | |
396 | 429 | then true | |
397 | - | else | |
430 | + | else aK(makeString(["updated KLp lower than current KLp", toString(dx), toString(dj)], " ")) | |
398 | 431 | ||
399 | 432 | ||
400 | - | func | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | then $Tuple2( | |
405 | - | else $Tuple2(-( | |
406 | - | let | |
407 | - | let | |
408 | - | if (if (if ( | |
433 | + | func dy (dz) = { | |
434 | + | let dA = dz.amount | |
435 | + | let dB = fraction(dz.amount, dz.price, b, FLOOR) | |
436 | + | let dC = if ((dz.orderType == Buy)) | |
437 | + | then $Tuple2(dA, -(dB)) | |
438 | + | else $Tuple2(-(dA), dB) | |
439 | + | let dt = dC._1 | |
440 | + | let du = dC._2 | |
441 | + | if (if (if (aS()) | |
409 | 442 | then true | |
410 | - | else ( | |
443 | + | else (bf == m)) | |
411 | 444 | then true | |
412 | - | else ( | |
445 | + | else (bf == n)) | |
413 | 446 | then throw("Exchange operations disabled") | |
414 | - | else if (if (( | |
447 | + | else if (if ((dz.assetPair.amountAsset != bh)) | |
415 | 448 | then true | |
416 | - | else ( | |
449 | + | else (dz.assetPair.priceAsset != bi)) | |
417 | 450 | then throw("Wrong order assets.") | |
418 | 451 | else { | |
419 | - | let dm = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, W), ay("kLp is required"))), ay("invalid kLp")) | |
420 | - | let dn = db(dc, dd, 0) | |
421 | - | let do = dn._1 | |
422 | - | let dp = dn._2 | |
423 | - | let dq = db(0, 0, 0) | |
424 | - | let dr = dq._1 | |
425 | - | let ds = dq._2 | |
426 | - | let dt = (dp >= dm) | |
427 | - | let cO = bo(aL(aS)) | |
428 | - | let cP = bo(aL(aT)) | |
429 | - | let cQ = w(cO, aU) | |
430 | - | let du = (cQ + w(dc, aU)) | |
431 | - | let cR = w(cP, aV) | |
432 | - | let dv = (cR + w(dd, aV)) | |
433 | - | let dw = pow((cQ * cR), 0, toBigInt(5), 1, 18, DOWN) | |
434 | - | let dx = pow((du * dv), 0, toBigInt(5), 1, 18, DOWN) | |
435 | - | let dy = makeString([toString(dm), toString(dp), toString(dw), toString(dx)], " ") | |
436 | - | $Tuple2(dt, dy) | |
452 | + | let dD = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, ai), aM("kLp is required"))), aM("invalid kLp")) | |
453 | + | let dE = ds(dt, du, 0) | |
454 | + | let dF = dE._1 | |
455 | + | let dG = dE._2 | |
456 | + | let dH = (dG >= dD) | |
457 | + | let dI = makeString([toString(dD), toString(dG)], " ") | |
458 | + | $Tuple2(dH, dI) | |
437 | 459 | } | |
438 | 460 | } | |
439 | 461 | ||
440 | 462 | ||
441 | - | func | |
463 | + | func dJ (dK) = if ((size(dK.payments) != 1)) | |
442 | 464 | then throw("exactly 1 payment is expected") | |
443 | 465 | else { | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | if (if ( | |
466 | + | let dL = value(dK.payments[0]) | |
467 | + | let cd = value(dL.assetId) | |
468 | + | let dM = dL.amount | |
469 | + | let cO = cb(toBase58String(dK.transactionId), toBase58String(cd), dM, dK.caller) | |
470 | + | let cu = cO._1 | |
471 | + | let cv = cO._2 | |
472 | + | let ci = parseIntValue(cO._9) | |
473 | + | let cw = cO._10 | |
474 | + | if (if (aS()) | |
453 | 475 | then true | |
454 | - | else ( | |
455 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
456 | - | else $Tuple5(cd, | |
476 | + | else (ci == n)) | |
477 | + | then throw(("Get operation is blocked by admin. Status = " + toString(ci))) | |
478 | + | else $Tuple5(cu, cv, dM, cd, cw) | |
457 | 479 | } | |
458 | 480 | ||
459 | 481 | ||
460 | - | func | |
482 | + | func dN (dK,cy,cE) = if ((size(dK.payments) != 2)) | |
461 | 483 | then throw("exactly 2 payments are expected") | |
462 | 484 | else { | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | if (if (if ( | |
485 | + | let dO = value(dK.payments[0]) | |
486 | + | let dP = value(dK.payments[1]) | |
487 | + | let dQ = cx(toBase58String(dK.transactionId), cy, dO.amount, dO.assetId, dP.amount, dP.assetId, toString(dK.caller), false, cE) | |
488 | + | let ci = parseIntValue(dQ._8) | |
489 | + | if (if (if (aS()) | |
468 | 490 | then true | |
469 | - | else ( | |
491 | + | else (ci == l)) | |
470 | 492 | then true | |
471 | - | else ( | |
472 | - | then throw(("Put operation is blocked by admin. Status = " + toString( | |
473 | - | else | |
493 | + | else (ci == n)) | |
494 | + | then throw(("Put operation is blocked by admin. Status = " + toString(ci))) | |
495 | + | else dQ | |
474 | 496 | } | |
475 | 497 | ||
476 | 498 | ||
477 | - | func | |
478 | - | let | |
479 | - | if (( | |
499 | + | func dR (dS) = { | |
500 | + | let dT = invoke(aN, "emit", [dS], nil) | |
501 | + | if ((dT == dT)) | |
480 | 502 | then { | |
481 | - | let | |
482 | - | let | |
483 | - | if ($isInstanceOf( | |
503 | + | let dU = { | |
504 | + | let dV = dT | |
505 | + | if ($isInstanceOf(dV, "Address")) | |
484 | 506 | then { | |
485 | - | let | |
486 | - | invoke( | |
507 | + | let dW = dV | |
508 | + | invoke(dW, "emit", [dS], nil) | |
487 | 509 | } | |
488 | 510 | else unit | |
489 | 511 | } | |
490 | - | if (( | |
491 | - | then | |
512 | + | if ((dU == dU)) | |
513 | + | then dS | |
492 | 514 | else throw("Strict value is not equal to itself.") | |
493 | 515 | } | |
494 | 516 | else throw("Strict value is not equal to itself.") | |
495 | 517 | } | |
496 | 518 | ||
497 | 519 | ||
498 | - | func | |
499 | - | let | |
520 | + | func dX (dS,ah) = { | |
521 | + | let dY = if ((ah == 0)) | |
500 | 522 | then 0 | |
501 | - | else fraction( | |
502 | - | $Tuple2(( | |
523 | + | else fraction(dS, ah, b) | |
524 | + | $Tuple2((dS - dY), dY) | |
503 | 525 | } | |
504 | 526 | ||
505 | 527 | ||
506 | - | func | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
528 | + | func dZ (ea,eb,aa,ab) = { | |
529 | + | let ec = (ab == unit) | |
530 | + | let ed = bD(aZ(bh)) | |
531 | + | let ee = bD(aZ(bi)) | |
532 | + | let ef = if ((eb == bh)) | |
511 | 533 | then true | |
512 | - | else if (( | |
534 | + | else if ((eb == bi)) | |
513 | 535 | then false | |
514 | - | else | |
515 | - | let | |
516 | - | then $Tuple2( | |
517 | - | else if ( | |
518 | - | then $Tuple2(( | |
519 | - | else $Tuple2( | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | then $Tuple2( | |
524 | - | else $Tuple2(0, | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | then | |
538 | - | else | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
536 | + | else aK("invalid asset") | |
537 | + | let eg = if (ec) | |
538 | + | then $Tuple2(ed, ee) | |
539 | + | else if (ef) | |
540 | + | then $Tuple2((ed - ea), ee) | |
541 | + | else $Tuple2(ed, (ee - ea)) | |
542 | + | let eh = eg._1 | |
543 | + | let ei = eg._2 | |
544 | + | let ej = if (ef) | |
545 | + | then $Tuple2(ea, 0) | |
546 | + | else $Tuple2(0, ea) | |
547 | + | let ek = ej._1 | |
548 | + | let el = ej._2 | |
549 | + | let dA = dX(ek, aP)._1 | |
550 | + | let dB = dX(el, aP)._1 | |
551 | + | let em = dX(ea, aP) | |
552 | + | let en = em._1 | |
553 | + | let dY = em._2 | |
554 | + | let eo = (eh + dA) | |
555 | + | let ep = (ei + dB) | |
556 | + | let eq = bF(D(ep, bk), D(eo, bj)) | |
557 | + | let er = H(eq, b) | |
558 | + | let es = if (ef) | |
559 | + | then eh | |
560 | + | else ei | |
561 | + | let et = toBigInt(es) | |
562 | + | let eu = toBigInt(valueOrErrorMessage(assetInfo(bg), (("asset " + toBase58String(bg)) + " doesn't exist")).quantity) | |
563 | + | let ev = if ((eu > f)) | |
542 | 564 | then true | |
543 | - | else | |
544 | - | if (( | |
565 | + | else aK("initial deposit requires all coins") | |
566 | + | if ((ev == ev)) | |
545 | 567 | then { | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
568 | + | let ew = toBigInt(en) | |
569 | + | let ex = max([0, toInt(((eu * (sqrtBigInt((d + ((ew * d) / et)), 18, 18, DOWN) - d)) / d))]) | |
570 | + | let dd = if (ec) | |
549 | 571 | then nil | |
550 | - | else [IntegerEntry( | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | then $Tuple2( | |
556 | - | else $Tuple2( | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | fraction(( | |
572 | + | else [IntegerEntry(V(), er), IntegerEntry(W(height, lastBlock.timestamp), er), StringEntry(Z(toString(value(aa)), toBase58String(value(ab))), bo(ek, el, ex, er, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
573 | + | let ey = bF(D(ei, bk), D(eh, bj)) | |
574 | + | let ez = H(ey, b) | |
575 | + | let eA = { | |
576 | + | let eB = if (ef) | |
577 | + | then $Tuple2(ek, eh) | |
578 | + | else $Tuple2(el, ei) | |
579 | + | let dS = eB._1 | |
580 | + | let eC = eB._2 | |
581 | + | let eD = toInt(fraction(eu, toBigInt((dS / 2)), toBigInt(eC))) | |
582 | + | fraction((ex - eD), b, eD) | |
561 | 583 | } | |
562 | - | $Tuple5( | |
584 | + | $Tuple5(ex, dd, dY, eA, ef) | |
563 | 585 | } | |
564 | 586 | else throw("Strict value is not equal to itself.") | |
565 | 587 | } | |
566 | 588 | ||
567 | 589 | ||
568 | - | func | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
590 | + | func eE (eF,en,eb,aa,ab) = { | |
591 | + | let ec = (ab == unit) | |
592 | + | let bS = aU() | |
593 | + | let bT = parseIntValue(bS[t]) | |
594 | + | let bU = parseIntValue(bS[u]) | |
595 | + | let eG = [if ((eb == bg)) | |
574 | 596 | then true | |
575 | - | else | |
576 | - | if (( | |
597 | + | else aK("invalid lp asset")] | |
598 | + | if ((eG == eG)) | |
577 | 599 | then { | |
578 | - | let | |
600 | + | let eH = if ((eF == bh)) | |
579 | 601 | then true | |
580 | - | else if (( | |
602 | + | else if ((eF == bi)) | |
581 | 603 | then false | |
582 | - | else | |
583 | - | let | |
584 | - | then toBigInt( | |
585 | - | else toBigInt( | |
586 | - | let | |
587 | - | then | |
588 | - | else | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | then | |
593 | - | else | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | then $Tuple4( | |
603 | - | else $Tuple4(0, | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
604 | + | else aK("invalid asset") | |
605 | + | let eI = if (eH) | |
606 | + | then toBigInt(bD(aZ(bh))) | |
607 | + | else toBigInt(bD(aZ(bi))) | |
608 | + | let eJ = if (eH) | |
609 | + | then bT | |
610 | + | else bU | |
611 | + | let eK = bD(aZ(bh)) | |
612 | + | let eL = bD(aZ(bi)) | |
613 | + | let eM = if (eH) | |
614 | + | then eK | |
615 | + | else eL | |
616 | + | let eN = toBigInt(eM) | |
617 | + | let eu = toBigInt(valueOrErrorMessage(assetInfo(bg), (("asset " + toBase58String(bg)) + " doesn't exist")).quantity) | |
618 | + | let eO = toBigInt(en) | |
619 | + | let eP = max([0, toInt(((eI * (d - pow((d - ((eO * d) / eu)), 18, h, 0, 18, DOWN))) / d))]) | |
620 | + | let eQ = dX(eP, aR) | |
621 | + | let eR = eQ._1 | |
622 | + | let dY = eQ._2 | |
623 | + | let eS = if (eH) | |
624 | + | then $Tuple4(eR, 0, (eK - eP), eL) | |
625 | + | else $Tuple4(0, eR, eK, (eL - eP)) | |
626 | + | let eT = eS._1 | |
627 | + | let eU = eS._2 | |
628 | + | let eV = eS._3 | |
629 | + | let eW = eS._4 | |
630 | + | let eq = bF(D(eW, bk), D(eV, bj)) | |
631 | + | let er = H(eq, b) | |
632 | + | let dd = if (ec) | |
611 | 633 | then nil | |
612 | - | else [StringEntry( | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | fraction(( | |
634 | + | else [StringEntry(ac(toString(value(aa)), toBase58String(value(ab))), bz(eT, eU, en, er, height, lastBlock.timestamp)), IntegerEntry(V(), er), IntegerEntry(W(height, lastBlock.timestamp), er)] | |
635 | + | let ey = bF(D(eL, bk), D(eK, bj)) | |
636 | + | let ez = H(ey, b) | |
637 | + | let eA = { | |
638 | + | let eX = (toInt(fraction(eI, eO, eu)) * 2) | |
639 | + | fraction((eR - eX), b, eX) | |
618 | 640 | } | |
619 | - | $Tuple5( | |
641 | + | $Tuple5(eR, dd, dY, eA, eH) | |
620 | 642 | } | |
621 | 643 | else throw("Strict value is not equal to itself.") | |
622 | 644 | } | |
623 | 645 | ||
624 | 646 | ||
625 | - | func | |
626 | - | let | |
627 | - | if ($isInstanceOf( | |
647 | + | func eY () = { | |
648 | + | let dV = getString(T()) | |
649 | + | if ($isInstanceOf(dV, "String")) | |
628 | 650 | then { | |
629 | - | let | |
630 | - | fromBase58String( | |
651 | + | let eZ = dV | |
652 | + | fromBase58String(eZ) | |
631 | 653 | } | |
632 | - | else if ($isInstanceOf( | |
654 | + | else if ($isInstanceOf(dV, "Unit")) | |
633 | 655 | then unit | |
634 | 656 | else throw("Match error") | |
635 | 657 | } | |
636 | 658 | ||
637 | 659 | ||
638 | - | func | |
639 | - | let | |
640 | - | if ($isInstanceOf( | |
660 | + | func fa () = { | |
661 | + | let dV = getString(U()) | |
662 | + | if ($isInstanceOf(dV, "String")) | |
641 | 663 | then { | |
642 | - | let | |
643 | - | fromBase58String( | |
664 | + | let eZ = dV | |
665 | + | fromBase58String(eZ) | |
644 | 666 | } | |
645 | - | else if ($isInstanceOf( | |
667 | + | else if ($isInstanceOf(dV, "Unit")) | |
646 | 668 | then unit | |
647 | 669 | else throw("Match error") | |
648 | 670 | } | |
649 | 671 | ||
650 | 672 | ||
651 | - | func | |
652 | - | let | |
653 | - | if ($isInstanceOf( | |
673 | + | func fb (dK) = { | |
674 | + | let dV = eY() | |
675 | + | if ($isInstanceOf(dV, "ByteVector")) | |
654 | 676 | then { | |
655 | - | let | |
656 | - | ( | |
677 | + | let fc = dV | |
678 | + | (dK.callerPublicKey == fc) | |
657 | 679 | } | |
658 | - | else if ($isInstanceOf( | |
659 | - | then ( | |
680 | + | else if ($isInstanceOf(dV, "Unit")) | |
681 | + | then (dK.caller == this) | |
660 | 682 | else throw("Match error") | |
661 | 683 | } | |
662 | 684 | ||
663 | 685 | ||
664 | - | func | |
665 | - | let | |
666 | - | let | |
667 | - | if ($isInstanceOf( | |
686 | + | func fd (dK) = { | |
687 | + | let fe = throw("Permission denied") | |
688 | + | let dV = eY() | |
689 | + | if ($isInstanceOf(dV, "ByteVector")) | |
668 | 690 | then { | |
669 | - | let | |
670 | - | if (( | |
691 | + | let fc = dV | |
692 | + | if ((dK.callerPublicKey == fc)) | |
671 | 693 | then true | |
672 | - | else | |
694 | + | else fe | |
673 | 695 | } | |
674 | - | else if ($isInstanceOf( | |
675 | - | then if (( | |
696 | + | else if ($isInstanceOf(dV, "Unit")) | |
697 | + | then if ((dK.caller == this)) | |
676 | 698 | then true | |
677 | - | else | |
699 | + | else fe | |
678 | 700 | else throw("Match error") | |
679 | 701 | } | |
680 | 702 | ||
681 | 703 | ||
682 | - | @Callable( | |
683 | - | func setManager ( | |
684 | - | let | |
685 | - | if (( | |
704 | + | @Callable(dK) | |
705 | + | func setManager (ff) = { | |
706 | + | let fg = fd(dK) | |
707 | + | if ((fg == fg)) | |
686 | 708 | then { | |
687 | - | let | |
688 | - | if (( | |
689 | - | then [StringEntry( | |
709 | + | let fh = fromBase58String(ff) | |
710 | + | if ((fh == fh)) | |
711 | + | then [StringEntry(U(), ff)] | |
690 | 712 | else throw("Strict value is not equal to itself.") | |
691 | 713 | } | |
692 | 714 | else throw("Strict value is not equal to itself.") | |
694 | 716 | ||
695 | 717 | ||
696 | 718 | ||
697 | - | @Callable( | |
719 | + | @Callable(dK) | |
698 | 720 | func confirmManager () = { | |
699 | - | let | |
700 | - | let | |
721 | + | let fi = fa() | |
722 | + | let fj = if (isDefined(fi)) | |
701 | 723 | then true | |
702 | 724 | else throw("No pending manager") | |
703 | - | if (( | |
725 | + | if ((fj == fj)) | |
704 | 726 | then { | |
705 | - | let | |
727 | + | let fk = if ((dK.callerPublicKey == value(fi))) | |
706 | 728 | then true | |
707 | 729 | else throw("You are not pending manager") | |
708 | - | if (( | |
709 | - | then [StringEntry( | |
730 | + | if ((fk == fk)) | |
731 | + | then [StringEntry(T(), toBase58String(value(fi))), DeleteEntry(U())] | |
710 | 732 | else throw("Strict value is not equal to itself.") | |
711 | 733 | } | |
712 | 734 | else throw("Strict value is not equal to itself.") | |
714 | 736 | ||
715 | 737 | ||
716 | 738 | ||
717 | - | @Callable( | |
718 | - | func put ( | |
739 | + | @Callable(dK) | |
740 | + | func put (cy,fl) = if ((0 > cy)) | |
719 | 741 | then throw("Invalid slippageTolerance passed") | |
720 | 742 | else { | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | if (( | |
743 | + | let dQ = dN(dK, cy, true) | |
744 | + | let da = dQ._2 | |
745 | + | let cf = dQ._7 | |
746 | + | let cw = dQ._9 | |
747 | + | let db = dQ._10 | |
748 | + | let dc = dQ._11 | |
749 | + | let fm = dQ._12 | |
750 | + | let fn = dQ._13 | |
751 | + | let dO = toBigInt(value(dK.payments[0]).amount) | |
752 | + | let dP = toBigInt(value(dK.payments[1]).amount) | |
753 | + | let dr = dk(dO, dP, toBigInt(0)) | |
754 | + | if ((dr == dr)) | |
733 | 755 | then { | |
734 | - | let | |
735 | - | if (( | |
756 | + | let dT = invoke(aN, "emit", [da], nil) | |
757 | + | if ((dT == dT)) | |
736 | 758 | then { | |
737 | - | let | |
738 | - | let | |
739 | - | if ($isInstanceOf( | |
759 | + | let dU = { | |
760 | + | let dV = dT | |
761 | + | if ($isInstanceOf(dV, "Address")) | |
740 | 762 | then { | |
741 | - | let | |
742 | - | invoke( | |
763 | + | let dW = dV | |
764 | + | invoke(dW, "emit", [da], nil) | |
743 | 765 | } | |
744 | 766 | else unit | |
745 | 767 | } | |
746 | - | if (( | |
768 | + | if ((dU == dU)) | |
747 | 769 | then { | |
748 | - | let | |
749 | - | then invoke( | |
770 | + | let fo = if ((db > 0)) | |
771 | + | then invoke(bn, "put", nil, [AttachedPayment(fm, db)]) | |
750 | 772 | else nil | |
751 | - | if (( | |
773 | + | if ((fo == fo)) | |
752 | 774 | then { | |
753 | - | let | |
754 | - | then invoke( | |
775 | + | let fp = if ((dc > 0)) | |
776 | + | then invoke(bn, "put", nil, [AttachedPayment(fn, dc)]) | |
755 | 777 | else nil | |
756 | - | if (( | |
778 | + | if ((fp == fp)) | |
757 | 779 | then { | |
758 | - | let | |
780 | + | let fq = if (fl) | |
759 | 781 | then { | |
760 | - | let | |
761 | - | if (( | |
782 | + | let fr = invoke(bm, "stake", nil, [AttachedPayment(cf, da)]) | |
783 | + | if ((fr == fr)) | |
762 | 784 | then nil | |
763 | 785 | else throw("Strict value is not equal to itself.") | |
764 | 786 | } | |
765 | - | else [ScriptTransfer( | |
766 | - | let | |
767 | - | if (( | |
787 | + | else [ScriptTransfer(dK.caller, da, cf)] | |
788 | + | let fs = ds(0, 0, 0) | |
789 | + | if ((fs == fs)) | |
768 | 790 | then { | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | if (( | |
773 | - | then (( | |
791 | + | let dj = fs._2 | |
792 | + | let ft = fs._1 | |
793 | + | let fu = dw(dr, dj) | |
794 | + | if ((fu == fu)) | |
795 | + | then ((cw ++ fq) ++ ft) | |
774 | 796 | else throw("Strict value is not equal to itself.") | |
775 | 797 | } | |
776 | 798 | else throw("Strict value is not equal to itself.") | |
788 | 810 | ||
789 | 811 | ||
790 | 812 | ||
791 | - | @Callable( | |
792 | - | func putForFree ( | |
813 | + | @Callable(dK) | |
814 | + | func putForFree (fv) = if ((0 > fv)) | |
793 | 815 | then throw("Invalid value passed") | |
794 | 816 | else { | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | if (( | |
817 | + | let dQ = dN(dK, fv, false) | |
818 | + | let cw = dQ._9 | |
819 | + | let dO = toBigInt(value(dK.payments[0]).amount) | |
820 | + | let dP = toBigInt(value(dK.payments[1]).amount) | |
821 | + | let dr = dk(dO, dP, toBigInt(0)) | |
822 | + | if ((dr == dr)) | |
801 | 823 | then { | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | if (( | |
807 | - | then ( | |
824 | + | let fw = ds(0, 0, 0) | |
825 | + | let ft = fw._1 | |
826 | + | let dj = fw._2 | |
827 | + | let fu = dw(dr, dj) | |
828 | + | if ((fu == fu)) | |
829 | + | then (cw ++ ft) | |
808 | 830 | else throw("Strict value is not equal to itself.") | |
809 | 831 | } | |
810 | 832 | else throw("Strict value is not equal to itself.") | |
812 | 834 | ||
813 | 835 | ||
814 | 836 | ||
815 | - | @Callable( | |
816 | - | func putOneTkn ( | |
817 | - | let | |
818 | - | let | |
819 | - | if ($isInstanceOf( | |
820 | - | then | |
821 | - | else throw(($getType( | |
837 | + | @Callable(dK) | |
838 | + | func putOneTkn (fx,fy) = { | |
839 | + | let fz = { | |
840 | + | let aQ = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
841 | + | if ($isInstanceOf(aQ, "Boolean")) | |
842 | + | then aQ | |
843 | + | else throw(($getType(aQ) + " couldn't be cast to Boolean")) | |
822 | 844 | } | |
823 | - | let | |
845 | + | let fA = if (if (if (aS()) | |
824 | 846 | then true | |
825 | - | else ( | |
847 | + | else (bf == l)) | |
826 | 848 | then true | |
827 | - | else ( | |
849 | + | else (bf == n)) | |
828 | 850 | then true | |
829 | - | else | |
830 | - | let | |
851 | + | else fz | |
852 | + | let eG = [if (if (!(fA)) | |
831 | 853 | then true | |
832 | - | else | |
854 | + | else fb(dK)) | |
833 | 855 | then true | |
834 | - | else | |
856 | + | else aK("put operation is blocked by admin"), if ((size(dK.payments) == 1)) | |
835 | 857 | then true | |
836 | - | else | |
837 | - | if (( | |
858 | + | else aK("exactly 1 payment are expected")] | |
859 | + | if ((eG == eG)) | |
838 | 860 | then { | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | then | |
844 | - | else if (( | |
845 | - | then | |
846 | - | else | |
847 | - | if (( | |
861 | + | let fB = dK.payments[0] | |
862 | + | let eb = fB.assetId | |
863 | + | let ea = fB.amount | |
864 | + | let dr = if ((eb == bh)) | |
865 | + | then dk(toBigInt(ea), toBigInt(0), toBigInt(0)) | |
866 | + | else if ((eb == bi)) | |
867 | + | then dk(toBigInt(0), toBigInt(ea), toBigInt(0)) | |
868 | + | else aK("payment asset is not supported") | |
869 | + | if ((dr == dr)) | |
848 | 870 | then { | |
849 | - | let | |
850 | - | let | |
851 | - | let | |
852 | - | if (( | |
871 | + | let aa = dK.caller | |
872 | + | let ab = dK.transactionId | |
873 | + | let fC = dZ(ea, eb, aa, ab) | |
874 | + | if ((fC == fC)) | |
853 | 875 | then { | |
854 | - | let | |
855 | - | let | |
856 | - | let | |
857 | - | let | |
858 | - | let | |
859 | - | let | |
860 | - | then ( | |
876 | + | let ef = fC._5 | |
877 | + | let fD = fC._4 | |
878 | + | let dY = fC._3 | |
879 | + | let dd = fC._2 | |
880 | + | let fE = fC._1 | |
881 | + | let fF = if (if ((fx > 0)) | |
882 | + | then (fx > fE) | |
861 | 883 | else false) | |
862 | - | then | |
863 | - | else | |
864 | - | let | |
865 | - | if (( | |
884 | + | then aK(makeString(["amount to receive is less than ", toString(fx)], "")) | |
885 | + | else fE | |
886 | + | let dT = dR(fF) | |
887 | + | if ((dT == dT)) | |
866 | 888 | then { | |
867 | - | let | |
889 | + | let fq = if (fy) | |
868 | 890 | then { | |
869 | - | let | |
870 | - | if (( | |
891 | + | let fG = invoke(bm, "stake", nil, [AttachedPayment(bg, fF)]) | |
892 | + | if ((fG == fG)) | |
871 | 893 | then nil | |
872 | 894 | else throw("Strict value is not equal to itself.") | |
873 | 895 | } | |
874 | - | else [ScriptTransfer( | |
875 | - | let | |
876 | - | then [ScriptTransfer( | |
896 | + | else [ScriptTransfer(dK.caller, fF, bg)] | |
897 | + | let fH = if ((dY > 0)) | |
898 | + | then [ScriptTransfer(aO, dY, eb)] | |
877 | 899 | else nil | |
878 | - | let | |
900 | + | let fI = if ((this == aO)) | |
879 | 901 | then $Tuple2(0, 0) | |
880 | - | else if ( | |
881 | - | then $Tuple2(-( | |
882 | - | else $Tuple2(0, -( | |
883 | - | let | |
884 | - | let | |
885 | - | let | |
886 | - | let | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
890 | - | if (( | |
891 | - | then $Tuple2(((( | |
902 | + | else if (ef) | |
903 | + | then $Tuple2(-(dY), 0) | |
904 | + | else $Tuple2(0, -(dY)) | |
905 | + | let dt = fI._1 | |
906 | + | let du = fI._2 | |
907 | + | let fJ = ds(dt, du, 0) | |
908 | + | let ft = fJ._1 | |
909 | + | let dj = fJ._2 | |
910 | + | let dD = value(getString(ai)) | |
911 | + | let fu = dw(dr, dj) | |
912 | + | if ((fu == fu)) | |
913 | + | then $Tuple2((((dd ++ fq) ++ fH) ++ ft), fF) | |
892 | 914 | else throw("Strict value is not equal to itself.") | |
893 | 915 | } | |
894 | 916 | else throw("Strict value is not equal to itself.") | |
902 | 924 | ||
903 | 925 | ||
904 | 926 | ||
905 | - | @Callable( | |
906 | - | func putOneTknREADONLY ( | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | $Tuple2(nil, $Tuple3( | |
927 | + | @Callable(dK) | |
928 | + | func putOneTknREADONLY (eb,ea) = { | |
929 | + | let fK = dZ(ea, aX(eb), unit, unit) | |
930 | + | let fE = fK._1 | |
931 | + | let dd = fK._2 | |
932 | + | let dY = fK._3 | |
933 | + | let fD = fK._4 | |
934 | + | let ef = fK._5 | |
935 | + | $Tuple2(nil, $Tuple3(fE, dY, fD)) | |
914 | 936 | } | |
915 | 937 | ||
916 | 938 | ||
917 | 939 | ||
918 | - | @Callable( | |
919 | - | func getOneTkn ( | |
920 | - | let | |
921 | - | let | |
922 | - | if ($isInstanceOf( | |
923 | - | then | |
924 | - | else throw(($getType( | |
940 | + | @Callable(dK) | |
941 | + | func getOneTkn (fL,fx) = { | |
942 | + | let fz = { | |
943 | + | let aQ = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
944 | + | if ($isInstanceOf(aQ, "Boolean")) | |
945 | + | then aQ | |
946 | + | else throw(($getType(aQ) + " couldn't be cast to Boolean")) | |
925 | 947 | } | |
926 | - | let | |
948 | + | let fM = if (if (aS()) | |
927 | 949 | then true | |
928 | - | else ( | |
950 | + | else (bf == n)) | |
929 | 951 | then true | |
930 | - | else | |
931 | - | let | |
952 | + | else fz | |
953 | + | let eG = [if (if (!(fM)) | |
932 | 954 | then true | |
933 | - | else | |
955 | + | else fb(dK)) | |
934 | 956 | then true | |
935 | - | else | |
957 | + | else aK("get operation is blocked by admin"), if ((size(dK.payments) == 1)) | |
936 | 958 | then true | |
937 | - | else | |
938 | - | if (( | |
959 | + | else aK("exactly 1 payment are expected")] | |
960 | + | if ((eG == eG)) | |
939 | 961 | then { | |
940 | - | let | |
941 | - | let | |
942 | - | let | |
943 | - | let | |
944 | - | let | |
945 | - | if (( | |
962 | + | let eF = aX(fL) | |
963 | + | let fB = dK.payments[0] | |
964 | + | let eb = fB.assetId | |
965 | + | let en = fB.amount | |
966 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
967 | + | if ((dr == dr)) | |
946 | 968 | then { | |
947 | - | let | |
948 | - | let | |
949 | - | let | |
950 | - | if (( | |
969 | + | let aa = dK.caller | |
970 | + | let ab = dK.transactionId | |
971 | + | let fN = eE(eF, en, eb, aa, ab) | |
972 | + | if ((fN == fN)) | |
951 | 973 | then { | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | then ( | |
974 | + | let eH = fN._5 | |
975 | + | let fD = fN._4 | |
976 | + | let dY = fN._3 | |
977 | + | let dd = fN._2 | |
978 | + | let fO = fN._1 | |
979 | + | let dS = if (if ((fx > 0)) | |
980 | + | then (fx > fO) | |
959 | 981 | else false) | |
960 | - | then | |
961 | - | else | |
962 | - | let | |
963 | - | if (( | |
982 | + | then aK(makeString(["amount to receive is less than ", toString(fx)], "")) | |
983 | + | else fO | |
984 | + | let fP = invoke(aN, "burn", [en], [AttachedPayment(eb, en)]) | |
985 | + | if ((fP == fP)) | |
964 | 986 | then { | |
965 | - | let | |
966 | - | let | |
967 | - | then [ScriptTransfer( | |
987 | + | let fQ = [ScriptTransfer(aa, dS, eF)] | |
988 | + | let fH = if ((dY > 0)) | |
989 | + | then [ScriptTransfer(aO, dY, eF)] | |
968 | 990 | else nil | |
969 | - | let | |
970 | - | let | |
991 | + | let fR = { | |
992 | + | let fS = if ((this == aO)) | |
971 | 993 | then 0 | |
972 | - | else | |
973 | - | if ( | |
974 | - | then $Tuple2(-(( | |
975 | - | else $Tuple2(0, -(( | |
994 | + | else dY | |
995 | + | if (eH) | |
996 | + | then $Tuple2(-((dS + fS)), 0) | |
997 | + | else $Tuple2(0, -((dS + fS))) | |
976 | 998 | } | |
977 | - | let | |
978 | - | let | |
979 | - | let | |
980 | - | let | |
981 | - | let | |
982 | - | let | |
983 | - | if (( | |
984 | - | then $Tuple2(((( | |
999 | + | let dt = fR._1 | |
1000 | + | let du = fR._2 | |
1001 | + | let fT = ds(dt, du, 0) | |
1002 | + | let ft = fT._1 | |
1003 | + | let dj = fT._2 | |
1004 | + | let fu = dw(dr, dj) | |
1005 | + | if ((fu == fu)) | |
1006 | + | then $Tuple2((((dd ++ fQ) ++ fH) ++ ft), dS) | |
985 | 1007 | else throw("Strict value is not equal to itself.") | |
986 | 1008 | } | |
987 | 1009 | else throw("Strict value is not equal to itself.") | |
995 | 1017 | ||
996 | 1018 | ||
997 | 1019 | ||
998 | - | @Callable( | |
999 | - | func getOneTknREADONLY ( | |
1000 | - | let | |
1001 | - | let | |
1002 | - | let | |
1003 | - | let | |
1004 | - | let | |
1005 | - | let | |
1006 | - | $Tuple2(nil, $Tuple3( | |
1020 | + | @Callable(dK) | |
1021 | + | func getOneTknREADONLY (eF,en) = { | |
1022 | + | let fU = eE(aX(eF), en, bg, unit, unit) | |
1023 | + | let fO = fU._1 | |
1024 | + | let dd = fU._2 | |
1025 | + | let dY = fU._3 | |
1026 | + | let fD = fU._4 | |
1027 | + | let eH = fU._5 | |
1028 | + | $Tuple2(nil, $Tuple3(fO, dY, fD)) | |
1007 | 1029 | } | |
1008 | 1030 | ||
1009 | 1031 | ||
1010 | 1032 | ||
1011 | - | @Callable( | |
1012 | - | func unstakeAndGetOneTkn (fL, | |
1013 | - | let | |
1014 | - | let | |
1015 | - | if ($isInstanceOf( | |
1016 | - | then | |
1017 | - | else throw(($getType( | |
1033 | + | @Callable(dK) | |
1034 | + | func unstakeAndGetOneTkn (fV,fL,fx) = { | |
1035 | + | let fz = { | |
1036 | + | let aQ = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1037 | + | if ($isInstanceOf(aQ, "Boolean")) | |
1038 | + | then aQ | |
1039 | + | else throw(($getType(aQ) + " couldn't be cast to Boolean")) | |
1018 | 1040 | } | |
1019 | - | let | |
1041 | + | let fM = if (if (aS()) | |
1020 | 1042 | then true | |
1021 | - | else ( | |
1043 | + | else (bf == n)) | |
1022 | 1044 | then true | |
1023 | - | else | |
1024 | - | let | |
1045 | + | else fz | |
1046 | + | let eG = [if (if (!(fM)) | |
1025 | 1047 | then true | |
1026 | - | else | |
1048 | + | else fb(dK)) | |
1027 | 1049 | then true | |
1028 | - | else | |
1050 | + | else aK("get operation is blocked by admin"), if ((size(dK.payments) == 0)) | |
1029 | 1051 | then true | |
1030 | - | else | |
1031 | - | if (( | |
1052 | + | else aK("no payments are expected")] | |
1053 | + | if ((eG == eG)) | |
1032 | 1054 | then { | |
1033 | - | let | |
1034 | - | let | |
1035 | - | let | |
1036 | - | let | |
1037 | - | if (( | |
1055 | + | let eF = aX(fL) | |
1056 | + | let aa = dK.caller | |
1057 | + | let ab = dK.transactionId | |
1058 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1059 | + | if ((dr == dr)) | |
1038 | 1060 | then { | |
1039 | - | let | |
1040 | - | if (( | |
1061 | + | let fW = invoke(bm, "unstake", [toBase58String(bg), fV], nil) | |
1062 | + | if ((fW == fW)) | |
1041 | 1063 | then { | |
1042 | - | let | |
1043 | - | if (( | |
1064 | + | let fX = eE(eF, fV, bg, aa, ab) | |
1065 | + | if ((fX == fX)) | |
1044 | 1066 | then { | |
1045 | - | let | |
1046 | - | let | |
1047 | - | let | |
1048 | - | let | |
1049 | - | let | |
1050 | - | let | |
1051 | - | then ( | |
1067 | + | let eH = fX._5 | |
1068 | + | let fD = fX._4 | |
1069 | + | let dY = fX._3 | |
1070 | + | let dd = fX._2 | |
1071 | + | let fO = fX._1 | |
1072 | + | let dS = if (if ((fx > 0)) | |
1073 | + | then (fx > fO) | |
1052 | 1074 | else false) | |
1053 | - | then | |
1054 | - | else | |
1055 | - | let | |
1056 | - | if (( | |
1075 | + | then aK(makeString(["amount to receive is less than ", toString(fx)], "")) | |
1076 | + | else fO | |
1077 | + | let fP = invoke(aN, "burn", [fV], [AttachedPayment(bg, fV)]) | |
1078 | + | if ((fP == fP)) | |
1057 | 1079 | then { | |
1058 | - | let | |
1059 | - | let | |
1060 | - | then [ScriptTransfer( | |
1080 | + | let fQ = [ScriptTransfer(dK.caller, dS, eF)] | |
1081 | + | let fH = if ((dY > 0)) | |
1082 | + | then [ScriptTransfer(aO, dY, eF)] | |
1061 | 1083 | else nil | |
1062 | - | let | |
1063 | - | let | |
1084 | + | let fY = { | |
1085 | + | let fS = if ((this == aO)) | |
1064 | 1086 | then 0 | |
1065 | - | else | |
1066 | - | if ( | |
1067 | - | then $Tuple2(-(( | |
1068 | - | else $Tuple2(0, -(( | |
1087 | + | else dY | |
1088 | + | if (eH) | |
1089 | + | then $Tuple2(-((dS + fS)), 0) | |
1090 | + | else $Tuple2(0, -((dS + fS))) | |
1069 | 1091 | } | |
1070 | - | let | |
1071 | - | let | |
1072 | - | let | |
1073 | - | let | |
1074 | - | let | |
1075 | - | let | |
1076 | - | if (( | |
1077 | - | then $Tuple2(((( | |
1092 | + | let dt = fY._1 | |
1093 | + | let du = fY._2 | |
1094 | + | let fZ = ds(dt, du, 0) | |
1095 | + | let ft = fZ._1 | |
1096 | + | let dj = fZ._2 | |
1097 | + | let fu = dw(dr, dj) | |
1098 | + | if ((fu == fu)) | |
1099 | + | then $Tuple2((((dd ++ fQ) ++ fH) ++ ft), dS) | |
1078 | 1100 | else throw("Strict value is not equal to itself.") | |
1079 | 1101 | } | |
1080 | 1102 | else throw("Strict value is not equal to itself.") | |
1090 | 1112 | ||
1091 | 1113 | ||
1092 | 1114 | ||
1093 | - | @Callable( | |
1115 | + | @Callable(dK) | |
1094 | 1116 | func get () = { | |
1095 | - | let | |
1096 | - | let | |
1097 | - | let | |
1098 | - | let | |
1099 | - | let | |
1100 | - | let | |
1101 | - | let | |
1102 | - | if (( | |
1117 | + | let cO = dJ(dK) | |
1118 | + | let ga = cO._1 | |
1119 | + | let cv = cO._2 | |
1120 | + | let dM = cO._3 | |
1121 | + | let cd = cO._4 | |
1122 | + | let cw = cO._5 | |
1123 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1124 | + | if ((dr == dr)) | |
1103 | 1125 | then { | |
1104 | - | let | |
1105 | - | if (( | |
1126 | + | let gb = invoke(aN, "burn", [dM], [AttachedPayment(cd, dM)]) | |
1127 | + | if ((gb == gb)) | |
1106 | 1128 | then { | |
1107 | - | let | |
1108 | - | let | |
1109 | - | let | |
1110 | - | let | |
1111 | - | if (( | |
1112 | - | then ( | |
1129 | + | let gc = ds(-(ga), -(cv), 0) | |
1130 | + | let ft = gc._1 | |
1131 | + | let dj = gc._2 | |
1132 | + | let fu = dw(dr, dj) | |
1133 | + | if ((fu == fu)) | |
1134 | + | then (cw ++ ft) | |
1113 | 1135 | else throw("Strict value is not equal to itself.") | |
1114 | 1136 | } | |
1115 | 1137 | else throw("Strict value is not equal to itself.") | |
1119 | 1141 | ||
1120 | 1142 | ||
1121 | 1143 | ||
1122 | - | @Callable( | |
1123 | - | func getNoLess ( | |
1124 | - | let | |
1125 | - | let | |
1126 | - | let | |
1127 | - | let | |
1128 | - | let | |
1129 | - | let | |
1130 | - | if (( | |
1131 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
1132 | - | else if (( | |
1133 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
1144 | + | @Callable(dK) | |
1145 | + | func getNoLess (gd,ge) = { | |
1146 | + | let cO = dJ(dK) | |
1147 | + | let cu = cO._1 | |
1148 | + | let cv = cO._2 | |
1149 | + | let dM = cO._3 | |
1150 | + | let cd = cO._4 | |
1151 | + | let cw = cO._5 | |
1152 | + | if ((gd > cu)) | |
1153 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cu)) + " < ") + toString(gd))) | |
1154 | + | else if ((ge > cv)) | |
1155 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cv)) + " < ") + toString(ge))) | |
1134 | 1156 | else { | |
1135 | - | let | |
1136 | - | if (( | |
1157 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1158 | + | if ((dr == dr)) | |
1137 | 1159 | then { | |
1138 | - | let | |
1139 | - | if (( | |
1160 | + | let gb = invoke(aN, "burn", [dM], [AttachedPayment(cd, dM)]) | |
1161 | + | if ((gb == gb)) | |
1140 | 1162 | then { | |
1141 | - | let | |
1142 | - | let | |
1143 | - | let | |
1144 | - | let | |
1145 | - | if (( | |
1146 | - | then ( | |
1163 | + | let gf = ds(-(cu), -(cv), 0) | |
1164 | + | let ft = gf._1 | |
1165 | + | let dj = gf._2 | |
1166 | + | let fu = dw(dr, dj) | |
1167 | + | if ((fu == fu)) | |
1168 | + | then (cw ++ ft) | |
1147 | 1169 | else throw("Strict value is not equal to itself.") | |
1148 | 1170 | } | |
1149 | 1171 | else throw("Strict value is not equal to itself.") | |
1154 | 1176 | ||
1155 | 1177 | ||
1156 | 1178 | ||
1157 | - | @Callable( | |
1158 | - | func unstakeAndGet ( | |
1159 | - | let | |
1179 | + | @Callable(dK) | |
1180 | + | func unstakeAndGet (dS) = { | |
1181 | + | let gg = if ((size(dK.payments) != 0)) | |
1160 | 1182 | then throw("No payments are expected") | |
1161 | 1183 | else true | |
1162 | - | if (( | |
1184 | + | if ((gg == gg)) | |
1163 | 1185 | then { | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | if (( | |
1186 | + | let bS = aU() | |
1187 | + | let cf = fromBase58String(bS[q]) | |
1188 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1189 | + | if ((dr == dr)) | |
1168 | 1190 | then { | |
1169 | - | let | |
1170 | - | if (( | |
1191 | + | let fW = invoke(bm, "unstake", [toBase58String(cf), dS], nil) | |
1192 | + | if ((fW == fW)) | |
1171 | 1193 | then { | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | let | |
1194 | + | let cO = cb(toBase58String(dK.transactionId), toBase58String(cf), dS, dK.caller) | |
1195 | + | let cu = cO._1 | |
1196 | + | let cv = cO._2 | |
1197 | + | let ci = parseIntValue(cO._9) | |
1198 | + | let cw = cO._10 | |
1199 | + | let gh = if (if (aS()) | |
1178 | 1200 | then true | |
1179 | - | else ( | |
1180 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
1201 | + | else (ci == n)) | |
1202 | + | then throw(("Get operation is blocked by admin. Status = " + toString(ci))) | |
1181 | 1203 | else true | |
1182 | - | if (( | |
1204 | + | if ((gh == gh)) | |
1183 | 1205 | then { | |
1184 | - | let | |
1185 | - | if (( | |
1206 | + | let gb = invoke(aN, "burn", [dS], [AttachedPayment(cf, dS)]) | |
1207 | + | if ((gb == gb)) | |
1186 | 1208 | then { | |
1187 | - | let | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | if (( | |
1192 | - | then ( | |
1209 | + | let gi = ds(-(cu), -(cv), 0) | |
1210 | + | let ft = gi._1 | |
1211 | + | let dj = gi._2 | |
1212 | + | let fu = dw(dr, dj) | |
1213 | + | if ((fu == fu)) | |
1214 | + | then (cw ++ ft) | |
1193 | 1215 | else throw("Strict value is not equal to itself.") | |
1194 | 1216 | } | |
1195 | 1217 | else throw("Strict value is not equal to itself.") | |
1205 | 1227 | ||
1206 | 1228 | ||
1207 | 1229 | ||
1208 | - | @Callable( | |
1209 | - | func unstakeAndGetNoLess ( | |
1210 | - | let | |
1230 | + | @Callable(dK) | |
1231 | + | func unstakeAndGetNoLess (fV,gj,ge) = { | |
1232 | + | let fM = if (aS()) | |
1211 | 1233 | then true | |
1212 | - | else ( | |
1213 | - | let | |
1234 | + | else (bf == n) | |
1235 | + | let eG = [if (!(fM)) | |
1214 | 1236 | then true | |
1215 | - | else throw("get operation is blocked by admin"), if ((size( | |
1237 | + | else throw("get operation is blocked by admin"), if ((size(dK.payments) == 0)) | |
1216 | 1238 | then true | |
1217 | 1239 | else throw("no payments are expected")] | |
1218 | - | if (( | |
1240 | + | if ((eG == eG)) | |
1219 | 1241 | then { | |
1220 | - | let | |
1221 | - | if (( | |
1242 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1243 | + | if ((dr == dr)) | |
1222 | 1244 | then { | |
1223 | - | let | |
1224 | - | if (( | |
1245 | + | let fW = invoke(bm, "unstake", [toBase58String(bg), fV], nil) | |
1246 | + | if ((fW == fW)) | |
1225 | 1247 | then { | |
1226 | - | let | |
1227 | - | let | |
1228 | - | let | |
1229 | - | let | |
1230 | - | let | |
1248 | + | let cO = cb(toBase58String(dK.transactionId), toBase58String(bg), fV, dK.caller) | |
1249 | + | let cu = cO._1 | |
1250 | + | let cv = cO._2 | |
1251 | + | let cw = cO._10 | |
1252 | + | let gk = [if ((cu >= gj)) | |
1231 | 1253 | then true | |
1232 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1254 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(gj)], "")), if ((cv >= ge)) | |
1233 | 1255 | then true | |
1234 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1235 | - | if (( | |
1256 | + | else throw(makeString(["price asset amount to receive is less than ", toString(ge)], ""))] | |
1257 | + | if ((gk == gk)) | |
1236 | 1258 | then { | |
1237 | - | let | |
1238 | - | if (( | |
1259 | + | let gb = invoke(aN, "burn", [fV], [AttachedPayment(bg, fV)]) | |
1260 | + | if ((gb == gb)) | |
1239 | 1261 | then { | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | if (( | |
1245 | - | then ( | |
1262 | + | let gl = ds(-(cu), -(cv), 0) | |
1263 | + | let ft = gl._1 | |
1264 | + | let dj = gl._2 | |
1265 | + | let fu = dw(dr, dj) | |
1266 | + | if ((fu == fu)) | |
1267 | + | then (cw ++ ft) | |
1246 | 1268 | else throw("Strict value is not equal to itself.") | |
1247 | 1269 | } | |
1248 | 1270 | else throw("Strict value is not equal to itself.") | |
1258 | 1280 | ||
1259 | 1281 | ||
1260 | 1282 | ||
1261 | - | @Callable( | |
1262 | - | func activate ( | |
1283 | + | @Callable(dK) | |
1284 | + | func activate (gm,gn) = if ((toString(dK.caller) != toString(aN))) | |
1263 | 1285 | then throw("permissions denied") | |
1264 | - | else $Tuple2([StringEntry( | |
1286 | + | else $Tuple2([StringEntry(ad(), gm), StringEntry(ae(), gn)], "success") | |
1265 | 1287 | ||
1266 | 1288 | ||
1267 | 1289 | ||
1268 | - | @Callable( | |
1290 | + | @Callable(dK) | |
1269 | 1291 | func refreshKLp () = { | |
1270 | - | let | |
1271 | - | let | |
1292 | + | let go = valueOrElse(getInteger(aj), 0) | |
1293 | + | let gp = if (((height - go) >= am)) | |
1272 | 1294 | then unit | |
1273 | - | else | |
1274 | - | if (( | |
1295 | + | else aK(makeString([toString(am), " blocks have not passed since the previous call"], "")) | |
1296 | + | if ((gp == gp)) | |
1275 | 1297 | then { | |
1276 | - | let | |
1277 | - | let | |
1278 | - | let | |
1279 | - | let | |
1280 | - | let | |
1281 | - | then | |
1282 | - | else | |
1283 | - | $Tuple2( | |
1298 | + | let dD = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ai), "0")), aM("invalid kLp")) | |
1299 | + | let gq = ds(0, 0, 0) | |
1300 | + | let gr = gq._1 | |
1301 | + | let dj = gq._2 | |
1302 | + | let dv = if ((dD != dj)) | |
1303 | + | then gr | |
1304 | + | else aK("nothing to refresh") | |
1305 | + | $Tuple2(dv, toString(dj)) | |
1284 | 1306 | } | |
1285 | 1307 | else throw("Strict value is not equal to itself.") | |
1286 | 1308 | } | |
1287 | 1309 | ||
1288 | 1310 | ||
1289 | 1311 | ||
1290 | - | @Callable( | |
1291 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
1312 | + | @Callable(dK) | |
1313 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aU()) | |
1292 | 1314 | ||
1293 | 1315 | ||
1294 | 1316 | ||
1295 | - | @Callable( | |
1296 | - | func getAccBalanceWrapperREADONLY ( | |
1317 | + | @Callable(dK) | |
1318 | + | func getAccBalanceWrapperREADONLY (bE) = $Tuple2(nil, bD(bE)) | |
1297 | 1319 | ||
1298 | 1320 | ||
1299 | 1321 | ||
1300 | - | @Callable( | |
1301 | - | func calcPricesWrapperREADONLY ( | |
1302 | - | let | |
1303 | - | $Tuple2(nil, [toString( | |
1322 | + | @Callable(dK) | |
1323 | + | func calcPricesWrapperREADONLY (bM,bN,bR) = { | |
1324 | + | let ca = bQ(bM, bN, bR) | |
1325 | + | $Tuple2(nil, [toString(ca[0]), toString(ca[1]), toString(ca[2])]) | |
1304 | 1326 | } | |
1305 | 1327 | ||
1306 | 1328 | ||
1307 | 1329 | ||
1308 | - | @Callable( | |
1309 | - | func toX18WrapperREADONLY ( | |
1330 | + | @Callable(dK) | |
1331 | + | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1310 | 1332 | ||
1311 | 1333 | ||
1312 | 1334 | ||
1313 | - | @Callable( | |
1314 | - | func fromX18WrapperREADONLY ( | |
1335 | + | @Callable(dK) | |
1336 | + | func fromX18WrapperREADONLY (I,J) = $Tuple2(nil, H(parseBigIntValue(I), J)) | |
1315 | 1337 | ||
1316 | 1338 | ||
1317 | 1339 | ||
1318 | - | @Callable( | |
1319 | - | func calcPriceBigIntWrapperREADONLY ( | |
1340 | + | @Callable(dK) | |
1341 | + | func calcPriceBigIntWrapperREADONLY (bG,bH) = $Tuple2(nil, toString(bF(parseBigIntValue(bG), parseBigIntValue(bH)))) | |
1320 | 1342 | ||
1321 | 1343 | ||
1322 | 1344 | ||
1323 | - | @Callable( | |
1324 | - | func estimatePutOperationWrapperREADONLY ( | |
1345 | + | @Callable(dK) | |
1346 | + | func estimatePutOperationWrapperREADONLY (cc,cy,cz,cA,cB,cC,aa,cD,cE) = $Tuple2(nil, cx(cc, cy, cz, cA, cB, cC, aa, cD, cE)) | |
1325 | 1347 | ||
1326 | 1348 | ||
1327 | 1349 | ||
1328 | - | @Callable( | |
1329 | - | func estimateGetOperationWrapperREADONLY ( | |
1330 | - | let | |
1331 | - | $Tuple2(nil, $Tuple10( | |
1350 | + | @Callable(dK) | |
1351 | + | func estimateGetOperationWrapperREADONLY (cc,cd,ce,aa) = { | |
1352 | + | let cO = cb(cc, cd, ce, addressFromStringValue(aa)) | |
1353 | + | $Tuple2(nil, $Tuple10(cO._1, cO._2, cO._3, cO._4, cO._5, cO._6, cO._7, toString(cO._8), cO._9, cO._10)) | |
1332 | 1354 | } | |
1333 | 1355 | ||
1334 | 1356 | ||
1335 | 1357 | ||
1336 | - | @Callable( | |
1358 | + | @Callable(dK) | |
1337 | 1359 | func statsREADONLY () = { | |
1338 | - | let | |
1339 | - | let | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | let | |
1345 | - | let | |
1346 | - | let | |
1347 | - | let | |
1348 | - | let | |
1349 | - | let | |
1350 | - | then [ | |
1351 | - | else | |
1352 | - | let | |
1353 | - | let | |
1354 | - | let | |
1355 | - | let | |
1356 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1360 | + | let bS = aU() | |
1361 | + | let cf = fromBase58String(bS[q]) | |
1362 | + | let gs = bS[r] | |
1363 | + | let gt = bS[s] | |
1364 | + | let cH = bS[v] | |
1365 | + | let cI = bS[w] | |
1366 | + | let bT = parseIntValue(bS[t]) | |
1367 | + | let bU = parseIntValue(bS[u]) | |
1368 | + | let gu = valueOrErrorMessage(assetInfo(cf), (("Asset " + toBase58String(cf)) + " doesn't exist")).quantity | |
1369 | + | let gv = bD(gs) | |
1370 | + | let gw = bD(gt) | |
1371 | + | let gx = if ((gu == 0)) | |
1372 | + | then [e, e, e] | |
1373 | + | else bQ(gv, gw, gu) | |
1374 | + | let cp = 0 | |
1375 | + | let gy = H(gx[1], b) | |
1376 | + | let gz = H(gx[2], b) | |
1377 | + | let gA = value(getInteger(aN, ax(toString(this)))) | |
1378 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gv), toString(gw), toString(gu), toString(cp), toString(gy), toString(gz), toString(gA)], j)) | |
1357 | 1379 | } | |
1358 | 1380 | ||
1359 | 1381 | ||
1360 | 1382 | ||
1361 | - | @Callable( | |
1362 | - | func evaluatePutByAmountAssetREADONLY ( | |
1363 | - | let | |
1364 | - | let | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | let | |
1369 | - | let | |
1370 | - | let | |
1371 | - | let | |
1372 | - | let | |
1373 | - | let | |
1374 | - | let | |
1375 | - | let | |
1376 | - | let | |
1377 | - | let | |
1378 | - | then | |
1379 | - | else | |
1380 | - | let | |
1381 | - | let | |
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | let | |
1386 | - | let | |
1387 | - | let | |
1388 | - | let | |
1389 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1383 | + | @Callable(dK) | |
1384 | + | func evaluatePutByAmountAssetREADONLY (cz) = { | |
1385 | + | let bS = aU() | |
1386 | + | let cf = fromBase58String(bS[q]) | |
1387 | + | let cF = bS[r] | |
1388 | + | let cg = fromBase58String(cF) | |
1389 | + | let cG = bS[s] | |
1390 | + | let ch = fromBase58String(cG) | |
1391 | + | let bT = parseIntValue(bS[t]) | |
1392 | + | let bU = parseIntValue(bS[u]) | |
1393 | + | let ci = bS[p] | |
1394 | + | let gu = valueOrErrorMessage(assetInfo(cf), (("Asset " + toBase58String(cf)) + " doesn't exist")).quantity | |
1395 | + | let gv = bD(cF) | |
1396 | + | let gw = bD(cG) | |
1397 | + | let bO = D(gv, bT) | |
1398 | + | let bP = D(gw, bU) | |
1399 | + | let co = if ((gu == 0)) | |
1400 | + | then e | |
1401 | + | else bF(bP, bO) | |
1402 | + | let cL = D(cz, bT) | |
1403 | + | let cM = fraction(cL, co, d) | |
1404 | + | let cB = H(cM, bU) | |
1405 | + | let dQ = cx("", 500000, cz, cg, cB, ch, "", true, false) | |
1406 | + | let cW = dQ._1 | |
1407 | + | let gB = dQ._3 | |
1408 | + | let ck = dQ._4 | |
1409 | + | let cm = dQ._5 | |
1410 | + | let cj = dQ._6 | |
1411 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cW), toString(H(co, b)), toString(ck), toString(cm), toString(cj), ci, toString(cz), toString(cB)], j)) | |
1390 | 1412 | } | |
1391 | 1413 | ||
1392 | 1414 | ||
1393 | 1415 | ||
1394 | - | @Callable( | |
1395 | - | func evaluatePutByPriceAssetREADONLY ( | |
1396 | - | let | |
1397 | - | let | |
1398 | - | let | |
1399 | - | let | |
1400 | - | let | |
1401 | - | let | |
1402 | - | let | |
1403 | - | let | |
1404 | - | let | |
1405 | - | let | |
1406 | - | let | |
1407 | - | let | |
1408 | - | let | |
1409 | - | let | |
1410 | - | let | |
1411 | - | then | |
1412 | - | else | |
1413 | - | let | |
1414 | - | let | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let | |
1418 | - | let | |
1419 | - | let | |
1420 | - | let | |
1421 | - | let | |
1422 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1416 | + | @Callable(dK) | |
1417 | + | func evaluatePutByPriceAssetREADONLY (cB) = { | |
1418 | + | let bS = aU() | |
1419 | + | let cf = fromBase58String(bS[q]) | |
1420 | + | let cF = bS[r] | |
1421 | + | let cg = fromBase58String(cF) | |
1422 | + | let cG = bS[s] | |
1423 | + | let ch = fromBase58String(cG) | |
1424 | + | let bT = parseIntValue(bS[t]) | |
1425 | + | let bU = parseIntValue(bS[u]) | |
1426 | + | let ci = bS[p] | |
1427 | + | let gu = valueOrErrorMessage(assetInfo(cf), (("Asset " + toBase58String(cf)) + " doesn't exist")).quantity | |
1428 | + | let gC = bD(cF) | |
1429 | + | let gD = bD(cG) | |
1430 | + | let gE = D(gC, bT) | |
1431 | + | let gF = D(gD, bU) | |
1432 | + | let co = if ((gu == 0)) | |
1433 | + | then e | |
1434 | + | else bF(gF, gE) | |
1435 | + | let cM = D(cB, bU) | |
1436 | + | let cL = fraction(cM, d, co) | |
1437 | + | let cz = H(cL, bT) | |
1438 | + | let dQ = cx("", 500000, cz, cg, cB, ch, "", true, false) | |
1439 | + | let cW = dQ._1 | |
1440 | + | let gB = dQ._3 | |
1441 | + | let ck = dQ._4 | |
1442 | + | let cm = dQ._5 | |
1443 | + | let cj = dQ._6 | |
1444 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cW), toString(H(co, b)), toString(ck), toString(cm), toString(cj), ci, toString(cz), toString(cB)], j)) | |
1423 | 1445 | } | |
1424 | 1446 | ||
1425 | 1447 | ||
1426 | 1448 | ||
1427 | - | @Callable( | |
1428 | - | func evaluateGetREADONLY ( | |
1429 | - | let | |
1430 | - | let | |
1431 | - | let | |
1432 | - | let | |
1433 | - | let | |
1434 | - | let | |
1435 | - | let | |
1436 | - | let | |
1437 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1449 | + | @Callable(dK) | |
1450 | + | func evaluateGetREADONLY (gG,gH) = { | |
1451 | + | let cO = cb("", gG, gH, this) | |
1452 | + | let cu = cO._1 | |
1453 | + | let cv = cO._2 | |
1454 | + | let ck = cO._5 | |
1455 | + | let cm = cO._6 | |
1456 | + | let cj = cO._7 | |
1457 | + | let cp = cO._8 | |
1458 | + | let ci = parseIntValue(cO._9) | |
1459 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cu), toString(cv), toString(ck), toString(cm), toString(cj), toString(cp), toString(ci)], j)) | |
1438 | 1460 | } | |
1439 | 1461 | ||
1440 | 1462 | ||
1441 | - | @Verifier( | |
1442 | - | func | |
1443 | - | let | |
1444 | - | let | |
1445 | - | if ($isInstanceOf( | |
1463 | + | @Verifier(gI) | |
1464 | + | func gJ () = { | |
1465 | + | let gK = { | |
1466 | + | let dV = eY() | |
1467 | + | if ($isInstanceOf(dV, "ByteVector")) | |
1446 | 1468 | then { | |
1447 | - | let | |
1448 | - | | |
1469 | + | let fc = dV | |
1470 | + | fc | |
1449 | 1471 | } | |
1450 | - | else if ($isInstanceOf( | |
1451 | - | then | |
1472 | + | else if ($isInstanceOf(dV, "Unit")) | |
1473 | + | then gI.senderPublicKey | |
1452 | 1474 | else throw("Match error") | |
1453 | 1475 | } | |
1454 | - | let | |
1455 | - | if ($isInstanceOf( | |
1476 | + | let dV = gI | |
1477 | + | if ($isInstanceOf(dV, "Order")) | |
1456 | 1478 | then { | |
1457 | - | let | |
1458 | - | let | |
1459 | - | let | |
1460 | - | let | |
1461 | - | let | |
1462 | - | let | |
1463 | - | let | |
1464 | - | if (if (if ( | |
1465 | - | then | |
1479 | + | let dz = dV | |
1480 | + | let gL = aT() | |
1481 | + | let gM = dy(dz) | |
1482 | + | let aC = gM._1 | |
1483 | + | let aD = gM._2 | |
1484 | + | let aE = sigVerify(dz.bodyBytes, dz.proofs[0], dz.senderPublicKey) | |
1485 | + | let aF = sigVerify(dz.bodyBytes, dz.proofs[1], gL) | |
1486 | + | if (if (if (aC) | |
1487 | + | then aE | |
1466 | 1488 | else false) | |
1467 | - | then | |
1489 | + | then aF | |
1468 | 1490 | else false) | |
1469 | 1491 | then true | |
1470 | - | else | |
1492 | + | else aB(aC, aD, aE, aF) | |
1471 | 1493 | } | |
1472 | - | else if ($isInstanceOf( | |
1494 | + | else if ($isInstanceOf(dV, "SetScriptTransaction")) | |
1473 | 1495 | then { | |
1474 | - | let | |
1475 | - | let | |
1476 | - | let | |
1477 | - | let | |
1478 | - | if (if (( | |
1479 | - | then ( | |
1496 | + | let eZ = dV | |
1497 | + | let gN = blake2b256(value(eZ.script)) | |
1498 | + | let gO = fromBase64String(value(getString(aN, az()))) | |
1499 | + | let gP = scriptHash(this) | |
1500 | + | if (if ((gO == gN)) | |
1501 | + | then (gP != gN) | |
1480 | 1502 | else false) | |
1481 | 1503 | then true | |
1482 | - | else sigVerify( | |
1504 | + | else sigVerify(gI.bodyBytes, gI.proofs[0], gK) | |
1483 | 1505 | } | |
1484 | - | else sigVerify( | |
1506 | + | else sigVerify(gI.bodyBytes, gI.proofs[0], gK) | |
1485 | 1507 | } | |
1486 | 1508 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 8 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 100000000 | |
7 | 7 | ||
8 | - | let c = toBigInt( | |
8 | + | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | - | let d = toBigInt( | |
10 | + | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | - | let e = toBigInt( | |
12 | + | let e = toBigInt(0) | |
13 | 13 | ||
14 | - | let f = toBigInt( | |
14 | + | let f = toBigInt(0) | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = toBigInt(1) | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = toBigInt(2) | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = "WAVES" | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = "__" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 1 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = 2 | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = 3 | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 4 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 2 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 3 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 4 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 5 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 6 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 7 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 8 | |
47 | 47 | ||
48 | - | func w (x,y) = fraction(toBigInt(x), b, toBigInt(y)) | |
48 | + | let w = 9 | |
49 | + | ||
50 | + | let x = 10 | |
51 | + | ||
52 | + | let y = 1 | |
53 | + | ||
54 | + | let z = 2 | |
55 | + | ||
56 | + | let A = 3 | |
57 | + | ||
58 | + | let B = 1 | |
59 | + | ||
60 | + | let C = 7 | |
61 | + | ||
62 | + | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
49 | 63 | ||
50 | 64 | ||
51 | - | func | |
65 | + | func G (E,F) = fraction(E, d, F) | |
52 | 66 | ||
53 | 67 | ||
54 | - | func | |
68 | + | func H (I,J) = toInt(fraction(I, toBigInt(J), d)) | |
55 | 69 | ||
56 | 70 | ||
57 | - | func | |
71 | + | func K (I,J,L) = toInt(fraction(I, toBigInt(J), d, L)) | |
58 | 72 | ||
59 | 73 | ||
60 | - | func F (B) = if ((c > B)) | |
61 | - | then -(B) | |
62 | - | else B | |
74 | + | func M (N,O,P) = fraction(N, O, P) | |
63 | 75 | ||
64 | 76 | ||
65 | - | func G () = "%s__factoryContract" | |
77 | + | func Q (I) = if ((0 > I)) | |
78 | + | then -(I) | |
79 | + | else I | |
66 | 80 | ||
67 | 81 | ||
68 | - | func H () = "%s__managerPublicKey" | |
82 | + | func R (I) = if ((e > I)) | |
83 | + | then -(I) | |
84 | + | else I | |
69 | 85 | ||
70 | 86 | ||
71 | - | func | |
87 | + | func S () = "%s__factoryContract" | |
72 | 88 | ||
73 | 89 | ||
74 | - | func | |
90 | + | func T () = "%s__managerPublicKey" | |
75 | 91 | ||
76 | 92 | ||
77 | - | func | |
93 | + | func U () = "%s__pendingManagerPublicKey" | |
78 | 94 | ||
79 | 95 | ||
80 | - | func | |
96 | + | func V () = "%s%s__price__last" | |
81 | 97 | ||
82 | 98 | ||
83 | - | func | |
99 | + | func W (X,Y) = makeString(["%s%s%d%d__price__history", toString(X), toString(Y)], j) | |
84 | 100 | ||
85 | 101 | ||
86 | - | func | |
102 | + | func Z (aa,ab) = ((("%s%s%s__P__" + aa) + "__") + ab) | |
87 | 103 | ||
88 | 104 | ||
89 | - | func | |
105 | + | func ac (aa,ab) = ((("%s%s%s__G__" + aa) + "__") + ab) | |
90 | 106 | ||
91 | 107 | ||
92 | - | let T = "%s__fee" | |
93 | - | ||
94 | - | let U = fraction(10, a, 10000) | |
95 | - | ||
96 | - | let V = valueOrElse(getInteger(this, T), U) | |
97 | - | ||
98 | - | let W = makeString(["%s", "kLp"], h) | |
99 | - | ||
100 | - | let X = makeString(["%s", "kLpRefreshedHeight"], h) | |
101 | - | ||
102 | - | let Y = makeString(["%s", "refreshKLpDelay"], h) | |
103 | - | ||
104 | - | let Z = 30 | |
105 | - | ||
106 | - | let aa = valueOrElse(getInteger(this, Y), Z) | |
107 | - | ||
108 | - | func ab () = "%s__factoryConfig" | |
108 | + | func ad () = "%s__amountAsset" | |
109 | 109 | ||
110 | 110 | ||
111 | - | func | |
111 | + | func ae () = "%s__priceAsset" | |
112 | 112 | ||
113 | 113 | ||
114 | - | func ad (ae,af) = (((("%d%d%s__" + ae) + "__") + af) + "__config") | |
114 | + | let af = "%s__fee" | |
115 | + | ||
116 | + | let ag = fraction(10, b, 10000) | |
117 | + | ||
118 | + | let ah = valueOrElse(getInteger(this, af), ag) | |
119 | + | ||
120 | + | let ai = makeString(["%s", "kLp"], j) | |
121 | + | ||
122 | + | let aj = makeString(["%s", "kLpRefreshedHeight"], j) | |
123 | + | ||
124 | + | let ak = makeString(["%s", "refreshKLpDelay"], j) | |
125 | + | ||
126 | + | let al = 30 | |
127 | + | ||
128 | + | let am = valueOrElse(getInteger(this, ak), al) | |
129 | + | ||
130 | + | func an () = "%s__factoryConfig" | |
115 | 131 | ||
116 | 132 | ||
117 | - | func | |
133 | + | func ao () = "%s%s__matcher__publicKey" | |
118 | 134 | ||
119 | 135 | ||
120 | - | func | |
136 | + | func ap (aq) = (("%s%s%s__" + aq) + "__mappings__poolContract2LpAsset") | |
121 | 137 | ||
122 | 138 | ||
123 | - | func | |
139 | + | func ar (as,at) = (((("%d%d%s__" + as) + "__") + at) + "__config") | |
124 | 140 | ||
125 | 141 | ||
126 | - | func | |
142 | + | func au (av) = ("%s%s%s__mappings__baseAsset2internalId__" + av) | |
127 | 143 | ||
128 | 144 | ||
129 | - | let am = "%s__feeCollectorAddress" | |
130 | - | ||
131 | - | func an (ao,ap,aq,ar) = throw((((((((("order validation failed: orderValid=" + toString(ao)) + " (") + ap) + ")") + " senderValid=") + toString(aq)) + " matcherValid=") + toString(ar))) | |
145 | + | func aw () = "%s__shutdown" | |
132 | 146 | ||
133 | 147 | ||
134 | - | func | |
148 | + | func ax (ay) = ("%s%s__poolWeight__" + ay) | |
135 | 149 | ||
136 | 150 | ||
137 | - | func | |
151 | + | func az () = "%s__allowedLpScriptHash" | |
138 | 152 | ||
139 | 153 | ||
140 | - | func aw (ax) = throw(makeString(["lp.ride:", ax], " ")) | |
154 | + | let aA = "%s__feeCollectorAddress" | |
155 | + | ||
156 | + | func aB (aC,aD,aE,aF) = throw((((((((("order validation failed: orderValid=" + toString(aC)) + " (") + aD) + ")") + " senderValid=") + toString(aE)) + " matcherValid=") + toString(aF))) | |
141 | 157 | ||
142 | 158 | ||
143 | - | func | |
159 | + | func aG (aH,aI) = valueOrErrorMessage(getString(aH, aI), makeString(["mandatory ", toString(aH), ".", aI, " is not defined"], "")) | |
144 | 160 | ||
145 | 161 | ||
146 | - | ||
162 | + | func aJ (aH,aI) = valueOrErrorMessage(getInteger(aH, aI), makeString(["mandatory ", toString(aH), ".", aI, " is not defined"], "")) | |
147 | 163 | ||
148 | - | let aA = addressFromStringValue(as(az, am)) | |
149 | 164 | ||
150 | - | let aB = { | |
151 | - | let aC = invoke(az, "getInFeeREADONLY", [toString(this)], nil) | |
152 | - | if ($isInstanceOf(aC, "Int")) | |
153 | - | then aC | |
154 | - | else throw(($getType(aC) + " couldn't be cast to Int")) | |
165 | + | func aK (aL) = throw(makeString(["lp.ride:", aL], " ")) | |
166 | + | ||
167 | + | ||
168 | + | func aM (aL) = makeString(["lp.ride:", aL], " ") | |
169 | + | ||
170 | + | ||
171 | + | let aN = addressFromStringValue(aG(this, S())) | |
172 | + | ||
173 | + | let aO = addressFromStringValue(aG(aN, aA)) | |
174 | + | ||
175 | + | let aP = { | |
176 | + | let aQ = invoke(aN, "getInFeeREADONLY", [toString(this)], nil) | |
177 | + | if ($isInstanceOf(aQ, "Int")) | |
178 | + | then aQ | |
179 | + | else throw(($getType(aQ) + " couldn't be cast to Int")) | |
155 | 180 | } | |
156 | 181 | ||
157 | - | let | |
158 | - | let | |
159 | - | if ($isInstanceOf( | |
160 | - | then | |
161 | - | else throw(($getType( | |
182 | + | let aR = { | |
183 | + | let aQ = invoke(aN, "getOutFeeREADONLY", [toString(this)], nil) | |
184 | + | if ($isInstanceOf(aQ, "Int")) | |
185 | + | then aQ | |
186 | + | else throw(($getType(aQ) + " couldn't be cast to Int")) | |
162 | 187 | } | |
163 | 188 | ||
164 | - | func | |
189 | + | func aS () = valueOrElse(getBoolean(aN, aw()), false) | |
165 | 190 | ||
166 | 191 | ||
167 | - | func | |
192 | + | func aT () = fromBase58String(aG(aN, ao())) | |
168 | 193 | ||
169 | 194 | ||
170 | - | func | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | split( | |
195 | + | func aU () = { | |
196 | + | let aV = aG(this, ad()) | |
197 | + | let aW = aG(this, ae()) | |
198 | + | let at = aJ(aN, au(aW)) | |
199 | + | let as = aJ(aN, au(aV)) | |
200 | + | split(aG(aN, ar(toString(as), toString(at))), j) | |
176 | 201 | } | |
177 | 202 | ||
178 | 203 | ||
179 | - | func | |
204 | + | func aX (aY) = if ((aY == i)) | |
180 | 205 | then unit | |
181 | - | else fromBase58String( | |
206 | + | else fromBase58String(aY) | |
182 | 207 | ||
183 | 208 | ||
184 | - | func | |
185 | - | then | |
186 | - | else toBase58String(value( | |
209 | + | func aZ (aY) = if ((aY == unit)) | |
210 | + | then i | |
211 | + | else toBase58String(value(aY)) | |
187 | 212 | ||
188 | 213 | ||
189 | - | func | |
214 | + | func ba (bb) = $Tuple7(addressFromStringValue(bb[o]), parseIntValue(bb[p]), fromBase58String(bb[q]), aX(bb[r]), aX(bb[s]), parseIntValue(bb[t]), parseIntValue(bb[u])) | |
190 | 215 | ||
191 | 216 | ||
192 | - | let | |
217 | + | let bc = ba(aU()) | |
193 | 218 | ||
194 | - | let | |
219 | + | let bd = bc | |
195 | 220 | ||
196 | - | let | |
221 | + | let be = bd._1 | |
197 | 222 | ||
198 | - | let | |
223 | + | let bf = bd._2 | |
199 | 224 | ||
200 | - | let | |
225 | + | let bg = bd._3 | |
201 | 226 | ||
202 | - | let | |
227 | + | let bh = bd._4 | |
203 | 228 | ||
204 | - | let | |
229 | + | let bi = bd._5 | |
205 | 230 | ||
206 | - | let | |
231 | + | let bj = bd._6 | |
207 | 232 | ||
208 | - | func aW () = split(as(az, ab()), h) | |
233 | + | let bk = bd._7 | |
234 | + | ||
235 | + | func bl () = split(aG(aN, an()), j) | |
209 | 236 | ||
210 | 237 | ||
211 | - | let | |
238 | + | let bm = valueOrErrorMessage(addressFromString(bl()[B]), "incorrect staking address") | |
212 | 239 | ||
213 | - | let | |
240 | + | let bn = valueOrErrorMessage(addressFromString(bl()[C]), "incorrect staking address") | |
214 | 241 | ||
215 | - | func | |
242 | + | func bo (bp,bq,br,bs,bt,bu,bv,bw,bx,by) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bp), toString(bq), toString(br), toString(bs), toString(bt), toString(bu), toString(bv), toString(bw), toString(bx), toString(by)], j) | |
216 | 243 | ||
217 | 244 | ||
218 | - | func | |
245 | + | func bz (bA,bB,bC,bs,bv,bw) = makeString(["%d%d%d%d%d%d", toString(bA), toString(bB), toString(bC), toString(bs), toString(bv), toString(bw)], j) | |
219 | 246 | ||
220 | 247 | ||
221 | - | func | |
248 | + | func bD (bE) = if ((bE == "WAVES")) | |
222 | 249 | then wavesBalance(this).available | |
223 | - | else assetBalance(this, fromBase58String( | |
250 | + | else assetBalance(this, fromBase58String(bE)) | |
224 | 251 | ||
225 | 252 | ||
226 | - | func | |
253 | + | func bF (bG,bH) = fraction(bG, d, bH) | |
227 | 254 | ||
228 | 255 | ||
229 | - | func | |
256 | + | func bI (bG,bH,L) = fraction(bG, d, bH, L) | |
230 | 257 | ||
231 | 258 | ||
232 | - | func | |
233 | - | let | |
234 | - | let | |
235 | - | | |
259 | + | func bJ (bK,bL,bM,bN) = { | |
260 | + | let bO = D(bM, bK) | |
261 | + | let bP = D(bN, bL) | |
262 | + | bF(bP, bO) | |
236 | 263 | } | |
237 | 264 | ||
238 | 265 | ||
239 | - | func | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | [ | |
266 | + | func bQ (bM,bN,bR) = { | |
267 | + | let bS = aU() | |
268 | + | let bT = parseIntValue(bS[t]) | |
269 | + | let bU = parseIntValue(bS[u]) | |
270 | + | let bV = bJ(bT, bU, bM, bN) | |
271 | + | let bH = D(bM, bT) | |
272 | + | let bG = D(bN, bU) | |
273 | + | let bW = D(bR, b) | |
274 | + | let bX = bF(bH, bW) | |
275 | + | let bY = bF(bG, bW) | |
276 | + | [bV, bX, bY] | |
250 | 277 | } | |
251 | 278 | ||
252 | 279 | ||
253 | - | func bK (bL,bM,bN,O) = { | |
254 | - | let bD = aG() | |
255 | - | let bO = bD[n] | |
256 | - | let bP = bD[o] | |
257 | - | let bQ = bD[p] | |
258 | - | let bv = parseIntValue(bD[q]) | |
259 | - | let bw = parseIntValue(bD[r]) | |
260 | - | let bR = bD[m] | |
261 | - | let bS = valueOrErrorMessage(assetInfo(fromBase58String(bO)), (("Asset " + bO) + " doesn't exist")).quantity | |
262 | - | if ((bO != bM)) | |
280 | + | func bZ (bM,bN,bR) = { | |
281 | + | let ca = bQ(bM, bN, bR) | |
282 | + | [H(ca[0], b), H(ca[1], b), H(ca[2], b)] | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | func cb (cc,cd,ce,aa) = { | |
287 | + | let bS = aU() | |
288 | + | let cf = bS[q] | |
289 | + | let cg = bS[r] | |
290 | + | let ch = bS[s] | |
291 | + | let bK = parseIntValue(bS[t]) | |
292 | + | let bL = parseIntValue(bS[u]) | |
293 | + | let ci = bS[p] | |
294 | + | let cj = valueOrErrorMessage(assetInfo(fromBase58String(cf)), (("Asset " + cf) + " doesn't exist")).quantity | |
295 | + | if ((cf != cd)) | |
263 | 296 | then throw("Invalid asset passed.") | |
264 | 297 | else { | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
298 | + | let ck = bD(cg) | |
299 | + | let cl = D(ck, bK) | |
300 | + | let cm = bD(ch) | |
301 | + | let cn = D(cm, bL) | |
302 | + | let co = bF(cn, cl) | |
303 | + | let cp = H(co, b) | |
304 | + | let cq = D(ce, b) | |
305 | + | let cr = D(cj, b) | |
306 | + | let cs = fraction(cl, cq, cr) | |
307 | + | let ct = fraction(cn, cq, cr) | |
308 | + | let cu = K(cs, bK, FLOOR) | |
309 | + | let cv = K(ct, bL, FLOOR) | |
310 | + | let cw = if ((cc == "")) | |
278 | 311 | then nil | |
279 | - | else [ScriptTransfer( | |
312 | + | else [ScriptTransfer(aa, cu, if ((cg == "WAVES")) | |
280 | 313 | then unit | |
281 | - | else fromBase58String( | |
314 | + | else fromBase58String(cg)), ScriptTransfer(aa, cv, if ((ch == "WAVES")) | |
282 | 315 | then unit | |
283 | - | else fromBase58String( | |
284 | - | $Tuple10( | |
316 | + | else fromBase58String(ch)), StringEntry(ac(toString(aa), cc), bz(cu, cv, ce, cp, height, lastBlock.timestamp)), IntegerEntry(V(), cp), IntegerEntry(W(height, lastBlock.timestamp), cp)] | |
317 | + | $Tuple10(cu, cv, cg, ch, ck, cm, cj, co, ci, cw) | |
285 | 318 | } | |
286 | 319 | } | |
287 | 320 | ||
288 | 321 | ||
289 | - | func | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | if (if (( | |
322 | + | func cx (cc,cy,cz,cA,cB,cC,aa,cD,cE) = { | |
323 | + | let bS = aU() | |
324 | + | let cf = fromBase58String(bS[q]) | |
325 | + | let cF = bS[r] | |
326 | + | let cG = bS[s] | |
327 | + | let cH = bS[v] | |
328 | + | let cI = bS[w] | |
329 | + | let bT = parseIntValue(bS[t]) | |
330 | + | let bU = parseIntValue(bS[u]) | |
331 | + | let ci = bS[p] | |
332 | + | let cj = valueOrErrorMessage(assetInfo(cf), (("Asset " + toBase58String(cf)) + " doesn't exist")).quantity | |
333 | + | let cJ = toBase58String(valueOrElse(cA, fromBase58String("WAVES"))) | |
334 | + | let cK = toBase58String(valueOrElse(cC, fromBase58String("WAVES"))) | |
335 | + | if (if ((cF != cJ)) | |
303 | 336 | then true | |
304 | - | else ( | |
337 | + | else (cG != cK)) | |
305 | 338 | then throw("Invalid amt or price asset passed.") | |
306 | 339 | else { | |
307 | - | let | |
308 | - | then | |
309 | - | else ( | |
310 | - | let | |
311 | - | then | |
312 | - | else ( | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
340 | + | let ck = if (cD) | |
341 | + | then bD(cF) | |
342 | + | else (bD(cF) - cz) | |
343 | + | let cm = if (cD) | |
344 | + | then bD(cG) | |
345 | + | else (bD(cG) - cB) | |
346 | + | let cL = D(cz, bT) | |
347 | + | let cM = D(cB, bU) | |
348 | + | let cN = bF(cM, cL) | |
349 | + | let cl = D(ck, bT) | |
350 | + | let cn = D(cm, bU) | |
351 | + | let cO = if ((cj == 0)) | |
319 | 352 | then { | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | $Tuple5( | |
353 | + | let co = e | |
354 | + | let cP = e | |
355 | + | let bW = pow((cL * cM), 0, toBigInt(5), 1, 0, DOWN) | |
356 | + | $Tuple5(H(bW, b), H(cL, bT), H(cM, bU), bF((cn + cM), (cl + cL)), cP) | |
324 | 357 | } | |
325 | 358 | else { | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | if (if (( | |
330 | - | then ( | |
359 | + | let co = bF(cn, cl) | |
360 | + | let cP = fraction(R((co - cN)), d, co) | |
361 | + | let cQ = D(cy, b) | |
362 | + | if (if ((co != e)) | |
363 | + | then (cP > cQ) | |
331 | 364 | else false) | |
332 | - | then throw(((("Price slippage " + toString( | |
365 | + | then throw(((("Price slippage " + toString(cP)) + " exceeded the passed limit of ") + toString(cQ))) | |
333 | 366 | else { | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | then $Tuple2( | |
339 | - | else $Tuple2( | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | $Tuple5( | |
367 | + | let cr = D(cj, b) | |
368 | + | let cR = fraction(cL, bI(cn, cl, CEILING), d, CEILING) | |
369 | + | let cS = fraction(cM, d, bI(cn, cl, FLOOR), CEILING) | |
370 | + | let cT = if ((cR > cM)) | |
371 | + | then $Tuple2(cS, cM) | |
372 | + | else $Tuple2(cL, cR) | |
373 | + | let cU = cT._1 | |
374 | + | let cV = cT._2 | |
375 | + | let bW = fraction(cr, cV, cn, FLOOR) | |
376 | + | $Tuple5(K(bW, b, FLOOR), K(cU, bT, CEILING), K(cV, bU, CEILING), co, cP) | |
344 | 377 | } | |
345 | 378 | } | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | if ((0 >= | |
379 | + | let cW = cO._1 | |
380 | + | let cX = cO._2 | |
381 | + | let cY = cO._3 | |
382 | + | let cp = H(cO._4, b) | |
383 | + | let cZ = H(cO._5, b) | |
384 | + | if ((0 >= cW)) | |
352 | 385 | then throw("Invalid calculations. LP calculated is less than zero.") | |
353 | 386 | else { | |
354 | - | let | |
387 | + | let da = if (!(cE)) | |
355 | 388 | then 0 | |
356 | - | else | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | $Tuple13( | |
389 | + | else cW | |
390 | + | let db = (cz - cX) | |
391 | + | let dc = (cB - cY) | |
392 | + | let dd = [IntegerEntry(V(), cp), IntegerEntry(W(height, lastBlock.timestamp), cp), StringEntry(Z(aa, cc), bo(cX, cY, da, cp, cy, cZ, height, lastBlock.timestamp, db, dc))] | |
393 | + | $Tuple13(cW, da, cp, ck, cm, cj, cf, ci, dd, db, dc, cA, cC) | |
361 | 394 | } | |
362 | 395 | } | |
363 | 396 | } | |
364 | 397 | ||
365 | 398 | ||
366 | - | func | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | if (( | |
371 | - | then | |
372 | - | else | |
399 | + | func de (df,dg,cj) = { | |
400 | + | let dh = G(df, toBigInt(bj)) | |
401 | + | let di = G(dg, toBigInt(bk)) | |
402 | + | let dj = fraction(pow((dh * di), 0, toBigInt(5), 1, 18, DOWN), g, cj) | |
403 | + | if ((cj == f)) | |
404 | + | then f | |
405 | + | else dj | |
373 | 406 | } | |
374 | 407 | ||
375 | 408 | ||
376 | - | func | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | | |
409 | + | func dk (dl,dm,dn) = { | |
410 | + | let do = (toBigInt(bD(aZ(bh))) - dl) | |
411 | + | let dp = (toBigInt(bD(aZ(bi))) - dm) | |
412 | + | let dq = (toBigInt(value(assetInfo(bg)).quantity) - dn) | |
413 | + | let dr = de(do, dp, dq) | |
414 | + | dr | |
382 | 415 | } | |
383 | 416 | ||
384 | 417 | ||
385 | - | func | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | $Tuple2( | |
418 | + | func ds (dt,du,dn) = { | |
419 | + | let do = (bD(aZ(bh)) + dt) | |
420 | + | let dp = (bD(aZ(bi)) + du) | |
421 | + | let dq = (value(assetInfo(bg)).quantity + dn) | |
422 | + | let dj = de(toBigInt(do), toBigInt(dp), toBigInt(dq)) | |
423 | + | let dv = [IntegerEntry(aj, height), StringEntry(ai, toString(dj))] | |
424 | + | $Tuple2(dv, dj) | |
392 | 425 | } | |
393 | 426 | ||
394 | 427 | ||
395 | - | func | |
428 | + | func dw (dx,dj) = if ((dj >= dx)) | |
396 | 429 | then true | |
397 | - | else | |
430 | + | else aK(makeString(["updated KLp lower than current KLp", toString(dx), toString(dj)], " ")) | |
398 | 431 | ||
399 | 432 | ||
400 | - | func | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | then $Tuple2( | |
405 | - | else $Tuple2(-( | |
406 | - | let | |
407 | - | let | |
408 | - | if (if (if ( | |
433 | + | func dy (dz) = { | |
434 | + | let dA = dz.amount | |
435 | + | let dB = fraction(dz.amount, dz.price, b, FLOOR) | |
436 | + | let dC = if ((dz.orderType == Buy)) | |
437 | + | then $Tuple2(dA, -(dB)) | |
438 | + | else $Tuple2(-(dA), dB) | |
439 | + | let dt = dC._1 | |
440 | + | let du = dC._2 | |
441 | + | if (if (if (aS()) | |
409 | 442 | then true | |
410 | - | else ( | |
443 | + | else (bf == m)) | |
411 | 444 | then true | |
412 | - | else ( | |
445 | + | else (bf == n)) | |
413 | 446 | then throw("Exchange operations disabled") | |
414 | - | else if (if (( | |
447 | + | else if (if ((dz.assetPair.amountAsset != bh)) | |
415 | 448 | then true | |
416 | - | else ( | |
449 | + | else (dz.assetPair.priceAsset != bi)) | |
417 | 450 | then throw("Wrong order assets.") | |
418 | 451 | else { | |
419 | - | let dm = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, W), ay("kLp is required"))), ay("invalid kLp")) | |
420 | - | let dn = db(dc, dd, 0) | |
421 | - | let do = dn._1 | |
422 | - | let dp = dn._2 | |
423 | - | let dq = db(0, 0, 0) | |
424 | - | let dr = dq._1 | |
425 | - | let ds = dq._2 | |
426 | - | let dt = (dp >= dm) | |
427 | - | let cO = bo(aL(aS)) | |
428 | - | let cP = bo(aL(aT)) | |
429 | - | let cQ = w(cO, aU) | |
430 | - | let du = (cQ + w(dc, aU)) | |
431 | - | let cR = w(cP, aV) | |
432 | - | let dv = (cR + w(dd, aV)) | |
433 | - | let dw = pow((cQ * cR), 0, toBigInt(5), 1, 18, DOWN) | |
434 | - | let dx = pow((du * dv), 0, toBigInt(5), 1, 18, DOWN) | |
435 | - | let dy = makeString([toString(dm), toString(dp), toString(dw), toString(dx)], " ") | |
436 | - | $Tuple2(dt, dy) | |
452 | + | let dD = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, ai), aM("kLp is required"))), aM("invalid kLp")) | |
453 | + | let dE = ds(dt, du, 0) | |
454 | + | let dF = dE._1 | |
455 | + | let dG = dE._2 | |
456 | + | let dH = (dG >= dD) | |
457 | + | let dI = makeString([toString(dD), toString(dG)], " ") | |
458 | + | $Tuple2(dH, dI) | |
437 | 459 | } | |
438 | 460 | } | |
439 | 461 | ||
440 | 462 | ||
441 | - | func | |
463 | + | func dJ (dK) = if ((size(dK.payments) != 1)) | |
442 | 464 | then throw("exactly 1 payment is expected") | |
443 | 465 | else { | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | if (if ( | |
466 | + | let dL = value(dK.payments[0]) | |
467 | + | let cd = value(dL.assetId) | |
468 | + | let dM = dL.amount | |
469 | + | let cO = cb(toBase58String(dK.transactionId), toBase58String(cd), dM, dK.caller) | |
470 | + | let cu = cO._1 | |
471 | + | let cv = cO._2 | |
472 | + | let ci = parseIntValue(cO._9) | |
473 | + | let cw = cO._10 | |
474 | + | if (if (aS()) | |
453 | 475 | then true | |
454 | - | else ( | |
455 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
456 | - | else $Tuple5(cd, | |
476 | + | else (ci == n)) | |
477 | + | then throw(("Get operation is blocked by admin. Status = " + toString(ci))) | |
478 | + | else $Tuple5(cu, cv, dM, cd, cw) | |
457 | 479 | } | |
458 | 480 | ||
459 | 481 | ||
460 | - | func | |
482 | + | func dN (dK,cy,cE) = if ((size(dK.payments) != 2)) | |
461 | 483 | then throw("exactly 2 payments are expected") | |
462 | 484 | else { | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | if (if (if ( | |
485 | + | let dO = value(dK.payments[0]) | |
486 | + | let dP = value(dK.payments[1]) | |
487 | + | let dQ = cx(toBase58String(dK.transactionId), cy, dO.amount, dO.assetId, dP.amount, dP.assetId, toString(dK.caller), false, cE) | |
488 | + | let ci = parseIntValue(dQ._8) | |
489 | + | if (if (if (aS()) | |
468 | 490 | then true | |
469 | - | else ( | |
491 | + | else (ci == l)) | |
470 | 492 | then true | |
471 | - | else ( | |
472 | - | then throw(("Put operation is blocked by admin. Status = " + toString( | |
473 | - | else | |
493 | + | else (ci == n)) | |
494 | + | then throw(("Put operation is blocked by admin. Status = " + toString(ci))) | |
495 | + | else dQ | |
474 | 496 | } | |
475 | 497 | ||
476 | 498 | ||
477 | - | func | |
478 | - | let | |
479 | - | if (( | |
499 | + | func dR (dS) = { | |
500 | + | let dT = invoke(aN, "emit", [dS], nil) | |
501 | + | if ((dT == dT)) | |
480 | 502 | then { | |
481 | - | let | |
482 | - | let | |
483 | - | if ($isInstanceOf( | |
503 | + | let dU = { | |
504 | + | let dV = dT | |
505 | + | if ($isInstanceOf(dV, "Address")) | |
484 | 506 | then { | |
485 | - | let | |
486 | - | invoke( | |
507 | + | let dW = dV | |
508 | + | invoke(dW, "emit", [dS], nil) | |
487 | 509 | } | |
488 | 510 | else unit | |
489 | 511 | } | |
490 | - | if (( | |
491 | - | then | |
512 | + | if ((dU == dU)) | |
513 | + | then dS | |
492 | 514 | else throw("Strict value is not equal to itself.") | |
493 | 515 | } | |
494 | 516 | else throw("Strict value is not equal to itself.") | |
495 | 517 | } | |
496 | 518 | ||
497 | 519 | ||
498 | - | func | |
499 | - | let | |
520 | + | func dX (dS,ah) = { | |
521 | + | let dY = if ((ah == 0)) | |
500 | 522 | then 0 | |
501 | - | else fraction( | |
502 | - | $Tuple2(( | |
523 | + | else fraction(dS, ah, b) | |
524 | + | $Tuple2((dS - dY), dY) | |
503 | 525 | } | |
504 | 526 | ||
505 | 527 | ||
506 | - | func | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
528 | + | func dZ (ea,eb,aa,ab) = { | |
529 | + | let ec = (ab == unit) | |
530 | + | let ed = bD(aZ(bh)) | |
531 | + | let ee = bD(aZ(bi)) | |
532 | + | let ef = if ((eb == bh)) | |
511 | 533 | then true | |
512 | - | else if (( | |
534 | + | else if ((eb == bi)) | |
513 | 535 | then false | |
514 | - | else | |
515 | - | let | |
516 | - | then $Tuple2( | |
517 | - | else if ( | |
518 | - | then $Tuple2(( | |
519 | - | else $Tuple2( | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | then $Tuple2( | |
524 | - | else $Tuple2(0, | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | then | |
538 | - | else | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
536 | + | else aK("invalid asset") | |
537 | + | let eg = if (ec) | |
538 | + | then $Tuple2(ed, ee) | |
539 | + | else if (ef) | |
540 | + | then $Tuple2((ed - ea), ee) | |
541 | + | else $Tuple2(ed, (ee - ea)) | |
542 | + | let eh = eg._1 | |
543 | + | let ei = eg._2 | |
544 | + | let ej = if (ef) | |
545 | + | then $Tuple2(ea, 0) | |
546 | + | else $Tuple2(0, ea) | |
547 | + | let ek = ej._1 | |
548 | + | let el = ej._2 | |
549 | + | let dA = dX(ek, aP)._1 | |
550 | + | let dB = dX(el, aP)._1 | |
551 | + | let em = dX(ea, aP) | |
552 | + | let en = em._1 | |
553 | + | let dY = em._2 | |
554 | + | let eo = (eh + dA) | |
555 | + | let ep = (ei + dB) | |
556 | + | let eq = bF(D(ep, bk), D(eo, bj)) | |
557 | + | let er = H(eq, b) | |
558 | + | let es = if (ef) | |
559 | + | then eh | |
560 | + | else ei | |
561 | + | let et = toBigInt(es) | |
562 | + | let eu = toBigInt(valueOrErrorMessage(assetInfo(bg), (("asset " + toBase58String(bg)) + " doesn't exist")).quantity) | |
563 | + | let ev = if ((eu > f)) | |
542 | 564 | then true | |
543 | - | else | |
544 | - | if (( | |
565 | + | else aK("initial deposit requires all coins") | |
566 | + | if ((ev == ev)) | |
545 | 567 | then { | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
568 | + | let ew = toBigInt(en) | |
569 | + | let ex = max([0, toInt(((eu * (sqrtBigInt((d + ((ew * d) / et)), 18, 18, DOWN) - d)) / d))]) | |
570 | + | let dd = if (ec) | |
549 | 571 | then nil | |
550 | - | else [IntegerEntry( | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | then $Tuple2( | |
556 | - | else $Tuple2( | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | fraction(( | |
572 | + | else [IntegerEntry(V(), er), IntegerEntry(W(height, lastBlock.timestamp), er), StringEntry(Z(toString(value(aa)), toBase58String(value(ab))), bo(ek, el, ex, er, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
573 | + | let ey = bF(D(ei, bk), D(eh, bj)) | |
574 | + | let ez = H(ey, b) | |
575 | + | let eA = { | |
576 | + | let eB = if (ef) | |
577 | + | then $Tuple2(ek, eh) | |
578 | + | else $Tuple2(el, ei) | |
579 | + | let dS = eB._1 | |
580 | + | let eC = eB._2 | |
581 | + | let eD = toInt(fraction(eu, toBigInt((dS / 2)), toBigInt(eC))) | |
582 | + | fraction((ex - eD), b, eD) | |
561 | 583 | } | |
562 | - | $Tuple5( | |
584 | + | $Tuple5(ex, dd, dY, eA, ef) | |
563 | 585 | } | |
564 | 586 | else throw("Strict value is not equal to itself.") | |
565 | 587 | } | |
566 | 588 | ||
567 | 589 | ||
568 | - | func | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
590 | + | func eE (eF,en,eb,aa,ab) = { | |
591 | + | let ec = (ab == unit) | |
592 | + | let bS = aU() | |
593 | + | let bT = parseIntValue(bS[t]) | |
594 | + | let bU = parseIntValue(bS[u]) | |
595 | + | let eG = [if ((eb == bg)) | |
574 | 596 | then true | |
575 | - | else | |
576 | - | if (( | |
597 | + | else aK("invalid lp asset")] | |
598 | + | if ((eG == eG)) | |
577 | 599 | then { | |
578 | - | let | |
600 | + | let eH = if ((eF == bh)) | |
579 | 601 | then true | |
580 | - | else if (( | |
602 | + | else if ((eF == bi)) | |
581 | 603 | then false | |
582 | - | else | |
583 | - | let | |
584 | - | then toBigInt( | |
585 | - | else toBigInt( | |
586 | - | let | |
587 | - | then | |
588 | - | else | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | then | |
593 | - | else | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | then $Tuple4( | |
603 | - | else $Tuple4(0, | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
604 | + | else aK("invalid asset") | |
605 | + | let eI = if (eH) | |
606 | + | then toBigInt(bD(aZ(bh))) | |
607 | + | else toBigInt(bD(aZ(bi))) | |
608 | + | let eJ = if (eH) | |
609 | + | then bT | |
610 | + | else bU | |
611 | + | let eK = bD(aZ(bh)) | |
612 | + | let eL = bD(aZ(bi)) | |
613 | + | let eM = if (eH) | |
614 | + | then eK | |
615 | + | else eL | |
616 | + | let eN = toBigInt(eM) | |
617 | + | let eu = toBigInt(valueOrErrorMessage(assetInfo(bg), (("asset " + toBase58String(bg)) + " doesn't exist")).quantity) | |
618 | + | let eO = toBigInt(en) | |
619 | + | let eP = max([0, toInt(((eI * (d - pow((d - ((eO * d) / eu)), 18, h, 0, 18, DOWN))) / d))]) | |
620 | + | let eQ = dX(eP, aR) | |
621 | + | let eR = eQ._1 | |
622 | + | let dY = eQ._2 | |
623 | + | let eS = if (eH) | |
624 | + | then $Tuple4(eR, 0, (eK - eP), eL) | |
625 | + | else $Tuple4(0, eR, eK, (eL - eP)) | |
626 | + | let eT = eS._1 | |
627 | + | let eU = eS._2 | |
628 | + | let eV = eS._3 | |
629 | + | let eW = eS._4 | |
630 | + | let eq = bF(D(eW, bk), D(eV, bj)) | |
631 | + | let er = H(eq, b) | |
632 | + | let dd = if (ec) | |
611 | 633 | then nil | |
612 | - | else [StringEntry( | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | fraction(( | |
634 | + | else [StringEntry(ac(toString(value(aa)), toBase58String(value(ab))), bz(eT, eU, en, er, height, lastBlock.timestamp)), IntegerEntry(V(), er), IntegerEntry(W(height, lastBlock.timestamp), er)] | |
635 | + | let ey = bF(D(eL, bk), D(eK, bj)) | |
636 | + | let ez = H(ey, b) | |
637 | + | let eA = { | |
638 | + | let eX = (toInt(fraction(eI, eO, eu)) * 2) | |
639 | + | fraction((eR - eX), b, eX) | |
618 | 640 | } | |
619 | - | $Tuple5( | |
641 | + | $Tuple5(eR, dd, dY, eA, eH) | |
620 | 642 | } | |
621 | 643 | else throw("Strict value is not equal to itself.") | |
622 | 644 | } | |
623 | 645 | ||
624 | 646 | ||
625 | - | func | |
626 | - | let | |
627 | - | if ($isInstanceOf( | |
647 | + | func eY () = { | |
648 | + | let dV = getString(T()) | |
649 | + | if ($isInstanceOf(dV, "String")) | |
628 | 650 | then { | |
629 | - | let | |
630 | - | fromBase58String( | |
651 | + | let eZ = dV | |
652 | + | fromBase58String(eZ) | |
631 | 653 | } | |
632 | - | else if ($isInstanceOf( | |
654 | + | else if ($isInstanceOf(dV, "Unit")) | |
633 | 655 | then unit | |
634 | 656 | else throw("Match error") | |
635 | 657 | } | |
636 | 658 | ||
637 | 659 | ||
638 | - | func | |
639 | - | let | |
640 | - | if ($isInstanceOf( | |
660 | + | func fa () = { | |
661 | + | let dV = getString(U()) | |
662 | + | if ($isInstanceOf(dV, "String")) | |
641 | 663 | then { | |
642 | - | let | |
643 | - | fromBase58String( | |
664 | + | let eZ = dV | |
665 | + | fromBase58String(eZ) | |
644 | 666 | } | |
645 | - | else if ($isInstanceOf( | |
667 | + | else if ($isInstanceOf(dV, "Unit")) | |
646 | 668 | then unit | |
647 | 669 | else throw("Match error") | |
648 | 670 | } | |
649 | 671 | ||
650 | 672 | ||
651 | - | func | |
652 | - | let | |
653 | - | if ($isInstanceOf( | |
673 | + | func fb (dK) = { | |
674 | + | let dV = eY() | |
675 | + | if ($isInstanceOf(dV, "ByteVector")) | |
654 | 676 | then { | |
655 | - | let | |
656 | - | ( | |
677 | + | let fc = dV | |
678 | + | (dK.callerPublicKey == fc) | |
657 | 679 | } | |
658 | - | else if ($isInstanceOf( | |
659 | - | then ( | |
680 | + | else if ($isInstanceOf(dV, "Unit")) | |
681 | + | then (dK.caller == this) | |
660 | 682 | else throw("Match error") | |
661 | 683 | } | |
662 | 684 | ||
663 | 685 | ||
664 | - | func | |
665 | - | let | |
666 | - | let | |
667 | - | if ($isInstanceOf( | |
686 | + | func fd (dK) = { | |
687 | + | let fe = throw("Permission denied") | |
688 | + | let dV = eY() | |
689 | + | if ($isInstanceOf(dV, "ByteVector")) | |
668 | 690 | then { | |
669 | - | let | |
670 | - | if (( | |
691 | + | let fc = dV | |
692 | + | if ((dK.callerPublicKey == fc)) | |
671 | 693 | then true | |
672 | - | else | |
694 | + | else fe | |
673 | 695 | } | |
674 | - | else if ($isInstanceOf( | |
675 | - | then if (( | |
696 | + | else if ($isInstanceOf(dV, "Unit")) | |
697 | + | then if ((dK.caller == this)) | |
676 | 698 | then true | |
677 | - | else | |
699 | + | else fe | |
678 | 700 | else throw("Match error") | |
679 | 701 | } | |
680 | 702 | ||
681 | 703 | ||
682 | - | @Callable( | |
683 | - | func setManager ( | |
684 | - | let | |
685 | - | if (( | |
704 | + | @Callable(dK) | |
705 | + | func setManager (ff) = { | |
706 | + | let fg = fd(dK) | |
707 | + | if ((fg == fg)) | |
686 | 708 | then { | |
687 | - | let | |
688 | - | if (( | |
689 | - | then [StringEntry( | |
709 | + | let fh = fromBase58String(ff) | |
710 | + | if ((fh == fh)) | |
711 | + | then [StringEntry(U(), ff)] | |
690 | 712 | else throw("Strict value is not equal to itself.") | |
691 | 713 | } | |
692 | 714 | else throw("Strict value is not equal to itself.") | |
693 | 715 | } | |
694 | 716 | ||
695 | 717 | ||
696 | 718 | ||
697 | - | @Callable( | |
719 | + | @Callable(dK) | |
698 | 720 | func confirmManager () = { | |
699 | - | let | |
700 | - | let | |
721 | + | let fi = fa() | |
722 | + | let fj = if (isDefined(fi)) | |
701 | 723 | then true | |
702 | 724 | else throw("No pending manager") | |
703 | - | if (( | |
725 | + | if ((fj == fj)) | |
704 | 726 | then { | |
705 | - | let | |
727 | + | let fk = if ((dK.callerPublicKey == value(fi))) | |
706 | 728 | then true | |
707 | 729 | else throw("You are not pending manager") | |
708 | - | if (( | |
709 | - | then [StringEntry( | |
730 | + | if ((fk == fk)) | |
731 | + | then [StringEntry(T(), toBase58String(value(fi))), DeleteEntry(U())] | |
710 | 732 | else throw("Strict value is not equal to itself.") | |
711 | 733 | } | |
712 | 734 | else throw("Strict value is not equal to itself.") | |
713 | 735 | } | |
714 | 736 | ||
715 | 737 | ||
716 | 738 | ||
717 | - | @Callable( | |
718 | - | func put ( | |
739 | + | @Callable(dK) | |
740 | + | func put (cy,fl) = if ((0 > cy)) | |
719 | 741 | then throw("Invalid slippageTolerance passed") | |
720 | 742 | else { | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | if (( | |
743 | + | let dQ = dN(dK, cy, true) | |
744 | + | let da = dQ._2 | |
745 | + | let cf = dQ._7 | |
746 | + | let cw = dQ._9 | |
747 | + | let db = dQ._10 | |
748 | + | let dc = dQ._11 | |
749 | + | let fm = dQ._12 | |
750 | + | let fn = dQ._13 | |
751 | + | let dO = toBigInt(value(dK.payments[0]).amount) | |
752 | + | let dP = toBigInt(value(dK.payments[1]).amount) | |
753 | + | let dr = dk(dO, dP, toBigInt(0)) | |
754 | + | if ((dr == dr)) | |
733 | 755 | then { | |
734 | - | let | |
735 | - | if (( | |
756 | + | let dT = invoke(aN, "emit", [da], nil) | |
757 | + | if ((dT == dT)) | |
736 | 758 | then { | |
737 | - | let | |
738 | - | let | |
739 | - | if ($isInstanceOf( | |
759 | + | let dU = { | |
760 | + | let dV = dT | |
761 | + | if ($isInstanceOf(dV, "Address")) | |
740 | 762 | then { | |
741 | - | let | |
742 | - | invoke( | |
763 | + | let dW = dV | |
764 | + | invoke(dW, "emit", [da], nil) | |
743 | 765 | } | |
744 | 766 | else unit | |
745 | 767 | } | |
746 | - | if (( | |
768 | + | if ((dU == dU)) | |
747 | 769 | then { | |
748 | - | let | |
749 | - | then invoke( | |
770 | + | let fo = if ((db > 0)) | |
771 | + | then invoke(bn, "put", nil, [AttachedPayment(fm, db)]) | |
750 | 772 | else nil | |
751 | - | if (( | |
773 | + | if ((fo == fo)) | |
752 | 774 | then { | |
753 | - | let | |
754 | - | then invoke( | |
775 | + | let fp = if ((dc > 0)) | |
776 | + | then invoke(bn, "put", nil, [AttachedPayment(fn, dc)]) | |
755 | 777 | else nil | |
756 | - | if (( | |
778 | + | if ((fp == fp)) | |
757 | 779 | then { | |
758 | - | let | |
780 | + | let fq = if (fl) | |
759 | 781 | then { | |
760 | - | let | |
761 | - | if (( | |
782 | + | let fr = invoke(bm, "stake", nil, [AttachedPayment(cf, da)]) | |
783 | + | if ((fr == fr)) | |
762 | 784 | then nil | |
763 | 785 | else throw("Strict value is not equal to itself.") | |
764 | 786 | } | |
765 | - | else [ScriptTransfer( | |
766 | - | let | |
767 | - | if (( | |
787 | + | else [ScriptTransfer(dK.caller, da, cf)] | |
788 | + | let fs = ds(0, 0, 0) | |
789 | + | if ((fs == fs)) | |
768 | 790 | then { | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | if (( | |
773 | - | then (( | |
791 | + | let dj = fs._2 | |
792 | + | let ft = fs._1 | |
793 | + | let fu = dw(dr, dj) | |
794 | + | if ((fu == fu)) | |
795 | + | then ((cw ++ fq) ++ ft) | |
774 | 796 | else throw("Strict value is not equal to itself.") | |
775 | 797 | } | |
776 | 798 | else throw("Strict value is not equal to itself.") | |
777 | 799 | } | |
778 | 800 | else throw("Strict value is not equal to itself.") | |
779 | 801 | } | |
780 | 802 | else throw("Strict value is not equal to itself.") | |
781 | 803 | } | |
782 | 804 | else throw("Strict value is not equal to itself.") | |
783 | 805 | } | |
784 | 806 | else throw("Strict value is not equal to itself.") | |
785 | 807 | } | |
786 | 808 | else throw("Strict value is not equal to itself.") | |
787 | 809 | } | |
788 | 810 | ||
789 | 811 | ||
790 | 812 | ||
791 | - | @Callable( | |
792 | - | func putForFree ( | |
813 | + | @Callable(dK) | |
814 | + | func putForFree (fv) = if ((0 > fv)) | |
793 | 815 | then throw("Invalid value passed") | |
794 | 816 | else { | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | if (( | |
817 | + | let dQ = dN(dK, fv, false) | |
818 | + | let cw = dQ._9 | |
819 | + | let dO = toBigInt(value(dK.payments[0]).amount) | |
820 | + | let dP = toBigInt(value(dK.payments[1]).amount) | |
821 | + | let dr = dk(dO, dP, toBigInt(0)) | |
822 | + | if ((dr == dr)) | |
801 | 823 | then { | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | if (( | |
807 | - | then ( | |
824 | + | let fw = ds(0, 0, 0) | |
825 | + | let ft = fw._1 | |
826 | + | let dj = fw._2 | |
827 | + | let fu = dw(dr, dj) | |
828 | + | if ((fu == fu)) | |
829 | + | then (cw ++ ft) | |
808 | 830 | else throw("Strict value is not equal to itself.") | |
809 | 831 | } | |
810 | 832 | else throw("Strict value is not equal to itself.") | |
811 | 833 | } | |
812 | 834 | ||
813 | 835 | ||
814 | 836 | ||
815 | - | @Callable( | |
816 | - | func putOneTkn ( | |
817 | - | let | |
818 | - | let | |
819 | - | if ($isInstanceOf( | |
820 | - | then | |
821 | - | else throw(($getType( | |
837 | + | @Callable(dK) | |
838 | + | func putOneTkn (fx,fy) = { | |
839 | + | let fz = { | |
840 | + | let aQ = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
841 | + | if ($isInstanceOf(aQ, "Boolean")) | |
842 | + | then aQ | |
843 | + | else throw(($getType(aQ) + " couldn't be cast to Boolean")) | |
822 | 844 | } | |
823 | - | let | |
845 | + | let fA = if (if (if (aS()) | |
824 | 846 | then true | |
825 | - | else ( | |
847 | + | else (bf == l)) | |
826 | 848 | then true | |
827 | - | else ( | |
849 | + | else (bf == n)) | |
828 | 850 | then true | |
829 | - | else | |
830 | - | let | |
851 | + | else fz | |
852 | + | let eG = [if (if (!(fA)) | |
831 | 853 | then true | |
832 | - | else | |
854 | + | else fb(dK)) | |
833 | 855 | then true | |
834 | - | else | |
856 | + | else aK("put operation is blocked by admin"), if ((size(dK.payments) == 1)) | |
835 | 857 | then true | |
836 | - | else | |
837 | - | if (( | |
858 | + | else aK("exactly 1 payment are expected")] | |
859 | + | if ((eG == eG)) | |
838 | 860 | then { | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | then | |
844 | - | else if (( | |
845 | - | then | |
846 | - | else | |
847 | - | if (( | |
861 | + | let fB = dK.payments[0] | |
862 | + | let eb = fB.assetId | |
863 | + | let ea = fB.amount | |
864 | + | let dr = if ((eb == bh)) | |
865 | + | then dk(toBigInt(ea), toBigInt(0), toBigInt(0)) | |
866 | + | else if ((eb == bi)) | |
867 | + | then dk(toBigInt(0), toBigInt(ea), toBigInt(0)) | |
868 | + | else aK("payment asset is not supported") | |
869 | + | if ((dr == dr)) | |
848 | 870 | then { | |
849 | - | let | |
850 | - | let | |
851 | - | let | |
852 | - | if (( | |
871 | + | let aa = dK.caller | |
872 | + | let ab = dK.transactionId | |
873 | + | let fC = dZ(ea, eb, aa, ab) | |
874 | + | if ((fC == fC)) | |
853 | 875 | then { | |
854 | - | let | |
855 | - | let | |
856 | - | let | |
857 | - | let | |
858 | - | let | |
859 | - | let | |
860 | - | then ( | |
876 | + | let ef = fC._5 | |
877 | + | let fD = fC._4 | |
878 | + | let dY = fC._3 | |
879 | + | let dd = fC._2 | |
880 | + | let fE = fC._1 | |
881 | + | let fF = if (if ((fx > 0)) | |
882 | + | then (fx > fE) | |
861 | 883 | else false) | |
862 | - | then | |
863 | - | else | |
864 | - | let | |
865 | - | if (( | |
884 | + | then aK(makeString(["amount to receive is less than ", toString(fx)], "")) | |
885 | + | else fE | |
886 | + | let dT = dR(fF) | |
887 | + | if ((dT == dT)) | |
866 | 888 | then { | |
867 | - | let | |
889 | + | let fq = if (fy) | |
868 | 890 | then { | |
869 | - | let | |
870 | - | if (( | |
891 | + | let fG = invoke(bm, "stake", nil, [AttachedPayment(bg, fF)]) | |
892 | + | if ((fG == fG)) | |
871 | 893 | then nil | |
872 | 894 | else throw("Strict value is not equal to itself.") | |
873 | 895 | } | |
874 | - | else [ScriptTransfer( | |
875 | - | let | |
876 | - | then [ScriptTransfer( | |
896 | + | else [ScriptTransfer(dK.caller, fF, bg)] | |
897 | + | let fH = if ((dY > 0)) | |
898 | + | then [ScriptTransfer(aO, dY, eb)] | |
877 | 899 | else nil | |
878 | - | let | |
900 | + | let fI = if ((this == aO)) | |
879 | 901 | then $Tuple2(0, 0) | |
880 | - | else if ( | |
881 | - | then $Tuple2(-( | |
882 | - | else $Tuple2(0, -( | |
883 | - | let | |
884 | - | let | |
885 | - | let | |
886 | - | let | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
890 | - | if (( | |
891 | - | then $Tuple2(((( | |
902 | + | else if (ef) | |
903 | + | then $Tuple2(-(dY), 0) | |
904 | + | else $Tuple2(0, -(dY)) | |
905 | + | let dt = fI._1 | |
906 | + | let du = fI._2 | |
907 | + | let fJ = ds(dt, du, 0) | |
908 | + | let ft = fJ._1 | |
909 | + | let dj = fJ._2 | |
910 | + | let dD = value(getString(ai)) | |
911 | + | let fu = dw(dr, dj) | |
912 | + | if ((fu == fu)) | |
913 | + | then $Tuple2((((dd ++ fq) ++ fH) ++ ft), fF) | |
892 | 914 | else throw("Strict value is not equal to itself.") | |
893 | 915 | } | |
894 | 916 | else throw("Strict value is not equal to itself.") | |
895 | 917 | } | |
896 | 918 | else throw("Strict value is not equal to itself.") | |
897 | 919 | } | |
898 | 920 | else throw("Strict value is not equal to itself.") | |
899 | 921 | } | |
900 | 922 | else throw("Strict value is not equal to itself.") | |
901 | 923 | } | |
902 | 924 | ||
903 | 925 | ||
904 | 926 | ||
905 | - | @Callable( | |
906 | - | func putOneTknREADONLY ( | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | $Tuple2(nil, $Tuple3( | |
927 | + | @Callable(dK) | |
928 | + | func putOneTknREADONLY (eb,ea) = { | |
929 | + | let fK = dZ(ea, aX(eb), unit, unit) | |
930 | + | let fE = fK._1 | |
931 | + | let dd = fK._2 | |
932 | + | let dY = fK._3 | |
933 | + | let fD = fK._4 | |
934 | + | let ef = fK._5 | |
935 | + | $Tuple2(nil, $Tuple3(fE, dY, fD)) | |
914 | 936 | } | |
915 | 937 | ||
916 | 938 | ||
917 | 939 | ||
918 | - | @Callable( | |
919 | - | func getOneTkn ( | |
920 | - | let | |
921 | - | let | |
922 | - | if ($isInstanceOf( | |
923 | - | then | |
924 | - | else throw(($getType( | |
940 | + | @Callable(dK) | |
941 | + | func getOneTkn (fL,fx) = { | |
942 | + | let fz = { | |
943 | + | let aQ = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
944 | + | if ($isInstanceOf(aQ, "Boolean")) | |
945 | + | then aQ | |
946 | + | else throw(($getType(aQ) + " couldn't be cast to Boolean")) | |
925 | 947 | } | |
926 | - | let | |
948 | + | let fM = if (if (aS()) | |
927 | 949 | then true | |
928 | - | else ( | |
950 | + | else (bf == n)) | |
929 | 951 | then true | |
930 | - | else | |
931 | - | let | |
952 | + | else fz | |
953 | + | let eG = [if (if (!(fM)) | |
932 | 954 | then true | |
933 | - | else | |
955 | + | else fb(dK)) | |
934 | 956 | then true | |
935 | - | else | |
957 | + | else aK("get operation is blocked by admin"), if ((size(dK.payments) == 1)) | |
936 | 958 | then true | |
937 | - | else | |
938 | - | if (( | |
959 | + | else aK("exactly 1 payment are expected")] | |
960 | + | if ((eG == eG)) | |
939 | 961 | then { | |
940 | - | let | |
941 | - | let | |
942 | - | let | |
943 | - | let | |
944 | - | let | |
945 | - | if (( | |
962 | + | let eF = aX(fL) | |
963 | + | let fB = dK.payments[0] | |
964 | + | let eb = fB.assetId | |
965 | + | let en = fB.amount | |
966 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
967 | + | if ((dr == dr)) | |
946 | 968 | then { | |
947 | - | let | |
948 | - | let | |
949 | - | let | |
950 | - | if (( | |
969 | + | let aa = dK.caller | |
970 | + | let ab = dK.transactionId | |
971 | + | let fN = eE(eF, en, eb, aa, ab) | |
972 | + | if ((fN == fN)) | |
951 | 973 | then { | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | then ( | |
974 | + | let eH = fN._5 | |
975 | + | let fD = fN._4 | |
976 | + | let dY = fN._3 | |
977 | + | let dd = fN._2 | |
978 | + | let fO = fN._1 | |
979 | + | let dS = if (if ((fx > 0)) | |
980 | + | then (fx > fO) | |
959 | 981 | else false) | |
960 | - | then | |
961 | - | else | |
962 | - | let | |
963 | - | if (( | |
982 | + | then aK(makeString(["amount to receive is less than ", toString(fx)], "")) | |
983 | + | else fO | |
984 | + | let fP = invoke(aN, "burn", [en], [AttachedPayment(eb, en)]) | |
985 | + | if ((fP == fP)) | |
964 | 986 | then { | |
965 | - | let | |
966 | - | let | |
967 | - | then [ScriptTransfer( | |
987 | + | let fQ = [ScriptTransfer(aa, dS, eF)] | |
988 | + | let fH = if ((dY > 0)) | |
989 | + | then [ScriptTransfer(aO, dY, eF)] | |
968 | 990 | else nil | |
969 | - | let | |
970 | - | let | |
991 | + | let fR = { | |
992 | + | let fS = if ((this == aO)) | |
971 | 993 | then 0 | |
972 | - | else | |
973 | - | if ( | |
974 | - | then $Tuple2(-(( | |
975 | - | else $Tuple2(0, -(( | |
994 | + | else dY | |
995 | + | if (eH) | |
996 | + | then $Tuple2(-((dS + fS)), 0) | |
997 | + | else $Tuple2(0, -((dS + fS))) | |
976 | 998 | } | |
977 | - | let | |
978 | - | let | |
979 | - | let | |
980 | - | let | |
981 | - | let | |
982 | - | let | |
983 | - | if (( | |
984 | - | then $Tuple2(((( | |
999 | + | let dt = fR._1 | |
1000 | + | let du = fR._2 | |
1001 | + | let fT = ds(dt, du, 0) | |
1002 | + | let ft = fT._1 | |
1003 | + | let dj = fT._2 | |
1004 | + | let fu = dw(dr, dj) | |
1005 | + | if ((fu == fu)) | |
1006 | + | then $Tuple2((((dd ++ fQ) ++ fH) ++ ft), dS) | |
985 | 1007 | else throw("Strict value is not equal to itself.") | |
986 | 1008 | } | |
987 | 1009 | else throw("Strict value is not equal to itself.") | |
988 | 1010 | } | |
989 | 1011 | else throw("Strict value is not equal to itself.") | |
990 | 1012 | } | |
991 | 1013 | else throw("Strict value is not equal to itself.") | |
992 | 1014 | } | |
993 | 1015 | else throw("Strict value is not equal to itself.") | |
994 | 1016 | } | |
995 | 1017 | ||
996 | 1018 | ||
997 | 1019 | ||
998 | - | @Callable( | |
999 | - | func getOneTknREADONLY ( | |
1000 | - | let | |
1001 | - | let | |
1002 | - | let | |
1003 | - | let | |
1004 | - | let | |
1005 | - | let | |
1006 | - | $Tuple2(nil, $Tuple3( | |
1020 | + | @Callable(dK) | |
1021 | + | func getOneTknREADONLY (eF,en) = { | |
1022 | + | let fU = eE(aX(eF), en, bg, unit, unit) | |
1023 | + | let fO = fU._1 | |
1024 | + | let dd = fU._2 | |
1025 | + | let dY = fU._3 | |
1026 | + | let fD = fU._4 | |
1027 | + | let eH = fU._5 | |
1028 | + | $Tuple2(nil, $Tuple3(fO, dY, fD)) | |
1007 | 1029 | } | |
1008 | 1030 | ||
1009 | 1031 | ||
1010 | 1032 | ||
1011 | - | @Callable( | |
1012 | - | func unstakeAndGetOneTkn (fL, | |
1013 | - | let | |
1014 | - | let | |
1015 | - | if ($isInstanceOf( | |
1016 | - | then | |
1017 | - | else throw(($getType( | |
1033 | + | @Callable(dK) | |
1034 | + | func unstakeAndGetOneTkn (fV,fL,fx) = { | |
1035 | + | let fz = { | |
1036 | + | let aQ = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1037 | + | if ($isInstanceOf(aQ, "Boolean")) | |
1038 | + | then aQ | |
1039 | + | else throw(($getType(aQ) + " couldn't be cast to Boolean")) | |
1018 | 1040 | } | |
1019 | - | let | |
1041 | + | let fM = if (if (aS()) | |
1020 | 1042 | then true | |
1021 | - | else ( | |
1043 | + | else (bf == n)) | |
1022 | 1044 | then true | |
1023 | - | else | |
1024 | - | let | |
1045 | + | else fz | |
1046 | + | let eG = [if (if (!(fM)) | |
1025 | 1047 | then true | |
1026 | - | else | |
1048 | + | else fb(dK)) | |
1027 | 1049 | then true | |
1028 | - | else | |
1050 | + | else aK("get operation is blocked by admin"), if ((size(dK.payments) == 0)) | |
1029 | 1051 | then true | |
1030 | - | else | |
1031 | - | if (( | |
1052 | + | else aK("no payments are expected")] | |
1053 | + | if ((eG == eG)) | |
1032 | 1054 | then { | |
1033 | - | let | |
1034 | - | let | |
1035 | - | let | |
1036 | - | let | |
1037 | - | if (( | |
1055 | + | let eF = aX(fL) | |
1056 | + | let aa = dK.caller | |
1057 | + | let ab = dK.transactionId | |
1058 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1059 | + | if ((dr == dr)) | |
1038 | 1060 | then { | |
1039 | - | let | |
1040 | - | if (( | |
1061 | + | let fW = invoke(bm, "unstake", [toBase58String(bg), fV], nil) | |
1062 | + | if ((fW == fW)) | |
1041 | 1063 | then { | |
1042 | - | let | |
1043 | - | if (( | |
1064 | + | let fX = eE(eF, fV, bg, aa, ab) | |
1065 | + | if ((fX == fX)) | |
1044 | 1066 | then { | |
1045 | - | let | |
1046 | - | let | |
1047 | - | let | |
1048 | - | let | |
1049 | - | let | |
1050 | - | let | |
1051 | - | then ( | |
1067 | + | let eH = fX._5 | |
1068 | + | let fD = fX._4 | |
1069 | + | let dY = fX._3 | |
1070 | + | let dd = fX._2 | |
1071 | + | let fO = fX._1 | |
1072 | + | let dS = if (if ((fx > 0)) | |
1073 | + | then (fx > fO) | |
1052 | 1074 | else false) | |
1053 | - | then | |
1054 | - | else | |
1055 | - | let | |
1056 | - | if (( | |
1075 | + | then aK(makeString(["amount to receive is less than ", toString(fx)], "")) | |
1076 | + | else fO | |
1077 | + | let fP = invoke(aN, "burn", [fV], [AttachedPayment(bg, fV)]) | |
1078 | + | if ((fP == fP)) | |
1057 | 1079 | then { | |
1058 | - | let | |
1059 | - | let | |
1060 | - | then [ScriptTransfer( | |
1080 | + | let fQ = [ScriptTransfer(dK.caller, dS, eF)] | |
1081 | + | let fH = if ((dY > 0)) | |
1082 | + | then [ScriptTransfer(aO, dY, eF)] | |
1061 | 1083 | else nil | |
1062 | - | let | |
1063 | - | let | |
1084 | + | let fY = { | |
1085 | + | let fS = if ((this == aO)) | |
1064 | 1086 | then 0 | |
1065 | - | else | |
1066 | - | if ( | |
1067 | - | then $Tuple2(-(( | |
1068 | - | else $Tuple2(0, -(( | |
1087 | + | else dY | |
1088 | + | if (eH) | |
1089 | + | then $Tuple2(-((dS + fS)), 0) | |
1090 | + | else $Tuple2(0, -((dS + fS))) | |
1069 | 1091 | } | |
1070 | - | let | |
1071 | - | let | |
1072 | - | let | |
1073 | - | let | |
1074 | - | let | |
1075 | - | let | |
1076 | - | if (( | |
1077 | - | then $Tuple2(((( | |
1092 | + | let dt = fY._1 | |
1093 | + | let du = fY._2 | |
1094 | + | let fZ = ds(dt, du, 0) | |
1095 | + | let ft = fZ._1 | |
1096 | + | let dj = fZ._2 | |
1097 | + | let fu = dw(dr, dj) | |
1098 | + | if ((fu == fu)) | |
1099 | + | then $Tuple2((((dd ++ fQ) ++ fH) ++ ft), dS) | |
1078 | 1100 | else throw("Strict value is not equal to itself.") | |
1079 | 1101 | } | |
1080 | 1102 | else throw("Strict value is not equal to itself.") | |
1081 | 1103 | } | |
1082 | 1104 | else throw("Strict value is not equal to itself.") | |
1083 | 1105 | } | |
1084 | 1106 | else throw("Strict value is not equal to itself.") | |
1085 | 1107 | } | |
1086 | 1108 | else throw("Strict value is not equal to itself.") | |
1087 | 1109 | } | |
1088 | 1110 | else throw("Strict value is not equal to itself.") | |
1089 | 1111 | } | |
1090 | 1112 | ||
1091 | 1113 | ||
1092 | 1114 | ||
1093 | - | @Callable( | |
1115 | + | @Callable(dK) | |
1094 | 1116 | func get () = { | |
1095 | - | let | |
1096 | - | let | |
1097 | - | let | |
1098 | - | let | |
1099 | - | let | |
1100 | - | let | |
1101 | - | let | |
1102 | - | if (( | |
1117 | + | let cO = dJ(dK) | |
1118 | + | let ga = cO._1 | |
1119 | + | let cv = cO._2 | |
1120 | + | let dM = cO._3 | |
1121 | + | let cd = cO._4 | |
1122 | + | let cw = cO._5 | |
1123 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1124 | + | if ((dr == dr)) | |
1103 | 1125 | then { | |
1104 | - | let | |
1105 | - | if (( | |
1126 | + | let gb = invoke(aN, "burn", [dM], [AttachedPayment(cd, dM)]) | |
1127 | + | if ((gb == gb)) | |
1106 | 1128 | then { | |
1107 | - | let | |
1108 | - | let | |
1109 | - | let | |
1110 | - | let | |
1111 | - | if (( | |
1112 | - | then ( | |
1129 | + | let gc = ds(-(ga), -(cv), 0) | |
1130 | + | let ft = gc._1 | |
1131 | + | let dj = gc._2 | |
1132 | + | let fu = dw(dr, dj) | |
1133 | + | if ((fu == fu)) | |
1134 | + | then (cw ++ ft) | |
1113 | 1135 | else throw("Strict value is not equal to itself.") | |
1114 | 1136 | } | |
1115 | 1137 | else throw("Strict value is not equal to itself.") | |
1116 | 1138 | } | |
1117 | 1139 | else throw("Strict value is not equal to itself.") | |
1118 | 1140 | } | |
1119 | 1141 | ||
1120 | 1142 | ||
1121 | 1143 | ||
1122 | - | @Callable( | |
1123 | - | func getNoLess ( | |
1124 | - | let | |
1125 | - | let | |
1126 | - | let | |
1127 | - | let | |
1128 | - | let | |
1129 | - | let | |
1130 | - | if (( | |
1131 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
1132 | - | else if (( | |
1133 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
1144 | + | @Callable(dK) | |
1145 | + | func getNoLess (gd,ge) = { | |
1146 | + | let cO = dJ(dK) | |
1147 | + | let cu = cO._1 | |
1148 | + | let cv = cO._2 | |
1149 | + | let dM = cO._3 | |
1150 | + | let cd = cO._4 | |
1151 | + | let cw = cO._5 | |
1152 | + | if ((gd > cu)) | |
1153 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cu)) + " < ") + toString(gd))) | |
1154 | + | else if ((ge > cv)) | |
1155 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cv)) + " < ") + toString(ge))) | |
1134 | 1156 | else { | |
1135 | - | let | |
1136 | - | if (( | |
1157 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1158 | + | if ((dr == dr)) | |
1137 | 1159 | then { | |
1138 | - | let | |
1139 | - | if (( | |
1160 | + | let gb = invoke(aN, "burn", [dM], [AttachedPayment(cd, dM)]) | |
1161 | + | if ((gb == gb)) | |
1140 | 1162 | then { | |
1141 | - | let | |
1142 | - | let | |
1143 | - | let | |
1144 | - | let | |
1145 | - | if (( | |
1146 | - | then ( | |
1163 | + | let gf = ds(-(cu), -(cv), 0) | |
1164 | + | let ft = gf._1 | |
1165 | + | let dj = gf._2 | |
1166 | + | let fu = dw(dr, dj) | |
1167 | + | if ((fu == fu)) | |
1168 | + | then (cw ++ ft) | |
1147 | 1169 | else throw("Strict value is not equal to itself.") | |
1148 | 1170 | } | |
1149 | 1171 | else throw("Strict value is not equal to itself.") | |
1150 | 1172 | } | |
1151 | 1173 | else throw("Strict value is not equal to itself.") | |
1152 | 1174 | } | |
1153 | 1175 | } | |
1154 | 1176 | ||
1155 | 1177 | ||
1156 | 1178 | ||
1157 | - | @Callable( | |
1158 | - | func unstakeAndGet ( | |
1159 | - | let | |
1179 | + | @Callable(dK) | |
1180 | + | func unstakeAndGet (dS) = { | |
1181 | + | let gg = if ((size(dK.payments) != 0)) | |
1160 | 1182 | then throw("No payments are expected") | |
1161 | 1183 | else true | |
1162 | - | if (( | |
1184 | + | if ((gg == gg)) | |
1163 | 1185 | then { | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | if (( | |
1186 | + | let bS = aU() | |
1187 | + | let cf = fromBase58String(bS[q]) | |
1188 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1189 | + | if ((dr == dr)) | |
1168 | 1190 | then { | |
1169 | - | let | |
1170 | - | if (( | |
1191 | + | let fW = invoke(bm, "unstake", [toBase58String(cf), dS], nil) | |
1192 | + | if ((fW == fW)) | |
1171 | 1193 | then { | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | let | |
1194 | + | let cO = cb(toBase58String(dK.transactionId), toBase58String(cf), dS, dK.caller) | |
1195 | + | let cu = cO._1 | |
1196 | + | let cv = cO._2 | |
1197 | + | let ci = parseIntValue(cO._9) | |
1198 | + | let cw = cO._10 | |
1199 | + | let gh = if (if (aS()) | |
1178 | 1200 | then true | |
1179 | - | else ( | |
1180 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
1201 | + | else (ci == n)) | |
1202 | + | then throw(("Get operation is blocked by admin. Status = " + toString(ci))) | |
1181 | 1203 | else true | |
1182 | - | if (( | |
1204 | + | if ((gh == gh)) | |
1183 | 1205 | then { | |
1184 | - | let | |
1185 | - | if (( | |
1206 | + | let gb = invoke(aN, "burn", [dS], [AttachedPayment(cf, dS)]) | |
1207 | + | if ((gb == gb)) | |
1186 | 1208 | then { | |
1187 | - | let | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | if (( | |
1192 | - | then ( | |
1209 | + | let gi = ds(-(cu), -(cv), 0) | |
1210 | + | let ft = gi._1 | |
1211 | + | let dj = gi._2 | |
1212 | + | let fu = dw(dr, dj) | |
1213 | + | if ((fu == fu)) | |
1214 | + | then (cw ++ ft) | |
1193 | 1215 | else throw("Strict value is not equal to itself.") | |
1194 | 1216 | } | |
1195 | 1217 | else throw("Strict value is not equal to itself.") | |
1196 | 1218 | } | |
1197 | 1219 | else throw("Strict value is not equal to itself.") | |
1198 | 1220 | } | |
1199 | 1221 | else throw("Strict value is not equal to itself.") | |
1200 | 1222 | } | |
1201 | 1223 | else throw("Strict value is not equal to itself.") | |
1202 | 1224 | } | |
1203 | 1225 | else throw("Strict value is not equal to itself.") | |
1204 | 1226 | } | |
1205 | 1227 | ||
1206 | 1228 | ||
1207 | 1229 | ||
1208 | - | @Callable( | |
1209 | - | func unstakeAndGetNoLess ( | |
1210 | - | let | |
1230 | + | @Callable(dK) | |
1231 | + | func unstakeAndGetNoLess (fV,gj,ge) = { | |
1232 | + | let fM = if (aS()) | |
1211 | 1233 | then true | |
1212 | - | else ( | |
1213 | - | let | |
1234 | + | else (bf == n) | |
1235 | + | let eG = [if (!(fM)) | |
1214 | 1236 | then true | |
1215 | - | else throw("get operation is blocked by admin"), if ((size( | |
1237 | + | else throw("get operation is blocked by admin"), if ((size(dK.payments) == 0)) | |
1216 | 1238 | then true | |
1217 | 1239 | else throw("no payments are expected")] | |
1218 | - | if (( | |
1240 | + | if ((eG == eG)) | |
1219 | 1241 | then { | |
1220 | - | let | |
1221 | - | if (( | |
1242 | + | let dr = dk(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1243 | + | if ((dr == dr)) | |
1222 | 1244 | then { | |
1223 | - | let | |
1224 | - | if (( | |
1245 | + | let fW = invoke(bm, "unstake", [toBase58String(bg), fV], nil) | |
1246 | + | if ((fW == fW)) | |
1225 | 1247 | then { | |
1226 | - | let | |
1227 | - | let | |
1228 | - | let | |
1229 | - | let | |
1230 | - | let | |
1248 | + | let cO = cb(toBase58String(dK.transactionId), toBase58String(bg), fV, dK.caller) | |
1249 | + | let cu = cO._1 | |
1250 | + | let cv = cO._2 | |
1251 | + | let cw = cO._10 | |
1252 | + | let gk = [if ((cu >= gj)) | |
1231 | 1253 | then true | |
1232 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1254 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(gj)], "")), if ((cv >= ge)) | |
1233 | 1255 | then true | |
1234 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1235 | - | if (( | |
1256 | + | else throw(makeString(["price asset amount to receive is less than ", toString(ge)], ""))] | |
1257 | + | if ((gk == gk)) | |
1236 | 1258 | then { | |
1237 | - | let | |
1238 | - | if (( | |
1259 | + | let gb = invoke(aN, "burn", [fV], [AttachedPayment(bg, fV)]) | |
1260 | + | if ((gb == gb)) | |
1239 | 1261 | then { | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | if (( | |
1245 | - | then ( | |
1262 | + | let gl = ds(-(cu), -(cv), 0) | |
1263 | + | let ft = gl._1 | |
1264 | + | let dj = gl._2 | |
1265 | + | let fu = dw(dr, dj) | |
1266 | + | if ((fu == fu)) | |
1267 | + | then (cw ++ ft) | |
1246 | 1268 | else throw("Strict value is not equal to itself.") | |
1247 | 1269 | } | |
1248 | 1270 | else throw("Strict value is not equal to itself.") | |
1249 | 1271 | } | |
1250 | 1272 | else throw("Strict value is not equal to itself.") | |
1251 | 1273 | } | |
1252 | 1274 | else throw("Strict value is not equal to itself.") | |
1253 | 1275 | } | |
1254 | 1276 | else throw("Strict value is not equal to itself.") | |
1255 | 1277 | } | |
1256 | 1278 | else throw("Strict value is not equal to itself.") | |
1257 | 1279 | } | |
1258 | 1280 | ||
1259 | 1281 | ||
1260 | 1282 | ||
1261 | - | @Callable( | |
1262 | - | func activate ( | |
1283 | + | @Callable(dK) | |
1284 | + | func activate (gm,gn) = if ((toString(dK.caller) != toString(aN))) | |
1263 | 1285 | then throw("permissions denied") | |
1264 | - | else $Tuple2([StringEntry( | |
1286 | + | else $Tuple2([StringEntry(ad(), gm), StringEntry(ae(), gn)], "success") | |
1265 | 1287 | ||
1266 | 1288 | ||
1267 | 1289 | ||
1268 | - | @Callable( | |
1290 | + | @Callable(dK) | |
1269 | 1291 | func refreshKLp () = { | |
1270 | - | let | |
1271 | - | let | |
1292 | + | let go = valueOrElse(getInteger(aj), 0) | |
1293 | + | let gp = if (((height - go) >= am)) | |
1272 | 1294 | then unit | |
1273 | - | else | |
1274 | - | if (( | |
1295 | + | else aK(makeString([toString(am), " blocks have not passed since the previous call"], "")) | |
1296 | + | if ((gp == gp)) | |
1275 | 1297 | then { | |
1276 | - | let | |
1277 | - | let | |
1278 | - | let | |
1279 | - | let | |
1280 | - | let | |
1281 | - | then | |
1282 | - | else | |
1283 | - | $Tuple2( | |
1298 | + | let dD = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ai), "0")), aM("invalid kLp")) | |
1299 | + | let gq = ds(0, 0, 0) | |
1300 | + | let gr = gq._1 | |
1301 | + | let dj = gq._2 | |
1302 | + | let dv = if ((dD != dj)) | |
1303 | + | then gr | |
1304 | + | else aK("nothing to refresh") | |
1305 | + | $Tuple2(dv, toString(dj)) | |
1284 | 1306 | } | |
1285 | 1307 | else throw("Strict value is not equal to itself.") | |
1286 | 1308 | } | |
1287 | 1309 | ||
1288 | 1310 | ||
1289 | 1311 | ||
1290 | - | @Callable( | |
1291 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
1312 | + | @Callable(dK) | |
1313 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aU()) | |
1292 | 1314 | ||
1293 | 1315 | ||
1294 | 1316 | ||
1295 | - | @Callable( | |
1296 | - | func getAccBalanceWrapperREADONLY ( | |
1317 | + | @Callable(dK) | |
1318 | + | func getAccBalanceWrapperREADONLY (bE) = $Tuple2(nil, bD(bE)) | |
1297 | 1319 | ||
1298 | 1320 | ||
1299 | 1321 | ||
1300 | - | @Callable( | |
1301 | - | func calcPricesWrapperREADONLY ( | |
1302 | - | let | |
1303 | - | $Tuple2(nil, [toString( | |
1322 | + | @Callable(dK) | |
1323 | + | func calcPricesWrapperREADONLY (bM,bN,bR) = { | |
1324 | + | let ca = bQ(bM, bN, bR) | |
1325 | + | $Tuple2(nil, [toString(ca[0]), toString(ca[1]), toString(ca[2])]) | |
1304 | 1326 | } | |
1305 | 1327 | ||
1306 | 1328 | ||
1307 | 1329 | ||
1308 | - | @Callable( | |
1309 | - | func toX18WrapperREADONLY ( | |
1330 | + | @Callable(dK) | |
1331 | + | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1310 | 1332 | ||
1311 | 1333 | ||
1312 | 1334 | ||
1313 | - | @Callable( | |
1314 | - | func fromX18WrapperREADONLY ( | |
1335 | + | @Callable(dK) | |
1336 | + | func fromX18WrapperREADONLY (I,J) = $Tuple2(nil, H(parseBigIntValue(I), J)) | |
1315 | 1337 | ||
1316 | 1338 | ||
1317 | 1339 | ||
1318 | - | @Callable( | |
1319 | - | func calcPriceBigIntWrapperREADONLY ( | |
1340 | + | @Callable(dK) | |
1341 | + | func calcPriceBigIntWrapperREADONLY (bG,bH) = $Tuple2(nil, toString(bF(parseBigIntValue(bG), parseBigIntValue(bH)))) | |
1320 | 1342 | ||
1321 | 1343 | ||
1322 | 1344 | ||
1323 | - | @Callable( | |
1324 | - | func estimatePutOperationWrapperREADONLY ( | |
1345 | + | @Callable(dK) | |
1346 | + | func estimatePutOperationWrapperREADONLY (cc,cy,cz,cA,cB,cC,aa,cD,cE) = $Tuple2(nil, cx(cc, cy, cz, cA, cB, cC, aa, cD, cE)) | |
1325 | 1347 | ||
1326 | 1348 | ||
1327 | 1349 | ||
1328 | - | @Callable( | |
1329 | - | func estimateGetOperationWrapperREADONLY ( | |
1330 | - | let | |
1331 | - | $Tuple2(nil, $Tuple10( | |
1350 | + | @Callable(dK) | |
1351 | + | func estimateGetOperationWrapperREADONLY (cc,cd,ce,aa) = { | |
1352 | + | let cO = cb(cc, cd, ce, addressFromStringValue(aa)) | |
1353 | + | $Tuple2(nil, $Tuple10(cO._1, cO._2, cO._3, cO._4, cO._5, cO._6, cO._7, toString(cO._8), cO._9, cO._10)) | |
1332 | 1354 | } | |
1333 | 1355 | ||
1334 | 1356 | ||
1335 | 1357 | ||
1336 | - | @Callable( | |
1358 | + | @Callable(dK) | |
1337 | 1359 | func statsREADONLY () = { | |
1338 | - | let | |
1339 | - | let | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | let | |
1345 | - | let | |
1346 | - | let | |
1347 | - | let | |
1348 | - | let | |
1349 | - | let | |
1350 | - | then [ | |
1351 | - | else | |
1352 | - | let | |
1353 | - | let | |
1354 | - | let | |
1355 | - | let | |
1356 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1360 | + | let bS = aU() | |
1361 | + | let cf = fromBase58String(bS[q]) | |
1362 | + | let gs = bS[r] | |
1363 | + | let gt = bS[s] | |
1364 | + | let cH = bS[v] | |
1365 | + | let cI = bS[w] | |
1366 | + | let bT = parseIntValue(bS[t]) | |
1367 | + | let bU = parseIntValue(bS[u]) | |
1368 | + | let gu = valueOrErrorMessage(assetInfo(cf), (("Asset " + toBase58String(cf)) + " doesn't exist")).quantity | |
1369 | + | let gv = bD(gs) | |
1370 | + | let gw = bD(gt) | |
1371 | + | let gx = if ((gu == 0)) | |
1372 | + | then [e, e, e] | |
1373 | + | else bQ(gv, gw, gu) | |
1374 | + | let cp = 0 | |
1375 | + | let gy = H(gx[1], b) | |
1376 | + | let gz = H(gx[2], b) | |
1377 | + | let gA = value(getInteger(aN, ax(toString(this)))) | |
1378 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gv), toString(gw), toString(gu), toString(cp), toString(gy), toString(gz), toString(gA)], j)) | |
1357 | 1379 | } | |
1358 | 1380 | ||
1359 | 1381 | ||
1360 | 1382 | ||
1361 | - | @Callable( | |
1362 | - | func evaluatePutByAmountAssetREADONLY ( | |
1363 | - | let | |
1364 | - | let | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | let | |
1369 | - | let | |
1370 | - | let | |
1371 | - | let | |
1372 | - | let | |
1373 | - | let | |
1374 | - | let | |
1375 | - | let | |
1376 | - | let | |
1377 | - | let | |
1378 | - | then | |
1379 | - | else | |
1380 | - | let | |
1381 | - | let | |
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | let | |
1386 | - | let | |
1387 | - | let | |
1388 | - | let | |
1389 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1383 | + | @Callable(dK) | |
1384 | + | func evaluatePutByAmountAssetREADONLY (cz) = { | |
1385 | + | let bS = aU() | |
1386 | + | let cf = fromBase58String(bS[q]) | |
1387 | + | let cF = bS[r] | |
1388 | + | let cg = fromBase58String(cF) | |
1389 | + | let cG = bS[s] | |
1390 | + | let ch = fromBase58String(cG) | |
1391 | + | let bT = parseIntValue(bS[t]) | |
1392 | + | let bU = parseIntValue(bS[u]) | |
1393 | + | let ci = bS[p] | |
1394 | + | let gu = valueOrErrorMessage(assetInfo(cf), (("Asset " + toBase58String(cf)) + " doesn't exist")).quantity | |
1395 | + | let gv = bD(cF) | |
1396 | + | let gw = bD(cG) | |
1397 | + | let bO = D(gv, bT) | |
1398 | + | let bP = D(gw, bU) | |
1399 | + | let co = if ((gu == 0)) | |
1400 | + | then e | |
1401 | + | else bF(bP, bO) | |
1402 | + | let cL = D(cz, bT) | |
1403 | + | let cM = fraction(cL, co, d) | |
1404 | + | let cB = H(cM, bU) | |
1405 | + | let dQ = cx("", 500000, cz, cg, cB, ch, "", true, false) | |
1406 | + | let cW = dQ._1 | |
1407 | + | let gB = dQ._3 | |
1408 | + | let ck = dQ._4 | |
1409 | + | let cm = dQ._5 | |
1410 | + | let cj = dQ._6 | |
1411 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cW), toString(H(co, b)), toString(ck), toString(cm), toString(cj), ci, toString(cz), toString(cB)], j)) | |
1390 | 1412 | } | |
1391 | 1413 | ||
1392 | 1414 | ||
1393 | 1415 | ||
1394 | - | @Callable( | |
1395 | - | func evaluatePutByPriceAssetREADONLY ( | |
1396 | - | let | |
1397 | - | let | |
1398 | - | let | |
1399 | - | let | |
1400 | - | let | |
1401 | - | let | |
1402 | - | let | |
1403 | - | let | |
1404 | - | let | |
1405 | - | let | |
1406 | - | let | |
1407 | - | let | |
1408 | - | let | |
1409 | - | let | |
1410 | - | let | |
1411 | - | then | |
1412 | - | else | |
1413 | - | let | |
1414 | - | let | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let | |
1418 | - | let | |
1419 | - | let | |
1420 | - | let | |
1421 | - | let | |
1422 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1416 | + | @Callable(dK) | |
1417 | + | func evaluatePutByPriceAssetREADONLY (cB) = { | |
1418 | + | let bS = aU() | |
1419 | + | let cf = fromBase58String(bS[q]) | |
1420 | + | let cF = bS[r] | |
1421 | + | let cg = fromBase58String(cF) | |
1422 | + | let cG = bS[s] | |
1423 | + | let ch = fromBase58String(cG) | |
1424 | + | let bT = parseIntValue(bS[t]) | |
1425 | + | let bU = parseIntValue(bS[u]) | |
1426 | + | let ci = bS[p] | |
1427 | + | let gu = valueOrErrorMessage(assetInfo(cf), (("Asset " + toBase58String(cf)) + " doesn't exist")).quantity | |
1428 | + | let gC = bD(cF) | |
1429 | + | let gD = bD(cG) | |
1430 | + | let gE = D(gC, bT) | |
1431 | + | let gF = D(gD, bU) | |
1432 | + | let co = if ((gu == 0)) | |
1433 | + | then e | |
1434 | + | else bF(gF, gE) | |
1435 | + | let cM = D(cB, bU) | |
1436 | + | let cL = fraction(cM, d, co) | |
1437 | + | let cz = H(cL, bT) | |
1438 | + | let dQ = cx("", 500000, cz, cg, cB, ch, "", true, false) | |
1439 | + | let cW = dQ._1 | |
1440 | + | let gB = dQ._3 | |
1441 | + | let ck = dQ._4 | |
1442 | + | let cm = dQ._5 | |
1443 | + | let cj = dQ._6 | |
1444 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cW), toString(H(co, b)), toString(ck), toString(cm), toString(cj), ci, toString(cz), toString(cB)], j)) | |
1423 | 1445 | } | |
1424 | 1446 | ||
1425 | 1447 | ||
1426 | 1448 | ||
1427 | - | @Callable( | |
1428 | - | func evaluateGetREADONLY ( | |
1429 | - | let | |
1430 | - | let | |
1431 | - | let | |
1432 | - | let | |
1433 | - | let | |
1434 | - | let | |
1435 | - | let | |
1436 | - | let | |
1437 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1449 | + | @Callable(dK) | |
1450 | + | func evaluateGetREADONLY (gG,gH) = { | |
1451 | + | let cO = cb("", gG, gH, this) | |
1452 | + | let cu = cO._1 | |
1453 | + | let cv = cO._2 | |
1454 | + | let ck = cO._5 | |
1455 | + | let cm = cO._6 | |
1456 | + | let cj = cO._7 | |
1457 | + | let cp = cO._8 | |
1458 | + | let ci = parseIntValue(cO._9) | |
1459 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cu), toString(cv), toString(ck), toString(cm), toString(cj), toString(cp), toString(ci)], j)) | |
1438 | 1460 | } | |
1439 | 1461 | ||
1440 | 1462 | ||
1441 | - | @Verifier( | |
1442 | - | func | |
1443 | - | let | |
1444 | - | let | |
1445 | - | if ($isInstanceOf( | |
1463 | + | @Verifier(gI) | |
1464 | + | func gJ () = { | |
1465 | + | let gK = { | |
1466 | + | let dV = eY() | |
1467 | + | if ($isInstanceOf(dV, "ByteVector")) | |
1446 | 1468 | then { | |
1447 | - | let | |
1448 | - | | |
1469 | + | let fc = dV | |
1470 | + | fc | |
1449 | 1471 | } | |
1450 | - | else if ($isInstanceOf( | |
1451 | - | then | |
1472 | + | else if ($isInstanceOf(dV, "Unit")) | |
1473 | + | then gI.senderPublicKey | |
1452 | 1474 | else throw("Match error") | |
1453 | 1475 | } | |
1454 | - | let | |
1455 | - | if ($isInstanceOf( | |
1476 | + | let dV = gI | |
1477 | + | if ($isInstanceOf(dV, "Order")) | |
1456 | 1478 | then { | |
1457 | - | let | |
1458 | - | let | |
1459 | - | let | |
1460 | - | let | |
1461 | - | let | |
1462 | - | let | |
1463 | - | let | |
1464 | - | if (if (if ( | |
1465 | - | then | |
1479 | + | let dz = dV | |
1480 | + | let gL = aT() | |
1481 | + | let gM = dy(dz) | |
1482 | + | let aC = gM._1 | |
1483 | + | let aD = gM._2 | |
1484 | + | let aE = sigVerify(dz.bodyBytes, dz.proofs[0], dz.senderPublicKey) | |
1485 | + | let aF = sigVerify(dz.bodyBytes, dz.proofs[1], gL) | |
1486 | + | if (if (if (aC) | |
1487 | + | then aE | |
1466 | 1488 | else false) | |
1467 | - | then | |
1489 | + | then aF | |
1468 | 1490 | else false) | |
1469 | 1491 | then true | |
1470 | - | else | |
1492 | + | else aB(aC, aD, aE, aF) | |
1471 | 1493 | } | |
1472 | - | else if ($isInstanceOf( | |
1494 | + | else if ($isInstanceOf(dV, "SetScriptTransaction")) | |
1473 | 1495 | then { | |
1474 | - | let | |
1475 | - | let | |
1476 | - | let | |
1477 | - | let | |
1478 | - | if (if (( | |
1479 | - | then ( | |
1496 | + | let eZ = dV | |
1497 | + | let gN = blake2b256(value(eZ.script)) | |
1498 | + | let gO = fromBase64String(value(getString(aN, az()))) | |
1499 | + | let gP = scriptHash(this) | |
1500 | + | if (if ((gO == gN)) | |
1501 | + | then (gP != gN) | |
1480 | 1502 | else false) | |
1481 | 1503 | then true | |
1482 | - | else sigVerify( | |
1504 | + | else sigVerify(gI.bodyBytes, gI.proofs[0], gK) | |
1483 | 1505 | } | |
1484 | - | else sigVerify( | |
1506 | + | else sigVerify(gI.bodyBytes, gI.proofs[0], gK) | |
1485 | 1507 | } | |
1486 | 1508 |
github/deemru/w8io/169f3d6 750.46 ms ◑