tx · CyMKLfnmJqASkJpgzhvYg2dKvC5ReEvXWpMguv6FaBkB 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi: -0.04000000 Waves 2022.08.09 19:47 [2177184] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves
{ "type": 13, "id": "CyMKLfnmJqASkJpgzhvYg2dKvC5ReEvXWpMguv6FaBkB", "fee": 4000000, "feeAssetId": null, "timestamp": 1660063675099, "version": 1, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "3W6QuKoAhkVnx5dgScTuWMHB36Yoy72RMkam9vEtQbWdvmTMMqD4xVGRcUAaTNW7tGAv84MY719LRpmJdJ12a721" ], "script": "base64:AAIFAAAAAAAAAEMIAhIFCgMICAgSABIDCgEIEgQKAggBEgASAwoBARIFCgMIAQgSAwoBCBIGCgQBAQEBEgQKAgEBEgQKAgEIEgASABIAAAAAbQAAAAALcmV2aXNpb25OdW0CAAAAAAAAAAAGRVVMRVI4AAAAAAAQM8TWAAAAAAVNVUxUNgAAAAAAAA9CQAAAAAAGTVVMVFg2CQABNgAAAAEAAAAAAAAPQkAAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAZNVUxUWDgJAAE2AAAAAQAAAAAABfXhAAAAAAAGTVVMVDEyAAAAAOjUpRAAAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAHV0FWRVNJRAkAAlkAAAABAgAAAAVXQVZFUwAAAAAPbk1ldHJpY0lkeFByaWNlAAAAAAAAAAAAAAAAABtuTWV0cmljSWR4VXNkbkxvY2tlZEJhbGFuY2UAAAAAAAAAAAEAAAAAHG5NZXRyaWNJZHhXYXZlc0xvY2tlZEJhbGFuY2UAAAAAAAAAAAIAAAAAEW5NZXRyaWNJZHhSZXNlcnZlAA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QAAAAPc3VyZlByaWNlSW5Vc2RuCQAAawAAAAMFAAAAD3Jlc2VydmVzSW5XYXZlcwUAAAAMY3VycmVudFByaWNlBQAAAA5uZXV0cmlub1N1cHBseQQAAAAQc3VyZlByaWNlSW5XYXZlcwkAAGsAAAADBQAAAA9yZXNlcnZlc0luV2F2ZXMFAAAABU1VTFQ4BQAAAA5uZXV0cmlub1N1cHBseQQAAAAIcmVzdERhdGEJAAS5AAAAAgkABEwAAAACAgAAABJzdGFydFN1cmZQcmljZVJFU1QJAARMAAAAAgkAAaQAAAABBQAAAA9zdXJmUHJpY2VJblVzZG4JAARMAAAAAgkAAaQAAAABBQAAABBzdXJmUHJpY2VJbldhdmVzCQAETAAAAAICAAAAEGVuZFN1cmZQcmljZVJFU1QFAAAAA25pbAIAAAACX18JAAACAAAAAQUAAAAIcmVzdERhdGEAAAAABXgTVQ==", "chainId": 84, "height": 2177184, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3b3WstYu44htZK74pcp463EgGp8MtW6yDu3cGHsiPBaL Next: AR9xCAHHjCKtAsBqFuMhXo6TT6LZuTVTbbJJeisH3izA Diff:
Old | New | Differences | |
---|---|---|---|
136 | 136 | func ae () = "min_nsbt_sell" | |
137 | 137 | ||
138 | 138 | ||
139 | - | func af (ag | |
139 | + | func af (ag) = ("rpd_balance_" + ag) | |
140 | 140 | ||
141 | 141 | ||
142 | - | func | |
142 | + | func ah (ai,aj) = valueOrErrorMessage(getString(ai, aj), makeString(["mandatory ", toString(ai), ".", aj, " is not defined"], "")) | |
143 | 143 | ||
144 | 144 | ||
145 | - | func | |
145 | + | func ak (ai,aj) = valueOrErrorMessage(getInteger(ai, aj), makeString(["mandatory ", toString(ai), ".", aj, " is not defined"], "")) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func | |
148 | + | func al (ai,aj) = valueOrErrorMessage(getBoolean(ai, aj), makeString(["mandatory ", toString(ai), ".", aj, " is not defined"], "")) | |
149 | 149 | ||
150 | 150 | ||
151 | - | func | |
151 | + | func am (an,ao) = fraction(an, e, ao) | |
152 | 152 | ||
153 | 153 | ||
154 | - | func ao (ap) = { | |
155 | - | let aq = ap | |
156 | - | if ($isInstanceOf(aq, "List[Any]")) | |
154 | + | func ap (an,ao) = fraction(an, ao, e) | |
155 | + | ||
156 | + | ||
157 | + | func aq (ar) = { | |
158 | + | let as = ar | |
159 | + | if ($isInstanceOf(as, "List[Any]")) | |
157 | 160 | then { | |
158 | - | let | |
159 | - | | |
161 | + | let at = as | |
162 | + | at | |
160 | 163 | } | |
161 | 164 | else throw("fail to cast into List[Any]") | |
162 | 165 | } | |
163 | 166 | ||
164 | 167 | ||
165 | - | func | |
166 | - | let | |
167 | - | if ($isInstanceOf( | |
168 | + | func au (ar) = { | |
169 | + | let as = ar | |
170 | + | if ($isInstanceOf(as, "Int")) | |
168 | 171 | then { | |
169 | - | let | |
170 | - | | |
172 | + | let av = as | |
173 | + | av | |
171 | 174 | } | |
172 | 175 | else throw("fail to cast into Int") | |
173 | 176 | } | |
174 | 177 | ||
175 | 178 | ||
176 | - | func | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
179 | + | func aw (ar) = { | |
180 | + | let as = ar | |
181 | + | if ($isInstanceOf(as, "String")) | |
179 | 182 | then { | |
180 | - | let | |
181 | - | | |
183 | + | let ax = as | |
184 | + | ax | |
182 | 185 | } | |
183 | 186 | else throw("fail to cast into String") | |
184 | 187 | } | |
185 | 188 | ||
186 | 189 | ||
187 | - | func | |
188 | - | let | |
189 | - | if ($isInstanceOf( | |
190 | + | func ay (ar) = { | |
191 | + | let as = ar | |
192 | + | if ($isInstanceOf(as, "(Int, Int)")) | |
190 | 193 | then { | |
191 | - | let | |
192 | - | | |
194 | + | let az = as | |
195 | + | az | |
193 | 196 | } | |
194 | 197 | else throw("fail to cast into Tuple2 ints") | |
195 | 198 | } | |
196 | 199 | ||
197 | 200 | ||
198 | - | func | |
199 | - | let | |
200 | - | if ($isInstanceOf( | |
201 | + | func aA (ar) = { | |
202 | + | let as = ar | |
203 | + | if ($isInstanceOf(as, "(Int, Int, Int, Int, Int)")) | |
201 | 204 | then { | |
202 | - | let | |
203 | - | | |
205 | + | let aB = as | |
206 | + | aB | |
204 | 207 | } | |
205 | 208 | else throw("fail to cast into Int") | |
206 | 209 | } | |
207 | 210 | ||
208 | 211 | ||
209 | - | func | |
212 | + | func aC (aD) = if ((0 > aD)) | |
210 | 213 | then -1 | |
211 | 214 | else { | |
212 | - | let | |
213 | - | if ($isInstanceOf( | |
215 | + | let as = blockInfoByHeight(aD) | |
216 | + | if ($isInstanceOf(as, "BlockInfo")) | |
214 | 217 | then { | |
215 | - | let | |
216 | - | | |
218 | + | let aE = as | |
219 | + | aE.timestamp | |
217 | 220 | } | |
218 | 221 | else -1 | |
219 | 222 | } | |
220 | 223 | ||
221 | 224 | ||
222 | - | func | |
225 | + | func aF (aG,aH) = fraction(toBigInt(aG), h, toBigInt(aH)) | |
223 | 226 | ||
224 | 227 | ||
225 | - | func | |
228 | + | func aI (ar,aJ) = toInt(fraction(ar, toBigInt(aJ), h)) | |
226 | 229 | ||
227 | 230 | ||
228 | - | let | |
231 | + | let aK = 1 | |
229 | 232 | ||
230 | - | let | |
233 | + | let aL = 2 | |
231 | 234 | ||
232 | - | let | |
235 | + | let aM = 3 | |
233 | 236 | ||
234 | - | let | |
237 | + | let aN = 4 | |
235 | 238 | ||
236 | - | let | |
239 | + | let aO = 5 | |
237 | 240 | ||
238 | - | let | |
241 | + | let aP = 6 | |
239 | 242 | ||
240 | - | let | |
243 | + | let aQ = 7 | |
241 | 244 | ||
242 | - | let | |
245 | + | let aR = 8 | |
243 | 246 | ||
244 | - | let | |
247 | + | let aS = 9 | |
245 | 248 | ||
246 | - | let | |
249 | + | let aT = 10 | |
247 | 250 | ||
248 | - | let | |
251 | + | let aU = 11 | |
249 | 252 | ||
250 | - | let | |
253 | + | let aV = 12 | |
251 | 254 | ||
252 | - | func | |
255 | + | func aW () = "%s%s__config__controlAddress" | |
253 | 256 | ||
254 | 257 | ||
255 | - | func | |
258 | + | func aX () = "%s__controlConfig" | |
256 | 259 | ||
257 | 260 | ||
258 | - | func | |
261 | + | func aY (aZ) = split(ah(aZ, aX()), i) | |
259 | 262 | ||
260 | 263 | ||
261 | - | func | |
264 | + | func ba (bb,bc) = valueOrErrorMessage(addressFromString(bb[bc]), ("Control cfg doesn't contain address at index " + toString(bc))) | |
262 | 265 | ||
263 | 266 | ||
264 | - | let | |
267 | + | let bd = addressFromStringValue(valueOrElse(getString(this, aW()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
265 | 268 | ||
266 | - | let | |
269 | + | let bb = aY(bd) | |
267 | 270 | ||
268 | - | let | |
271 | + | let be = ba(bb, aN) | |
269 | 272 | ||
270 | - | let | |
273 | + | let bf = ba(bb, aK) | |
271 | 274 | ||
272 | - | let | |
275 | + | let bg = ba(bb, aL) | |
273 | 276 | ||
274 | - | let | |
277 | + | let bh = ba(bb, aO) | |
275 | 278 | ||
276 | - | let | |
279 | + | let bi = ba(bb, aM) | |
277 | 280 | ||
278 | - | let | |
281 | + | let bj = ba(bb, aR) | |
279 | 282 | ||
280 | - | let | |
283 | + | let bk = ba(bb, aT) | |
281 | 284 | ||
282 | - | let | |
285 | + | let bl = ba(bb, aU) | |
283 | 286 | ||
284 | - | let | |
287 | + | let bm = ba(bb, aV) | |
285 | 288 | ||
286 | - | let bl = af(bd, I()) | |
287 | - | ||
288 | - | let bm = fromBase58String(bl) | |
289 | - | ||
290 | - | let bn = getStringValue(bd, J()) | |
289 | + | let bn = ah(bf, I()) | |
291 | 290 | ||
292 | 291 | let bo = fromBase58String(bn) | |
293 | 292 | ||
294 | - | let bp = getStringValue( | |
293 | + | let bp = getStringValue(bf, J()) | |
295 | 294 | ||
296 | 295 | let bq = fromBase58String(bp) | |
297 | 296 | ||
298 | - | func br () = as(invoke(be, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
297 | + | let br = getStringValue(bg, K()) | |
298 | + | ||
299 | + | let bs = fromBase58String(br) | |
300 | + | ||
301 | + | func bt () = au(invoke(bg, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
299 | 302 | ||
300 | 303 | ||
301 | - | func | |
304 | + | func bu () = au(invoke(bg, "minNsbtAmountForSellSYSREADONLY", nil, nil)) | |
302 | 305 | ||
303 | 306 | ||
304 | - | func | |
307 | + | func bv () = au(invoke(bg, "minWavesAmountSurfBuySYSREADONLY", nil, nil)) | |
305 | 308 | ||
306 | 309 | ||
307 | - | func | |
310 | + | func bw () = au(invoke(bg, "minUsdnAmountSurfBuySYSREADONLY", nil, nil)) | |
308 | 311 | ||
309 | 312 | ||
310 | - | func | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | $Tuple2(IntegerEntry("nsbt2usdnPrice", | |
313 | + | func bx () = { | |
314 | + | let by = aq(invoke(be, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
315 | + | let bz = au(by[0]) | |
316 | + | let bA = au(by[1]) | |
317 | + | $Tuple2(IntegerEntry("nsbt2usdnPrice", bz), IntegerEntry("nsbt2wavesPrice", bA)) | |
315 | 318 | } | |
316 | 319 | ||
317 | 320 | ||
318 | - | func | |
319 | - | let | |
320 | - | valueOrElse(getInteger( | |
321 | + | func bB (bC,bD) = { | |
322 | + | let aj = makeString(["rpd_balance", bD, bC], "_") | |
323 | + | valueOrElse(getInteger(bi, aj), 0) | |
321 | 324 | } | |
322 | 325 | ||
323 | 326 | ||
324 | - | @Callable( | |
325 | - | func constructor ( | |
327 | + | @Callable(bE) | |
328 | + | func constructor (bF,bG,bH) = if ((bE.caller != this)) | |
326 | 329 | then throw("not authorized") | |
327 | - | else [StringEntry(H(), | |
330 | + | else [StringEntry(H(), bF), StringEntry(U(), bG), StringEntry(V(), bH)] | |
328 | 331 | ||
329 | 332 | ||
330 | 333 | ||
331 | - | @Callable( | |
334 | + | @Callable(bE) | |
332 | 335 | func neutrinoStatsREADONLY () = { | |
333 | - | let bG = ao(invoke(bc, "calcNeutinoMetricsREADONLY", nil, nil)) | |
334 | - | let bw = ao(invoke(bc, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
335 | - | let bH = as(bG[k]) | |
336 | - | let bI = as(bG[l]) | |
337 | - | let bJ = as(bG[m]) | |
338 | - | let bK = as(bG[n]) | |
339 | - | let bL = as(bG[o]) | |
340 | - | let bM = as(bG[p]) | |
341 | - | let bN = as(bG[q]) | |
342 | - | let bO = as(bG[r]) | |
343 | - | let bP = as(bG[s]) | |
344 | - | let bQ = as(bG[t]) | |
345 | - | let bR = as(bG[u]) | |
346 | - | let bx = as(bw[0]) | |
347 | - | let by = as(bw[1]) | |
348 | - | let bS = br() | |
349 | - | let bT = bs() | |
350 | - | let bU = ai(bh, ac()) | |
351 | - | let bV = (fraction(bM, e, bH) - bK) | |
352 | - | let bW = (bM - bL) | |
353 | - | let bX = bP | |
354 | - | let bY = fraction(bP, c, bH) | |
355 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ), toString(bR), toString(bx), toString(by), toString(bS), toString(bT), toString(bU), toString(bV), toString(bW), toString(bX), toString(bY)], i)) | |
336 | + | let bI = aq(invoke(be, "calcNeutinoMetricsREADONLY", nil, nil)) | |
337 | + | let by = aq(invoke(be, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
338 | + | let bJ = au(bI[k]) | |
339 | + | let bK = au(bI[l]) | |
340 | + | let bL = au(bI[m]) | |
341 | + | let bM = au(bI[n]) | |
342 | + | let bN = au(bI[o]) | |
343 | + | let bO = au(bI[p]) | |
344 | + | let bP = au(bI[q]) | |
345 | + | let bQ = au(bI[r]) | |
346 | + | let bR = au(bI[s]) | |
347 | + | let bS = au(bI[t]) | |
348 | + | let bT = au(bI[u]) | |
349 | + | let bz = au(by[0]) | |
350 | + | let bA = au(by[1]) | |
351 | + | let bU = bt() | |
352 | + | let bV = bu() | |
353 | + | let bW = ak(bj, ac()) | |
354 | + | let bX = (fraction(bO, e, bJ) - bM) | |
355 | + | let bY = (bO - bN) | |
356 | + | let bZ = bR | |
357 | + | let ca = fraction(bR, c, bJ) | |
358 | + | let cb = valueOrElse(getInteger(bi, af(bn)), 0) | |
359 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ), toString(bR), toString(bS), toString(bT), toString(bz), toString(bA), toString(bU), toString(bV), toString(bW), toString(bX), toString(bY), toString(bZ), toString(ca), toString(cb)], i)) | |
356 | 360 | } | |
357 | 361 | ||
358 | 362 | ||
359 | 363 | ||
360 | - | @Callable( | |
361 | - | func swapInfoREADONLY ( | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString( | |
364 | + | @Callable(bE) | |
365 | + | func swapInfoREADONLY (cc) = { | |
366 | + | let bJ = getIntegerValue(bd, Y()) | |
367 | + | let cd = getIntegerValue(bf, O()) | |
368 | + | let ce = getIntegerValue(bf, P()) | |
369 | + | let cf = getIntegerValue(bf, Q()) | |
370 | + | let cg = getIntegerValue(bf, R()) | |
371 | + | let ch = getIntegerValue(bf, X()) | |
372 | + | let ci = getIntegerValue(bf, W()) | |
373 | + | let cj = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, 0], nil)) | |
374 | + | let ck = cj._1 | |
375 | + | let cl = cj._2 | |
376 | + | let cm = cj._3 | |
377 | + | let cn = am(ck, bJ) | |
378 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(bJ), toString(cd), toString(ce), toString(cf), toString(cg), toString(ch), toString(ci), toString(cm), toString(cn), toString(ck), toString(cl)], i)) | |
375 | 379 | } | |
376 | 380 | ||
377 | 381 | ||
378 | 382 | ||
379 | - | @Callable( | |
380 | - | func gnsbtInfoREADONLY ( | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | then fraction(( | |
383 | + | @Callable(bE) | |
384 | + | func gnsbtInfoREADONLY (cc,co) = { | |
385 | + | let bJ = getIntegerValue(bd, Y()) | |
386 | + | let cp = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, 0], nil)) | |
387 | + | let cq = cp._1 | |
388 | + | let cr = cp._2 | |
389 | + | let cm = cp._3 | |
390 | + | let cs = cp._4 | |
391 | + | let ct = cp._5 | |
392 | + | let cu = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, co], nil)) | |
393 | + | let cv = cu._1 | |
394 | + | let cw = cu._2 | |
395 | + | let cx = cu._3 | |
396 | + | let cy = cu._4 | |
397 | + | let cz = cu._5 | |
398 | + | let cA = am(cq, bJ) | |
399 | + | let cB = am(cv, bJ) | |
400 | + | let cC = if ((ct != 0)) | |
401 | + | then fraction((cs * 100), g, ct) | |
398 | 402 | else 0 | |
399 | - | let | |
400 | - | then fraction(( | |
403 | + | let cD = if ((cz != 0)) | |
404 | + | then fraction((cy * 100), g, cz) | |
401 | 405 | else 0 | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | then ( | |
406 | + | let cE = aw(invoke(bj, "unclaimedRewardsREADONLY", [cc], nil)) | |
407 | + | let cF = cs | |
408 | + | let cG = cy | |
409 | + | let cH = ct | |
410 | + | let cI = cz | |
411 | + | let cJ = aq(invoke(bj, "nsbtStakingSYSREADONLY", [cc, co], nil)) | |
412 | + | let cK = if ((cs == 0)) | |
413 | + | then (cy == 0) | |
410 | 414 | else false | |
411 | - | let cI = if (cH) | |
415 | + | let cL = if (cK) | |
416 | + | then height | |
417 | + | else au(cJ[2]) | |
418 | + | let cM = aC(cL) | |
419 | + | let cN = ak(bj, ab()) | |
420 | + | let cO = if (cK) | |
412 | 421 | then -1 | |
413 | - | else as(cG[2]) | |
414 | - | let cJ = aA(cI) | |
415 | - | let cK = ai(bh, ab()) | |
416 | - | let cL = if (cH) | |
417 | - | then -1 | |
418 | - | else as(invoke(bc, "mergeStakesREADONLY", [cp, cI, cv, height, cK], nil)) | |
419 | - | let cM = aA(cL) | |
420 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d%d%d%d%d%d%d", toString(cp), toString(cv), toString(cz), toString(cA), toString(cn), toString(cx), toString(cs), toString(cy), cB, toString(cC), toString(cD), toString(cE), toString(cF), toString(cI), toString(cJ), toString(cL), toString(cM)], i)) | |
422 | + | else au(invoke(be, "mergeStakesREADONLY", [cs, cL, cy, height, cN], nil)) | |
423 | + | let cP = aC(cO) | |
424 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d%d%d%d%d%d%d", toString(cs), toString(cy), toString(cC), toString(cD), toString(cq), toString(cA), toString(cv), toString(cB), cE, toString(cF), toString(cG), toString(cH), toString(cI), toString(cL), toString(cM), toString(cO), toString(cP)], i)) | |
421 | 425 | } | |
422 | 426 | ||
423 | 427 | ||
424 | 428 | ||
425 | - | @Callable( | |
429 | + | @Callable(bE) | |
426 | 430 | func neutrinoConfigREADONLY () = { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString( | |
431 | + | let cQ = getIntegerValue(be, S()) | |
432 | + | let cR = getIntegerValue(be, T()) | |
433 | + | let cd = getIntegerValue(bf, O()) | |
434 | + | let ce = getIntegerValue(bf, P()) | |
435 | + | let cf = getIntegerValue(bf, Q()) | |
436 | + | let cg = getIntegerValue(bf, R()) | |
437 | + | let bU = bt() | |
438 | + | let bV = bu() | |
439 | + | let bW = getIntegerValue(bj, ac()) | |
440 | + | let cN = getIntegerValue(bj, ab()) | |
441 | + | let cS = bv() | |
442 | + | let cT = bw() | |
443 | + | let cU = aq(invoke(bk, "configSYSREADONLY", nil, nil)) | |
444 | + | let cV = au(cU[0]) | |
445 | + | let cW = au(cU[1]) | |
446 | + | let cX = au(cU[2]) | |
447 | + | let cY = au(cU[3]) | |
448 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(cQ), toString(cR), toString(cd), toString(ce), toString(cf), toString(cg), toString(bU), toString(bV), toString(bW), toString(cN), toString(cS), toString(cT), toString(cV), toString(cW), toString(cX), toString(cY)], i)) | |
445 | 449 | } | |
446 | 450 | ||
447 | 451 | ||
448 | 452 | ||
449 | - | @Callable( | |
450 | - | func buyNsbtREADONLY ( | |
451 | - | let | |
452 | - | if (( | |
453 | - | then throw((("min " + toString( | |
453 | + | @Callable(bE) | |
454 | + | func buyNsbtREADONLY (cZ) = { | |
455 | + | let da = bt() | |
456 | + | if ((da > cZ)) | |
457 | + | then throw((("min " + toString(da)) + " waves expected")) | |
454 | 458 | else { | |
455 | - | let | |
456 | - | if (( | |
459 | + | let db = aq(invoke(be, "curveFunctionREADONLY", [cZ], nil)) | |
460 | + | if ((db == db)) | |
457 | 461 | then { | |
458 | - | let | |
459 | - | if ((0 >= | |
462 | + | let dc = au(db[0]) | |
463 | + | if ((0 >= dc)) | |
460 | 464 | then throw("nsbtAmount <= 0") | |
461 | - | else $Tuple2(nil, makeString(["%d", toString( | |
465 | + | else $Tuple2(nil, makeString(["%d", toString(dc)], i)) | |
462 | 466 | } | |
463 | 467 | else throw("Strict value is not equal to itself.") | |
464 | 468 | } | |
466 | 470 | ||
467 | 471 | ||
468 | 472 | ||
469 | - | @Callable( | |
470 | - | func buySurfREADONLY ( | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString( | |
473 | + | @Callable(bE) | |
474 | + | func buySurfREADONLY (cc,an,bD) = { | |
475 | + | let ag = fromBase58String(bD) | |
476 | + | let dd = aq(invoke(be, "surfFunctionREADONLY", [an, ag], nil)) | |
477 | + | let de = au(dd[w]) | |
478 | + | let df = au(invoke(bk, "gnsbtFromSurfSYSREADONLY", [de], nil)) | |
479 | + | let dg = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, 0], nil))._1 | |
480 | + | let dh = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, df], nil))._1 | |
481 | + | let ao = au(dd[G]) | |
482 | + | let di = (dh - dg) | |
483 | + | let dj = fraction(di, e, ao) | |
484 | + | let dk = au(dd[B]) | |
485 | + | let dl = au(dd[E]) | |
486 | + | let dm = fraction(dk, c, ao) | |
487 | + | let dn = fraction(dl, c, ao) | |
488 | + | let do = aq(invoke(bm, "gnsbtInfoINTERNAL", [cc, 0, de], nil)) | |
489 | + | let dp = au(do[21]) | |
490 | + | let dq = au(do[22]) | |
491 | + | let dr = au(do[23]) | |
492 | + | let ds = dr | |
493 | + | let dt = (dq - dp) | |
494 | + | let du = au(dd[F]) | |
495 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(de), toString(df), toString(di), toString(dj), toString(dk), toString(dl), toString(dm), toString(dn), toString(ds), toString(dt), toString(du)], i)) | |
492 | 496 | } | |
493 | 497 | ||
494 | 498 | ||
495 | 499 | ||
496 | - | @Callable( | |
497 | - | func walletInfoREADONLY ( | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString( | |
500 | + | @Callable(bE) | |
501 | + | func walletInfoREADONLY (dv) = { | |
502 | + | let dw = addressFromStringValue(dv) | |
503 | + | let dx = wavesBalance(dw) | |
504 | + | let dy = bB(dv, bn) | |
505 | + | let dz = bB(dv, bp) | |
506 | + | let dA = aq(invoke(bl, "gnsbtInfoSYSREADONLY", [dv, 0, 0], nil)) | |
507 | + | let cJ = aq(dA[2]) | |
508 | + | let dB = au(cJ[0]) | |
509 | + | let dC = au(cJ[1]) | |
510 | + | let dD = au(cJ[2]) | |
511 | + | let dE = au(cJ[3]) | |
512 | + | let dF = aq(dA[3]) | |
513 | + | let dG = au(dF[0]) | |
514 | + | let dH = au(dF[1]) | |
515 | + | let dI = au(dF[2]) | |
516 | + | let dJ = au(dF[3]) | |
517 | + | let dK = 0 | |
518 | + | let dL = 0 | |
519 | + | let do = aq(invoke(bm, "gnsbtInfoINTERNAL", [dv, 0, 0], nil)) | |
520 | + | let dM = au(do[19]) | |
521 | + | let dp = au(do[21]) | |
522 | + | let dN = au(do[23]) | |
523 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(dx.regular), toString(dx.available), toString(dx.generating), toString(dx.effective), toString(height), toString(dy), toString(dz), toString(dB), toString(dD), toString(dI), toString(dG), toString(dM), toString(dp), toString(dN), toString(dK), toString(dL), toString(dE), toString(dJ)], i)) | |
520 | 524 | } | |
521 | 525 | ||
522 | 526 | ||
523 | 527 | ||
524 | - | @Callable( | |
525 | - | func mergedStakeREADONLY ( | |
526 | - | let | |
527 | - | let | |
528 | - | $Tuple2(nil, makeString(["%d%d", toString(( | |
528 | + | @Callable(bE) | |
529 | + | func mergedStakeREADONLY (dO,dP,dQ,dR) = { | |
530 | + | let cN = ak(bj, ab()) | |
531 | + | let dS = au(invoke(be, "mergeStakesREADONLY", [dO, dP, dQ, dR, cN], nil)) | |
532 | + | $Tuple2(nil, makeString(["%d%d", toString((dO + dQ)), toString(dS)], i)) | |
529 | 533 | } | |
530 | 534 | ||
531 | 535 | ||
532 | 536 | ||
533 | - | @Callable( | |
534 | - | func unstakeComissionAmountByHeightREADONLY ( | |
535 | - | let | |
536 | - | let | |
537 | - | if (( | |
538 | - | then $Tuple2(nil, makeString(["%d", toString( | |
537 | + | @Callable(bE) | |
538 | + | func unstakeComissionAmountByHeightREADONLY (an,cL) = { | |
539 | + | let cN = ak(bj, ab()) | |
540 | + | let dT = au(invoke(be, "getUnstakeComissionAmountREADONLY", [an, cL, cN], nil)) | |
541 | + | if ((dT == dT)) | |
542 | + | then $Tuple2(nil, makeString(["%d", toString(dT)], i)) | |
539 | 543 | else throw("Strict value is not equal to itself.") | |
540 | 544 | } | |
541 | 545 | ||
542 | 546 | ||
543 | 547 | ||
544 | - | @Callable( | |
545 | - | func unstakeComissionAmountByUserREADONLY ( | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | if (( | |
550 | - | then $Tuple2(nil, makeString(["%d", toString( | |
548 | + | @Callable(bE) | |
549 | + | func unstakeComissionAmountByUserREADONLY (an,aa) = { | |
550 | + | let cN = ak(bj, ab()) | |
551 | + | let cL = valueOrElse(getInteger(bj, Z(aa)), height) | |
552 | + | let dT = au(invoke(be, "getUnstakeComissionAmountREADONLY", [an, cL, cN], nil)) | |
553 | + | if ((dT == dT)) | |
554 | + | then $Tuple2(nil, makeString(["%d", toString(dT)], i)) | |
551 | 555 | else throw("Strict value is not equal to itself.") | |
552 | 556 | } | |
553 | 557 | ||
554 | 558 | ||
555 | 559 | ||
556 | - | @Callable( | |
560 | + | @Callable(bE) | |
557 | 561 | func neutrinoStateREST () = { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | throw(makeString(["resultNeutrinoStateREST" | |
562 | + | let bI = aq(invoke(be, "calcNeutinoMetricsREADONLY", nil, nil)) | |
563 | + | let bJ = au(bI[k]) | |
564 | + | let bK = au(bI[l]) | |
565 | + | let bL = au(bI[m]) | |
566 | + | let bM = au(bI[n]) | |
567 | + | let bN = au(bI[o]) | |
568 | + | let bO = au(bI[p]) | |
569 | + | let bP = au(bI[q]) | |
570 | + | let bQ = au(bI[r]) | |
571 | + | let bR = au(bI[s]) | |
572 | + | let bS = au(bI[t]) | |
573 | + | let dU = au(bI[u]) | |
574 | + | let dV = au(bI[v]) | |
575 | + | throw(makeString(["resultNeutrinoStateREST", toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ), toString(bR), toString(bS), toString(dU), toString(dV)], "__")) | |
572 | 576 | } | |
573 | 577 | ||
574 | 578 | ||
575 | 579 | ||
576 | - | @Callable( | |
580 | + | @Callable(bE) | |
577 | 581 | func nsbtPriceREST () = { | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | throw( | |
582 | + | let by = aq(invoke(be, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
583 | + | let bz = au(by[0]) | |
584 | + | let bA = au(by[1]) | |
585 | + | let dW = makeString(["startNsbtPriceREST", toString(bz), toString(bA), "endNsbtPriceREST"], "__") | |
586 | + | throw(dW) | |
583 | 587 | } | |
584 | 588 | ||
585 | 589 | ||
586 | 590 | ||
587 | - | @Callable( | |
591 | + | @Callable(bE) | |
588 | 592 | func surfPriceREST () = { | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | throw( | |
593 | + | let bI = aq(invoke(be, "calcNeutinoMetricsREADONLY", nil, nil)) | |
594 | + | let bJ = au(bI[k]) | |
595 | + | let bM = au(bI[n]) | |
596 | + | let bO = au(bI[p]) | |
597 | + | let bZ = fraction(bM, bJ, bO) | |
598 | + | let ca = fraction(bM, e, bO) | |
599 | + | let dW = makeString(["startSurfPriceREST", toString(bZ), toString(ca), "endSurfPriceREST"], "__") | |
600 | + | throw(dW) | |
597 | 601 | } | |
598 | 602 | ||
599 | 603 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "" | |
5 | 5 | ||
6 | 6 | let b = 271828182 | |
7 | 7 | ||
8 | 8 | let c = 1000000 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000) | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(100000000) | |
15 | 15 | ||
16 | 16 | let g = 1000000000000 | |
17 | 17 | ||
18 | 18 | let h = toBigInt(1000000000000000000) | |
19 | 19 | ||
20 | 20 | let i = "__" | |
21 | 21 | ||
22 | 22 | let j = fromBase58String("WAVES") | |
23 | 23 | ||
24 | 24 | let k = 0 | |
25 | 25 | ||
26 | 26 | let l = 1 | |
27 | 27 | ||
28 | 28 | let m = 2 | |
29 | 29 | ||
30 | 30 | let n = 3 | |
31 | 31 | ||
32 | 32 | let o = 4 | |
33 | 33 | ||
34 | 34 | let p = 5 | |
35 | 35 | ||
36 | 36 | let q = 6 | |
37 | 37 | ||
38 | 38 | let r = 7 | |
39 | 39 | ||
40 | 40 | let s = 8 | |
41 | 41 | ||
42 | 42 | let t = 9 | |
43 | 43 | ||
44 | 44 | let u = 10 | |
45 | 45 | ||
46 | 46 | let v = 11 | |
47 | 47 | ||
48 | 48 | let w = 0 | |
49 | 49 | ||
50 | 50 | let x = 1 | |
51 | 51 | ||
52 | 52 | let y = 2 | |
53 | 53 | ||
54 | 54 | let z = 3 | |
55 | 55 | ||
56 | 56 | let A = 4 | |
57 | 57 | ||
58 | 58 | let B = 5 | |
59 | 59 | ||
60 | 60 | let C = 6 | |
61 | 61 | ||
62 | 62 | let D = 7 | |
63 | 63 | ||
64 | 64 | let E = 8 | |
65 | 65 | ||
66 | 66 | let F = 9 | |
67 | 67 | ||
68 | 68 | let G = 10 | |
69 | 69 | ||
70 | 70 | func H () = "%s%s__config__neutrinoAddress" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func I () = "neutrino_asset_id" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func J () = "bond_asset_id" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func K () = "surf_asset_id" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func L () = "balance_lock_" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func M () = (L() + "waves") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func N () = (L() + "neutrino") | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func O () = "min_waves_swap_amount" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func P () = "min_neutrino_swap_amount" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func Q () = "wavesOut_swap_feePart" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func R () = "neutrinoOut_swap_feePart" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func S () = "%s%s__config__swapAParam" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func T () = "%s%s__config__swapBParam" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func U () = "%s__nsbtLockContract" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func V () = "%s__mathContract" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func W () = "balance_waves_lock_interval" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func X () = "balance_neutrino_lock_interval" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func Y () = "price" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func Z (aa) = makeString(["%s%s%s", "paramByUser", aa, "start"], i) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func ab () = "%s__halfLife" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ac () = "%s__minLockAmount" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ad () = "min_waves_nsbt_buy" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ae () = "min_nsbt_sell" | |
137 | 137 | ||
138 | 138 | ||
139 | - | func af (ag | |
139 | + | func af (ag) = ("rpd_balance_" + ag) | |
140 | 140 | ||
141 | 141 | ||
142 | - | func | |
142 | + | func ah (ai,aj) = valueOrErrorMessage(getString(ai, aj), makeString(["mandatory ", toString(ai), ".", aj, " is not defined"], "")) | |
143 | 143 | ||
144 | 144 | ||
145 | - | func | |
145 | + | func ak (ai,aj) = valueOrErrorMessage(getInteger(ai, aj), makeString(["mandatory ", toString(ai), ".", aj, " is not defined"], "")) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func | |
148 | + | func al (ai,aj) = valueOrErrorMessage(getBoolean(ai, aj), makeString(["mandatory ", toString(ai), ".", aj, " is not defined"], "")) | |
149 | 149 | ||
150 | 150 | ||
151 | - | func | |
151 | + | func am (an,ao) = fraction(an, e, ao) | |
152 | 152 | ||
153 | 153 | ||
154 | - | func ao (ap) = { | |
155 | - | let aq = ap | |
156 | - | if ($isInstanceOf(aq, "List[Any]")) | |
154 | + | func ap (an,ao) = fraction(an, ao, e) | |
155 | + | ||
156 | + | ||
157 | + | func aq (ar) = { | |
158 | + | let as = ar | |
159 | + | if ($isInstanceOf(as, "List[Any]")) | |
157 | 160 | then { | |
158 | - | let | |
159 | - | | |
161 | + | let at = as | |
162 | + | at | |
160 | 163 | } | |
161 | 164 | else throw("fail to cast into List[Any]") | |
162 | 165 | } | |
163 | 166 | ||
164 | 167 | ||
165 | - | func | |
166 | - | let | |
167 | - | if ($isInstanceOf( | |
168 | + | func au (ar) = { | |
169 | + | let as = ar | |
170 | + | if ($isInstanceOf(as, "Int")) | |
168 | 171 | then { | |
169 | - | let | |
170 | - | | |
172 | + | let av = as | |
173 | + | av | |
171 | 174 | } | |
172 | 175 | else throw("fail to cast into Int") | |
173 | 176 | } | |
174 | 177 | ||
175 | 178 | ||
176 | - | func | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
179 | + | func aw (ar) = { | |
180 | + | let as = ar | |
181 | + | if ($isInstanceOf(as, "String")) | |
179 | 182 | then { | |
180 | - | let | |
181 | - | | |
183 | + | let ax = as | |
184 | + | ax | |
182 | 185 | } | |
183 | 186 | else throw("fail to cast into String") | |
184 | 187 | } | |
185 | 188 | ||
186 | 189 | ||
187 | - | func | |
188 | - | let | |
189 | - | if ($isInstanceOf( | |
190 | + | func ay (ar) = { | |
191 | + | let as = ar | |
192 | + | if ($isInstanceOf(as, "(Int, Int)")) | |
190 | 193 | then { | |
191 | - | let | |
192 | - | | |
194 | + | let az = as | |
195 | + | az | |
193 | 196 | } | |
194 | 197 | else throw("fail to cast into Tuple2 ints") | |
195 | 198 | } | |
196 | 199 | ||
197 | 200 | ||
198 | - | func | |
199 | - | let | |
200 | - | if ($isInstanceOf( | |
201 | + | func aA (ar) = { | |
202 | + | let as = ar | |
203 | + | if ($isInstanceOf(as, "(Int, Int, Int, Int, Int)")) | |
201 | 204 | then { | |
202 | - | let | |
203 | - | | |
205 | + | let aB = as | |
206 | + | aB | |
204 | 207 | } | |
205 | 208 | else throw("fail to cast into Int") | |
206 | 209 | } | |
207 | 210 | ||
208 | 211 | ||
209 | - | func | |
212 | + | func aC (aD) = if ((0 > aD)) | |
210 | 213 | then -1 | |
211 | 214 | else { | |
212 | - | let | |
213 | - | if ($isInstanceOf( | |
215 | + | let as = blockInfoByHeight(aD) | |
216 | + | if ($isInstanceOf(as, "BlockInfo")) | |
214 | 217 | then { | |
215 | - | let | |
216 | - | | |
218 | + | let aE = as | |
219 | + | aE.timestamp | |
217 | 220 | } | |
218 | 221 | else -1 | |
219 | 222 | } | |
220 | 223 | ||
221 | 224 | ||
222 | - | func | |
225 | + | func aF (aG,aH) = fraction(toBigInt(aG), h, toBigInt(aH)) | |
223 | 226 | ||
224 | 227 | ||
225 | - | func | |
228 | + | func aI (ar,aJ) = toInt(fraction(ar, toBigInt(aJ), h)) | |
226 | 229 | ||
227 | 230 | ||
228 | - | let | |
231 | + | let aK = 1 | |
229 | 232 | ||
230 | - | let | |
233 | + | let aL = 2 | |
231 | 234 | ||
232 | - | let | |
235 | + | let aM = 3 | |
233 | 236 | ||
234 | - | let | |
237 | + | let aN = 4 | |
235 | 238 | ||
236 | - | let | |
239 | + | let aO = 5 | |
237 | 240 | ||
238 | - | let | |
241 | + | let aP = 6 | |
239 | 242 | ||
240 | - | let | |
243 | + | let aQ = 7 | |
241 | 244 | ||
242 | - | let | |
245 | + | let aR = 8 | |
243 | 246 | ||
244 | - | let | |
247 | + | let aS = 9 | |
245 | 248 | ||
246 | - | let | |
249 | + | let aT = 10 | |
247 | 250 | ||
248 | - | let | |
251 | + | let aU = 11 | |
249 | 252 | ||
250 | - | let | |
253 | + | let aV = 12 | |
251 | 254 | ||
252 | - | func | |
255 | + | func aW () = "%s%s__config__controlAddress" | |
253 | 256 | ||
254 | 257 | ||
255 | - | func | |
258 | + | func aX () = "%s__controlConfig" | |
256 | 259 | ||
257 | 260 | ||
258 | - | func | |
261 | + | func aY (aZ) = split(ah(aZ, aX()), i) | |
259 | 262 | ||
260 | 263 | ||
261 | - | func | |
264 | + | func ba (bb,bc) = valueOrErrorMessage(addressFromString(bb[bc]), ("Control cfg doesn't contain address at index " + toString(bc))) | |
262 | 265 | ||
263 | 266 | ||
264 | - | let | |
267 | + | let bd = addressFromStringValue(valueOrElse(getString(this, aW()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
265 | 268 | ||
266 | - | let | |
269 | + | let bb = aY(bd) | |
267 | 270 | ||
268 | - | let | |
271 | + | let be = ba(bb, aN) | |
269 | 272 | ||
270 | - | let | |
273 | + | let bf = ba(bb, aK) | |
271 | 274 | ||
272 | - | let | |
275 | + | let bg = ba(bb, aL) | |
273 | 276 | ||
274 | - | let | |
277 | + | let bh = ba(bb, aO) | |
275 | 278 | ||
276 | - | let | |
279 | + | let bi = ba(bb, aM) | |
277 | 280 | ||
278 | - | let | |
281 | + | let bj = ba(bb, aR) | |
279 | 282 | ||
280 | - | let | |
283 | + | let bk = ba(bb, aT) | |
281 | 284 | ||
282 | - | let | |
285 | + | let bl = ba(bb, aU) | |
283 | 286 | ||
284 | - | let | |
287 | + | let bm = ba(bb, aV) | |
285 | 288 | ||
286 | - | let bl = af(bd, I()) | |
287 | - | ||
288 | - | let bm = fromBase58String(bl) | |
289 | - | ||
290 | - | let bn = getStringValue(bd, J()) | |
289 | + | let bn = ah(bf, I()) | |
291 | 290 | ||
292 | 291 | let bo = fromBase58String(bn) | |
293 | 292 | ||
294 | - | let bp = getStringValue( | |
293 | + | let bp = getStringValue(bf, J()) | |
295 | 294 | ||
296 | 295 | let bq = fromBase58String(bp) | |
297 | 296 | ||
298 | - | func br () = as(invoke(be, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
297 | + | let br = getStringValue(bg, K()) | |
298 | + | ||
299 | + | let bs = fromBase58String(br) | |
300 | + | ||
301 | + | func bt () = au(invoke(bg, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
299 | 302 | ||
300 | 303 | ||
301 | - | func | |
304 | + | func bu () = au(invoke(bg, "minNsbtAmountForSellSYSREADONLY", nil, nil)) | |
302 | 305 | ||
303 | 306 | ||
304 | - | func | |
307 | + | func bv () = au(invoke(bg, "minWavesAmountSurfBuySYSREADONLY", nil, nil)) | |
305 | 308 | ||
306 | 309 | ||
307 | - | func | |
310 | + | func bw () = au(invoke(bg, "minUsdnAmountSurfBuySYSREADONLY", nil, nil)) | |
308 | 311 | ||
309 | 312 | ||
310 | - | func | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | $Tuple2(IntegerEntry("nsbt2usdnPrice", | |
313 | + | func bx () = { | |
314 | + | let by = aq(invoke(be, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
315 | + | let bz = au(by[0]) | |
316 | + | let bA = au(by[1]) | |
317 | + | $Tuple2(IntegerEntry("nsbt2usdnPrice", bz), IntegerEntry("nsbt2wavesPrice", bA)) | |
315 | 318 | } | |
316 | 319 | ||
317 | 320 | ||
318 | - | func | |
319 | - | let | |
320 | - | valueOrElse(getInteger( | |
321 | + | func bB (bC,bD) = { | |
322 | + | let aj = makeString(["rpd_balance", bD, bC], "_") | |
323 | + | valueOrElse(getInteger(bi, aj), 0) | |
321 | 324 | } | |
322 | 325 | ||
323 | 326 | ||
324 | - | @Callable( | |
325 | - | func constructor ( | |
327 | + | @Callable(bE) | |
328 | + | func constructor (bF,bG,bH) = if ((bE.caller != this)) | |
326 | 329 | then throw("not authorized") | |
327 | - | else [StringEntry(H(), | |
330 | + | else [StringEntry(H(), bF), StringEntry(U(), bG), StringEntry(V(), bH)] | |
328 | 331 | ||
329 | 332 | ||
330 | 333 | ||
331 | - | @Callable( | |
334 | + | @Callable(bE) | |
332 | 335 | func neutrinoStatsREADONLY () = { | |
333 | - | let bG = ao(invoke(bc, "calcNeutinoMetricsREADONLY", nil, nil)) | |
334 | - | let bw = ao(invoke(bc, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
335 | - | let bH = as(bG[k]) | |
336 | - | let bI = as(bG[l]) | |
337 | - | let bJ = as(bG[m]) | |
338 | - | let bK = as(bG[n]) | |
339 | - | let bL = as(bG[o]) | |
340 | - | let bM = as(bG[p]) | |
341 | - | let bN = as(bG[q]) | |
342 | - | let bO = as(bG[r]) | |
343 | - | let bP = as(bG[s]) | |
344 | - | let bQ = as(bG[t]) | |
345 | - | let bR = as(bG[u]) | |
346 | - | let bx = as(bw[0]) | |
347 | - | let by = as(bw[1]) | |
348 | - | let bS = br() | |
349 | - | let bT = bs() | |
350 | - | let bU = ai(bh, ac()) | |
351 | - | let bV = (fraction(bM, e, bH) - bK) | |
352 | - | let bW = (bM - bL) | |
353 | - | let bX = bP | |
354 | - | let bY = fraction(bP, c, bH) | |
355 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ), toString(bR), toString(bx), toString(by), toString(bS), toString(bT), toString(bU), toString(bV), toString(bW), toString(bX), toString(bY)], i)) | |
336 | + | let bI = aq(invoke(be, "calcNeutinoMetricsREADONLY", nil, nil)) | |
337 | + | let by = aq(invoke(be, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
338 | + | let bJ = au(bI[k]) | |
339 | + | let bK = au(bI[l]) | |
340 | + | let bL = au(bI[m]) | |
341 | + | let bM = au(bI[n]) | |
342 | + | let bN = au(bI[o]) | |
343 | + | let bO = au(bI[p]) | |
344 | + | let bP = au(bI[q]) | |
345 | + | let bQ = au(bI[r]) | |
346 | + | let bR = au(bI[s]) | |
347 | + | let bS = au(bI[t]) | |
348 | + | let bT = au(bI[u]) | |
349 | + | let bz = au(by[0]) | |
350 | + | let bA = au(by[1]) | |
351 | + | let bU = bt() | |
352 | + | let bV = bu() | |
353 | + | let bW = ak(bj, ac()) | |
354 | + | let bX = (fraction(bO, e, bJ) - bM) | |
355 | + | let bY = (bO - bN) | |
356 | + | let bZ = bR | |
357 | + | let ca = fraction(bR, c, bJ) | |
358 | + | let cb = valueOrElse(getInteger(bi, af(bn)), 0) | |
359 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ), toString(bR), toString(bS), toString(bT), toString(bz), toString(bA), toString(bU), toString(bV), toString(bW), toString(bX), toString(bY), toString(bZ), toString(ca), toString(cb)], i)) | |
356 | 360 | } | |
357 | 361 | ||
358 | 362 | ||
359 | 363 | ||
360 | - | @Callable( | |
361 | - | func swapInfoREADONLY ( | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString( | |
364 | + | @Callable(bE) | |
365 | + | func swapInfoREADONLY (cc) = { | |
366 | + | let bJ = getIntegerValue(bd, Y()) | |
367 | + | let cd = getIntegerValue(bf, O()) | |
368 | + | let ce = getIntegerValue(bf, P()) | |
369 | + | let cf = getIntegerValue(bf, Q()) | |
370 | + | let cg = getIntegerValue(bf, R()) | |
371 | + | let ch = getIntegerValue(bf, X()) | |
372 | + | let ci = getIntegerValue(bf, W()) | |
373 | + | let cj = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, 0], nil)) | |
374 | + | let ck = cj._1 | |
375 | + | let cl = cj._2 | |
376 | + | let cm = cj._3 | |
377 | + | let cn = am(ck, bJ) | |
378 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(bJ), toString(cd), toString(ce), toString(cf), toString(cg), toString(ch), toString(ci), toString(cm), toString(cn), toString(ck), toString(cl)], i)) | |
375 | 379 | } | |
376 | 380 | ||
377 | 381 | ||
378 | 382 | ||
379 | - | @Callable( | |
380 | - | func gnsbtInfoREADONLY ( | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | then fraction(( | |
383 | + | @Callable(bE) | |
384 | + | func gnsbtInfoREADONLY (cc,co) = { | |
385 | + | let bJ = getIntegerValue(bd, Y()) | |
386 | + | let cp = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, 0], nil)) | |
387 | + | let cq = cp._1 | |
388 | + | let cr = cp._2 | |
389 | + | let cm = cp._3 | |
390 | + | let cs = cp._4 | |
391 | + | let ct = cp._5 | |
392 | + | let cu = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, co], nil)) | |
393 | + | let cv = cu._1 | |
394 | + | let cw = cu._2 | |
395 | + | let cx = cu._3 | |
396 | + | let cy = cu._4 | |
397 | + | let cz = cu._5 | |
398 | + | let cA = am(cq, bJ) | |
399 | + | let cB = am(cv, bJ) | |
400 | + | let cC = if ((ct != 0)) | |
401 | + | then fraction((cs * 100), g, ct) | |
398 | 402 | else 0 | |
399 | - | let | |
400 | - | then fraction(( | |
403 | + | let cD = if ((cz != 0)) | |
404 | + | then fraction((cy * 100), g, cz) | |
401 | 405 | else 0 | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | then ( | |
406 | + | let cE = aw(invoke(bj, "unclaimedRewardsREADONLY", [cc], nil)) | |
407 | + | let cF = cs | |
408 | + | let cG = cy | |
409 | + | let cH = ct | |
410 | + | let cI = cz | |
411 | + | let cJ = aq(invoke(bj, "nsbtStakingSYSREADONLY", [cc, co], nil)) | |
412 | + | let cK = if ((cs == 0)) | |
413 | + | then (cy == 0) | |
410 | 414 | else false | |
411 | - | let cI = if (cH) | |
415 | + | let cL = if (cK) | |
416 | + | then height | |
417 | + | else au(cJ[2]) | |
418 | + | let cM = aC(cL) | |
419 | + | let cN = ak(bj, ab()) | |
420 | + | let cO = if (cK) | |
412 | 421 | then -1 | |
413 | - | else as(cG[2]) | |
414 | - | let cJ = aA(cI) | |
415 | - | let cK = ai(bh, ab()) | |
416 | - | let cL = if (cH) | |
417 | - | then -1 | |
418 | - | else as(invoke(bc, "mergeStakesREADONLY", [cp, cI, cv, height, cK], nil)) | |
419 | - | let cM = aA(cL) | |
420 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d%d%d%d%d%d%d", toString(cp), toString(cv), toString(cz), toString(cA), toString(cn), toString(cx), toString(cs), toString(cy), cB, toString(cC), toString(cD), toString(cE), toString(cF), toString(cI), toString(cJ), toString(cL), toString(cM)], i)) | |
422 | + | else au(invoke(be, "mergeStakesREADONLY", [cs, cL, cy, height, cN], nil)) | |
423 | + | let cP = aC(cO) | |
424 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d%d%d%d%d%d%d", toString(cs), toString(cy), toString(cC), toString(cD), toString(cq), toString(cA), toString(cv), toString(cB), cE, toString(cF), toString(cG), toString(cH), toString(cI), toString(cL), toString(cM), toString(cO), toString(cP)], i)) | |
421 | 425 | } | |
422 | 426 | ||
423 | 427 | ||
424 | 428 | ||
425 | - | @Callable( | |
429 | + | @Callable(bE) | |
426 | 430 | func neutrinoConfigREADONLY () = { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString( | |
431 | + | let cQ = getIntegerValue(be, S()) | |
432 | + | let cR = getIntegerValue(be, T()) | |
433 | + | let cd = getIntegerValue(bf, O()) | |
434 | + | let ce = getIntegerValue(bf, P()) | |
435 | + | let cf = getIntegerValue(bf, Q()) | |
436 | + | let cg = getIntegerValue(bf, R()) | |
437 | + | let bU = bt() | |
438 | + | let bV = bu() | |
439 | + | let bW = getIntegerValue(bj, ac()) | |
440 | + | let cN = getIntegerValue(bj, ab()) | |
441 | + | let cS = bv() | |
442 | + | let cT = bw() | |
443 | + | let cU = aq(invoke(bk, "configSYSREADONLY", nil, nil)) | |
444 | + | let cV = au(cU[0]) | |
445 | + | let cW = au(cU[1]) | |
446 | + | let cX = au(cU[2]) | |
447 | + | let cY = au(cU[3]) | |
448 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(cQ), toString(cR), toString(cd), toString(ce), toString(cf), toString(cg), toString(bU), toString(bV), toString(bW), toString(cN), toString(cS), toString(cT), toString(cV), toString(cW), toString(cX), toString(cY)], i)) | |
445 | 449 | } | |
446 | 450 | ||
447 | 451 | ||
448 | 452 | ||
449 | - | @Callable( | |
450 | - | func buyNsbtREADONLY ( | |
451 | - | let | |
452 | - | if (( | |
453 | - | then throw((("min " + toString( | |
453 | + | @Callable(bE) | |
454 | + | func buyNsbtREADONLY (cZ) = { | |
455 | + | let da = bt() | |
456 | + | if ((da > cZ)) | |
457 | + | then throw((("min " + toString(da)) + " waves expected")) | |
454 | 458 | else { | |
455 | - | let | |
456 | - | if (( | |
459 | + | let db = aq(invoke(be, "curveFunctionREADONLY", [cZ], nil)) | |
460 | + | if ((db == db)) | |
457 | 461 | then { | |
458 | - | let | |
459 | - | if ((0 >= | |
462 | + | let dc = au(db[0]) | |
463 | + | if ((0 >= dc)) | |
460 | 464 | then throw("nsbtAmount <= 0") | |
461 | - | else $Tuple2(nil, makeString(["%d", toString( | |
465 | + | else $Tuple2(nil, makeString(["%d", toString(dc)], i)) | |
462 | 466 | } | |
463 | 467 | else throw("Strict value is not equal to itself.") | |
464 | 468 | } | |
465 | 469 | } | |
466 | 470 | ||
467 | 471 | ||
468 | 472 | ||
469 | - | @Callable( | |
470 | - | func buySurfREADONLY ( | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString( | |
473 | + | @Callable(bE) | |
474 | + | func buySurfREADONLY (cc,an,bD) = { | |
475 | + | let ag = fromBase58String(bD) | |
476 | + | let dd = aq(invoke(be, "surfFunctionREADONLY", [an, ag], nil)) | |
477 | + | let de = au(dd[w]) | |
478 | + | let df = au(invoke(bk, "gnsbtFromSurfSYSREADONLY", [de], nil)) | |
479 | + | let dg = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, 0], nil))._1 | |
480 | + | let dh = aA(invoke(bf, "swapParamsByUserSYSREADONLY", [cc, df], nil))._1 | |
481 | + | let ao = au(dd[G]) | |
482 | + | let di = (dh - dg) | |
483 | + | let dj = fraction(di, e, ao) | |
484 | + | let dk = au(dd[B]) | |
485 | + | let dl = au(dd[E]) | |
486 | + | let dm = fraction(dk, c, ao) | |
487 | + | let dn = fraction(dl, c, ao) | |
488 | + | let do = aq(invoke(bm, "gnsbtInfoINTERNAL", [cc, 0, de], nil)) | |
489 | + | let dp = au(do[21]) | |
490 | + | let dq = au(do[22]) | |
491 | + | let dr = au(do[23]) | |
492 | + | let ds = dr | |
493 | + | let dt = (dq - dp) | |
494 | + | let du = au(dd[F]) | |
495 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(de), toString(df), toString(di), toString(dj), toString(dk), toString(dl), toString(dm), toString(dn), toString(ds), toString(dt), toString(du)], i)) | |
492 | 496 | } | |
493 | 497 | ||
494 | 498 | ||
495 | 499 | ||
496 | - | @Callable( | |
497 | - | func walletInfoREADONLY ( | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString( | |
500 | + | @Callable(bE) | |
501 | + | func walletInfoREADONLY (dv) = { | |
502 | + | let dw = addressFromStringValue(dv) | |
503 | + | let dx = wavesBalance(dw) | |
504 | + | let dy = bB(dv, bn) | |
505 | + | let dz = bB(dv, bp) | |
506 | + | let dA = aq(invoke(bl, "gnsbtInfoSYSREADONLY", [dv, 0, 0], nil)) | |
507 | + | let cJ = aq(dA[2]) | |
508 | + | let dB = au(cJ[0]) | |
509 | + | let dC = au(cJ[1]) | |
510 | + | let dD = au(cJ[2]) | |
511 | + | let dE = au(cJ[3]) | |
512 | + | let dF = aq(dA[3]) | |
513 | + | let dG = au(dF[0]) | |
514 | + | let dH = au(dF[1]) | |
515 | + | let dI = au(dF[2]) | |
516 | + | let dJ = au(dF[3]) | |
517 | + | let dK = 0 | |
518 | + | let dL = 0 | |
519 | + | let do = aq(invoke(bm, "gnsbtInfoINTERNAL", [dv, 0, 0], nil)) | |
520 | + | let dM = au(do[19]) | |
521 | + | let dp = au(do[21]) | |
522 | + | let dN = au(do[23]) | |
523 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(dx.regular), toString(dx.available), toString(dx.generating), toString(dx.effective), toString(height), toString(dy), toString(dz), toString(dB), toString(dD), toString(dI), toString(dG), toString(dM), toString(dp), toString(dN), toString(dK), toString(dL), toString(dE), toString(dJ)], i)) | |
520 | 524 | } | |
521 | 525 | ||
522 | 526 | ||
523 | 527 | ||
524 | - | @Callable( | |
525 | - | func mergedStakeREADONLY ( | |
526 | - | let | |
527 | - | let | |
528 | - | $Tuple2(nil, makeString(["%d%d", toString(( | |
528 | + | @Callable(bE) | |
529 | + | func mergedStakeREADONLY (dO,dP,dQ,dR) = { | |
530 | + | let cN = ak(bj, ab()) | |
531 | + | let dS = au(invoke(be, "mergeStakesREADONLY", [dO, dP, dQ, dR, cN], nil)) | |
532 | + | $Tuple2(nil, makeString(["%d%d", toString((dO + dQ)), toString(dS)], i)) | |
529 | 533 | } | |
530 | 534 | ||
531 | 535 | ||
532 | 536 | ||
533 | - | @Callable( | |
534 | - | func unstakeComissionAmountByHeightREADONLY ( | |
535 | - | let | |
536 | - | let | |
537 | - | if (( | |
538 | - | then $Tuple2(nil, makeString(["%d", toString( | |
537 | + | @Callable(bE) | |
538 | + | func unstakeComissionAmountByHeightREADONLY (an,cL) = { | |
539 | + | let cN = ak(bj, ab()) | |
540 | + | let dT = au(invoke(be, "getUnstakeComissionAmountREADONLY", [an, cL, cN], nil)) | |
541 | + | if ((dT == dT)) | |
542 | + | then $Tuple2(nil, makeString(["%d", toString(dT)], i)) | |
539 | 543 | else throw("Strict value is not equal to itself.") | |
540 | 544 | } | |
541 | 545 | ||
542 | 546 | ||
543 | 547 | ||
544 | - | @Callable( | |
545 | - | func unstakeComissionAmountByUserREADONLY ( | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | if (( | |
550 | - | then $Tuple2(nil, makeString(["%d", toString( | |
548 | + | @Callable(bE) | |
549 | + | func unstakeComissionAmountByUserREADONLY (an,aa) = { | |
550 | + | let cN = ak(bj, ab()) | |
551 | + | let cL = valueOrElse(getInteger(bj, Z(aa)), height) | |
552 | + | let dT = au(invoke(be, "getUnstakeComissionAmountREADONLY", [an, cL, cN], nil)) | |
553 | + | if ((dT == dT)) | |
554 | + | then $Tuple2(nil, makeString(["%d", toString(dT)], i)) | |
551 | 555 | else throw("Strict value is not equal to itself.") | |
552 | 556 | } | |
553 | 557 | ||
554 | 558 | ||
555 | 559 | ||
556 | - | @Callable( | |
560 | + | @Callable(bE) | |
557 | 561 | func neutrinoStateREST () = { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | throw(makeString(["resultNeutrinoStateREST" | |
562 | + | let bI = aq(invoke(be, "calcNeutinoMetricsREADONLY", nil, nil)) | |
563 | + | let bJ = au(bI[k]) | |
564 | + | let bK = au(bI[l]) | |
565 | + | let bL = au(bI[m]) | |
566 | + | let bM = au(bI[n]) | |
567 | + | let bN = au(bI[o]) | |
568 | + | let bO = au(bI[p]) | |
569 | + | let bP = au(bI[q]) | |
570 | + | let bQ = au(bI[r]) | |
571 | + | let bR = au(bI[s]) | |
572 | + | let bS = au(bI[t]) | |
573 | + | let dU = au(bI[u]) | |
574 | + | let dV = au(bI[v]) | |
575 | + | throw(makeString(["resultNeutrinoStateREST", toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ), toString(bR), toString(bS), toString(dU), toString(dV)], "__")) | |
572 | 576 | } | |
573 | 577 | ||
574 | 578 | ||
575 | 579 | ||
576 | - | @Callable( | |
580 | + | @Callable(bE) | |
577 | 581 | func nsbtPriceREST () = { | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | throw( | |
582 | + | let by = aq(invoke(be, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
583 | + | let bz = au(by[0]) | |
584 | + | let bA = au(by[1]) | |
585 | + | let dW = makeString(["startNsbtPriceREST", toString(bz), toString(bA), "endNsbtPriceREST"], "__") | |
586 | + | throw(dW) | |
583 | 587 | } | |
584 | 588 | ||
585 | 589 | ||
586 | 590 | ||
587 | - | @Callable( | |
591 | + | @Callable(bE) | |
588 | 592 | func surfPriceREST () = { | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | throw( | |
593 | + | let bI = aq(invoke(be, "calcNeutinoMetricsREADONLY", nil, nil)) | |
594 | + | let bJ = au(bI[k]) | |
595 | + | let bM = au(bI[n]) | |
596 | + | let bO = au(bI[p]) | |
597 | + | let bZ = fraction(bM, bJ, bO) | |
598 | + | let ca = fraction(bM, e, bO) | |
599 | + | let dW = makeString(["startSurfPriceREST", toString(bZ), toString(ca), "endSurfPriceREST"], "__") | |
600 | + | throw(dW) | |
597 | 601 | } | |
598 | 602 | ||
599 | 603 |
github/deemru/w8io/026f985 222.41 ms ◑