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