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