tx · FQcKGnKCWEoDER6GCXaZjUchpyqSwfjdQgibexChkgaN 3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh: -0.04000000 Waves 2022.08.24 13:01 [2198414] smart account 3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh > SELF 0.00000000 Waves
{ "type": 13, "id": "FQcKGnKCWEoDER6GCXaZjUchpyqSwfjdQgibexChkgaN", "fee": 4000000, "feeAssetId": null, "timestamp": 1661335296964, "version": 1, "sender": "3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh", "senderPublicKey": "HiTi1JT7GQRqLNxg4yZhD1mV42y1Mv2AYvRx92JQRbwX", "proofs": [ "2RWmrGCvReXxXcTo2d7CyYAfrZj4EX7PiNjK5h4bCH7MXTuEWmHMNLQkYvnfyJB1tzQ8xZAw3SAk2o5nAhp18yS7" ], "script": "base64:BgIvCAISBAoCAQQSBQoDCAEBEgUKAwgBARIDCgEIEgQKAggBEgUKAwgBCBIFCgMIAQhqAAZFVUxFUjgA1onPgQEABU1VTFQ2AMCEPQAGTVVMVFg2CQC2AgEAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDgJALYCAQCAwtcvAAdNVUxUWDEwCQC2AgEAgMivoCUABk1VTFQxMgCAoJSljR0AB01VTFRYMTYJALYCAQCAgIT+pt7hEQAGTVVMVDE4CQC2AgEAgICQu7rWrfANAANTRVACAl9fABFERUZBVUxUU1dBUEZFRU4yVwCIJwARREVGQVVMVFNXQVBGRUVXMk4AoJwBAAtCUlBST1RFQ1RFRACgjQYAB1dBVkVTSUQJANkEAQIFV0FWRVMBEmtleU5ldXRyaW5vQXNzZXRJZAACEW5ldXRyaW5vX2Fzc2V0X2lkAQ5rZXlOc2J0QXNzZXRJZAACDWJvbmRfYXNzZXRfaWQBDmtleVN1cmZBc3NldElkAAINc3VyZl9hc3NldF9pZAEQa2V5QmFsYW5jZUxvY2tlZAACDWJhbGFuY2VfbG9ja18BFWtleVdhdmVzTG9ja2VkQmFsYW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UMb3V0TmV0QW1vdW50CQDMCAIJAKQDAQUKb3V0U3VyZkFtdAkAzAgCCQCkAwEFDG91dEZlZUFtb3VudAkAzAgCCQCkAwEFBXByaWNlCQDMCAIJAKQDAQUOYmxja3MyTG10UmVzZXQJAMwIAgkApAMBBQ1saW1pdE1heFdhdmVzCQDMCAIJAKQDAQUMbGltaXRNYXhVc2RuCQDMCAIJAKQDAQUPaW5BbXRUb1N1cmZQYXJ0BQNuaWwFA1NFUABrA/Ah", "chainId": 84, "height": 2198414, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8g2WnbZT4qL8h1oL7rvXrsJ7pgHgRSFUzQnf5KZZ8SiQ Next: 62SckJcH7hagXSmBJLcjz7ucac7xwYwkadsKCMPmzsiB Diff:
Old | New | Differences | |
---|---|---|---|
65 | 65 | func z () = "%s%s__config__swapBParam" | |
66 | 66 | ||
67 | 67 | ||
68 | - | func A () = "%s__ | |
68 | + | func A () = "%s%s__config__usdnSwapAParam" | |
69 | 69 | ||
70 | 70 | ||
71 | - | func B () = "%s__ | |
71 | + | func B () = "%s%s__config__usdnSwapBParam" | |
72 | 72 | ||
73 | 73 | ||
74 | - | func C () = " | |
74 | + | func C () = "%s__nsbtLockContract" | |
75 | 75 | ||
76 | 76 | ||
77 | - | func D () = " | |
77 | + | func D () = "%s__mathContract" | |
78 | 78 | ||
79 | 79 | ||
80 | - | func E () = " | |
80 | + | func E () = "balance_waves_lock_interval" | |
81 | 81 | ||
82 | 82 | ||
83 | - | func F ( | |
83 | + | func F () = "balance_neutrino_lock_interval" | |
84 | 84 | ||
85 | 85 | ||
86 | - | func | |
86 | + | func G () = "price" | |
87 | 87 | ||
88 | 88 | ||
89 | - | func | |
89 | + | func H (I) = makeString(["%s%s%s", "paramByUser", I, "start"], j) | |
90 | 90 | ||
91 | 91 | ||
92 | - | func J () = " | |
92 | + | func J () = "%s__halfLife" | |
93 | 93 | ||
94 | 94 | ||
95 | - | func K () = " | |
95 | + | func K () = "%s__minLockAmount" | |
96 | 96 | ||
97 | 97 | ||
98 | - | func L ( | |
98 | + | func L () = "min_waves_nsbt_buy" | |
99 | 99 | ||
100 | 100 | ||
101 | - | func | |
101 | + | func M () = "min_nsbt_sell" | |
102 | 102 | ||
103 | 103 | ||
104 | - | func | |
104 | + | func N (O,P) = valueOrErrorMessage(getString(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], "")) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func Q ( | |
107 | + | func Q (O,P) = valueOrErrorMessage(getInteger(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], "")) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func | |
110 | + | func R (O,P) = valueOrErrorMessage(getBoolean(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], "")) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func U (V) = { | |
114 | - | let W = V | |
115 | - | if ($isInstanceOf(W, "List[Any]")) | |
113 | + | func S (T,U) = fraction(T, d, U) | |
114 | + | ||
115 | + | ||
116 | + | func V (T,U) = fraction(T, U, d) | |
117 | + | ||
118 | + | ||
119 | + | func W (X) = { | |
120 | + | let Y = X | |
121 | + | if ($isInstanceOf(Y, "List[Any]")) | |
116 | 122 | then { | |
117 | - | let | |
118 | - | | |
123 | + | let Z = Y | |
124 | + | Z | |
119 | 125 | } | |
120 | 126 | else throw("fail to cast into List[Any]") | |
121 | 127 | } | |
122 | 128 | ||
123 | 129 | ||
124 | - | func | |
125 | - | let | |
126 | - | if ($isInstanceOf( | |
130 | + | func aa (X) = { | |
131 | + | let Y = X | |
132 | + | if ($isInstanceOf(Y, "Int")) | |
127 | 133 | then { | |
128 | - | let | |
129 | - | | |
134 | + | let ab = Y | |
135 | + | ab | |
130 | 136 | } | |
131 | 137 | else throw("fail to cast into Int") | |
132 | 138 | } | |
133 | 139 | ||
134 | 140 | ||
135 | - | func | |
136 | - | let | |
137 | - | if ($isInstanceOf( | |
141 | + | func ac (X) = { | |
142 | + | let Y = X | |
143 | + | if ($isInstanceOf(Y, "String")) | |
138 | 144 | then { | |
139 | - | let | |
140 | - | | |
145 | + | let ad = Y | |
146 | + | ad | |
141 | 147 | } | |
142 | 148 | else throw("fail to cast into String") | |
143 | 149 | } | |
144 | 150 | ||
145 | 151 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ($isInstanceOf( | |
152 | + | func ae (X) = { | |
153 | + | let Y = X | |
154 | + | if ($isInstanceOf(Y, "(Int, Int)")) | |
149 | 155 | then { | |
150 | - | let | |
151 | - | | |
156 | + | let af = Y | |
157 | + | af | |
152 | 158 | } | |
153 | 159 | else throw("fail to cast into Tuple2 ints") | |
154 | 160 | } | |
155 | 161 | ||
156 | 162 | ||
157 | - | func | |
158 | - | let | |
159 | - | if ($isInstanceOf( | |
163 | + | func ag (X) = { | |
164 | + | let Y = X | |
165 | + | if ($isInstanceOf(Y, "(Int, Int, Int, Int, Int, Int, Int)")) | |
160 | 166 | then { | |
161 | - | let | |
162 | - | | |
167 | + | let ah = Y | |
168 | + | ah | |
163 | 169 | } | |
164 | 170 | else throw("fail to cast into SwapParamsSTRUCT") | |
165 | 171 | } | |
166 | 172 | ||
167 | 173 | ||
168 | - | func | |
169 | - | let | |
170 | - | if (if ($isInstanceOf( | |
174 | + | func ai (X) = { | |
175 | + | let Y = X | |
176 | + | if (if ($isInstanceOf(Y, "(Int, Unit, Int, Int, Int, Int, Int)")) | |
171 | 177 | then true | |
172 | - | else $isInstanceOf( | |
178 | + | else $isInstanceOf(Y, "(Int, ByteVector, Int, Int, Int, Int, Int)")) | |
173 | 179 | then { | |
174 | - | let | |
175 | - | | |
180 | + | let ah = Y | |
181 | + | ah | |
176 | 182 | } | |
177 | 183 | else throw("fail to cast into WithdrawResult") | |
178 | 184 | } | |
179 | 185 | ||
180 | 186 | ||
181 | - | func | |
187 | + | func aj (ak) = if ((0 > ak)) | |
182 | 188 | then -1 | |
183 | 189 | else { | |
184 | - | let | |
185 | - | if ($isInstanceOf( | |
190 | + | let Y = blockInfoByHeight(ak) | |
191 | + | if ($isInstanceOf(Y, "BlockInfo")) | |
186 | 192 | then { | |
187 | - | let | |
188 | - | | |
193 | + | let al = Y | |
194 | + | al.timestamp | |
189 | 195 | } | |
190 | 196 | else -1 | |
191 | 197 | } | |
192 | 198 | ||
193 | 199 | ||
194 | - | func | |
200 | + | func am (an,ao) = fraction(toBigInt(an), i, toBigInt(ao)) | |
195 | 201 | ||
196 | 202 | ||
197 | - | func | |
203 | + | func ap (X,aq) = toInt(fraction(X, toBigInt(aq), i)) | |
198 | 204 | ||
199 | 205 | ||
200 | - | let | |
206 | + | let ar = 0 | |
201 | 207 | ||
202 | - | let | |
208 | + | let as = 1 | |
203 | 209 | ||
204 | - | let | |
210 | + | let at = 2 | |
205 | 211 | ||
206 | - | let | |
212 | + | let au = 3 | |
207 | 213 | ||
208 | - | let | |
214 | + | let av = 4 | |
209 | 215 | ||
210 | - | let | |
216 | + | let aw = 5 | |
211 | 217 | ||
212 | - | let | |
218 | + | let ax = 6 | |
213 | 219 | ||
214 | - | let | |
220 | + | let ay = 7 | |
215 | 221 | ||
216 | - | let | |
222 | + | let az = 8 | |
217 | 223 | ||
218 | - | let | |
224 | + | let aA = 9 | |
219 | 225 | ||
220 | - | let | |
226 | + | let aB = 10 | |
221 | 227 | ||
222 | - | let | |
228 | + | let aC = 11 | |
223 | 229 | ||
224 | - | let | |
230 | + | let aD = 1 | |
225 | 231 | ||
226 | - | let | |
232 | + | let aE = 2 | |
227 | 233 | ||
228 | - | let | |
234 | + | let aF = 3 | |
229 | 235 | ||
230 | - | let | |
236 | + | let aG = 4 | |
231 | 237 | ||
232 | - | let | |
238 | + | let aH = 5 | |
233 | 239 | ||
234 | - | let | |
240 | + | let aI = 6 | |
235 | 241 | ||
236 | - | let | |
242 | + | let aJ = 7 | |
237 | 243 | ||
238 | - | let | |
244 | + | let aK = 8 | |
239 | 245 | ||
240 | - | let | |
246 | + | let aL = 9 | |
241 | 247 | ||
242 | - | let | |
248 | + | let aM = 10 | |
243 | 249 | ||
244 | - | let | |
250 | + | let aN = 11 | |
245 | 251 | ||
246 | - | let | |
252 | + | let aO = 0 | |
247 | 253 | ||
248 | - | let | |
254 | + | let aP = 1 | |
249 | 255 | ||
250 | - | let | |
256 | + | let aQ = 2 | |
251 | 257 | ||
252 | - | let | |
258 | + | let aR = 3 | |
253 | 259 | ||
254 | - | let | |
260 | + | let aS = 4 | |
255 | 261 | ||
256 | - | let | |
262 | + | let aT = 5 | |
257 | 263 | ||
258 | - | let | |
264 | + | let aU = 6 | |
259 | 265 | ||
260 | - | let | |
266 | + | let aV = 7 | |
261 | 267 | ||
262 | - | let | |
268 | + | let aW = 8 | |
263 | 269 | ||
264 | - | let | |
270 | + | let aX = 9 | |
265 | 271 | ||
266 | - | let | |
272 | + | let aY = 10 | |
267 | 273 | ||
268 | - | func | |
274 | + | func aZ () = "%s%s__config__controlAddress" | |
269 | 275 | ||
270 | 276 | ||
271 | - | func | |
277 | + | func ba () = "%s__controlConfig" | |
272 | 278 | ||
273 | 279 | ||
274 | - | func | |
280 | + | func bb (bc) = split(N(bc, ba()), j) | |
275 | 281 | ||
276 | 282 | ||
277 | - | func | |
283 | + | func bd (be,bf) = valueOrErrorMessage(addressFromString(be[bf]), ("Control cfg doesn't contain address at index " + toString(bf))) | |
278 | 284 | ||
279 | 285 | ||
280 | - | let | |
286 | + | let bg = addressFromStringValue(valueOrElse(getString(this, aZ()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
281 | 287 | ||
282 | - | let | |
288 | + | let be = bb(bg) | |
283 | 289 | ||
284 | - | let | |
290 | + | let bh = bd(be, aG) | |
285 | 291 | ||
286 | - | let | |
292 | + | let bi = bd(be, aD) | |
287 | 293 | ||
288 | - | let | |
294 | + | let bj = bd(be, aE) | |
289 | 295 | ||
290 | - | let | |
296 | + | let bk = bd(be, aH) | |
291 | 297 | ||
292 | - | let | |
298 | + | let bl = bd(be, aF) | |
293 | 299 | ||
294 | - | let | |
300 | + | let bm = bd(be, aK) | |
295 | 301 | ||
296 | - | let | |
302 | + | let bn = bd(be, aM) | |
297 | 303 | ||
298 | - | let | |
304 | + | let bo = bd(be, aN) | |
299 | 305 | ||
300 | - | let bn = L(bg, o()) | |
301 | - | ||
302 | - | let bo = fromBase58String(bn) | |
303 | - | ||
304 | - | let bp = getStringValue(bg, p()) | |
306 | + | let bp = N(bi, o()) | |
305 | 307 | ||
306 | 308 | let bq = fromBase58String(bp) | |
307 | 309 | ||
308 | - | let br = getStringValue( | |
310 | + | let br = getStringValue(bi, p()) | |
309 | 311 | ||
310 | 312 | let bs = fromBase58String(br) | |
311 | 313 | ||
312 | - | @Callable(bt) | |
313 | - | func reverseSwapLimitREADONLY (bu) = { | |
314 | - | let bv = if ((0 >= bu)) | |
314 | + | let bt = getStringValue(bj, q()) | |
315 | + | ||
316 | + | let bu = fromBase58String(bt) | |
317 | + | ||
318 | + | @Callable(bv) | |
319 | + | func reverseSwapLimitREADONLY (bw,bx) = { | |
320 | + | let by = aa(W(invoke(bh, "calcNeutinoMetricsREADONLY", nil, nil))[az]) | |
321 | + | let bz = if ((0 >= bw)) | |
315 | 322 | then 0 | |
316 | 323 | else { | |
317 | - | let bw = toBigInt(O(bf, y())) | |
318 | - | let bx = toBigInt(O(bf, z())) | |
319 | - | let by = fraction(toBigInt(bu), f, bw) | |
320 | - | let bz = fraction(h, h, bx) | |
321 | - | toInt(pow(by, 8, bz, 16, 6, CEILING)) | |
324 | + | let bA = toBigInt(Q(bh, if (bx) | |
325 | + | then y() | |
326 | + | else A())) | |
327 | + | let bB = toBigInt(Q(bh, if (bx) | |
328 | + | then z() | |
329 | + | else B())) | |
330 | + | let bC = if (bx) | |
331 | + | then fraction(toBigInt(bw), f, bA) | |
332 | + | else fraction(fraction(toBigInt(bw), f, bA), c, toBigInt(by)) | |
333 | + | let bD = fraction(h, h, bB) | |
334 | + | toInt(pow(bC, 8, bD, 16, 6, CEILING)) | |
322 | 335 | } | |
323 | - | $Tuple2(nil, | |
336 | + | $Tuple2(nil, bz) | |
324 | 337 | } | |
325 | 338 | ||
326 | 339 | ||
327 | 340 | ||
328 | - | @Callable( | |
329 | - | func gnsbtInfoINTERNAL ( | |
330 | - | let | |
331 | - | then addressFromStringValue( | |
341 | + | @Callable(bv) | |
342 | + | func gnsbtInfoINTERNAL (bE,bF,bG) = { | |
343 | + | let bH = if ((bE != "")) | |
344 | + | then addressFromStringValue(bE) | |
332 | 345 | else this | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | then assetBalance( | |
346 | + | let bI = getIntegerValue(bg, G()) | |
347 | + | let bJ = bF | |
348 | + | let bK = aa(invoke(bn, "gnsbtFromSurfSYSREADONLY", [bG], nil)) | |
349 | + | let bL = (bJ + bK) | |
350 | + | let bM = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, 0], nil)) | |
351 | + | let bN = bM._3 | |
352 | + | let bO = bM._4 | |
353 | + | let bP = bM._5 | |
354 | + | let bQ = bM._6 | |
355 | + | let bR = bM._7 | |
356 | + | let bS = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, bL], nil)) | |
357 | + | let bT = bS._3 | |
358 | + | let bU = bS._4 | |
359 | + | let bV = bS._5 | |
360 | + | let bW = bS._6 | |
361 | + | let bX = bS._7 | |
362 | + | let bY = if ((bE != "")) | |
363 | + | then assetBalance(bH, bs) | |
351 | 364 | else 0 | |
352 | - | let | |
353 | - | then assetBalance( | |
365 | + | let bZ = if ((bE != "")) | |
366 | + | then assetBalance(bH, bu) | |
354 | 367 | else 0 | |
355 | - | let | |
356 | - | then | |
368 | + | let ca = if ((bF >= 0)) | |
369 | + | then bF | |
357 | 370 | else { | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | | |
371 | + | let cb = W(invoke(bm, "nsbtUnstakingSYSREADONLY", [bE, (-1 * bF)], nil)) | |
372 | + | let cc = aa(cb[2]) | |
373 | + | let cd = -(cc) | |
374 | + | cd | |
362 | 375 | } | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
376 | + | let ce = (bY - ca) | |
377 | + | let cf = (bZ - bG) | |
378 | + | let cg = W(invoke(bo, "gnsbtInfoSYSREADONLY", [bE, bF, bG], nil)) | |
379 | + | let ch = aa(cg[0]) | |
380 | + | let ci = aa(cg[1]) | |
381 | + | let cj = W(cg[2]) | |
382 | + | let ck = W(cg[3]) | |
383 | + | let cl = aa(cg[4]) | |
384 | + | let cm = aa(cg[5]) | |
385 | + | let cn = aa(cj[2]) | |
386 | + | let co = aa(ck[2]) | |
387 | + | let cp = (cn + bJ) | |
388 | + | let cq = (co + bK) | |
389 | + | let cr = aa(cj[3]) | |
390 | + | let cs = aa(ck[3]) | |
391 | + | let ct = 0 | |
392 | + | let cu = cs | |
393 | + | let cv = (cr + bJ) | |
394 | + | let cw = (cs + bK) | |
395 | + | let cx = cw | |
396 | + | let cy = fraction(cn, d, (cr + ct)) | |
397 | + | let cz = fraction(cp, d, (cv + ct)) | |
398 | + | let cA = fraction((cn + co), d, ((cr + ct) + cu)) | |
399 | + | let cB = fraction((cp + cq), d, ((cv + ct) + cx)) | |
400 | + | let cC = if ((cl == 0)) | |
388 | 401 | then height | |
389 | - | else | |
390 | - | let | |
402 | + | else cl | |
403 | + | let cD = if ((cm == 0)) | |
391 | 404 | then height | |
392 | - | else | |
393 | - | $Tuple2(nil, [0, | |
405 | + | else cm | |
406 | + | $Tuple2(nil, [0, bY, bZ, ce, cf, cn, co, cp, cq, cr, cs, cv, cw, bR, bQ, bX, bW, bN, bT, cy, cz, cA, cB, cC, cD]) | |
394 | 407 | } | |
395 | 408 | ||
396 | 409 | ||
397 | 410 | ||
398 | - | @Callable( | |
399 | - | func gnsbtInfoREADONLY ( | |
400 | - | let | |
401 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString( | |
411 | + | @Callable(bv) | |
412 | + | func gnsbtInfoREADONLY (bE,bF,bG) = { | |
413 | + | let cE = W(invoke(this, "gnsbtInfoINTERNAL", [bE, bF, bG], nil)) | |
414 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(aa(cE[1])), toString(aa(cE[2])), toString(aa(cE[3])), toString(aa(cE[4])), toString(aa(cE[5])), toString(aa(cE[6])), toString(aa(cE[7])), toString(aa(cE[8])), toString(aa(cE[9])), toString(aa(cE[10])), toString(aa(cE[11])), toString(aa(cE[12])), toString(aa(cE[13])), toString(aa(cE[14])), toString(aa(cE[15])), toString(aa(cE[16])), toString(aa(cE[17])), toString(aa(cE[18])), toString(aa(cE[19])), toString(aa(cE[20])), toString(aa(cE[21])), toString(aa(cE[22])), toString(aa(cE[23])), toString(aa(cE[24]))], j)) | |
402 | 415 | } | |
403 | 416 | ||
404 | 417 | ||
405 | 418 | ||
406 | - | @Callable( | |
407 | - | func rewardInfoREADONLY ( | |
408 | - | let | |
409 | - | $Tuple2(nil, makeString(["%s%s", | |
419 | + | @Callable(bv) | |
420 | + | func rewardInfoREADONLY (bE) = { | |
421 | + | let cF = W(invoke(bo, "gnsbtRewardsSYSREADONLY", [bE], nil)) | |
422 | + | $Tuple2(nil, makeString(["%s%s", ac(cF[0]), ac(cF[1])], j)) | |
410 | 423 | } | |
411 | 424 | ||
412 | 425 | ||
413 | 426 | ||
414 | - | @Callable( | |
415 | - | func mergeNsbtREADONLY ( | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
427 | + | @Callable(bv) | |
428 | + | func mergeNsbtREADONLY (cG,cH) = { | |
429 | + | let cj = W(invoke(bm, "nsbtStakingSYSREADONLY", [cG, cH], nil)) | |
430 | + | let cI = aa(cj[0]) | |
431 | + | let cJ = if ((0 >= cI)) | |
419 | 432 | then -1 | |
420 | - | else | |
421 | - | let | |
422 | - | let | |
423 | - | then | |
433 | + | else aa(cj[2]) | |
434 | + | let cK = aj(cJ) | |
435 | + | let cL = if ((0 >= cH)) | |
436 | + | then cJ | |
424 | 437 | else { | |
425 | - | let | |
426 | - | | |
438 | + | let cM = Q(bm, J()) | |
439 | + | aa(invoke(bh, "mergeStakesREADONLY", [cI, cJ, cH, height, cM], nil)) | |
427 | 440 | } | |
428 | - | let | |
429 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString( | |
441 | + | let cN = aj(cL) | |
442 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cJ), toString(cK), toString(cL), toString(cN)], j)) | |
430 | 443 | } | |
431 | 444 | ||
432 | 445 | ||
433 | 446 | ||
434 | - | @Callable( | |
435 | - | func swapLimitCalculatorREADONLY ( | |
436 | - | let | |
447 | + | @Callable(bv) | |
448 | + | func swapLimitCalculatorREADONLY (cO,cP,cQ) = { | |
449 | + | let cR = if ((cO == "")) | |
437 | 450 | then 0 | |
438 | - | else | |
439 | - | let | |
440 | - | then | |
441 | - | else | |
442 | - | let | |
443 | - | let | |
444 | - | $Tuple2(nil, makeString(["%s%s", toString( | |
451 | + | else aa(ag(invoke(bi, "swapParamsByUserSYSREADONLY", [cO, 0], nil))._4) | |
452 | + | let cS = if ((cQ == "WAVES")) | |
453 | + | then V(cP, getIntegerValue(bg, G())) | |
454 | + | else cP | |
455 | + | let cT = aa(invoke(this, "reverseSwapLimitREADONLY", [cS, (cQ == "WAVES")], nil)) | |
456 | + | let cU = (cT - cR) | |
457 | + | $Tuple2(nil, makeString(["%s%s", toString(cR), toString(cU)], j)) | |
445 | 458 | } | |
446 | 459 | ||
447 | 460 | ||
448 | 461 | ||
449 | - | @Callable( | |
450 | - | func swapInfoREADONLY ( | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
462 | + | @Callable(bv) | |
463 | + | func swapInfoREADONLY (bE,T,cQ) = { | |
464 | + | let cV = W(invoke(bh, "calcNeutinoMetricsREADONLY", nil, nil)) | |
465 | + | let U = aa(cV[ar]) | |
466 | + | let bM = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, 0], nil)) | |
467 | + | let bN = bM._3 | |
468 | + | let bQ = bM._6 | |
469 | + | let bR = bM._7 | |
470 | + | let cW = fromBase58String(cQ) | |
471 | + | let cX = if ((cW == n)) | |
459 | 472 | then "waves" | |
460 | - | else if (( | |
473 | + | else if ((cW == bq)) | |
461 | 474 | then "neutrino" | |
462 | - | else throw(("Can't swap assetId=" + | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
475 | + | else throw(("Can't swap assetId=" + cQ)) | |
476 | + | let cY = ai(invoke(bi, "calcWithdrawResultSYSREADONLY", [cX, T, U], nil)) | |
477 | + | let cZ = cY._1 | |
478 | + | let da = cY._2 | |
479 | + | let db = cY._3 | |
480 | + | let dc = cY._4 | |
481 | + | let dd = cY._5 | |
482 | + | let de = cY._6 | |
483 | + | let df = cY._7 | |
484 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cZ), toString(db), toString(de), toString(U), toString(bN), toString(bQ), toString(bR), toString(dc)], j)) | |
472 | 485 | } | |
473 | 486 | ||
474 | 487 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 271828182 | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000) | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(100000000) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(10000000000) | |
15 | 15 | ||
16 | 16 | let g = 1000000000000 | |
17 | 17 | ||
18 | 18 | let h = toBigInt(10000000000000000) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(1000000000000000000) | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 5000 | |
25 | 25 | ||
26 | 26 | let l = 20000 | |
27 | 27 | ||
28 | 28 | let m = 100000 | |
29 | 29 | ||
30 | 30 | let n = fromBase58String("WAVES") | |
31 | 31 | ||
32 | 32 | func o () = "neutrino_asset_id" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func p () = "bond_asset_id" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func q () = "surf_asset_id" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func r () = "balance_lock_" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func s () = (r() + "waves") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func t () = (r() + "neutrino") | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func u () = "min_waves_swap_amount" | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func v () = "min_neutrino_swap_amount" | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func w () = "wavesOut_swap_feePart" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func x () = "neutrinoOut_swap_feePart" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func y () = "%s%s__config__swapAParam" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func z () = "%s%s__config__swapBParam" | |
66 | 66 | ||
67 | 67 | ||
68 | - | func A () = "%s__ | |
68 | + | func A () = "%s%s__config__usdnSwapAParam" | |
69 | 69 | ||
70 | 70 | ||
71 | - | func B () = "%s__ | |
71 | + | func B () = "%s%s__config__usdnSwapBParam" | |
72 | 72 | ||
73 | 73 | ||
74 | - | func C () = " | |
74 | + | func C () = "%s__nsbtLockContract" | |
75 | 75 | ||
76 | 76 | ||
77 | - | func D () = " | |
77 | + | func D () = "%s__mathContract" | |
78 | 78 | ||
79 | 79 | ||
80 | - | func E () = " | |
80 | + | func E () = "balance_waves_lock_interval" | |
81 | 81 | ||
82 | 82 | ||
83 | - | func F ( | |
83 | + | func F () = "balance_neutrino_lock_interval" | |
84 | 84 | ||
85 | 85 | ||
86 | - | func | |
86 | + | func G () = "price" | |
87 | 87 | ||
88 | 88 | ||
89 | - | func | |
89 | + | func H (I) = makeString(["%s%s%s", "paramByUser", I, "start"], j) | |
90 | 90 | ||
91 | 91 | ||
92 | - | func J () = " | |
92 | + | func J () = "%s__halfLife" | |
93 | 93 | ||
94 | 94 | ||
95 | - | func K () = " | |
95 | + | func K () = "%s__minLockAmount" | |
96 | 96 | ||
97 | 97 | ||
98 | - | func L ( | |
98 | + | func L () = "min_waves_nsbt_buy" | |
99 | 99 | ||
100 | 100 | ||
101 | - | func | |
101 | + | func M () = "min_nsbt_sell" | |
102 | 102 | ||
103 | 103 | ||
104 | - | func | |
104 | + | func N (O,P) = valueOrErrorMessage(getString(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], "")) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func Q ( | |
107 | + | func Q (O,P) = valueOrErrorMessage(getInteger(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], "")) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func | |
110 | + | func R (O,P) = valueOrErrorMessage(getBoolean(O, P), makeString(["mandatory ", toString(O), ".", P, " is not defined"], "")) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func U (V) = { | |
114 | - | let W = V | |
115 | - | if ($isInstanceOf(W, "List[Any]")) | |
113 | + | func S (T,U) = fraction(T, d, U) | |
114 | + | ||
115 | + | ||
116 | + | func V (T,U) = fraction(T, U, d) | |
117 | + | ||
118 | + | ||
119 | + | func W (X) = { | |
120 | + | let Y = X | |
121 | + | if ($isInstanceOf(Y, "List[Any]")) | |
116 | 122 | then { | |
117 | - | let | |
118 | - | | |
123 | + | let Z = Y | |
124 | + | Z | |
119 | 125 | } | |
120 | 126 | else throw("fail to cast into List[Any]") | |
121 | 127 | } | |
122 | 128 | ||
123 | 129 | ||
124 | - | func | |
125 | - | let | |
126 | - | if ($isInstanceOf( | |
130 | + | func aa (X) = { | |
131 | + | let Y = X | |
132 | + | if ($isInstanceOf(Y, "Int")) | |
127 | 133 | then { | |
128 | - | let | |
129 | - | | |
134 | + | let ab = Y | |
135 | + | ab | |
130 | 136 | } | |
131 | 137 | else throw("fail to cast into Int") | |
132 | 138 | } | |
133 | 139 | ||
134 | 140 | ||
135 | - | func | |
136 | - | let | |
137 | - | if ($isInstanceOf( | |
141 | + | func ac (X) = { | |
142 | + | let Y = X | |
143 | + | if ($isInstanceOf(Y, "String")) | |
138 | 144 | then { | |
139 | - | let | |
140 | - | | |
145 | + | let ad = Y | |
146 | + | ad | |
141 | 147 | } | |
142 | 148 | else throw("fail to cast into String") | |
143 | 149 | } | |
144 | 150 | ||
145 | 151 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ($isInstanceOf( | |
152 | + | func ae (X) = { | |
153 | + | let Y = X | |
154 | + | if ($isInstanceOf(Y, "(Int, Int)")) | |
149 | 155 | then { | |
150 | - | let | |
151 | - | | |
156 | + | let af = Y | |
157 | + | af | |
152 | 158 | } | |
153 | 159 | else throw("fail to cast into Tuple2 ints") | |
154 | 160 | } | |
155 | 161 | ||
156 | 162 | ||
157 | - | func | |
158 | - | let | |
159 | - | if ($isInstanceOf( | |
163 | + | func ag (X) = { | |
164 | + | let Y = X | |
165 | + | if ($isInstanceOf(Y, "(Int, Int, Int, Int, Int, Int, Int)")) | |
160 | 166 | then { | |
161 | - | let | |
162 | - | | |
167 | + | let ah = Y | |
168 | + | ah | |
163 | 169 | } | |
164 | 170 | else throw("fail to cast into SwapParamsSTRUCT") | |
165 | 171 | } | |
166 | 172 | ||
167 | 173 | ||
168 | - | func | |
169 | - | let | |
170 | - | if (if ($isInstanceOf( | |
174 | + | func ai (X) = { | |
175 | + | let Y = X | |
176 | + | if (if ($isInstanceOf(Y, "(Int, Unit, Int, Int, Int, Int, Int)")) | |
171 | 177 | then true | |
172 | - | else $isInstanceOf( | |
178 | + | else $isInstanceOf(Y, "(Int, ByteVector, Int, Int, Int, Int, Int)")) | |
173 | 179 | then { | |
174 | - | let | |
175 | - | | |
180 | + | let ah = Y | |
181 | + | ah | |
176 | 182 | } | |
177 | 183 | else throw("fail to cast into WithdrawResult") | |
178 | 184 | } | |
179 | 185 | ||
180 | 186 | ||
181 | - | func | |
187 | + | func aj (ak) = if ((0 > ak)) | |
182 | 188 | then -1 | |
183 | 189 | else { | |
184 | - | let | |
185 | - | if ($isInstanceOf( | |
190 | + | let Y = blockInfoByHeight(ak) | |
191 | + | if ($isInstanceOf(Y, "BlockInfo")) | |
186 | 192 | then { | |
187 | - | let | |
188 | - | | |
193 | + | let al = Y | |
194 | + | al.timestamp | |
189 | 195 | } | |
190 | 196 | else -1 | |
191 | 197 | } | |
192 | 198 | ||
193 | 199 | ||
194 | - | func | |
200 | + | func am (an,ao) = fraction(toBigInt(an), i, toBigInt(ao)) | |
195 | 201 | ||
196 | 202 | ||
197 | - | func | |
203 | + | func ap (X,aq) = toInt(fraction(X, toBigInt(aq), i)) | |
198 | 204 | ||
199 | 205 | ||
200 | - | let | |
206 | + | let ar = 0 | |
201 | 207 | ||
202 | - | let | |
208 | + | let as = 1 | |
203 | 209 | ||
204 | - | let | |
210 | + | let at = 2 | |
205 | 211 | ||
206 | - | let | |
212 | + | let au = 3 | |
207 | 213 | ||
208 | - | let | |
214 | + | let av = 4 | |
209 | 215 | ||
210 | - | let | |
216 | + | let aw = 5 | |
211 | 217 | ||
212 | - | let | |
218 | + | let ax = 6 | |
213 | 219 | ||
214 | - | let | |
220 | + | let ay = 7 | |
215 | 221 | ||
216 | - | let | |
222 | + | let az = 8 | |
217 | 223 | ||
218 | - | let | |
224 | + | let aA = 9 | |
219 | 225 | ||
220 | - | let | |
226 | + | let aB = 10 | |
221 | 227 | ||
222 | - | let | |
228 | + | let aC = 11 | |
223 | 229 | ||
224 | - | let | |
230 | + | let aD = 1 | |
225 | 231 | ||
226 | - | let | |
232 | + | let aE = 2 | |
227 | 233 | ||
228 | - | let | |
234 | + | let aF = 3 | |
229 | 235 | ||
230 | - | let | |
236 | + | let aG = 4 | |
231 | 237 | ||
232 | - | let | |
238 | + | let aH = 5 | |
233 | 239 | ||
234 | - | let | |
240 | + | let aI = 6 | |
235 | 241 | ||
236 | - | let | |
242 | + | let aJ = 7 | |
237 | 243 | ||
238 | - | let | |
244 | + | let aK = 8 | |
239 | 245 | ||
240 | - | let | |
246 | + | let aL = 9 | |
241 | 247 | ||
242 | - | let | |
248 | + | let aM = 10 | |
243 | 249 | ||
244 | - | let | |
250 | + | let aN = 11 | |
245 | 251 | ||
246 | - | let | |
252 | + | let aO = 0 | |
247 | 253 | ||
248 | - | let | |
254 | + | let aP = 1 | |
249 | 255 | ||
250 | - | let | |
256 | + | let aQ = 2 | |
251 | 257 | ||
252 | - | let | |
258 | + | let aR = 3 | |
253 | 259 | ||
254 | - | let | |
260 | + | let aS = 4 | |
255 | 261 | ||
256 | - | let | |
262 | + | let aT = 5 | |
257 | 263 | ||
258 | - | let | |
264 | + | let aU = 6 | |
259 | 265 | ||
260 | - | let | |
266 | + | let aV = 7 | |
261 | 267 | ||
262 | - | let | |
268 | + | let aW = 8 | |
263 | 269 | ||
264 | - | let | |
270 | + | let aX = 9 | |
265 | 271 | ||
266 | - | let | |
272 | + | let aY = 10 | |
267 | 273 | ||
268 | - | func | |
274 | + | func aZ () = "%s%s__config__controlAddress" | |
269 | 275 | ||
270 | 276 | ||
271 | - | func | |
277 | + | func ba () = "%s__controlConfig" | |
272 | 278 | ||
273 | 279 | ||
274 | - | func | |
280 | + | func bb (bc) = split(N(bc, ba()), j) | |
275 | 281 | ||
276 | 282 | ||
277 | - | func | |
283 | + | func bd (be,bf) = valueOrErrorMessage(addressFromString(be[bf]), ("Control cfg doesn't contain address at index " + toString(bf))) | |
278 | 284 | ||
279 | 285 | ||
280 | - | let | |
286 | + | let bg = addressFromStringValue(valueOrElse(getString(this, aZ()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
281 | 287 | ||
282 | - | let | |
288 | + | let be = bb(bg) | |
283 | 289 | ||
284 | - | let | |
290 | + | let bh = bd(be, aG) | |
285 | 291 | ||
286 | - | let | |
292 | + | let bi = bd(be, aD) | |
287 | 293 | ||
288 | - | let | |
294 | + | let bj = bd(be, aE) | |
289 | 295 | ||
290 | - | let | |
296 | + | let bk = bd(be, aH) | |
291 | 297 | ||
292 | - | let | |
298 | + | let bl = bd(be, aF) | |
293 | 299 | ||
294 | - | let | |
300 | + | let bm = bd(be, aK) | |
295 | 301 | ||
296 | - | let | |
302 | + | let bn = bd(be, aM) | |
297 | 303 | ||
298 | - | let | |
304 | + | let bo = bd(be, aN) | |
299 | 305 | ||
300 | - | let bn = L(bg, o()) | |
301 | - | ||
302 | - | let bo = fromBase58String(bn) | |
303 | - | ||
304 | - | let bp = getStringValue(bg, p()) | |
306 | + | let bp = N(bi, o()) | |
305 | 307 | ||
306 | 308 | let bq = fromBase58String(bp) | |
307 | 309 | ||
308 | - | let br = getStringValue( | |
310 | + | let br = getStringValue(bi, p()) | |
309 | 311 | ||
310 | 312 | let bs = fromBase58String(br) | |
311 | 313 | ||
312 | - | @Callable(bt) | |
313 | - | func reverseSwapLimitREADONLY (bu) = { | |
314 | - | let bv = if ((0 >= bu)) | |
314 | + | let bt = getStringValue(bj, q()) | |
315 | + | ||
316 | + | let bu = fromBase58String(bt) | |
317 | + | ||
318 | + | @Callable(bv) | |
319 | + | func reverseSwapLimitREADONLY (bw,bx) = { | |
320 | + | let by = aa(W(invoke(bh, "calcNeutinoMetricsREADONLY", nil, nil))[az]) | |
321 | + | let bz = if ((0 >= bw)) | |
315 | 322 | then 0 | |
316 | 323 | else { | |
317 | - | let bw = toBigInt(O(bf, y())) | |
318 | - | let bx = toBigInt(O(bf, z())) | |
319 | - | let by = fraction(toBigInt(bu), f, bw) | |
320 | - | let bz = fraction(h, h, bx) | |
321 | - | toInt(pow(by, 8, bz, 16, 6, CEILING)) | |
324 | + | let bA = toBigInt(Q(bh, if (bx) | |
325 | + | then y() | |
326 | + | else A())) | |
327 | + | let bB = toBigInt(Q(bh, if (bx) | |
328 | + | then z() | |
329 | + | else B())) | |
330 | + | let bC = if (bx) | |
331 | + | then fraction(toBigInt(bw), f, bA) | |
332 | + | else fraction(fraction(toBigInt(bw), f, bA), c, toBigInt(by)) | |
333 | + | let bD = fraction(h, h, bB) | |
334 | + | toInt(pow(bC, 8, bD, 16, 6, CEILING)) | |
322 | 335 | } | |
323 | - | $Tuple2(nil, | |
336 | + | $Tuple2(nil, bz) | |
324 | 337 | } | |
325 | 338 | ||
326 | 339 | ||
327 | 340 | ||
328 | - | @Callable( | |
329 | - | func gnsbtInfoINTERNAL ( | |
330 | - | let | |
331 | - | then addressFromStringValue( | |
341 | + | @Callable(bv) | |
342 | + | func gnsbtInfoINTERNAL (bE,bF,bG) = { | |
343 | + | let bH = if ((bE != "")) | |
344 | + | then addressFromStringValue(bE) | |
332 | 345 | else this | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | then assetBalance( | |
346 | + | let bI = getIntegerValue(bg, G()) | |
347 | + | let bJ = bF | |
348 | + | let bK = aa(invoke(bn, "gnsbtFromSurfSYSREADONLY", [bG], nil)) | |
349 | + | let bL = (bJ + bK) | |
350 | + | let bM = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, 0], nil)) | |
351 | + | let bN = bM._3 | |
352 | + | let bO = bM._4 | |
353 | + | let bP = bM._5 | |
354 | + | let bQ = bM._6 | |
355 | + | let bR = bM._7 | |
356 | + | let bS = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, bL], nil)) | |
357 | + | let bT = bS._3 | |
358 | + | let bU = bS._4 | |
359 | + | let bV = bS._5 | |
360 | + | let bW = bS._6 | |
361 | + | let bX = bS._7 | |
362 | + | let bY = if ((bE != "")) | |
363 | + | then assetBalance(bH, bs) | |
351 | 364 | else 0 | |
352 | - | let | |
353 | - | then assetBalance( | |
365 | + | let bZ = if ((bE != "")) | |
366 | + | then assetBalance(bH, bu) | |
354 | 367 | else 0 | |
355 | - | let | |
356 | - | then | |
368 | + | let ca = if ((bF >= 0)) | |
369 | + | then bF | |
357 | 370 | else { | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | | |
371 | + | let cb = W(invoke(bm, "nsbtUnstakingSYSREADONLY", [bE, (-1 * bF)], nil)) | |
372 | + | let cc = aa(cb[2]) | |
373 | + | let cd = -(cc) | |
374 | + | cd | |
362 | 375 | } | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
376 | + | let ce = (bY - ca) | |
377 | + | let cf = (bZ - bG) | |
378 | + | let cg = W(invoke(bo, "gnsbtInfoSYSREADONLY", [bE, bF, bG], nil)) | |
379 | + | let ch = aa(cg[0]) | |
380 | + | let ci = aa(cg[1]) | |
381 | + | let cj = W(cg[2]) | |
382 | + | let ck = W(cg[3]) | |
383 | + | let cl = aa(cg[4]) | |
384 | + | let cm = aa(cg[5]) | |
385 | + | let cn = aa(cj[2]) | |
386 | + | let co = aa(ck[2]) | |
387 | + | let cp = (cn + bJ) | |
388 | + | let cq = (co + bK) | |
389 | + | let cr = aa(cj[3]) | |
390 | + | let cs = aa(ck[3]) | |
391 | + | let ct = 0 | |
392 | + | let cu = cs | |
393 | + | let cv = (cr + bJ) | |
394 | + | let cw = (cs + bK) | |
395 | + | let cx = cw | |
396 | + | let cy = fraction(cn, d, (cr + ct)) | |
397 | + | let cz = fraction(cp, d, (cv + ct)) | |
398 | + | let cA = fraction((cn + co), d, ((cr + ct) + cu)) | |
399 | + | let cB = fraction((cp + cq), d, ((cv + ct) + cx)) | |
400 | + | let cC = if ((cl == 0)) | |
388 | 401 | then height | |
389 | - | else | |
390 | - | let | |
402 | + | else cl | |
403 | + | let cD = if ((cm == 0)) | |
391 | 404 | then height | |
392 | - | else | |
393 | - | $Tuple2(nil, [0, | |
405 | + | else cm | |
406 | + | $Tuple2(nil, [0, bY, bZ, ce, cf, cn, co, cp, cq, cr, cs, cv, cw, bR, bQ, bX, bW, bN, bT, cy, cz, cA, cB, cC, cD]) | |
394 | 407 | } | |
395 | 408 | ||
396 | 409 | ||
397 | 410 | ||
398 | - | @Callable( | |
399 | - | func gnsbtInfoREADONLY ( | |
400 | - | let | |
401 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString( | |
411 | + | @Callable(bv) | |
412 | + | func gnsbtInfoREADONLY (bE,bF,bG) = { | |
413 | + | let cE = W(invoke(this, "gnsbtInfoINTERNAL", [bE, bF, bG], nil)) | |
414 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(aa(cE[1])), toString(aa(cE[2])), toString(aa(cE[3])), toString(aa(cE[4])), toString(aa(cE[5])), toString(aa(cE[6])), toString(aa(cE[7])), toString(aa(cE[8])), toString(aa(cE[9])), toString(aa(cE[10])), toString(aa(cE[11])), toString(aa(cE[12])), toString(aa(cE[13])), toString(aa(cE[14])), toString(aa(cE[15])), toString(aa(cE[16])), toString(aa(cE[17])), toString(aa(cE[18])), toString(aa(cE[19])), toString(aa(cE[20])), toString(aa(cE[21])), toString(aa(cE[22])), toString(aa(cE[23])), toString(aa(cE[24]))], j)) | |
402 | 415 | } | |
403 | 416 | ||
404 | 417 | ||
405 | 418 | ||
406 | - | @Callable( | |
407 | - | func rewardInfoREADONLY ( | |
408 | - | let | |
409 | - | $Tuple2(nil, makeString(["%s%s", | |
419 | + | @Callable(bv) | |
420 | + | func rewardInfoREADONLY (bE) = { | |
421 | + | let cF = W(invoke(bo, "gnsbtRewardsSYSREADONLY", [bE], nil)) | |
422 | + | $Tuple2(nil, makeString(["%s%s", ac(cF[0]), ac(cF[1])], j)) | |
410 | 423 | } | |
411 | 424 | ||
412 | 425 | ||
413 | 426 | ||
414 | - | @Callable( | |
415 | - | func mergeNsbtREADONLY ( | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
427 | + | @Callable(bv) | |
428 | + | func mergeNsbtREADONLY (cG,cH) = { | |
429 | + | let cj = W(invoke(bm, "nsbtStakingSYSREADONLY", [cG, cH], nil)) | |
430 | + | let cI = aa(cj[0]) | |
431 | + | let cJ = if ((0 >= cI)) | |
419 | 432 | then -1 | |
420 | - | else | |
421 | - | let | |
422 | - | let | |
423 | - | then | |
433 | + | else aa(cj[2]) | |
434 | + | let cK = aj(cJ) | |
435 | + | let cL = if ((0 >= cH)) | |
436 | + | then cJ | |
424 | 437 | else { | |
425 | - | let | |
426 | - | | |
438 | + | let cM = Q(bm, J()) | |
439 | + | aa(invoke(bh, "mergeStakesREADONLY", [cI, cJ, cH, height, cM], nil)) | |
427 | 440 | } | |
428 | - | let | |
429 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString( | |
441 | + | let cN = aj(cL) | |
442 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cJ), toString(cK), toString(cL), toString(cN)], j)) | |
430 | 443 | } | |
431 | 444 | ||
432 | 445 | ||
433 | 446 | ||
434 | - | @Callable( | |
435 | - | func swapLimitCalculatorREADONLY ( | |
436 | - | let | |
447 | + | @Callable(bv) | |
448 | + | func swapLimitCalculatorREADONLY (cO,cP,cQ) = { | |
449 | + | let cR = if ((cO == "")) | |
437 | 450 | then 0 | |
438 | - | else | |
439 | - | let | |
440 | - | then | |
441 | - | else | |
442 | - | let | |
443 | - | let | |
444 | - | $Tuple2(nil, makeString(["%s%s", toString( | |
451 | + | else aa(ag(invoke(bi, "swapParamsByUserSYSREADONLY", [cO, 0], nil))._4) | |
452 | + | let cS = if ((cQ == "WAVES")) | |
453 | + | then V(cP, getIntegerValue(bg, G())) | |
454 | + | else cP | |
455 | + | let cT = aa(invoke(this, "reverseSwapLimitREADONLY", [cS, (cQ == "WAVES")], nil)) | |
456 | + | let cU = (cT - cR) | |
457 | + | $Tuple2(nil, makeString(["%s%s", toString(cR), toString(cU)], j)) | |
445 | 458 | } | |
446 | 459 | ||
447 | 460 | ||
448 | 461 | ||
449 | - | @Callable( | |
450 | - | func swapInfoREADONLY ( | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
462 | + | @Callable(bv) | |
463 | + | func swapInfoREADONLY (bE,T,cQ) = { | |
464 | + | let cV = W(invoke(bh, "calcNeutinoMetricsREADONLY", nil, nil)) | |
465 | + | let U = aa(cV[ar]) | |
466 | + | let bM = ag(invoke(bi, "swapParamsByUserSYSREADONLY", [bE, 0], nil)) | |
467 | + | let bN = bM._3 | |
468 | + | let bQ = bM._6 | |
469 | + | let bR = bM._7 | |
470 | + | let cW = fromBase58String(cQ) | |
471 | + | let cX = if ((cW == n)) | |
459 | 472 | then "waves" | |
460 | - | else if (( | |
473 | + | else if ((cW == bq)) | |
461 | 474 | then "neutrino" | |
462 | - | else throw(("Can't swap assetId=" + | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
475 | + | else throw(("Can't swap assetId=" + cQ)) | |
476 | + | let cY = ai(invoke(bi, "calcWithdrawResultSYSREADONLY", [cX, T, U], nil)) | |
477 | + | let cZ = cY._1 | |
478 | + | let da = cY._2 | |
479 | + | let db = cY._3 | |
480 | + | let dc = cY._4 | |
481 | + | let dd = cY._5 | |
482 | + | let de = cY._6 | |
483 | + | let df = cY._7 | |
484 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cZ), toString(db), toString(de), toString(U), toString(bN), toString(bQ), toString(bR), toString(dc)], j)) | |
472 | 485 | } | |
473 | 486 | ||
474 | 487 |
github/deemru/w8io/026f985 171.76 ms ◑